Add a basic deployment test (#476)

This commit was merged in pull request #476.
This commit is contained in:
2023-07-31 15:08:34 -06:00
committed by GitHub
parent a8f4e4cee4
commit 5afe7a29ae
3 changed files with 49 additions and 4 deletions
+7
View File
@@ -45,6 +45,13 @@ def init(command_context: DeployCommandContext):
return yaml.load(default_spec_file_content)
def create(command_context: DeployCommandContext):
data = "create-command-output-data"
output_file_path = command_context.deployment_dir.joinpath("create-file")
with open(output_file_path, 'w+') as output_file:
output_file.write(data)
def get_state(command_context: DeployCommandContext):
print("Here we get state")
return State.CONFIGURED
+1 -1
View File
@@ -209,7 +209,7 @@ def create(ctx, spec_file, deployment_dir):
# stack member here.
deployment_command_context = ctx.obj
deployment_command_context.stack = stack_name
deployment_context = DeploymentContext(Path(deployment_dir), ctx.obj)
deployment_context = DeploymentContext(Path(deployment_dir), deployment_command_context)
call_stack_deploy_create(deployment_context)