Skip to content

Commit b26778a

Browse files
committed
refactor(inspect): update inspect steps to use 'location' instead of 'connection' and 'object'
1 parent 089afbf commit b26778a

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

cmd/sling/tests/pipelines/p.04.test_inspect_hook.yaml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ steps:
1717
1818
- type: inspect
1919
id: inspect_postgres_table
20-
connection: postgres
21-
object: public.test_inspect_table
20+
location: postgres/public.test_inspect_table
2221

2322
- type: log
2423
message: |
@@ -28,7 +27,7 @@ steps:
2827
- Schema: {state.inspect_postgres_table.schema}
2928
- Name: {state.inspect_postgres_table.name}
3029
- FDQN: {state.inspect_postgres_table.fdqn}
31-
- Column Names: {state.inspect_postgres_table.column_names}
30+
- Column Names: {state.inspect_postgres_table.columns[*].name}
3231
- Column 'value': {state.inspect_postgres_table.column_map.value}
3332
3433
- type: check
@@ -58,8 +57,7 @@ steps:
5857
# Test inspect on a non-existent table
5958
- type: inspect
6059
id: inspect_missing_table
61-
connection: postgres
62-
object: public.non_existent_table
60+
location: postgres/public.non_existent_table
6361

6462
- type: check
6563
check: state.inspect_missing_table.exists == false
@@ -111,8 +109,7 @@ steps:
111109
112110
- type: inspect
113111
id: inspect_local_file
114-
connection: local
115-
path: /tmp/sling/inspect_test/test_file.json
112+
location: local//tmp/sling/inspect_test/test_file.json
116113

117114
- type: log
118115
message: |
@@ -143,8 +140,7 @@ steps:
143140

144141
- type: inspect
145142
id: inspect_local_dir_recursive
146-
connection: local
147-
path: /tmp/sling/inspect_test
143+
location: local//tmp/sling/inspect_test
148144
recursive: true
149145

150146
- type: log
@@ -173,9 +169,9 @@ steps:
173169

174170
- type: inspect
175171
id: inspect_local_dir
176-
connection: local
177-
path: /tmp/sling/inspect_test
172+
location: local//tmp/sling/inspect_test
178173
recursive: false
174+
179175
- type: log
180176
message: |
181177
Local directory inspection results:

0 commit comments

Comments
 (0)