Example #1
0
class TestCodeDeployClient(CodeDeployTestCase):
    def setUp(self):
        super(TestCodeDeployClient, self).setUp()
        self.codedeployclient = CodeDeployClient(self.endpoint_args, self.session)
        self.codedeployclient.codedeploy = Mock()

    def test_register_revision(self):
        self.args.bucket = self.bucket
        self.args.key = self.key
        self.args.eTag = self.eTag
        self.args.version = self.version_id
        self.codedeployclient.register_revision(self.args)
        self.codedeployclient.codedeploy.RegisterApplicationRevision.assert_called_with(
            application_name=self.application_name, description=self.description, revision=self.revision
        )
Example #2
0
 def setUp(self):
     super(TestCodeDeployClient, self).setUp()
     self.codedeployclient = CodeDeployClient(
         self.endpoint_args,
         self.session
     )
     self.codedeployclient.codedeploy = Mock()
Example #3
0
class TestCodeDeployClient(CodeDeployTestCase):
    def setUp(self):
        super(TestCodeDeployClient, self).setUp()
        self.codedeployclient = CodeDeployClient(self.endpoint_args,
                                                 self.session)
        self.codedeployclient.codedeploy = Mock()

    def test_register_revision(self):
        self.args.bucket = self.bucket
        self.args.key = self.key
        self.args.eTag = self.eTag
        self.args.version = self.version_id
        self.codedeployclient.register_revision(self.args)
        self.codedeployclient.codedeploy\
            .RegisterApplicationRevision.assert_called_with(
                application_name=self.application_name,
                description=self.description,
                revision=self.revision
            )
Example #4
0
 def setUp(self):
     super(TestCodeDeployClient, self).setUp()
     self.codedeployclient = CodeDeployClient(self.endpoint_args,
                                              self.session)
     self.codedeployclient.codedeploy = Mock()