Skip to content

Commit 6cceb88

Browse files
Recording organization fixtures to fix build failures
Signed-off-by: Gaurav Talreja <[email protected]>
1 parent c93bb2e commit 6cceb88

17 files changed

+3113
-4197
lines changed

tests/test_playbooks/fixtures/organization-0.yml

Lines changed: 171 additions & 242 deletions
Large diffs are not rendered by default.

tests/test_playbooks/fixtures/organization-1.yml

Lines changed: 176 additions & 247 deletions
Large diffs are not rendered by default.

tests/test_playbooks/fixtures/organization-10.yml

Lines changed: 254 additions & 386 deletions
Large diffs are not rendered by default.

tests/test_playbooks/fixtures/organization-11.yml

Lines changed: 202 additions & 290 deletions
Large diffs are not rendered by default.

tests/test_playbooks/fixtures/organization-12.yml

Lines changed: 242 additions & 364 deletions
Large diffs are not rendered by default.

tests/test_playbooks/fixtures/organization-13.yml

Lines changed: 195 additions & 283 deletions
Large diffs are not rendered by default.

tests/test_playbooks/fixtures/organization-14.yml

Lines changed: 215 additions & 321 deletions
Large diffs are not rendered by default.

tests/test_playbooks/fixtures/organization-15.yml

Lines changed: 172 additions & 244 deletions
Large diffs are not rendered by default.

tests/test_playbooks/fixtures/organization-16.yml

