@@ -76,16 +76,21 @@ class ControllerTest(GenericTest):
76
76
"""
77
77
Testing initial set up of new test suite for controller testing
78
78
"""
79
- def __init__ (self , apis , registries , node , dns_server , disable_auto = True , ** kwargs ):
79
+ def __init__ (self , apis , registries , node , dns_server , auths , disable_auto = True , ** kwargs ):
80
80
# Remove the spec_path as there are no corresponding GitHub repos for Controller Tests
81
81
apis [CONTROLLER_TEST_API_KEY ].pop ("spec_path" , None )
82
82
if CONFIG .ENABLE_HTTPS :
83
83
# Comms with Testing Facade are http only
84
- apis [CONTROLLER_TEST_API_KEY ]["base_url" ] \
85
- = apis [CONTROLLER_TEST_API_KEY ]["base_url" ].replace ("https" , "http" )
86
- apis [CONTROLLER_TEST_API_KEY ]["url" ] = apis [CONTROLLER_TEST_API_KEY ]["url" ].replace ("https" , "http" )
87
- GenericTest .__init__ (self , apis , disable_auto = disable_auto )
84
+ if apis [CONTROLLER_TEST_API_KEY ]["base_url" ] is not None :
85
+ apis [CONTROLLER_TEST_API_KEY ]["base_url" ] \
86
+ = apis [CONTROLLER_TEST_API_KEY ]["base_url" ].replace ("https" , "http" )
87
+ if apis [CONTROLLER_TEST_API_KEY ]["url" ] is not None :
88
+ apis [CONTROLLER_TEST_API_KEY ]["url" ] \
89
+ = apis [CONTROLLER_TEST_API_KEY ]["url" ].replace ("https" , "http" )
90
+ GenericTest .__init__ (self , apis , auths = auths , disable_auto = disable_auto )
88
91
self .authorization = False
92
+ if CONFIG .ENABLE_AUTH :
93
+ self .authorization = True
89
94
self .primary_registry = registries [1 ]
90
95
self .node = node
91
96
self .dns_server = dns_server
0 commit comments