-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* interim * Delete Project.xml * Update statefulset_test.yaml * Create .gitignore * Update values.yaml * add unittest to workflow * Update Chart.yaml * Update statefulset_test.yaml * more fixes and tests * Update statefulset_test.yaml * more tests * add back command * Update statefulset_test.yaml * revert fixes to be included in another pr --------- Co-authored-by: PePe Amengual <[email protected]>
- Loading branch information
Showing
16 changed files
with
1,455 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# IDE or Editor-specific | ||
.idea/ | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
suite: test secret-api for api secret | ||
templates: | ||
- secret-api.yaml | ||
release: | ||
name: my-release | ||
tests: | ||
- it: default values | ||
asserts: | ||
- hasDocuments: | ||
count: 0 | ||
- it: apiSecretName | ||
set: | ||
apiSecretName: 'atlantis-api' | ||
asserts: | ||
- hasDocuments: | ||
count: 0 | ||
- it: apiSecret | ||
set: | ||
api.secret: 'spongebob' | ||
commonLabels: | ||
team: "infra" | ||
asserts: | ||
- hasDocuments: | ||
count: 1 | ||
- isKind: | ||
of: Secret | ||
- isAPIVersion: | ||
of: v1 | ||
- equal: | ||
path: metadata.name | ||
value: my-release-atlantis-api | ||
- equal: | ||
path: data["apisecret"] | ||
value: c3BvbmdlYm9i | ||
- equal: | ||
path: metadata.labels.team | ||
value: infra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
suite: test secret-aws for aws | ||
templates: | ||
- secret-aws.yaml | ||
release: | ||
name: my-release | ||
tests: | ||
- it: default values | ||
asserts: | ||
- hasDocuments: | ||
count: 0 | ||
- it: awsSecretName | ||
set: | ||
awsSecretName: 'atlantis-aws' | ||
asserts: | ||
- hasDocuments: | ||
count: 0 | ||
- it: aws | ||
set: | ||
aws: | ||
credentials: | | ||
[default] | ||
aws_access_key_id=YOUR_ACCESS_KEY_ID | ||
aws_secret_access_key=YOUR_SECRET_ACCESS_KEY | ||
region=us-east-1 | ||
config: | | ||
[profile a_role_to_assume] | ||
role_arn = arn:aws:iam::123456789:role/service-role/roleToAssume | ||
source_profile = default | ||
commonLabels: | ||
team: "infra" | ||
asserts: | ||
- hasDocuments: | ||
count: 1 | ||
- isKind: | ||
of: Secret | ||
- isAPIVersion: | ||
of: v1 | ||
- equal: | ||
path: metadata.name | ||
value: my-release-atlantis-aws | ||
- equal: | ||
path: data["config"] | ||
value: W3Byb2ZpbGUgYV9yb2xlX3RvX2Fzc3VtZV0Kcm9sZV9hcm4gPSBhcm46YXdzOmlhbTo6MTIzNDU2Nzg5OnJvbGUvc2VydmljZS1yb2xlL3JvbGVUb0Fzc3VtZQpzb3VyY2VfcHJvZmlsZSA9IGRlZmF1bHQK | ||
- equal: | ||
path: data["credentials"] | ||
value: W2RlZmF1bHRdCmF3c19hY2Nlc3Nfa2V5X2lkPVlPVVJfQUNDRVNTX0tFWV9JRAphd3Nfc2VjcmV0X2FjY2Vzc19rZXk9WU9VUl9TRUNSRVRfQUNDRVNTX0tFWQpyZWdpb249dXMtZWFzdC0xCg== | ||
- equal: | ||
path: metadata.labels.team | ||
value: infra | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
suite: test secret-basic-auth for git basic-auth secret | ||
templates: | ||
- secret-basic-auth.yaml | ||
release: | ||
name: my-release | ||
tests: | ||
- it: default values | ||
asserts: | ||
- hasDocuments: | ||
count: 0 | ||
- it: basicAuthSecretName | ||
set: | ||
basicAuthSecretName: "atlantis-basic-auth" | ||
asserts: | ||
- hasDocuments: | ||
count: 0 | ||
- it: basicAuth | ||
set: | ||
basicAuth: | ||
username: "atlantis" | ||
password: "forever" | ||
commonLabels: | ||
team: "infra" | ||
asserts: | ||
- hasDocuments: | ||
count: 1 | ||
- isKind: | ||
of: Secret | ||
- isAPIVersion: | ||
of: v1 | ||
- equal: | ||
path: metadata.name | ||
value: my-release-atlantis-basic-auth | ||
- equal: | ||
path: data["username"] | ||
value: YXRsYW50aXM= | ||
- equal: | ||
path: data["password"] | ||
value: Zm9yZXZlcg== | ||
- equal: | ||
path: metadata.labels.team | ||
value: infra | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
suite: test secret-gitconfig for gitconfig | ||
templates: | ||
- secret-gitconfig.yaml | ||
release: | ||
name: my-release | ||
tests: | ||
- it: default values | ||
template: secret-gitconfig.yaml | ||
asserts: | ||
- hasDocuments: | ||
count: 0 | ||
- it: gitconfigSecretName | ||
template: secret-gitconfig.yaml | ||
set: | ||
gitconfigSecretName: 'atlantis-gitconfig' | ||
asserts: | ||
- hasDocuments: | ||
count: 0 | ||
- it: gitconfig | ||
template: secret-gitconfig.yaml | ||
set: | ||
gitconfig: | | ||
[url "https://[email protected]"] | ||
insteadOf = https://github.com | ||
commonLabels: | ||
team: "infra" | ||
asserts: | ||
- hasDocuments: | ||
count: 1 | ||
- isKind: | ||
of: Secret | ||
- isAPIVersion: | ||
of: v1 | ||
- equal: | ||
path: metadata.name | ||
value: my-release-atlantis-gitconfig | ||
- equal: | ||
path: data["gitconfig"] | ||
value: W3VybCAiaHR0cHM6Ly9ZT1VSX0dIX1RPS0VOQGdpdGh1Yi5jb20iXQppbnN0ZWFkT2YgPSBodHRwczovL2dpdGh1Yi5jb20K | ||
- equal: | ||
path: metadata.labels.team | ||
value: infra | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
suite: test secret-netrc for netrc | ||
templates: | ||
- secret-netrc.yaml | ||
release: | ||
name: my-release | ||
tests: | ||
- it: default values | ||
asserts: | ||
- hasDocuments: | ||
count: 0 | ||
- it: netrcSecretName | ||
set: | ||
netrcSecretName: 'atlantis-netrc' | ||
asserts: | ||
- hasDocuments: | ||
count: 0 | ||
- it: netrc | ||
set: | ||
netrc: | | ||
machine artifactory.myapp.com login YOUR_USERNAME password YOUR_PASSWORD | ||
machine bitbucket.myapp.com login YOUR_USERNAME password YOUR_PASSWORD | ||
commonLabels: | ||
team: "infra" | ||
asserts: | ||
- hasDocuments: | ||
count: 1 | ||
- isKind: | ||
of: Secret | ||
- isAPIVersion: | ||
of: v1 | ||
- equal: | ||
path: metadata.name | ||
value: my-release-atlantis-netrc | ||
- equal: | ||
path: data["netrc"] | ||
value: bWFjaGluZSBhcnRpZmFjdG9yeS5teWFwcC5jb20gbG9naW4gWU9VUl9VU0VSTkFNRSBwYXNzd29yZCBZT1VSX1BBU1NXT1JECm1hY2hpbmUgYml0YnVja2V0Lm15YXBwLmNvbSBsb2dpbiBZT1VSX1VTRVJOQU1FIHBhc3N3b3JkIFlPVVJfUEFTU1dPUkQK | ||
- equal: | ||
path: metadata.labels.team | ||
value: infra | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
suite: test secret-service-account for serviceAccountSecrets | ||
templates: | ||
- secret-service-account.yaml | ||
release: | ||
name: my-release | ||
tests: | ||
- it: default values | ||
template: secret-service-account.yaml | ||
asserts: | ||
- hasDocuments: | ||
count: 0 | ||
- it: serviceAccountSecrets | ||
template: secret-service-account.yaml | ||
set: | ||
serviceAccountSecrets: | ||
credentials: VG9ueSBTb3ByYW5v | ||
credentials-staging: Q2FybWVsYSBTb3ByYW5v | ||
commonLabels: | ||
team: infra | ||
asserts: | ||
- hasDocuments: | ||
count: 2 | ||
- isKind: | ||
of: Secret | ||
- isAPIVersion: | ||
of: v1 | ||
- equal: | ||
path: metadata.labels.component | ||
value: service-account-secret | ||
- documentIndex: 0 | ||
equal: | ||
path: data["service-account.json"] | ||
value: VG9ueSBTb3ByYW5v | ||
- documentIndex: 0 | ||
equal: | ||
path: metadata.name | ||
value: credentials | ||
- documentIndex: 0 | ||
equal: | ||
path: metadata.labels.team | ||
value: infra | ||
- documentIndex: 1 | ||
equal: | ||
path: data["service-account.json"] | ||
value: Q2FybWVsYSBTb3ByYW5v | ||
- documentIndex: 1 | ||
equal: | ||
path: metadata.name | ||
value: credentials-staging | ||
- documentIndex: 1 | ||
equal: | ||
path: metadata.labels.team | ||
value: infra | ||
|
||
|
||
|
Oops, something went wrong.