@@ -122,15 +122,9 @@ def test_nonbootable_metadata_bfv_image_metadata(self):
122122 'volume_size' : 1 ,
123123 }]
124124
125- # FIXME(lyarwood) n-api should ignore cinder_encryption_key_id in the
126- # original image in this case and accept the request.
127- ex = self .assertRaises (
128- client .OpenStackApiException , self .api .post_server ,
129- {'server' : server })
130- self .assertEqual (400 , ex .response .status_code )
131- self .assertIn (
132- "Direct booting of an image uploaded from an encrypted volume is "
133- "unsupported" , str (ex ))
125+ # Assert that this request is accepted and the server moves to ACTIVE
126+ server = self .api .post_server ({'server' : server })
127+ self ._wait_for_state_change (server , 'ACTIVE' )
134128
135129 def test_nonbootable_metadata_bfv_volume_image_metadata (self ):
136130 """Assert behaviour when c-api has created volume using encrypted image
@@ -147,12 +141,6 @@ def test_nonbootable_metadata_bfv_volume_image_metadata(self):
147141 'uuid' : uuids .cinder_encrypted_volume_uuid ,
148142 }]
149143
150- # FIXME(lyarwood) n-api should ignore cinder_encryption_key_id in the
151- # volume volume_image_metadata in this case and accept the request.
152- ex = self .assertRaises (
153- client .OpenStackApiException , self .api .post_server ,
154- {'server' : server })
155- self .assertEqual (400 , ex .response .status_code )
156- self .assertIn (
157- "Direct booting of an image uploaded from an encrypted volume is "
158- "unsupported" , str (ex ))
144+ # Assert that this request is accepted and the server moves to ACTIVE
145+ server = self .api .post_server ({'server' : server })
146+ self ._wait_for_state_change (server , 'ACTIVE' )
0 commit comments