-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add numerals to namespace and githubTeam input
- Loading branch information
1 parent
a3e426b
commit 4ea41bf
Showing
3 changed files
with
8 additions
and
8 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
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 |
---|---|---|
|
@@ -72,14 +72,14 @@ func TestReadAnswersFile(t *testing.T) { | |
|
||
func TestCreateNamespace(t *testing.T) { | ||
ns := Namespace{ | ||
Namespace: "foobar", | ||
Namespace: "foo2bar", | ||
BusinessUnit: "My Biz Unit", | ||
Environment: "envname", | ||
Application: "My App", | ||
Owner: "Some Team", | ||
InfrastructureSupport: "[email protected]", | ||
SourceCode: "https://github.com/ministryofjustice/somerepo", | ||
GithubTeam: "my-github-team", | ||
GithubTeam: "my-github-2-team", | ||
SlackChannel: "my-team-slack_channel", | ||
IsProduction: "false", | ||
} | ||
|
@@ -89,7 +89,7 @@ func TestCreateNamespace(t *testing.T) { | |
t.Errorf("Unexpected error: %s", err) | ||
} | ||
|
||
dir := namespaceBaseFolder + "/foobar/" | ||
dir := namespaceBaseFolder + "/foo2bar/" | ||
namespaceFile := dir + "00-namespace.yaml" | ||
rbacFile := dir + "01-rbac.yaml" | ||
variablesTfFile := dir + "resources/variables.tf" | ||
|
@@ -112,17 +112,17 @@ func TestCreateNamespace(t *testing.T) { | |
} | ||
|
||
stringsInFiles := map[string]string{ | ||
namespaceFile: "name: foobar", | ||
namespaceFile: "name: foo2bar", | ||
namespaceFile: "cloud-platform.justice.gov.uk/business-unit: \"My Biz Unit\"", | ||
namespaceFile: "cloud-platform.justice.gov.uk/environment-name: \"envname\"", | ||
namespaceFile: "cloud-platform.justice.gov.uk/application: \"My App\"", | ||
namespaceFile: "cloud-platform.justice.gov.uk/owner: \"Some Team: [email protected]\"", | ||
namespaceFile: "cloud-platform.justice.gov.uk/source-code: \"https://github.com/ministryofjustice/somerepo\"", | ||
namespaceFile: "cloud-platform.justice.gov.uk/is-production: \"false\"", | ||
namespaceFile: "pod-security.kubernetes.io/enforce: restricted", | ||
rbacFile: "name: \"github:my-github-team\"", | ||
rbacFile: "name: \"github:my-github-2-team\"", | ||
variablesTfFile: "my-team-slack_channel", | ||
variablesTfFile: "my-github-team", | ||
variablesTfFile: "my-github-2-team", | ||
} | ||
|
||
for filename, searchString := range stringsInFiles { | ||
|