@@ -56,49 +56,49 @@ def _cleanup_zones(self):
56
56
zone_identifier = zone .get ("id" ))
57
57
58
58
################## zones integration test ###################
59
- def test_1_zones (self ):
60
- """ create a zone """
61
- self .zone_name = "uuid-" + \
62
- str (uuid .uuid1 ())[1 :6 ] + ".sdk.cistest-load.com"
63
- response = self .zones .create_zone (
64
- name = self .zone_name ).get_result ()
65
- assert response is not None and response .get ('success' ) is True
66
- result = response .get ('result' )
67
- self .zone_id = result .get ('id' )
68
- self .paused = result .get ('paused' )
69
-
70
- """ list all zones """
71
- response = self .zones .list_zones ().get_result ()
72
- assert response is not None and response .get ('success' ) is True
73
-
74
- """ get a zone """
75
- response = self .zones .get_zone (
76
- zone_identifier = self .zone_id ).get_result ()
77
- assert response is not None and response .get ('success' ) is True
78
-
79
- """ zone activation check """
80
- try :
81
- response = self .zones .zone_activation_check (
82
- zone_identifier = self .zone_id ).get_result ()
83
- assert response is not None and response .get ('success' ) is True
84
- except ApiException as e :
85
- print ("Exception:" , e )
86
-
87
- """ update a zone """
88
- self .paused = not self .paused
89
- response = self .zones .update_zone (
90
- zone_identifier = self .zone_id , paused = self .paused ).get_result ()
91
- assert response is not None and response .get ('success' ) is True
92
-
93
- self .paused = not self .paused
94
- response = self .zones .update_zone (
95
- zone_identifier = self .zone_id , paused = self .paused ).get_result ()
96
- assert response is not None and response .get ('success' ) is True
97
-
98
- """ delete a zone """
99
- response = self .zones .delete_zone (
100
- zone_identifier = self .zone_id ).get_result ()
101
- assert response is not None and response .get ('success' ) is True
59
+ # def test_1_zones(self):
60
+ # """ create a zone """
61
+ # self.zone_name = "uuid-" + \
62
+ # str(uuid.uuid1())[1:6] + ".sdk.cistest-load.com"
63
+ # response = self.zones.create_zone(
64
+ # name=self.zone_name).get_result()
65
+ # assert response is not None and response.get('success') is True
66
+ # result = response.get('result')
67
+ # self.zone_id = result.get('id')
68
+ # self.paused = result.get('paused')
69
+
70
+ # """ list all zones """
71
+ # response = self.zones.list_zones().get_result()
72
+ # assert response is not None and response.get('success') is True
73
+
74
+ # """ get a zone """
75
+ # response = self.zones.get_zone(
76
+ # zone_identifier=self.zone_id).get_result()
77
+ # assert response is not None and response.get('success') is True
78
+
79
+ # """ zone activation check """
80
+ # try:
81
+ # response = self.zones.zone_activation_check(
82
+ # zone_identifier=self.zone_id).get_result()
83
+ # assert response is not None and response.get('success') is True
84
+ # except ApiException as e:
85
+ # print("Exception:", e)
86
+
87
+ # """ update a zone """
88
+ # self.paused = not self.paused
89
+ # response = self.zones.update_zone(
90
+ # zone_identifier=self.zone_id, paused=self.paused).get_result()
91
+ # assert response is not None and response.get('success') is True
92
+
93
+ # self.paused = not self.paused
94
+ # response = self.zones.update_zone(
95
+ # zone_identifier=self.zone_id, paused=self.paused).get_result()
96
+ # assert response is not None and response.get('success') is True
97
+
98
+ # """ delete a zone """
99
+ # response = self.zones.delete_zone(
100
+ # zone_identifier=self.zone_id).get_result()
101
+ # assert response is not None and response.get('success') is True
102
102
103
103
################## Negative test cases ###################
104
104
def test_2_zones (self ):
0 commit comments