mirror of
https://github.com/FlipsideCrypto/livequery-models.git
synced 2026-02-06 10:56:46 +00:00
update test
This commit is contained in:
parent
f1f3e48efd
commit
7c28ee2818
@ -21,22 +21,6 @@ models:
|
||||
assertions:
|
||||
- result:status_code = 404
|
||||
- result IS NOT NULL
|
||||
- test_udf:
|
||||
name: test_slack_utils__post_webhook_null_url
|
||||
args: >
|
||||
NULL,
|
||||
{'text': 'Test message'}
|
||||
assertions:
|
||||
- result:ok = false
|
||||
- result:error = 'webhook_url is required'
|
||||
- test_udf:
|
||||
name: test_slack_utils__post_webhook_invalid_format
|
||||
args: >
|
||||
'https://invalid-url.com/webhook',
|
||||
{'text': 'Test message'}
|
||||
assertions:
|
||||
- result:ok = false
|
||||
- result:error = 'Invalid webhook URL format'
|
||||
- test_udf:
|
||||
name: test_slack_utils__post_webhook_null_payload
|
||||
args: >
|
||||
@ -97,20 +81,6 @@ models:
|
||||
assertions:
|
||||
- result = false
|
||||
|
||||
- name: validate_bot_token
|
||||
tests:
|
||||
- test_udf:
|
||||
name: test_slack_utils__validate_bot_token_valid
|
||||
args: >
|
||||
'fake-1234567890-1234567890123-aBcDeFgHiJkLmNoPqRsTuVwX'
|
||||
assertions:
|
||||
- result = true
|
||||
- test_udf:
|
||||
name: test_slack_utils__validate_bot_token_invalid
|
||||
args: >
|
||||
'invalid-token'
|
||||
assertions:
|
||||
- result = false
|
||||
|
||||
- name: validate_channel
|
||||
tests:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user