From cc6edf555a4f57d7c67b17fbae58cf51eeca2661 Mon Sep 17 00:00:00 2001 From: Jensen Yap Date: Wed, 6 Aug 2025 10:45:52 +0900 Subject: [PATCH] fix test args --- .../marketplace/github/github_utils__github_utils.yml | 4 ++-- .../marketplace/slack/slack_utils__slack_utils.yml | 9 +++------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/models/deploy/marketplace/github/github_utils__github_utils.yml b/models/deploy/marketplace/github/github_utils__github_utils.yml index 3989ee6..ac31039 100644 --- a/models/deploy/marketplace/github/github_utils__github_utils.yml +++ b/models/deploy/marketplace/github/github_utils__github_utils.yml @@ -22,7 +22,7 @@ models: - CONTAINS(result, 'X-GitHub-Api-Version') - CONTAINS(result, 'Accept') - - name: post + - name: post_api tests: - test_udf_without_context: name: test_github_utils__post_invalid_route @@ -33,7 +33,7 @@ models: - result:status_code = 404 - result IS NOT NULL - - name: put + - name: put_api tests: - test_udf_without_context: name: test_github_utils__put_invalid_route diff --git a/models/deploy/marketplace/slack/slack_utils__slack_utils.yml b/models/deploy/marketplace/slack/slack_utils__slack_utils.yml index c39224a..8f202fd 100644 --- a/models/deploy/marketplace/slack/slack_utils__slack_utils.yml +++ b/models/deploy/marketplace/slack/slack_utils__slack_utils.yml @@ -35,8 +35,7 @@ models: - test_udf_without_context: name: test_slack_utils__post_message_httpbin args: > - 'fake-test-token', - 'https://httpbin.org/post', + 'C1234567890', {'text': 'Test message from Livequery'} assertions: - result:status_code = 200 @@ -45,8 +44,7 @@ models: - test_udf_without_context: name: test_slack_utils__post_message_auth_error args: > - 'invalid-token', - 'https://httpbin.org/status/401', + 'C1234567890', {'text': 'Test message'} assertions: - result:status_code = 401 @@ -57,8 +55,7 @@ models: - test_udf_without_context: name: test_slack_utils__post_reply_httpbin args: > - 'fake-test-token', - 'https://httpbin.org/post', + 'C1234567890', '1234567890.123456', {'text': 'Test reply from Livequery'} assertions: