@@ -41,11 +41,13 @@ def make_app(self, permissions: Set[Permission], vaxx_type_perms: Set = None):
4141
4242 # Runs after each individual test method in a test class.
4343 # It’s used to clean up resources that were initialized specifically for a single test.
44+ @unittest .skip ("Skipping this entire test suite for now" )
4445 def tearDown (self ):
4546 self .apigee_service .delete_application (self .my_app .name )
4647 self .my_imms_api .cleanup_test_records ()
4748 self .default_imms_api .cleanup_test_records ()
4849
50+ @unittest .skip ("Skipping this entire test suite for now" )
4951 def test_get_imms_authorised (self ):
5052 """it should get Immunization if app has immunization:read permission"""
5153 imms_id = self .default_imms_api .create_immunization_resource ()
@@ -55,6 +57,7 @@ def test_get_imms_authorised(self):
5557 # Then
5658 self .assertEqual (response .status_code , 200 , response .text )
5759
60+ @unittest .skip ("Skipping this entire test suite for now" )
5861 def test_get_imms_unauthorised (self ):
5962 """it should not get Immunization if app doesn't have immunization:read permission"""
6063 perms = app_full_access (exclude = {Permission .READ })
@@ -64,6 +67,7 @@ def test_get_imms_unauthorised(self):
6467 # Then
6568 self .assertEqual (response .status_code , 403 , response .text )
6669
70+ @unittest .skip ("Skipping this entire test suite for now" )
6771 def test_create_imms_authorised (self ):
6872 """it should create Immunization if app has immunization:create permission"""
6973 self .make_app ({Permission .CREATE })
@@ -73,6 +77,7 @@ def test_create_imms_authorised(self):
7377 # Then
7478 self .assertEqual (response .status_code , 201 , response .text )
7579
80+ @unittest .skip ("Skipping this entire test suite for now" )
7681 def test_create_imms_unauthorised_vaxx (self ):
7782 """it should not create Immunization if app does not have the correct vaccine permission"""
7883 self .make_app ({Permission .CREATE }, {"flu:create" })
@@ -82,6 +87,7 @@ def test_create_imms_unauthorised_vaxx(self):
8287 # Then
8388 self .assertEqual (response .status_code , 403 , response .text )
8489
90+ @unittest .skip ("Skipping this entire test suite for now" )
8591 def test_create_imms_unauthorised (self ):
8692 """it should not create Immunization if app doesn't immunization:create permission"""
8793 perms = app_full_access (exclude = {Permission .CREATE })
@@ -92,6 +98,7 @@ def test_create_imms_unauthorised(self):
9298 # Then
9399 self .assertEqual (result .status_code , 403 , result .text )
94100
101+ @unittest .skip ("Skipping this entire test suite for now" )
95102 def test_update_imms_authorised (self ):
96103 """it should update Immunization if app has immunization:update and immunization:create permission"""
97104 imms = generate_imms_resource ()
@@ -104,6 +111,7 @@ def test_update_imms_authorised(self):
104111 # Then
105112 self .assertEqual (response .status_code , 200 , response .text )
106113
114+ @unittest .skip ("Skipping this entire test suite for now" )
107115 def test_update_imms_unauthorised (self ):
108116 """it should not update Immunization if app doesn't immunization:update permission"""
109117 perms = app_full_access (exclude = {Permission .UPDATE })
@@ -113,6 +121,7 @@ def test_update_imms_unauthorised(self):
113121 # Then
114122 self .assertEqual (response .status_code , 403 , response .text )
115123
124+ @unittest .skip ("Skipping this entire test suite for now" )
116125 def test_update_imms_unauthorised_2 (self ):
117126 """it should not update Immunization if app doesn't immunization:create permission"""
118127 imms = generate_imms_resource ()
@@ -126,6 +135,7 @@ def test_update_imms_unauthorised_2(self):
126135 # Then
127136 self .assertEqual (response .status_code , 403 , response .text )
128137
138+ @unittest .skip ("Skipping this entire test suite for now" )
129139 def test_delete_imms_authorised (self ):
130140 """it should delete Immunization if app has immunization:delete permission"""
131141 imms_id = self .default_imms_api .create_immunization_resource ()
@@ -135,6 +145,7 @@ def test_delete_imms_authorised(self):
135145 # Then
136146 self .assertEqual (response .status_code , 204 , response .text )
137147
148+ @unittest .skip ("Skipping this entire test suite for now" )
138149 def test_delete_imms_unauthorised (self ):
139150 """it should not delete Immunization if app doesn't have immunization:delete permission"""
140151 perms = app_full_access (exclude = {Permission .DELETE })
@@ -144,6 +155,7 @@ def test_delete_imms_unauthorised(self):
144155 # Then
145156 self .assertEqual (response .status_code , 403 , response .text )
146157
158+ @unittest .skip ("Skipping this entire test suite for now" )
147159 def test_search_imms_authorised (self ):
148160 """it should search Immunization if app has immunization:search permission"""
149161 mmr = generate_imms_resource (valid_nhs_number1 , VaccineTypes .mmr )
@@ -155,6 +167,7 @@ def test_search_imms_authorised(self):
155167 # Then
156168 self .assertEqual (response .status_code , 200 , response .text )
157169
170+ @unittest .skip ("Skipping this entire test suite for now" )
158171 def test_search_imms_unauthorised (self ):
159172 """it should not search Immunization if app doesn't immunization:search permission"""
160173 perms = app_full_access (exclude = {Permission .SEARCH })
@@ -164,6 +177,7 @@ def test_search_imms_unauthorised(self):
164177 # Then
165178 self .assertEqual (response .status_code , 403 , response .text )
166179
180+ @unittest .skip ("Skipping this entire test suite for now" )
167181 def test_search_imms_unauthorised_vax (self ):
168182 """it should not search Immunization if app does not have proper vax permissions"""
169183 mmr = generate_imms_resource (valid_nhs_number1 , VaccineTypes .mmr )
@@ -180,6 +194,7 @@ class TestCis2Authorization(ImmunizationBaseTest):
180194 my_app : ApigeeApp
181195 my_imms_api : ImmunisationApi
182196
197+ @unittest .skip ("Skipping this entire test suite for now" )
183198 def make_app (self , permissions : Set [Permission ], vaxx_type_perms : Set = None ):
184199 # The super class gives us everything we need, which is useful for test setup;
185200 # however, we need to create a new app with required permissions.
@@ -197,11 +212,13 @@ def make_app(self, permissions: Set[Permission], vaxx_type_perms: Set = None):
197212
198213 # Runs after each individual test method in a test class.
199214 # It’s used to clean up resources that were initialized specifically for a single test.
215+ @unittest .skip ("Skipping this entire test suite for now" )
200216 def tearDown (self ):
201217 self .apigee_service .delete_application (self .my_app .name )
202218 self .my_imms_api .cleanup_test_records ()
203219 self .default_imms_api .cleanup_test_records ()
204220
221+ @unittest .skip ("Skipping this entire test suite for now" )
205222 def test_get_imms_authorised (self ):
206223 """it should get Immunization if app has immunization:read permission"""
207224 imms_id = self .default_imms_api .create_immunization_resource ()
@@ -211,6 +228,7 @@ def test_get_imms_authorised(self):
211228 # Then
212229 self .assertEqual (response .status_code , 200 , response .text )
213230
231+ @unittest .skip ("Skipping this entire test suite for now" )
214232 def test_get_imms_unauthorised (self ):
215233 """it should not get Immunization if app doesn't have immunization:read permission"""
216234 perms = app_full_access (exclude = {Permission .READ })
@@ -220,6 +238,7 @@ def test_get_imms_unauthorised(self):
220238 # Then
221239 self .assertEqual (response .status_code , 403 , response .text )
222240
241+ @unittest .skip ("Skipping this entire test suite for now" )
223242 def test_get_imms__unauthorised_vaxx (self ):
224243 """it should not get Immunization if app does not have the correct vaccine permission"""
225244 imms_id = self .default_imms_api .create_immunization_resource ()
@@ -229,6 +248,7 @@ def test_get_imms__unauthorised_vaxx(self):
229248 # Then
230249 self .assertEqual (response .status_code , 403 , response .text )
231250
251+ @unittest .skip ("Skipping this entire test suite for now" )
232252 def test_create_imms_authorised (self ):
233253 """it should create Immunization if app has immunization:create permission"""
234254 self .make_app ({Permission .CREATE })
@@ -238,6 +258,7 @@ def test_create_imms_authorised(self):
238258 # Then
239259 self .assertEqual (response .status_code , 201 , response .text )
240260
261+ @unittest .skip ("Skipping this entire test suite for now" )
241262 def test_create_imms_unauthorised (self ):
242263 """it should not create Immunization if app doesn't immunization:create permission"""
243264 perms = app_full_access (exclude = {Permission .CREATE })
@@ -248,6 +269,7 @@ def test_create_imms_unauthorised(self):
248269 # Then
249270 self .assertEqual (result .status_code , 403 , result .text )
250271
272+ @unittest .skip ("Skipping this entire test suite for now" )
251273 def test_create_imms_unauthorised_vaxx (self ):
252274 """it should not create Immunization if app does not have the correct vaccine permission"""
253275 self .make_app ({Permission .CREATE }, {"flu:create" })
@@ -257,6 +279,7 @@ def test_create_imms_unauthorised_vaxx(self):
257279 # Then
258280 self .assertEqual (response .status_code , 403 , response .text )
259281
282+ @unittest .skip ("Skipping this entire test suite for now" )
260283 def test_update_imms_authorised (self ):
261284 """it should update Immunization if app has the immunization:update and immunization:create permission"""
262285 imms = generate_imms_resource ()
@@ -269,6 +292,7 @@ def test_update_imms_authorised(self):
269292 # Then
270293 self .assertEqual (response .status_code , 200 , response .text )
271294
295+ @unittest .skip ("Skipping this entire test suite for now" )
272296 def test_update_imms_unauthorised (self ):
273297 """it should not update Immunization if app doesn't have the immunization:update permission"""
274298 perms = app_full_access (exclude = {Permission .UPDATE })
@@ -278,6 +302,7 @@ def test_update_imms_unauthorised(self):
278302 # Then
279303 self .assertEqual (response .status_code , 403 , response .text )
280304
305+ @unittest .skip ("Skipping this entire test suite for now" )
281306 def test_update_imms_unauthorised_vaxx (self ):
282307 """it should not update Immunization if app does not have the correct vaccine permission"""
283308 imms = generate_imms_resource ()
@@ -290,6 +315,7 @@ def test_update_imms_unauthorised_vaxx(self):
290315 # Then
291316 self .assertEqual (response .status_code , 403 , response .text )
292317
318+ @unittest .skip ("Skipping this entire test suite for now" )
293319 def test_delete_imms_authorised (self ):
294320 """it should delete Immunization if app has immunization:delete permission"""
295321 imms_id = self .default_imms_api .create_immunization_resource ()
@@ -299,6 +325,7 @@ def test_delete_imms_authorised(self):
299325 # Then
300326 self .assertEqual (response .status_code , 204 , response .text )
301327
328+ @unittest .skip ("Skipping this entire test suite for now" )
302329 def test_delete_imms_unauthorised (self ):
303330 """it should not delete Immunization if app doesn't have immunization:delete permission"""
304331 perms = app_full_access (exclude = {Permission .DELETE })
@@ -308,6 +335,7 @@ def test_delete_imms_unauthorised(self):
308335 # Then
309336 self .assertEqual (response .status_code , 403 , response .text )
310337
338+ @unittest .skip ("Skipping this entire test suite for now" )
311339 def test_delete_imms__unauthorised_vaxx (self ):
312340 """it should not delete Immunization if app does not have the correct vaccine permission"""
313341 imms_id = self .default_imms_api .create_immunization_resource ()
@@ -317,6 +345,7 @@ def test_delete_imms__unauthorised_vaxx(self):
317345 # Then
318346 self .assertEqual (response .status_code , 403 , response .text )
319347
348+ @unittest .skip ("Skipping this entire test suite for now" )
320349 def test_search_imms_authorised (self ):
321350 """it should search Immunization if app has immunization:search permission"""
322351 mmr = generate_imms_resource (valid_nhs_number1 , VaccineTypes .mmr )
@@ -328,6 +357,7 @@ def test_search_imms_authorised(self):
328357 # Then
329358 self .assertEqual (response .status_code , 200 , response .text )
330359
360+ @unittest .skip ("Skipping this entire test suite for now" )
331361 def test_search_imms_unauthorised (self ):
332362 """it should not search Immunization if app doesn't have the immunization:search permission"""
333363 perms = app_full_access (exclude = {Permission .SEARCH })
0 commit comments