Skip to content

Commit

Permalink
MRG: Merge pull request #67 from octue/feature/allow-environment-vari…
Browse files Browse the repository at this point in the history
…able-for-gcp-credentials-file

Feature: Require environment variable for children credentials
  • Loading branch information
cortadocodes committed Feb 1, 2021
2 parents c3bc556 + 86a106e commit 49e5a0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/test_children.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class TestChildrenValidation(BaseTestCase):
"backend": {
"name": "GCPPubSubBackend",
"project_name": "my-project",
"credentials_filename": "hello.json"
"credentials_environment_variable": "GCP_SERVICE_ACCOUNT"
}
}
]
Expand Down Expand Up @@ -119,7 +119,7 @@ def test_extra_key_validation_on_valid_twine(self):
"backend": {
"name": "GCPPubSubBackend",
"project_name": "my-project",
"credentials_filename": "hello.json"
"credentials_environment_variable": "GCP_SERVICE_ACCOUNT"
},
"some_extra_property": "should not be a problem if present"
}
Expand Down
6 changes: 3 additions & 3 deletions twined/schema/children_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
"description": "Name of the Google Cloud Platform (GCP) project the child exists in.",
"type": "string"
},
"credentials_filename": {
"description": "Absolute path to Google Cloud Platform credentials JSON file.",
"credentials_environment_variable": {
"description": "Name of environment variable containing either the absolute path to a Google Cloud Platform credentials JSON file or the JSON itself as a string.",
"type": "string"
}
},
"required": ["name", "project_name", "credentials_filename"]
"required": ["name", "project_name", "credentials_environment_variable"]
}
]
}
Expand Down

0 comments on commit 49e5a0b

Please sign in to comment.