File tree Expand file tree Collapse file tree 3 files changed +44
-0
lines changed
acceptance/bundle/deploy/pipeline/allow-duplicate-names Expand file tree Collapse file tree 3 files changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,43 @@ Deploying resources...
55Updating deployment state...
66Deployment complete!
77
8+ >>> print_requests
9+ {
10+ "body": {
11+ "libraries": [
12+ {
13+ "file": {
14+ "path": "/some-script.py"
15+ }
16+ }
17+ ],
18+ "name": "test-pipeline-same-name-[UNIQUE_NAME]"
19+ },
20+ "method": "POST",
21+ "path": "/api/2.0/pipelines"
22+ }
23+ {
24+ "body": {
25+ "allow_duplicate_names": true,
26+ "channel": "CURRENT",
27+ "deployment": {
28+ "kind": "BUNDLE",
29+ "metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/acc-bundle-deploy-pipeline-duplicate-names-[UNIQUE_NAME]/default/state/metadata.json"
30+ },
31+ "edition": "ADVANCED",
32+ "libraries": [
33+ {
34+ "file": {
35+ "path": "/Workspace/Users/[USERNAME]/.bundle/acc-bundle-deploy-pipeline-duplicate-names-[UNIQUE_NAME]/default/files/foo.py"
36+ }
37+ }
38+ ],
39+ "name": "test-pipeline-same-name-[UNIQUE_NAME]"
40+ },
41+ "method": "POST",
42+ "path": "/api/2.0/pipelines"
43+ }
44+
845>>> [CLI] bundle destroy --auto-approve
946The following resources will be deleted:
1047 delete pipeline pipeline_one
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ touch foo.py
55cleanup() {
66 trace $CLI bundle destroy --auto-approve
77 trace $CLI pipelines delete ${PIPELINE_ID}
8+ rm out.requests.txt
89}
910trap cleanup EXIT
1011
@@ -14,3 +15,8 @@ export PIPELINE_ID
1415
1516# Deploy the bundle that has a pipeline with the same name:
1617trace $CLI bundle deploy
18+
19+ print_requests() {
20+ jq --sort-keys 'select(.method != "GET" and (.path | contains("/pipelines")))' < out.requests.txt
21+ }
22+ trace print_requests
Original file line number Diff line number Diff line change 11Cloud = true
22Ignore = [" foo.py" ," pipeline.json" ]
3+ RecordRequests = true
You can’t perform that action at this time.
0 commit comments