File tree Expand file tree Collapse file tree 4 files changed +8
-15
lines changed
OpenStack-Rabbit-Consumer Expand file tree Collapse file tree 4 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -158,14 +158,6 @@ def delete_machine(machine_name: str) -> None:
158
158
setup_requests (url , "delete" , "Delete Machine" )
159
159
160
160
161
- def _is_sandbox (image_meta : AqMetadata ) -> bool :
162
- """
163
- Returns True if the image is a sandbox image
164
- we do a simple test for a '/' in the domain name
165
- """
166
- return "/" in image_meta .aq_domain
167
-
168
-
169
161
def create_host (
170
162
image_meta : AqMetadata , addresses : List [OpenstackAddress ], machine_name : str
171
163
) -> None :
@@ -184,8 +176,8 @@ def create_host(
184
176
"osversion" : image_meta .aq_os_version ,
185
177
}
186
178
187
- if _is_sandbox ( image_meta ) :
188
- params ["sandbox" ] = image_meta .aq_domain
179
+ if image_meta . aq_sandbox :
180
+ params ["sandbox" ] = image_meta .aq_sandbox
189
181
else :
190
182
params ["domain" ] = image_meta .aq_domain
191
183
Original file line number Diff line number Diff line change @@ -292,7 +292,8 @@ def test_aq_create_host_with_sandbox(
292
292
env_config = config .return_value
293
293
env_config .aq_url = "https://example.com"
294
294
295
- image_metadata .aq_domain = "example/sandbox"
295
+ image_metadata .aq_domain = "example_domain"
296
+ image_metadata .aq_sandbox = "example/sandbox"
296
297
297
298
create_host (image_metadata , openstack_address_list , machine_name )
298
299
address = openstack_address_list [0 ]
@@ -304,7 +305,7 @@ def test_aq_create_host_with_sandbox(
304
305
"personality" : image_metadata .aq_personality ,
305
306
"osname" : image_metadata .aq_os ,
306
307
"osversion" : image_metadata .aq_os_version ,
307
- "sandbox" : image_metadata .aq_domain ,
308
+ "sandbox" : image_metadata .aq_sandbox ,
308
309
}
309
310
310
311
expected_url = f"https://example.com/host/{ address .hostname } "
Original file line number Diff line number Diff line change 1
- 2.3.3
1
+ 2.3.4
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ type: application
6
6
# This is the chart version. This version number should be incremented each time you make changes
7
7
# to the chart and its templates, including the app version.
8
8
# Versions are expected to follow Semantic Versioning (https://semver.org/)
9
- version : 1.4.3
9
+ version : 1.4.4
10
10
11
11
# This is the version number of the application being deployed. This version number should be
12
12
# incremented each time you make changes to the application. Versions are not expected to
13
13
# follow Semantic Versioning. They should reflect the version the application is using.
14
14
# It is recommended to use it with quotes.
15
- appVersion : " v2.3.3 "
15
+ appVersion : " v2.3.4 "
16
16
You can’t perform that action at this time.
0 commit comments