ci_test.yaml.example 4.28 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# gitignore ignores files.yaml in this folder
# however a config file for tests in CI is required
# so this example file in fact is the CI test file
connection:
    database: 'blendb_fixture'
    user: 'runner'
    password: ''
    host: 'postgres'
    port: 5432
    max: 10
    idleTimeoutMillis: 30000
struct:
    create: true
    insert: true
schema:
    views:
17
18
19
        -
            alias: "View 0"
            data: "test/postgres/fixtures/view0.json"
20
            origin: true
21
22
23
24
25
26
27
            dimensions:
                - "dim:0"
                - "dim:7"
            metrics:
                - "met:0"
                - "met:1"
                - "met:2"
28
29
30
        -
            alias: "View 1"
            data: "test/postgres/fixtures/view1.json"
31
            origin: true
32
33
            dimensions:
                - "dim:1"
34
                - "dim:8"
35
36
            metrics:
                - "met:3"
37
                - "met:4"
38
39
40
        -
            alias: "View 2"
            data: "test/postgres/fixtures/view2.json"
41
            origin: true
42
43
44
45
            dimensions:
                - "dim:2"
            metrics:
                - "met:5"
46
                - "met:6"
47
48
49
        -
            alias: "View 3"
            data: "test/postgres/fixtures/view3.json"
50
            origin: true
51
            dimensions:
52
53
                - "dim:2"
                - "dim:3"
54
55
56
57
                - "dim:4"
        -
            alias: "View 4"
            data: "test/postgres/fixtures/view4.json"
58
            origin: true
59
            dimensions:
60
61
62
                - "dim:2"
                - "dim:7"
                - "dim:8"
63
64
65
        -
            alias: "View 5"
            data: "test/postgres/fixtures/view5.json"
66
            origin: true
67
            dimensions:
68
                - "dim:3"
69
            metrics:
70
                - "met:7"
71
72
73
        -
            alias: "View 6"
            data: "test/postgres/fixtures/view6.json"
74
            origin: true
75
            dimensions:
76
                - "dim:4"
77
            metrics:
78
                - "met:8"
79
80
81
        -
            alias: "View 7"
            data: "test/postgres/fixtures/view7.json"
82
            origin: true
83
            dimensions:
84
85
86
                - "dim:4"
                - "dim:5"
                - "dim:6"
87
88
89
        -
            alias: "View 8"
            data: "test/postgres/fixtures/view8.json"
90
            origin: true
91
            dimensions:
92
93
                - "dim:5"
                - "dim:6"
94
95
            metrics:
                - "met:9"
96
97
98
99
100
101
102
103
104
105
        -
            alias: "view 9"
            data: "test/postgres/fixtures/view9.json"
            origin: false
            dimensions:
                - "dim:2"
            metrics:
                - "met:5"
                - "met:6"
                - "met:7"
106
107
    metrics:
        -
108
            name: "met:0"
109
110
            dataType: "integer"
            aggregation: "sum"
111
112
113
114
        -
            name: "met:1"
            dataType: "integer"
            aggregation: "avg"
115
116
117
118
119
120
121
        -
            name: "met:2"
            dataType: "integer"
            aggregation: "avg"
        -
            name: "met:3"
            dataType: "integer"
122
            aggregation: "sum"
123
124
125
126
127
128
129
        -
            name: "met:4"
            dataType: "integer"
            aggregation: "sum"
        -
            name: "met:5"
            dataType: "integer"
130
            aggregation: "avg"
131
132
133
        -
            name: "met:6"
            dataType: "integer"
134
            aggregation: "count"
135
136
137
138
139
140
141
142
143
        -
            name: "met:7"
            dataType: "integer"
            aggregation: "count"
        -
            name: "met:8"
            dataType: "integer"
            aggregation: "sum"
        -
144
            name: "met:9"
145
146
147
            dataType: "integer"
            aggregation: "count"
    dimensions:
148
149
150
        -
            name: "dim:0"
            dataType: "date"
151
152
153
154
155
        -
            name: "dim:1"
            dataType: "date"
        -
            name: "dim:2"
156
            dataType: "integer"
157
158
        -
            name: "dim:3"
159
            dataType: "string"
160
161
162
163
164
        -
            name: "dim:4"
            dataType: "string"
        -
            name: "dim:5"
165
            dataType: "boolean"
166
167
        -
            name: "dim:6"
168
            dataType: "integer"
169
170
171
172
173
174
        -
            name: "dim:7"
            dataType: "integer"
        -
            name: "dim:8"
            dataType: "integer"