mirror of
https://github.com/FlipsideCrypto/livequery-models.git
synced 2026-02-06 10:56:46 +00:00
* add deploy/core & updated test_udf * namespace scope macros * remove package namespace * add render.sql * namespace scole apply_grants_by_schema * add depnends_on clause for deploy/martketplace models
27 lines
956 B
YAML
27 lines
956 B
YAML
version: 2
|
|
models:
|
|
- name: live
|
|
columns:
|
|
- name: udf_api
|
|
tests:
|
|
- test_udf:
|
|
name: test__live_udf_api_post_data_object
|
|
args: |
|
|
'https://httpbin.org/post', {'foo': 'bar'}
|
|
assertions:
|
|
- result:data.json is not null
|
|
- result:data.json = OBJECT_CONSTRUCT('foo', 'bar')
|
|
- test_udf:
|
|
name: test__live_udf_api_post_data_array
|
|
args: |
|
|
'https://httpbin.org/post', ['foo', 'bar']
|
|
assertions:
|
|
- result:data.json is not null
|
|
- result:data.json = ARRAY_CONSTRUCT('foo', 'bar')
|
|
- test_udf:
|
|
name: test__live_udf_api_post_data_string
|
|
args: |
|
|
'https://httpbin.org/post', 'foo'::VARIANT
|
|
assertions:
|
|
- result:data.json is not null
|
|
- result:data.json = 'foo' |