@faros-fde-sandbox/airbyte-local-cli 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DEVELOPER.md +76 -0
- package/LICENSE +201 -0
- package/README.md +440 -0
- package/lib/command.d.ts +11 -0
- package/lib/command.js +261 -0
- package/lib/command.js.map +1 -0
- package/lib/constants/airbyteConfig.d.ts +16 -0
- package/lib/constants/airbyteConfig.js +85 -0
- package/lib/constants/airbyteConfig.js.map +1 -0
- package/lib/constants/airbyteTypes.d.ts +14 -0
- package/lib/constants/airbyteTypes.js +214 -0
- package/lib/constants/airbyteTypes.js.map +1 -0
- package/lib/constants/constants.d.ts +11 -0
- package/lib/constants/constants.js +16 -0
- package/lib/constants/constants.js.map +1 -0
- package/lib/docker.d.ts +84 -0
- package/lib/docker.js +705 -0
- package/lib/docker.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +89 -0
- package/lib/index.js.map +1 -0
- package/lib/logger.d.ts +2 -0
- package/lib/logger.js +11 -0
- package/lib/logger.js.map +1 -0
- package/lib/types.d.ts +178 -0
- package/lib/types.js +63 -0
- package/lib/types.js.map +1 -0
- package/lib/utils.d.ts +105 -0
- package/lib/utils.js +732 -0
- package/lib/utils.js.map +1 -0
- package/lib/version.d.ts +1 -0
- package/lib/version.js +5 -0
- package/lib/version.js.map +1 -0
- package/package.json +84 -0
- package/scripts/lint +37 -0
- package/src/command.ts +304 -0
- package/src/constants/airbyteConfig.ts +96 -0
- package/src/constants/airbyteTypes.ts +226 -0
- package/src/constants/constants.ts +12 -0
- package/src/docker.ts +757 -0
- package/src/index.ts +109 -0
- package/src/logger.ts +5 -0
- package/src/tsconfig.json +6 -0
- package/src/types.ts +204 -0
- package/src/utils.ts +827 -0
- package/src/version.ts +1 -0
- package/test/__snapshots__/docker.it.test.ts.snap +422 -0
- package/test/__snapshots__/utils.it.test.ts.snap +365 -0
- package/test/command.test.ts +315 -0
- package/test/docker.it.test.ts +330 -0
- package/test/docker.test.ts +119 -0
- package/test/exec/.shellspec +13 -0
- package/test/exec/spec/index_spec.sh +441 -0
- package/test/exec/spec/spec_helper.sh +24 -0
- package/test/index.test.ts +158 -0
- package/test/pester/index.Tests.ps1 +315 -0
- package/test/resources/databricks_spec.json +145 -0
- package/test/resources/dockerIt_runDstSync/faros_airbyte_cli_dst_catalog.json +16 -0
- package/test/resources/dockerIt_runDstSync/faros_airbyte_cli_dst_config.json.template +9 -0
- package/test/resources/dockerIt_runDstSync/faros_airbyte_cli_src_output +51 -0
- package/test/resources/dockerIt_runSrcSync/faros_airbyte_cli_src_catalog.json +1 -0
- package/test/resources/dockerIt_runSrcSync/faros_airbyte_cli_src_config.json +3 -0
- package/test/resources/dockerIt_runSrcSync/state.json +1 -0
- package/test/resources/faros_airbyte_cli_src_config.json +8 -0
- package/test/resources/faros_airbyte_cli_src_config_chris.json +3 -0
- package/test/resources/faros_airbyte_cli_src_config_jennie.json +3 -0
- package/test/resources/graphql_spec.json +103 -0
- package/test/resources/test__state.json +1 -0
- package/test/resources/test__state_utf16.json +0 -0
- package/test/resources/test_config_file.json +38 -0
- package/test/resources/test_config_file_crlf.json +38 -0
- package/test/resources/test_config_file_dst_only.json.template +25 -0
- package/test/resources/test_config_file_graph_copy.json.template +25 -0
- package/test/resources/test_config_file_invalid +5 -0
- package/test/resources/test_config_file_src_only space.json +8 -0
- package/test/resources/test_config_file_src_only.json +8 -0
- package/test/resources/test_config_file_utf16.json +0 -0
- package/test/resources/test_src_input +9 -0
- package/test/resources/test_src_input_invalid_json +1 -0
- package/test/tsconfig.json +12 -0
- package/test/utils.it.test.ts +605 -0
- package/test/utils.test.ts +448 -0
- package/tsconfig.json +14 -0
package/src/version.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const CLI_VERSION = '0.0.23';
|
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`runDiscoverCatalog should success with example source 1`] = `
|
|
4
|
+
{
|
|
5
|
+
"streams": [
|
|
6
|
+
{
|
|
7
|
+
"default_cursor_field": [
|
|
8
|
+
"updated_at",
|
|
9
|
+
],
|
|
10
|
+
"json_schema": {
|
|
11
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
12
|
+
"properties": {
|
|
13
|
+
"__faros_data": {
|
|
14
|
+
"additionalProperties": true,
|
|
15
|
+
"type": [
|
|
16
|
+
"object",
|
|
17
|
+
"null",
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
"fields": {
|
|
21
|
+
"properties": {
|
|
22
|
+
"command": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
},
|
|
25
|
+
"number": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
"type": "object",
|
|
30
|
+
},
|
|
31
|
+
"more_fields": {
|
|
32
|
+
"items": {
|
|
33
|
+
"properties": {
|
|
34
|
+
"name": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
},
|
|
37
|
+
"nested": {
|
|
38
|
+
"properties": {
|
|
39
|
+
"value": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
"type": "object",
|
|
44
|
+
},
|
|
45
|
+
"value": {
|
|
46
|
+
"type": [
|
|
47
|
+
"string",
|
|
48
|
+
"integer",
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
"type": "object",
|
|
53
|
+
},
|
|
54
|
+
"type": [
|
|
55
|
+
"null",
|
|
56
|
+
"array",
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
"source": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
},
|
|
62
|
+
"uid": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
},
|
|
65
|
+
"updated_at": {
|
|
66
|
+
"type": "integer",
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
"type": "object",
|
|
70
|
+
},
|
|
71
|
+
"name": "builds",
|
|
72
|
+
"source_defined_cursor": true,
|
|
73
|
+
"source_defined_primary_key": [
|
|
74
|
+
[
|
|
75
|
+
"uid",
|
|
76
|
+
],
|
|
77
|
+
[
|
|
78
|
+
"source",
|
|
79
|
+
],
|
|
80
|
+
],
|
|
81
|
+
"supported_sync_modes": [
|
|
82
|
+
"full_refresh",
|
|
83
|
+
"incremental",
|
|
84
|
+
],
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
}
|
|
88
|
+
`;
|
|
89
|
+
|
|
90
|
+
exports[`runDiscoverCatalog should success with graphql source 1`] = `
|
|
91
|
+
{
|
|
92
|
+
"streams": [
|
|
93
|
+
{
|
|
94
|
+
"default_cursor_field": [],
|
|
95
|
+
"json_schema": {
|
|
96
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
97
|
+
"properties": {
|
|
98
|
+
"__faros_data": {
|
|
99
|
+
"additionalProperties": true,
|
|
100
|
+
"type": [
|
|
101
|
+
"object",
|
|
102
|
+
"null",
|
|
103
|
+
],
|
|
104
|
+
},
|
|
105
|
+
"message": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
"type": "object",
|
|
110
|
+
},
|
|
111
|
+
"name": "faros_graph",
|
|
112
|
+
"source_defined_cursor": true,
|
|
113
|
+
"supported_sync_modes": [
|
|
114
|
+
"full_refresh",
|
|
115
|
+
"incremental",
|
|
116
|
+
],
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
}
|
|
120
|
+
`;
|
|
121
|
+
|
|
122
|
+
exports[`runDstSync should success 1`] = `"{"format":"base64/gzip","data":"H4sIAAAAAAAAA6tWSkssyi+OTy9KLMhQsqpWyi9Kjw9JTcwFsYtS04pSizNSUxxLfDNzcjKLlawMzY0NzczNLI1NTC3NamtrAc6d5gdAAAAA"}"`;
|
|
123
|
+
|
|
124
|
+
exports[`runDstSync should success with srcInputFile 1`] = `"{"format":"base64/gzip","data":"H4sIAAAAAAAAA6tWSkssyi+OTy9KLMhQsqpWyi9Kjw9JTcwFsYtS04pSizNSUxxLfDNzcjKLlawMzY0NzczNLI1NTC3NamtrAc6d5gdAAAAA"}"`;
|
|
125
|
+
|
|
126
|
+
exports[`runSpec should success with airbyte image 1`] = `
|
|
127
|
+
{
|
|
128
|
+
"spec": {
|
|
129
|
+
"connectionSpecification": {
|
|
130
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
131
|
+
"properties": {
|
|
132
|
+
"accept_terms": {
|
|
133
|
+
"default": false,
|
|
134
|
+
"description": "You must agree to the Databricks JDBC Driver <a href="https://databricks.com/jdbc-odbc-driver-license">Terms & Conditions</a> to use this connector.",
|
|
135
|
+
"order": 1,
|
|
136
|
+
"title": "Agree to the Databricks JDBC Driver Terms & Conditions",
|
|
137
|
+
"type": "boolean",
|
|
138
|
+
},
|
|
139
|
+
"authentication": {
|
|
140
|
+
"default": "OAUTH",
|
|
141
|
+
"description": "Authentication mechanism for Staging files and running queries",
|
|
142
|
+
"oneOf": [
|
|
143
|
+
{
|
|
144
|
+
"properties": {
|
|
145
|
+
"auth_type": {
|
|
146
|
+
"const": "OAUTH",
|
|
147
|
+
"order": 0,
|
|
148
|
+
"type": "string",
|
|
149
|
+
},
|
|
150
|
+
"client_id": {
|
|
151
|
+
"order": 1,
|
|
152
|
+
"type": "string",
|
|
153
|
+
},
|
|
154
|
+
"secret": {
|
|
155
|
+
"airbyte_secret": true,
|
|
156
|
+
"order": 2,
|
|
157
|
+
"type": "string",
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
"required": [
|
|
161
|
+
"auth_type",
|
|
162
|
+
"client_id",
|
|
163
|
+
"secret",
|
|
164
|
+
],
|
|
165
|
+
"title": "OAuth2 (Recommended)",
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"properties": {
|
|
169
|
+
"auth_type": {
|
|
170
|
+
"const": "BASIC",
|
|
171
|
+
"order": 0,
|
|
172
|
+
"type": "string",
|
|
173
|
+
},
|
|
174
|
+
"personal_access_token": {
|
|
175
|
+
"airbyte_secret": true,
|
|
176
|
+
"order": 1,
|
|
177
|
+
"type": "string",
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
"required": [
|
|
181
|
+
"auth_type",
|
|
182
|
+
"personal_access_token",
|
|
183
|
+
],
|
|
184
|
+
"title": "Personal Access Token",
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
"order": 8,
|
|
188
|
+
"title": "Authentication",
|
|
189
|
+
"type": "object",
|
|
190
|
+
},
|
|
191
|
+
"database": {
|
|
192
|
+
"description": "The name of the unity catalog for the database",
|
|
193
|
+
"order": 5,
|
|
194
|
+
"title": "Databricks Unity Catalog Name",
|
|
195
|
+
"type": "string",
|
|
196
|
+
},
|
|
197
|
+
"hostname": {
|
|
198
|
+
"description": "Databricks Cluster Server Hostname.",
|
|
199
|
+
"examples": [
|
|
200
|
+
"abc-12345678-wxyz.cloud.databricks.com",
|
|
201
|
+
],
|
|
202
|
+
"order": 2,
|
|
203
|
+
"title": "Server Hostname",
|
|
204
|
+
"type": "string",
|
|
205
|
+
},
|
|
206
|
+
"http_path": {
|
|
207
|
+
"description": "Databricks Cluster HTTP Path.",
|
|
208
|
+
"examples": [
|
|
209
|
+
"sql/1.0/warehouses/0000-1111111-abcd90",
|
|
210
|
+
],
|
|
211
|
+
"order": 3,
|
|
212
|
+
"title": "HTTP Path",
|
|
213
|
+
"type": "string",
|
|
214
|
+
},
|
|
215
|
+
"port": {
|
|
216
|
+
"default": "443",
|
|
217
|
+
"description": "Databricks Cluster Port.",
|
|
218
|
+
"examples": [
|
|
219
|
+
"443",
|
|
220
|
+
],
|
|
221
|
+
"order": 4,
|
|
222
|
+
"title": "Port",
|
|
223
|
+
"type": "string",
|
|
224
|
+
},
|
|
225
|
+
"purge_staging_data": {
|
|
226
|
+
"default": true,
|
|
227
|
+
"description": "Default to 'true'. Switch it to 'false' for debugging purpose.",
|
|
228
|
+
"order": 9,
|
|
229
|
+
"title": "Purge Staging Files and Tables",
|
|
230
|
+
"type": "boolean",
|
|
231
|
+
},
|
|
232
|
+
"raw_schema_override": {
|
|
233
|
+
"default": "airbyte_internal",
|
|
234
|
+
"description": "The schema to write raw tables into (default: airbyte_internal)",
|
|
235
|
+
"order": 10,
|
|
236
|
+
"title": "Raw Table Schema Name",
|
|
237
|
+
"type": "string",
|
|
238
|
+
},
|
|
239
|
+
"schema": {
|
|
240
|
+
"default": "default",
|
|
241
|
+
"description": "The default schema tables are written. If not specified otherwise, the "default" will be used.",
|
|
242
|
+
"examples": [
|
|
243
|
+
"default",
|
|
244
|
+
],
|
|
245
|
+
"order": 6,
|
|
246
|
+
"title": "Default Schema",
|
|
247
|
+
"type": "string",
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
"required": [
|
|
251
|
+
"accept_terms",
|
|
252
|
+
"hostname",
|
|
253
|
+
"http_path",
|
|
254
|
+
"database",
|
|
255
|
+
"authentication",
|
|
256
|
+
],
|
|
257
|
+
"title": "Databricks Lakehouse Destination Spec",
|
|
258
|
+
"type": "object",
|
|
259
|
+
},
|
|
260
|
+
"documentationUrl": "https://docs.airbyte.com/integrations/destinations/databricks",
|
|
261
|
+
"supported_destination_sync_modes": [
|
|
262
|
+
"overwrite",
|
|
263
|
+
"append",
|
|
264
|
+
"append_dedup",
|
|
265
|
+
],
|
|
266
|
+
"supportsDBT": false,
|
|
267
|
+
"supportsIncremental": true,
|
|
268
|
+
"supportsNormalization": false,
|
|
269
|
+
},
|
|
270
|
+
"type": "SPEC",
|
|
271
|
+
}
|
|
272
|
+
`;
|
|
273
|
+
|
|
274
|
+
exports[`runSpec should success with faros image 1`] = `
|
|
275
|
+
{
|
|
276
|
+
"spec": {
|
|
277
|
+
"connectionSpecification": {
|
|
278
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
279
|
+
"additionalProperties": true,
|
|
280
|
+
"properties": {
|
|
281
|
+
"api_key": {
|
|
282
|
+
"airbyte_secret": true,
|
|
283
|
+
"description": "The Faros API key to use to access the API.",
|
|
284
|
+
"order": 1,
|
|
285
|
+
"title": "API Key",
|
|
286
|
+
"type": "string",
|
|
287
|
+
},
|
|
288
|
+
"api_url": {
|
|
289
|
+
"default": "https://prod.api.faros.ai",
|
|
290
|
+
"description": "The Faros API URL.",
|
|
291
|
+
"examples": [
|
|
292
|
+
"https://prod.api.faros.ai",
|
|
293
|
+
],
|
|
294
|
+
"order": 0,
|
|
295
|
+
"title": "API URL",
|
|
296
|
+
"type": "string",
|
|
297
|
+
},
|
|
298
|
+
"bucket_id": {
|
|
299
|
+
"default": 1,
|
|
300
|
+
"description": "Bucket number for this source to determine which portion of models to pull. Use it when distributing the load between multiple sources. Cannot be used in combination with 'GraphQL query'. Please note that V1 graphs do not support opening multiple revisions at once, so only use buckets if writing to a V2 graph on the destination, or not writing at all.",
|
|
301
|
+
"order": 10,
|
|
302
|
+
"title": "Bucket Number",
|
|
303
|
+
"type": "integer",
|
|
304
|
+
},
|
|
305
|
+
"bucket_total": {
|
|
306
|
+
"default": 1,
|
|
307
|
+
"description": "Total number of buckets to distribute models across. Use it when distributing the load between multiple sources. Cannot be used in combination with 'GraphQL query'. Please note that V1 graphs do not support opening multiple revisions at once, so only use buckets if writing to a V2 graph on the destination, or not writing at all.",
|
|
308
|
+
"order": 11,
|
|
309
|
+
"title": "Total Number of Buckets",
|
|
310
|
+
"type": "integer",
|
|
311
|
+
},
|
|
312
|
+
"check_connection": {
|
|
313
|
+
"default": true,
|
|
314
|
+
"description": "Enable connection check during setup (CHECK command). When disabled, skips setup-time checks.",
|
|
315
|
+
"order": 1002,
|
|
316
|
+
"title": "Check Connection",
|
|
317
|
+
"type": "boolean",
|
|
318
|
+
},
|
|
319
|
+
"debug": {
|
|
320
|
+
"default": false,
|
|
321
|
+
"description": "Enable debug mode",
|
|
322
|
+
"order": 1000,
|
|
323
|
+
"title": "Debug",
|
|
324
|
+
"type": "boolean",
|
|
325
|
+
},
|
|
326
|
+
"faros_source_id": {
|
|
327
|
+
"description": "The ID of the source (aka account)",
|
|
328
|
+
"order": 1001,
|
|
329
|
+
"title": "The source ID",
|
|
330
|
+
"type": "string",
|
|
331
|
+
},
|
|
332
|
+
"graph": {
|
|
333
|
+
"default": "default",
|
|
334
|
+
"description": "The graph name.",
|
|
335
|
+
"order": 2,
|
|
336
|
+
"title": "Graph name",
|
|
337
|
+
"type": "string",
|
|
338
|
+
},
|
|
339
|
+
"models_filter": {
|
|
340
|
+
"description": "Only query the following models and skip everything else.",
|
|
341
|
+
"items": {
|
|
342
|
+
"type": "string",
|
|
343
|
+
},
|
|
344
|
+
"order": 5,
|
|
345
|
+
"title": "Models filter",
|
|
346
|
+
"type": "array",
|
|
347
|
+
},
|
|
348
|
+
"page_size": {
|
|
349
|
+
"default": 1000,
|
|
350
|
+
"description": "Page size to use when paginating through query results.",
|
|
351
|
+
"order": 6,
|
|
352
|
+
"title": "Page Size",
|
|
353
|
+
"type": "integer",
|
|
354
|
+
},
|
|
355
|
+
"query": {
|
|
356
|
+
"description": "The query to execute.",
|
|
357
|
+
"multiline": true,
|
|
358
|
+
"order": 4,
|
|
359
|
+
"title": "GraphQL query",
|
|
360
|
+
"type": "string",
|
|
361
|
+
},
|
|
362
|
+
"result_model": {
|
|
363
|
+
"default": "Nested",
|
|
364
|
+
"description": "Where to place each of the query results in their corresponding output records. E.g Nested - { vcs { pullRequests { nodes: [<record>] } } }, Flat - { vcs_PullRequest: <record> }",
|
|
365
|
+
"enum": [
|
|
366
|
+
"Nested",
|
|
367
|
+
"Flat",
|
|
368
|
+
],
|
|
369
|
+
"order": 7,
|
|
370
|
+
"title": "Result model",
|
|
371
|
+
"type": "string",
|
|
372
|
+
},
|
|
373
|
+
},
|
|
374
|
+
"required": [
|
|
375
|
+
"api_key",
|
|
376
|
+
"graph",
|
|
377
|
+
],
|
|
378
|
+
"title": "GraphQL Spec",
|
|
379
|
+
"type": "object",
|
|
380
|
+
},
|
|
381
|
+
"documentationUrl": "https://docs.faros.ai",
|
|
382
|
+
},
|
|
383
|
+
"type": "SPEC",
|
|
384
|
+
}
|
|
385
|
+
`;
|
|
386
|
+
|
|
387
|
+
exports[`runSrcSync should success 1`] = `
|
|
388
|
+
"{"state":{"data":{"format":"base64/gzip","data":"H4sIAAAAAAAAA6uuBQBDv6ajAgAAAA=="}},"type":"STATE","redactedConfig":{"user":"chris"},"sourceType":"example","sourceVersion":***}
|
|
389
|
+
{"state":{"data":{"format":"base64/gzip","data":"H4sIAAAAAAAAA6uuBQBDv6ajAgAAAA=="}},"type":"STATE","sourceStatus":{"status":"SUCCESS"}}
|
|
390
|
+
{"state":{"data":{"format":"base64/gzip","data":"H4sIAAAAAAAAA6uuBQBDv6ajAgAAAA=="}},"type":"STATE","logs":[{"timestamp":***,"message":{"level":30,"msg":"Source version: ***"}},{"timestamp":***,"message":{"level":30,"msg":"Config: {\\"user\\":\\"chris\\"}"}},{"timestamp":***,"message":{"level":30,"msg":"Catalog: {}"}},{"timestamp":***,"message":{"level":30,"msg":"State: {}"}},{"timestamp":***,"message":{"level":30,"msg":"Performing pre-read connection validation"}},{"timestamp":***,"message":{"level":30,"msg":"Pre-read connection validation succeeded"}},{"timestamp":***,"message":{"level":30,"msg":"Syncing ExampleSource"}},{"timestamp":***,"message":{"level":30,"msg":"Finished syncing ExampleSource"}}]}
|
|
391
|
+
"
|
|
392
|
+
`;
|
|
393
|
+
|
|
394
|
+
exports[`runSrcSync should success with specified output file 1`] = `
|
|
395
|
+
"{"state":{"data":{"format":"base64/gzip","data":"H4sIAAAAAAAAA6uuBQBDv6ajAgAAAA=="}},"type":"STATE","redactedConfig":{"user":"chris"},"sourceType":"example","sourceVersion":***}
|
|
396
|
+
{"state":{"data":{"format":"base64/gzip","data":"H4sIAAAAAAAAA6uuBQBDv6ajAgAAAA=="}},"type":"STATE","sourceStatus":{"status":"SUCCESS"}}
|
|
397
|
+
{"state":{"data":{"format":"base64/gzip","data":"H4sIAAAAAAAAA6uuBQBDv6ajAgAAAA=="}},"type":"STATE","logs":[{"timestamp":***,"message":{"level":30,"msg":"Source version: ***"}},{"timestamp":***,"message":{"level":30,"msg":"Config: {\\"user\\":\\"chris\\"}"}},{"timestamp":***,"message":{"level":30,"msg":"Catalog: {}"}},{"timestamp":***,"message":{"level":30,"msg":"State: {}"}},{"timestamp":***,"message":{"level":30,"msg":"Performing pre-read connection validation"}},{"timestamp":***,"message":{"level":30,"msg":"Pre-read connection validation succeeded"}},{"timestamp":***,"message":{"level":30,"msg":"Syncing ExampleSource"}},{"timestamp":***,"message":{"level":30,"msg":"Finished syncing ExampleSource"}}]}
|
|
398
|
+
"
|
|
399
|
+
`;
|
|
400
|
+
|
|
401
|
+
exports[`runSrcSync should wait for write to complete 1`] = `
|
|
402
|
+
"{"state":{"data":{"format":"base64/gzip","data":"H4sIAAAAAAAAA6uuBQBDv6ajAgAAAA=="}},"type":"STATE","redactedConfig":{"user":"chris"},"sourceType":"example","sourceVersion":***}
|
|
403
|
+
{"state":{"data":{"format":"base64/gzip","data":"H4sIAAAAAAAAA6uuBQBDv6ajAgAAAA=="}},"type":"STATE","sourceStatus":{"status":"SUCCESS"}}
|
|
404
|
+
{"state":{"data":{"format":"base64/gzip","data":"H4sIAAAAAAAAA6uuBQBDv6ajAgAAAA=="}},"type":"STATE","logs":[{"timestamp":***,"message":{"level":30,"msg":"Source version: ***"}},{"timestamp":***,"message":{"level":30,"msg":"Config: {\\"user\\":\\"chris\\"}"}},{"timestamp":***,"message":{"level":30,"msg":"Catalog: {}"}},{"timestamp":***,"message":{"level":30,"msg":"State: {}"}},{"timestamp":***,"message":{"level":30,"msg":"Performing pre-read connection validation"}},{"timestamp":***,"message":{"level":30,"msg":"Pre-read connection validation succeeded"}},{"timestamp":***,"message":{"level":30,"msg":"Syncing ExampleSource"}},{"timestamp":***,"message":{"level":30,"msg":"Finished syncing ExampleSource"}}]}
|
|
405
|
+
"
|
|
406
|
+
`;
|
|
407
|
+
|
|
408
|
+
exports[`runWizard should success with airbyte image 1`] = `
|
|
409
|
+
{
|
|
410
|
+
"accept_terms": false,
|
|
411
|
+
"database": "<UPDATE_THIS_VALUE>",
|
|
412
|
+
"hostname": "<UPDATE_THIS_VALUE>",
|
|
413
|
+
"http_path": "<UPDATE_THIS_VALUE>",
|
|
414
|
+
}
|
|
415
|
+
`;
|
|
416
|
+
|
|
417
|
+
exports[`runWizard should success with faros image 1`] = `
|
|
418
|
+
{
|
|
419
|
+
"api_key": "<UPDATE_YOUR_CREDENTIAL>",
|
|
420
|
+
"graph": "default",
|
|
421
|
+
}
|
|
422
|
+
`;
|