update test

This commit is contained in:
Jensen Yap 2025-08-05 22:23:38 +09:00
parent f1f3e48efd
commit 7c28ee2818

View File

@ -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: