Skip to content

Commit b4dc993

Browse files
Regenerate DMS acceptance test output files
Regenerated with Python 3.11 after fixing the UnicodeDecodeError. The output.txt files now contain the inline DMS request assertions without the Python traceback errors. Co-authored-by: Isaac
1 parent 5e7c839 commit b4dc993

12 files changed

Lines changed: 603 additions & 59 deletions

File tree

acceptance/bundle/dms/add-resources/out.test.toml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

acceptance/bundle/dms/add-resources/output.txt

Lines changed: 122 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,125 @@ Deployment complete!
1313
Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged
1414

1515
>>> print_requests.py --get //bundle ^//workspace-files ^//import-file
16-
Traceback (most recent call last):
17-
File "[TESTROOT]/bin/print_requests.py", line 197, in <module>
18-
main()
19-
File "[TESTROOT]/bin/print_requests.py", line 172, in main
20-
data = fobj.read()
21-
File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
22-
return codecs.ascii_decode(input, self.errors)[0]
23-
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 6985: ordinal not in range(128)
24-
25-
Exit code: 1
16+
{
17+
"method": "POST",
18+
"path": "/api/2.0/bundle/deployments",
19+
"q": {
20+
"deployment_id": "[UUID]"
21+
},
22+
"body": {
23+
"target_name": "default"
24+
}
25+
}
26+
{
27+
"method": "POST",
28+
"path": "/api/2.0/bundle/deployments/[UUID]/versions",
29+
"q": {
30+
"version_id": "1"
31+
},
32+
"body": {
33+
"cli_version": "[DEV_VERSION]",
34+
"version_type": "VERSION_TYPE_DEPLOY",
35+
"target_name": "default"
36+
}
37+
}
38+
{
39+
"method": "POST",
40+
"path": "/api/2.0/bundle/deployments/[UUID]/versions/1/operations",
41+
"q": {
42+
"resource_key": "jobs.job_a"
43+
},
44+
"body": {
45+
"resource_key": "jobs.job_a",
46+
"action_type": "OPERATION_ACTION_TYPE_CREATE",
47+
"state": {
48+
"deployment": {
49+
"kind": "BUNDLE",
50+
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/add-resources-test/default/state/metadata.json"
51+
},
52+
"edit_mode": "UI_LOCKED",
53+
"format": "MULTI_TASK",
54+
"max_concurrent_runs": 1,
55+
"name": "job-a",
56+
"queue": {
57+
"enabled": true
58+
}
59+
},
60+
"resource_id": "[NUMID]",
61+
"status": "OPERATION_STATUS_SUCCEEDED"
62+
}
63+
}
64+
{
65+
"method": "POST",
66+
"path": "/api/2.0/bundle/deployments/[UUID]/versions/1/complete",
67+
"body": {
68+
"name": "deployments/[UUID]/versions/1",
69+
"completion_reason": "VERSION_COMPLETE_SUCCESS"
70+
}
71+
}
72+
{
73+
"method": "GET",
74+
"path": "/api/2.0/bundle/deployments/[UUID]/resources",
75+
"q": {
76+
"page_size": "1000"
77+
},
78+
"body": null
79+
}
80+
{
81+
"method": "GET",
82+
"path": "/api/2.0/bundle/deployments/[UUID]"
83+
}
84+
{
85+
"method": "POST",
86+
"path": "/api/2.0/bundle/deployments/[UUID]/versions",
87+
"q": {
88+
"version_id": "2"
89+
},
90+
"body": {
91+
"cli_version": "[DEV_VERSION]",
92+
"version_type": "VERSION_TYPE_DEPLOY",
93+
"target_name": "default"
94+
}
95+
}
96+
{
97+
"method": "POST",
98+
"path": "/api/2.0/bundle/deployments/[UUID]/versions/2/operations",
99+
"q": {
100+
"resource_key": "jobs.job_b"
101+
},
102+
"body": {
103+
"resource_key": "jobs.job_b",
104+
"action_type": "OPERATION_ACTION_TYPE_CREATE",
105+
"state": {
106+
"deployment": {
107+
"kind": "BUNDLE",
108+
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/add-resources-test/default/state/metadata.json"
109+
},
110+
"edit_mode": "UI_LOCKED",
111+
"format": "MULTI_TASK",
112+
"max_concurrent_runs": 1,
113+
"name": "job-b",
114+
"queue": {
115+
"enabled": true
116+
}
117+
},
118+
"resource_id": "[NUMID]",
119+
"status": "OPERATION_STATUS_SUCCEEDED"
120+
}
121+
}
122+
{
123+
"method": "POST",
124+
"path": "/api/2.0/bundle/deployments/[UUID]/versions/2/complete",
125+
"body": {
126+
"name": "deployments/[UUID]/versions/2",
127+
"completion_reason": "VERSION_COMPLETE_SUCCESS"
128+
}
129+
}
130+
{
131+
"method": "GET",
132+
"path": "/api/2.0/bundle/deployments/[UUID]/resources",
133+
"q": {
134+
"page_size": "1000"
135+
},
136+
"body": null
137+
}

