'Test creates a subnetpool, which is non default subnetpool.
Then it will update to a default subnetpool, by setting "is_default"
attribute to True.'

@decorators.idempotent_id('9e79730c-29b6-44a4-9504-bf3c7cedc56c')
@test.requires_ext(extension='default-subnetpools', service='network')
def test_convert_subnetpool_to_default_subnetpool(self):

    created_subnetpool = self._create_subnetpool()
    subnetpool_id = created_subnetpool['id']
    self.assertFalse(created_subnetpool['is_default'])
    subnetpool_data = {'is_default': True}
    self.admin_client.update_subnetpool(subnetpool_id, **subnetpool_data)
    show_body = self.client.show_subnetpool(subnetpool_id)
    self.assertTrue(show_body['subnetpool']['is_default'])
