File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,20 @@ def setUpClass(cls):
42
42
cls .service = GlobalCatalogV1 .new_instance ()
43
43
assert cls .service is not None
44
44
45
+ cls .config = read_external_sources (GlobalCatalogV1 .DEFAULT_SERVICE_NAME )
46
+ assert cls .config is not None
47
+ cls .authType = cls .config .get ('AUTH_TYPE' )
48
+ cls .apkKey = cls .config .get ('APIKEY' )
49
+ cls .authUrl = cls .config .get ('AUTH_URL' )
50
+ cls .url = cls .config .get ('URL' )
51
+ assert cls .authType is not None
52
+ print (cls .authType )
53
+ assert cls .apkKey is not None
54
+ assert cls .authUrl is not None
55
+ print (cls .authUrl )
56
+ assert cls .url is not None
57
+ print (cls .url )
58
+
45
59
cls .defaultEntry = {
46
60
'name' : 'someName' ,
47
61
'id' : 'someId' ,
@@ -131,10 +145,11 @@ def setUpClass(cls):
131
145
}
132
146
}
133
147
134
- cls .service .delete_catalog_entry (id = cls .defaultEntry ['id' ])
148
+ def setup (self ):
149
+ self .service .delete_catalog_entry (id = self .defaultEntry ['id' ])
135
150
136
151
@classmethod
137
- def tearDownClass (cls ):
152
+ def tearDown (cls ):
138
153
cls .service .delete_catalog_entry (id = cls .defaultEntry ['id' ])
139
154
140
155
def test_create_catalog_entry (self ):
You can’t perform that action at this time.
0 commit comments