acceptance/bundle/dms/deploy-error/out.test.toml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

acceptance/bundle/dms/deploy-error/output.txt

Lines changed: 43 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,46 @@ API message: Invalid job configuration.
1111

1212

1313
>>> print_requests.py --get //bundle ^//workspace-files ^//import-file
14-
Traceback (most recent call last):
15-
File "[TESTROOT]/bin/print_requests.py", line 197, in <module>
16-
main()
17-
File "[TESTROOT]/bin/print_requests.py", line 178, in main
18-
filtered_requests = filter_requests(requests, args.path_filters, args.get, args.sort)
19-
File "[TESTROOT]/bin/print_requests.py", line 114, in filter_requests
20-
positive_filters.append(f.removeprefix(ADD_PREFIX))
21-
AttributeError: 'str' object has no attribute 'removeprefix'
22-
23-
Exit code: 1
14+
{
15+
"method": "POST",
16+
"path": "/api/2.0/bundle/deployments",
17+
"q": {
18+
"deployment_id": "[UUID]"
19+
},
20+
"body": {
21+
"target_name": "default"
22+
}
23+
}
24+
{
25+
"method": "POST",
26+
"path": "/api/2.0/bundle/deployments/[UUID]/versions",
27+
"q": {
28+
"version_id": "1"
29+
},
30+
"body": {
31+
"cli_version": "[DEV_VERSION]",
32+
"version_type": "VERSION_TYPE_DEPLOY",
33+
"target_name": "default"
34+
}
35+
}
36+
{
37+
"method": "POST",
38+
"path": "/api/2.0/bundle/deployments/[UUID]/versions/1/operations",
39+
"q": {
40+
"resource_key": "jobs.test_job"
41+
},
42+
"body": {
43+
"resource_key": "jobs.test_job",
44+
"action_type": "OPERATION_ACTION_TYPE_CREATE",
45+
"status": "OPERATION_STATUS_FAILED",
46+
"error_message": "Invalid job configuration."
47+
}
48+
}
49+
{
50+
"method": "POST",
51+
"path": "/api/2.0/bundle/deployments/[UUID]/versions/1/complete",
52+
"body": {
53+
"name": "deployments/[UUID]/versions/1",
54+
"completion_reason": "VERSION_COMPLETE_FAILURE"
55+
}
56+
}

acceptance/bundle/dms/out.test.toml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

acceptance/bundle/dms/output.txt

Lines changed: 115 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,119 @@ Deploying resources...
55
Deployment complete!
66

