Esempio n. 1
0
    def setUp(self):

        self.copy_or_build_bundle()

        self.bundle_dir = os.path.join(
            os.path.dirname(os.path.abspath(__file__)), 'testbundle')
        self.rc = RunConfig([
            os.path.join(self.bundle_dir, 'client-test-config.yaml'),
            os.path.join(self.bundle_dir, 'bundle.yaml'), RunConfig.USER_CONFIG
        ])

        self.server_rc = RunConfig([
            os.path.join(self.bundle_dir, 'server-test-config.yaml'),
            RunConfig.USER_CONFIG
        ])

        self.bundle = Bundle()
        self.bundle_dir = self.bundle.bundle_dir
Esempio n. 2
0
    def setUp(self):

        import shutil, os

        self.copy_or_build_bundle()
        self.bundle_dir = os.path.join(
            os.path.dirname(os.path.abspath(__file__)), '../testbundle')

        self.bundle = Bundle()
        self.bundle_dir = self.bundle.bundle_dir

        self.server_rc = RunConfig(
            [os.path.join(self.bundle_dir, 'server-test-config.yaml')])
        self.client_rc = RunConfig(
            [os.path.join(self.bundle_dir, 'client-test-config.yaml')])

        root = os.path.join(self.client_rc.filesystem.root_dir, 'test')

        shutil.rmtree(root)