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))
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))
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))
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))
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))