예제 #1
0
    def test_push_tagOnly(self, requestMock):
        self.setupRequestMock(requestMock, name=".Tags")

        main.bitbucket()
        self.assertTrue(not os.path.exists(
            self.pathRelativeToDeployPath("TestRepo-Bitbucket-Tags")))
        self.assertTrue(verifyTEST_SEQUENCE(TEST_SEQs.dl_tagRequiredNoTag))
예제 #2
0
    def test_push_releaseOnly(self, requestMock):
        self.setupRequestMock(requestMock, name=".Releases")

        main.bitbucket()
        self.assertTrue(not os.path.exists(
            self.pathRelativeToDeployPath("TestRepo-Bitbucket-Releases")))
        self.assertTrue(verifyTEST_SEQUENCE(TEST_SEQs.dl_releaseNotSupported))
예제 #3
0
    def test_push_noWhitelist(self, requestMock):
        self.setupRequestMock(requestMock, name="noWhitelist")

        main.bitbucket()
        self.assertTrue((not os.path.exists(
            self.pathRelativeToDeployPath("TestRepo-Bitbucket-noWhitelist"))))
        self.assertTrue(
            verifyTEST_SEQUENCE(TEST_SEQs.dl_autoDeployConfigDisabled))
예제 #4
0
    def test_push_master(self, requestMock):
        self.setupRequestMock(requestMock)

        main.bitbucket()
        self.assertTrue(
            os.path.exists(
                self.pathRelativeToDeployPath("TestRepo-Bitbucket")))
        self.assertTrue(
            os.path.exists(
                os.path.join(
                    self.pathRelativeToDeployPath("TestRepo-Bitbucket"),
                    self.latestPush_at_master)))
        self.assertTrue(verifyTEST_SEQUENCE(TEST_SEQs.dl_deploySuccess))
예제 #5
0
    def test_create_latestTag(self, requestMock):
        self.setupRequestMock(requestMock,
                              type="tag",
                              name=self.latestTag.replace(".txt", ""))

        main.bitbucket()
        self.assertTrue(
            os.path.exists(
                self.pathRelativeToDeployPath("TestRepo-Bitbucket-Tags")))
        self.assertTrue(
            os.path.exists(
                os.path.join(
                    self.pathRelativeToDeployPath("TestRepo-Bitbucket-Tags"),
                    self.latestTag)))
        self.assertTrue(verifyTEST_SEQUENCE(TEST_SEQs.dl_deploySuccess))