Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
fix: fix environments
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoutschen committed Jan 25, 2020
1 parent 5f4e192 commit edce593
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions environments.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion shared/environments/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion shared/metadata/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ properties:
parameters:
type: object
additionalProperties:
type: [string, integer]
type: string

flags:
type: object
Expand Down
2 changes: 1 addition & 1 deletion tools/toolbox
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit edce593

Please sign in to comment.