有人能帮我用python写YAML文件的测试用例吗?
config.yaml
环境:发展
AthenaCred:
AthenaDatabaseName: dap_cred
AthenaTblName: athena_prod
AwsSecretKey: null
AwsAccessKeyId: null
S3StagingDir: 's3://aws-athena-query-results/'
RegionName: 'us-east-1'
加载规则.yaml
Insert:
- compute: 25:adobe:redshift
entity: marketing
group: '87:count'
name: Test rule 1
product: adobe
query: SELECT count(*) "count" from public.dual
- compute: 25:adobe:redshift
entity: marketing
group: '0:default'
name: Test rule 2
product: adobe
query: SELECT count(*) from public.dual
Delete:
rule_id:
- '107:test'
- '2:test'
1条答案
按热度按时间f0ofjuux1#
单程
另一种方式
在这里你可以根据你需要修改python代码,在python中打开yaml文件,将数据保存到数组中,进行对象查询并执行测试任务。