Lines changed: 124 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -14,58 +14,44 @@ interactions:
1414
uri: https://foreman.example.org/api/status
1515
response:
1616
body:
17-
string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
17+
string: '{"satellite_version":"6.19.0","result":"ok","status":200,"version":"3.18.0-develop","api_version":2}'
1818
headers:
1919
Cache-Control:
2020
- max-age=0, private, must-revalidate
2121
Connection:
2222
- Keep-Alive
2323
Content-Length:
24-
- '63'
25-
Content-Security-Policy:
26-
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
27-
img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
28-
''self''; style-src ''unsafe-inline'' ''self'''
24+
- '100'
2925
Content-Type:
3026
- application/json; charset=utf-8
31-
Date:
32-
- Mon, 23 Mar 2020 16:22:17 GMT
33-
ETag:
34-
- W/"46a2e9ebe3393470b5018da3cfc1e32a"
3527
Foreman_api_version:
3628
- '2'
3729
Foreman_current_location:
3830
- ; ANY
3931
Foreman_current_organization:
4032
- ; ANY
4133
Foreman_version:
42-
- 1.24.1
34+
- 3.18.0-develop
4335
Keep-Alive:
44-
- timeout=5, max=100
45-
Server:
46-
- Apache
47-
Set-Cookie:
48-
- _session_id=42f4ec037e406d9472b5139854a02db9; path=/; secure; HttpOnly; SameSite=Lax
49-
Status:
50-
- 200 OK
51-
Strict-Transport-Security:
36+
- timeout=15, max=100
37+
Referrer-Policy:
38+
- strict-origin-when-cross-origin
39+
content-security-policy:
40+
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
41+
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
42+
style-src ''unsafe-inline'' ''self'''
43+
strict-transport-security:
5244
- max-age=631139040; includeSubdomains
53-
X-Content-Type-Options:
45+
x-content-type-options:
5446
- nosniff
55-
X-Download-Options:
47+
x-download-options:
5648
- noopen
57-
X-Frame-Options:
49+
x-frame-options:
5850
- sameorigin
59-
X-Permitted-Cross-Domain-Policies:
51+
x-permitted-cross-domain-policies:
6052
- none
61-
X-Powered-By:
62-
- Phusion Passenger 4.0.53
63-
X-Request-Id:
64-
- 85bef6bf-0e41-4453-b939-25183d57518c
65-
X-Runtime:
66-
- '0.122320'
67-
X-XSS-Protection:
68-
- 1; mode=block
53+
x-xss-protection:
54+
- '0'
6955
status:
7056
code: 200
7157
message: OK
@@ -78,70 +64,54 @@ interactions:
7864
- gzip, deflate
7965
Connection:
8066
- keep-alive
81-
Cookie:
82-
- _session_id=42f4ec037e406d9472b5139854a02db9
8367
User-Agent:
8468
- apypie (https://github.com/Apipie/apypie)
8569
method: GET
86-
uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
70+
uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
8771
response:
8872
body:
8973
string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
9074
4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
91-
{\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
92-
16:22:11 UTC\",\"updated_at\":\"2020-03-23 16:22:11 UTC\",\"id\":17,\"name\":\"Test
75+
{\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2025-11-26
76+
09:32:13 UTC\",\"updated_at\":\"2025-11-26 09:32:15 UTC\",\"id\":10,\"name\":\"Test
9377
Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
9478
headers:
9579
Cache-Control:
9680
- max-age=0, private, must-revalidate
9781
Connection:
9882
- Keep-Alive
99-
Content-Security-Policy:
100-
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
101-
img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
102-
''self''; style-src ''unsafe-inline'' ''self'''
83+
Content-Length:
84+
- '389'
10385
Content-Type:
10486
- application/json; charset=utf-8
105-
Date:
106-
- Mon, 23 Mar 2020 16:22:17 GMT
107-
ETag:
108-
- W/"9fcb3d2fcfc0cb67902125d0c9e82718-gzip"
10987
Foreman_api_version:
11088
- '2'
11189
Foreman_current_location:
11290
- ; ANY
11391
Foreman_current_organization:
11492
- ; ANY
11593
Foreman_version:
116-
- 1.24.1
94+
- 3.18.0-develop
11795
Keep-Alive:
118-
- timeout=5, max=99
119-
Server:
120-
- Apache
121-
Status:
122-
- 200 OK
123-
Strict-Transport-Security:
96+
- timeout=15, max=99
97+
Referrer-Policy:
98+
- strict-origin-when-cross-origin
99+
content-security-policy:
100+
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
101+
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
102+
style-src ''unsafe-inline'' ''self'''
103+
strict-transport-security:
124104
- max-age=631139040; includeSubdomains
125-
Vary:
126-
- Accept-Encoding
127-
X-Content-Type-Options:
105+
x-content-type-options:
128106
- nosniff
129-
X-Download-Options:
107+
x-download-options:
130108
- noopen
131-
X-Frame-Options:
109+
x-frame-options:
132110
- sameorigin
133-
X-Permitted-Cross-Domain-Policies:
111+
x-permitted-cross-domain-policies:
134112
- none
135-
X-Powered-By:
136-
- Phusion Passenger 4.0.53
137-
X-Request-Id:
138-
- 33f692a6-ed14-47a0-9b1a-33880bbf2fd1
139-
X-Runtime:
140-
- '0.015381'
141-
X-XSS-Protection:
142-
- 1; mode=block
143-
content-length:
144-
- '413'
113+
x-xss-protection:
114+
- '0'
145115
status:
146116
code: 200
147117
message: OK
@@ -156,69 +126,118 @@ interactions:
156126
- keep-alive
157127
Content-Length:
158128
- '0'
159-
Cookie:
160-
- _session_id=42f4ec037e406d9472b5139854a02db9
161129
User-Agent:
162130
- apypie (https://github.com/Apipie/apypie)
163131
method: DELETE
164-
uri: https://foreman.example.org/api/organizations/17
132+
uri: https://foreman.example.org/katello/api/organizations/10
165133
response:
166134
body:
167-
string: '{"id":17,"name":"Test Organization","created_at":"2020-03-23T16:22:11.092Z","updated_at":"2020-03-23T16:22:11.092Z","ignore_types":[],"ancestry":null,"title":"Test
168-
Organization","description":"A test organization"}'
135+
string: ' {"id":"bcac38ae-0928-42cf-ab4e-f8e75dca4f87","label":"Actions::Katello::Organization::Destroy","pending":true,"action":"Destroy
136+
organization ''Test Organization''","username":"admin","started_at":"2025-11-26
137+
09:32:38 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"organization":{"id":10,"name":"Test
138+
Organization","label":"Test_Organization"},"services_checked":["pulp3","candlepin","candlepin_auth"],"remote_user":"admin","remote_cp_user":"admin","current_request_id":"6a323f4c-b47d-4610-a3f4-a17346f66c8a","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Destroy","input":[["organization",{"text":"organization
139+
''Test Organization''","link":"/organizations/10/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2025-11-26
140+
09:32:38 UTC","available_actions":{"cancellable":false,"resumable":false}}
141+
142+
'
169143
headers:
170144
Cache-Control:
171-
- max-age=0, private, must-revalidate
145+
- no-cache
172146
Connection:
173147
- Keep-Alive
174-
Content-Security-Policy:
148+
Content-Type:
149+
- application/json; charset=utf-8
150+
Foreman_api_version:
151+
- '2'
152+
Foreman_current_location:
153+
- ; ANY
154+
Foreman_current_organization:
155+
- ; ANY
156+
Foreman_version:
157+
- 3.18.0-develop
158+
Keep-Alive:
159+
- timeout=15, max=98
160+
Referrer-Policy:
161+
- strict-origin-when-cross-origin
162+
Transfer-Encoding:
163+
- chunked
164+
content-security-policy:
175165
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
176-
img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
177-
''self''; style-src ''unsafe-inline'' ''self'''
166+
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
167+
style-src ''unsafe-inline'' ''self'''
168+
strict-transport-security:
169+
- max-age=631139040; includeSubdomains
170+
x-content-type-options:
171+
- nosniff
172+
x-download-options:
173+
- noopen
174+
x-frame-options:
175+
- sameorigin
176+
x-permitted-cross-domain-policies:
177+
- none
178+
x-xss-protection:
179+
- '0'
180+
status:
181+
code: 202
182+
message: Accepted
183+
- request:
184+
body: null
185+
headers:
186+
Accept:
187+
- application/json;version=2
188+
Accept-Encoding:
189+
- gzip, deflate
190+
Connection:
191+
- keep-alive
192+
User-Agent:
193+
- apypie (https://github.com/Apipie/apypie)
194+
method: GET
195+
uri: https://foreman.example.org/foreman_tasks/api/tasks/bcac38ae-0928-42cf-ab4e-f8e75dca4f87
196+
response:
197+
body:
198+
string: '{"id":"bcac38ae-0928-42cf-ab4e-f8e75dca4f87","label":"Actions::Katello::Organization::Destroy","pending":false,"action":"Destroy
199+
organization ''Test Organization''","username":"admin","started_at":"2025-11-26
200+
09:32:38 UTC","ended_at":"2025-11-26 09:32:39 UTC","duration":"0.622638","state":"stopped","result":"success","progress":1.0,"input":{"organization":{"id":10,"name":"Test
201+
Organization","label":"Test_Organization"},"services_checked":["pulp3","candlepin","candlepin_auth"],"remote_user":"admin","remote_cp_user":"admin","current_request_id":"6a323f4c-b47d-4610-a3f4-a17346f66c8a","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Destroy","input":[["organization",{"text":"organization
202+
''Test Organization''","link":"/organizations/10/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2025-11-26
203+
09:32:38 UTC","available_actions":{"cancellable":false,"resumable":false}}'
204+
headers:
205+
Cache-Control:
206+
- max-age=0, private, must-revalidate
207+
Connection:
208+
- Keep-Alive
209+
Content-Length:
210+
- '978'
178211
Content-Type:
179212
- application/json; charset=utf-8
180-
Date:
181-
- Mon, 23 Mar 2020 16:22:17 GMT
182-
ETag:
183-
- W/"b0fab9b07879956ab5ead39cf2dd4818-gzip"
184213
Foreman_api_version:
185214
- '2'
186215
Foreman_current_location:
187216
- ; ANY
188217
Foreman_current_organization:
189218
- ; ANY
190219
Foreman_version:
191-
- 1.24.1
220+
- 3.18.0-develop
192221
Keep-Alive:
193-
- timeout=5, max=98
194-
Server:
195-
- Apache
196-
Set-Cookie:
197-
- request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax
198-
Status:
199-
- 200 OK
200-
Strict-Transport-Security:
222+
- timeout=15, max=97
223+
Referrer-Policy:
224+
- strict-origin-when-cross-origin
225+
content-security-policy:
226+
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
227+
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
228+
style-src ''unsafe-inline'' ''self'''
229+
strict-transport-security:
201230
- max-age=631139040; includeSubdomains
202-
Vary:
203-
- Accept-Encoding
204-
X-Content-Type-Options:
231+
x-content-type-options:
205232
- nosniff
206-
X-Download-Options:
233+
x-download-options:
207234
- noopen
208-
X-Frame-Options:
235+
x-frame-options:
209236
- sameorigin
210-
X-Permitted-Cross-Domain-Policies:
237+
x-permitted-cross-domain-policies:
211238
- none
212-
X-Powered-By:
213-
- Phusion Passenger 4.0.53
214-
X-Request-Id:
215-
- 8c10605a-b5e6-428b-af60-b90a759b4572
216-
X-Runtime:
217-
- '0.087061'
218-
X-XSS-Protection:
219-
- 1; mode=block
220-
content-length:
221-
- '214'
239+
x-xss-protection:
240+
- '0'
222241
status:
223242
code: 200
224243
message: OK

0 commit comments

Comments
 (0)