livequery-models/macros/marketplace/github/github_utils__github_utils.yml
Jensen Yap 5ae7a52fea Add marketplace UDF integrations with fixes
- Add 36 marketplace integration READMEs
- Fix Groq UDF deployment issues (IFF function syntax)
- Remove API key parameters from function signatures
- Use vault-based authentication for all integrations
- Fix test token patterns to avoid GitHub secret detection

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 20:19:53 +09:00

67 lines
2.0 KiB
YAML

version: 2
models:
- name: github_utils__github_utils
columns:
- name: octocat
tests:
- test_udf:
name: test_github_utils__octocat_status_200
assertions:
- result:status_code = 200
- result:error IS NULL
- result:data IS NOT NULL
- name: headers
tests:
- test_udf:
name: test_github_utils__headers_format
assertions:
- result IS NOT NULL
- LENGTH(result) > 50
- CONTAINS(result, 'Authorization')
- CONTAINS(result, 'X-GitHub-Api-Version')
- CONTAINS(result, 'Accept')
- name: get
tests:
- test_udf:
name: test_github_utils__get_user_repos
args: >
'user/FlipsideCrypto',
{'type': 'public', 'per_page': 5}
assertions:
- result:status_code = 200
- result:error IS NULL
- result:data IS NOT NULL
- test_udf:
name: test_github_utils__get_repo_info
args: >
'repos/FlipsideCrypto/admin-models',
{}
assertions:
- result:status_code = 200
- result:data:name = 'admin-models'
- result:data:owner:login = 'FlipsideCrypto'
- name: post
tests:
- test_udf:
name: test_github_utils__post_invalid_route
args: >
'invalid/test/route',
{'test': 'data'}
assertions:
- result:status_code = 404
- result IS NOT NULL
- name: put
tests:
- test_udf:
name: test_github_utils__put_invalid_route
args: >
'invalid/test/route',
{'test': 'data'}
assertions:
- result:status_code = 404
- result IS NOT NULL