forked from pflooky/data-caterer
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
insta-integration.yaml
28 lines (28 loc) · 974 Bytes
/
insta-integration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
services:
- name: postgres
data: app/src/test/resources/sample/sql/postgres
run:
- command: java -jar app/build/libs/data-caterer.jar
env:
PLAN_FILE_PATH: app/src/test/resources/sample/plan/account-balance-transaction-plan.yaml
TASK_FOLDER_PATH: app/src/test/resources/sample/task
APPLICATION_CONFIG_PATH: app/src/main/resources/application.conf
generateFirst: false
test:
validation:
postgres:
- options:
dbtable: account.balances
validations:
- expr: ISNOTNULL(account_number)
- aggType: count
aggExpr: count == 1000
- options:
dbtable: account.transactions
validations:
- expr: ISNOTNULL(account_number)
- aggType: count
aggExpr: count == 5000
- groupByFields: [account_number]
aggType: count
aggExpr: count == 5