@@ -150,7 +150,7 @@ def test_get_product_data(self):
150
150
151
151
# Now get the SERVERSPACE (configuration) for the product.
152
152
# TODO: These things usually should only work for superusers!
153
- pr_conf = self ._pr_client .getProductConfiguration (pr_data .id )
153
+ pr_conf = self ._root_client .getProductConfiguration (pr_data .id )
154
154
155
155
self .assertIsNotNone (pr_conf , "Product configuration must come." )
156
156
self .assertEqual (pr_conf .endpoint , self .product_name ,
@@ -189,7 +189,7 @@ def test_editing(self):
189
189
pr_client = env .setup_product_client (
190
190
self .test_workspace , product = self .product_name )
191
191
product_id = pr_client .getCurrentProduct ().id
192
- config = self ._pr_client .getProductConfiguration (product_id )
192
+ config = self ._root_client .getProductConfiguration (product_id )
193
193
194
194
old_name = config .displayedName_b64
195
195
@@ -202,7 +202,7 @@ def test_editing(self):
202
202
self .assertTrue (self ._root_client .editProduct (product_id , config ),
203
203
"Product edit didn't conclude." )
204
204
205
- config = self ._pr_client .getProductConfiguration (product_id )
205
+ config = self ._root_client .getProductConfiguration (product_id )
206
206
self .assertEqual (config .endpoint , self .product_name ,
207
207
"The product edit changed the endpoint, when it "
208
208
"shouldn't have!" )
@@ -214,7 +214,7 @@ def test_editing(self):
214
214
self .assertTrue (self ._root_client .editProduct (product_id , config ),
215
215
"Product config restore didn't conclude." )
216
216
217
- config = self ._pr_client .getProductConfiguration (product_id )
217
+ config = self ._root_client .getProductConfiguration (product_id )
218
218
self .assertEqual (config .displayedName_b64 , old_name ,
219
219
"The product edit didn't change the name back." )
220
220
@@ -225,7 +225,7 @@ def test_editing(self):
225
225
self .assertTrue (self ._root_client .editProduct (product_id , config ),
226
226
"Product edit didn't conclude." )
227
227
228
- config = self ._pr_client .getProductConfiguration (product_id )
228
+ config = self ._root_client .getProductConfiguration (product_id )
229
229
self .assertEqual (config .confidentiality ,
230
230
new_confidentiality ,
231
231
"Couldn't change the confidentiality to OPEN" )
@@ -235,7 +235,7 @@ def test_editing(self):
235
235
self .assertTrue (self ._root_client .editProduct (product_id , config ),
236
236
"Product edit didn't conclude." )
237
237
238
- config = self ._pr_client .getProductConfiguration (product_id )
238
+ config = self ._root_client .getProductConfiguration (product_id )
239
239
self .assertEqual (config .confidentiality ,
240
240
new_confidentiality ,
241
241
"Couldn't change the confidentiality to INTERNAL" )
@@ -245,7 +245,7 @@ def test_editing(self):
245
245
self .assertTrue (self ._root_client .editProduct (product_id , config ),
246
246
"Product edit didn't conclude." )
247
247
248
- config = self ._pr_client .getProductConfiguration (product_id )
248
+ config = self ._root_client .getProductConfiguration (product_id )
249
249
self .assertEqual (config .confidentiality ,
250
250
new_confidentiality ,
251
251
"Couldn't change the confidentiality to CONFIDENTIAL" )
@@ -255,7 +255,7 @@ def test_editing(self):
255
255
self .assertTrue (self ._root_client .editProduct (product_id , config ),
256
256
"Product config restore didn't conclude." )
257
257
258
- config = self ._pr_client .getProductConfiguration (product_id )
258
+ config = self ._root_client .getProductConfiguration (product_id )
259
259
self .assertEqual (config .confidentiality ,
260
260
old_confidentiality ,
261
261
"The edit didn't change back the confidentiality." )
@@ -271,7 +271,7 @@ def test_editing_reconnect(self):
271
271
pr_client = env .setup_product_client (
272
272
self .test_workspace , product = self .product_name )
273
273
product_id = pr_client .getCurrentProduct ().id
274
- config = self ._pr_client .getProductConfiguration (product_id )
274
+ config = self ._root_client .getProductConfiguration (product_id )
275
275
276
276
old_db_name = config .connection .database
277
277
@@ -292,7 +292,7 @@ def test_editing_reconnect(self):
292
292
"Product edit didn't conclude." )
293
293
294
294
# Check if the configuration now uses the new values.
295
- config = self ._pr_client .getProductConfiguration (product_id )
295
+ config = self ._root_client .getProductConfiguration (product_id )
296
296
297
297
self .assertEqual (config .connection .database , new_db_name ,
298
298
"Server didn't save new database name." )
@@ -311,7 +311,7 @@ def test_editing_reconnect(self):
311
311
self .assertTrue (self ._root_client .editProduct (product_id , config ),
312
312
"Product configuration restore didn't conclude." )
313
313
314
- config = self ._pr_client .getProductConfiguration (product_id )
314
+ config = self ._root_client .getProductConfiguration (product_id )
315
315
self .assertEqual (config .connection .database , old_db_name ,
316
316
"Server didn't save back to old database name." )
317
317
@@ -336,7 +336,7 @@ def test_editing_endpoint(self):
336
336
pr_client = env .setup_product_client (
337
337
self .test_workspace , product = self .product_name )
338
338
product_id = pr_client .getCurrentProduct ().id
339
- config = self ._pr_client .getProductConfiguration (product_id )
339
+ config = self ._root_client .getProductConfiguration (product_id )
340
340
341
341
old_endpoint = config .endpoint
342
342
new_endpoint = "edited_endpoint"
@@ -347,7 +347,7 @@ def test_editing_endpoint(self):
347
347
"Product edit didn't conclude." )
348
348
349
349
# Check if the configuration now uses the new values.
350
- config = self ._pr_client .getProductConfiguration (product_id )
350
+ config = self ._root_client .getProductConfiguration (product_id )
351
351
self .assertEqual (config .endpoint , new_endpoint ,
352
352
"Server didn't save new endpoint." )
353
353
@@ -372,7 +372,7 @@ def test_editing_endpoint(self):
372
372
self .assertTrue (self ._root_client .editProduct (product_id , config ),
373
373
"Product configuration restore didn't conclude." )
374
374
375
- config = self ._pr_client .getProductConfiguration (product_id )
375
+ config = self ._root_client .getProductConfiguration (product_id )
376
376
self .assertEqual (config .endpoint , old_endpoint ,
377
377
"Server didn't save back to old endpoint." )
378
378
0 commit comments