예제 #1
0
 def copy_sampleapp(self):
     """Create folder structure required for tests."""
     for i in range(1, 7):
         new_dir = os.path.join(self.base_dir, 'sampleapp' + str(i))
         copy_dir(os.path.join(self.base_dir, 'sampleapp'), new_dir)
         stacker_contents = deepcopy(self.stacker_file)
         stacker_contents['stacks'] = {
             'module-tags-' + str(i): self.stack_definition
         }
         with open(os.path.join(new_dir, 'stacker.yml'), 'w+') as yml:
             yml.write(yaml.safe_dump(stacker_contents))
예제 #2
0
 def copy_sampleapp(self):
     """Create folder structure required for tests."""
     for i in range(1, 7):
         new_dir = os.path.join(self.base_dir, "sampleapp" + str(i))
         copy_dir(os.path.join(self.base_dir, "sampleapp"), new_dir)
         stacker_contents = deepcopy(self.cfngin_file)
         stacker_contents["stacks"] = {
             "module-tags-" + str(i): self.stack_definition
         }
         with open(os.path.join(new_dir, "stacker.yml"), "w+") as yml:
             yml.write(yaml.safe_dump(stacker_contents))
예제 #3
0
 def copy_fixture(self, name="multiple-stacks-app.cdk"):
     """Copy fixture files for test."""
     copy_dir(os.path.join(self.fixtures_dir, name),
              os.path.join(self.cdk_test_dir, name))
예제 #4
0
 def copy_fixture(self, name='basic-site'):
     """Copy fixture files for test"""
     copy_dir(os.path.join(self.fixtures_dir, name),
              os.path.join(self.staticsite_test_dir, name))
예제 #5
0
 def copy_fixture(self, name='two-regions-app.cfn'):
     """Copy fixture files for test."""
     copy_dir(os.path.join(self.fixtures_dir, name),
              os.path.join(self.parallelism_test_dir, name))