예제 #1
0
 def _setup_app_and_controller(self):
     self.app_server = fakes.wsgi_app(init_only=('servers', ))
     self.controller = keypairs_v2.KeypairController()
예제 #2
0
class KeypairPolicyTestV2(KeypairPolicyTestV21):
    KeyPairController = keypairs_v2.KeypairController()
    policy_path = 'compute_extension:keypairs'

    def _assert_keypair_create(self, mock_create, req):
        mock_create.assert_called_with(req, 'fake_user', 'create_test')
예제 #3
0
class KeypairPolicyTestV2(KeypairPolicyTestV21):
    KeyPairController = keypairs_v2.KeypairController()
    policy_path = 'compute_extension:keypairs'