def deploy(self):
     print("Getting deployment module")
     deploy = DeploymentModule()
     deploy.cache_root = self.cache_root
     deploy.deployment_file = self.deployment_file
     deploy.DEBUG = True
     print("Starting deploy and waiting for finish.")
     deploy.run(None)
Beispiel #2
0
 def test(self):
     print("Getting deployment module")
     deploy = DeploymentModule()
     deploy.cache_root = self.cache_root
     deploy.deployment_file = self.deployment_file
     deploy.DEBUG = True
     print("Starting deploy and waiting for finish.")
     deploy.run(None)
     self.assertTrue(os.path.exists(os.path.join(self.tempdir,"./deployment/testA/test_package.tar.gz")))
     self.assertFalse(os.path.islink(os.path.join(self.tempdir,"./deployment/testA/test_package.tar.gz")))
 def deploy(self):
     print ("Getting deployment module")
     deploy = DeploymentModule()
     deploy.cache_root = self.cache_root
     deploy.deployment_file = self.deployment_file
     deploy.DEBUG = True
     print ("Starting deploy and waiting for finish.")
     deploy.run(None)
Beispiel #4
0
    def test(self):
        print("Getting deployment module")
        deploy = DeploymentModule()
        deploy.cache_root = self.cache_root
        deploy.deployment_file = self.deployment_file
        deploy.DEBUG = True
        print("Starting deploy and waiting for finish.")
        deploy.run(None)

        self.assertTrue(
            os.path.islink(
                os.path.join(self.tempdir,
                             "./deployment/testA/this_is_test_data")))
        with open(
                os.path.join(self.tempdir,
                             "./deployment/testA/this_is_test_data")) as f:
            lines = f.readlines()
            self.assertEqual(lines[0], "HI!\n")

        self.assertTrue(
            os.path.islink(
                os.path.join(self.tempdir,
                             "./deployment/testB/this_is_test_data")))
        with open(
                os.path.join(self.tempdir,
                             "./deployment/testB/this_is_test_data")) as f:
            lines = f.readlines()
            self.assertEqual(lines[0], "HI!\n")

        self.assertFalse(
            os.path.islink(
                os.path.join(self.tempdir,
                             "./deployment/testC/this_is_test_data")))
        with open(
                os.path.join(self.tempdir,
                             "./deployment/testC/this_is_test_data")) as f:
            lines = f.readlines()
            self.assertEqual(lines[0], "HI!\n")
Beispiel #5
0
    def test(self):
        print("Getting deployment module")
        deploy = DeploymentModule()
        deploy.cache_root = self.cache_root
        deploy.deployment_file = self.deployment_file
        deploy.DEBUG = True
        print("Starting deploy and waiting for finish.")
        deploy.run(None)

        self.assertTrue(os.path.islink(os.path.join(self.tempdir,"./deployment/testA/this_is_test_data")))
        with open(os.path.join(self.tempdir,"./deployment/testA/this_is_test_data")) as f:
            lines = f.readlines()
            self.assertEqual(lines[0],"HI!\n")

        self.assertTrue(os.path.islink(os.path.join(self.tempdir,"./deployment/testB/this_is_test_data")))
        with open(os.path.join(self.tempdir,"./deployment/testB/this_is_test_data")) as f:
            lines = f.readlines()
            self.assertEqual(lines[0],"HI!\n")

        self.assertFalse(os.path.islink(os.path.join(self.tempdir,"./deployment/testC/this_is_test_data")))
        with open(os.path.join(self.tempdir,"./deployment/testC/this_is_test_data")) as f:
            lines = f.readlines()
            self.assertEqual(lines[0],"HI!\n")