77
>>> print_requests.py --get //bundle ^//workspace-files ^//import-file
8-
Traceback (most recent call last):
9-
File "[TESTROOT]/bin/print_requests.py", line 197, in <module>
10-
main()
11-
File "[TESTROOT]/bin/print_requests.py", line 178, in main
12-
filtered_requests = filter_requests(requests, args.path_filters, args.get, args.sort)
13-
File "[TESTROOT]/bin/print_requests.py", line 114, in filter_requests
14-
positive_filters.append(f.removeprefix(ADD_PREFIX))
15-
AttributeError: 'str' object has no attribute 'removeprefix'
8+
{
9+
"method": "POST",
10+
"path": "/api/2.0/bundle/deployments",
11+
"q": {
12+
"deployment_id": "[UUID]"
13+
},
14+
"body": {
15+
"target_name": "default"
16+
}
17+
}
18+
{
19+
"method": "POST",
20+
"path": "/api/2.0/bundle/deployments/[UUID]/versions",
21+
"q": {
22+
"version_id": "1"
23+
},
24+
"body": {
25+
"cli_version": "[DEV_VERSION]",
26+
"version_type": "VERSION_TYPE_DEPLOY",
27+
"target_name": "default"
28+
}
29+
}
30+
{
31+
"method": "POST",
32+
"path": "/api/2.0/bundle/deployments/[UUID]/versions/1/operations",
33+
"q": {
34+
"resource_key": "jobs.test_job"
35+
},
36+
"body": {
37+
"resource_key": "jobs.test_job",
38+
"action_type": "OPERATION_ACTION_TYPE_CREATE",
39+
"state": {
40+
"deployment": {
41+
"kind": "BUNDLE",
42+
"metadata_file_path": "/Workspace/Users/[USERNAME]/.bundle/metadata-service-test/default/state/metadata.json"
43+
},
44+
"edit_mode": "UI_LOCKED",
45+
"format": "MULTI_TASK",
46+
"max_concurrent_runs": 1,
47+
"name": "test-job",
48+
"queue": {
49+
"enabled": true
50+
}
51+
},
52+
"resource_id": "[NUMID]",
53+
"status": "OPERATION_STATUS_SUCCEEDED"
54+
}
55+
}
56+
{
57+
"method": "POST",
58+
"path": "/api/2.0/bundle/deployments/[UUID]/versions/1/complete",
59+
"body": {
60+
"name": "deployments/[UUID]/versions/1",
61+
"completion_reason": "VERSION_COMPLETE_SUCCESS"
62+
}
63+
}
1664

17-
Exit code: 1
65+
>>> [CLI] bundle destroy --auto-approve
66+
The following resources will be deleted:
67+
delete resources.jobs.test_job
68+
69+
All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/metadata-service-test/default
70+
71+
Deleting files...
72+
Destroy complete!
73+
74+
>>> print_requests.py --get //bundle ^//workspace-files ^//import-file
75+
{
76+
"method": "GET",
77+
"path": "/api/2.0/bundle/deployments/[UUID]/resources",
78+
"q": {
79+
"page_size": "1000"
80+
},
81+
"body": null
82+
}
83+
{
84+
"method": "GET",
85+
"path": "/api/2.0/bundle/deployments/[UUID]"
86+
}
87+
{
88+
"method": "POST",
89+
"path": "/api/2.0/bundle/deployments/[UUID]/versions",
90+
"q": {
91+
"version_id": "2"
92+
},
93+
"body": {
94+
"cli_version": "[DEV_VERSION]",
95+
"version_type": "VERSION_TYPE_DESTROY",
96+
"target_name": "default"
97+
}
98+
}
99+
{
100+
"method": "POST",
101+
"path": "/api/2.0/bundle/deployments/[UUID]/versions/2/operations",
102+
"q": {
103+
"resource_key": "jobs.test_job"
104+
},
105+
"body": {
106+
"resource_key": "jobs.test_job",
107+
"action_type": "OPERATION_ACTION_TYPE_DELETE",
108+
"resource_id": "[NUMID]",
109+
"status": "OPERATION_STATUS_SUCCEEDED"
110+
}
111+
}
112+
{
113+
"method": "POST",
114+
"path": "/api/2.0/bundle/deployments/[UUID]/versions/2/complete",
115+
"body": {
116+
"name": "deployments/[UUID]/versions/2",
117+
"completion_reason": "VERSION_COMPLETE_SUCCESS"
118+
}
119+
}
120+
{
121+
"method": "DELETE",
122+
"path": "/api/2.0/bundle/deployments/[UUID]"
123+
}

acceptance/bundle/dms/plan-and-summary/out.test.toml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)