diff --git a/environments.yaml b/environments.yaml index 3e3dd12..173640d 100644 --- a/environments.yaml +++ b/environments.yaml @@ -1,22 +1,22 @@ dev: parameters: LogLevel: DEBUG - RetentionInDays: 7 + RetentionInDays: "7" tests: parameters: LogLevel: DEBUG - RetentionInDays: 30 + RetentionInDays: "30" staging: parameters: LogLevel: DEBUG - RetentionInDays: 30 + RetentionInDays: "30" prod: parameters: LogLevel: INFO - RetentionInDays: 30 + RetentionInDays: "30" flags: - can-integ: false + can-test: false is-prod: true \ No newline at end of file diff --git a/shared/environments/schema.yaml b/shared/environments/schema.yaml index b5cd986..a101d24 100644 --- a/shared/environments/schema.yaml +++ b/shared/environments/schema.yaml @@ -10,7 +10,7 @@ additionalProperties: description: | CloudFormation Parameters and their values for a specific environment. additionalProperties: - type: [string, integer] + type: string tags: type: object description: | diff --git a/shared/metadata/schema.yaml b/shared/metadata/schema.yaml index e17ede6..25cec6f 100644 --- a/shared/metadata/schema.yaml +++ b/shared/metadata/schema.yaml @@ -50,7 +50,7 @@ properties: parameters: type: object additionalProperties: - type: [string, integer] + type: string flags: type: object diff --git a/tools/toolbox b/tools/toolbox index 95f18a3..aac2240 100755 --- a/tools/toolbox +++ b/tools/toolbox @@ -426,7 +426,7 @@ class ToolBox: if not os.path.isdir(tests_dir): raise ValueError("'{}' does not exist".format(tests_dir)) - if not self.environment.get("flags", {}).get("can-test"): + if not self.environment.get("flags", {}).get("can-test", True): raise ValueError("Cannot run tests in {environment}".format(**self.environment)) # Inject shared modules for unit tests in the PYTHONPATH