Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zreigz committed Mar 10, 2023
1 parent c13c3e5 commit 4d51f4e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions hack/e2e/setup-plural.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ export PLURAL_LOGIN_AFFIRM_CURRENT_USER=true
export PLURAL_INIT_AFFIRM_CURRENT_REPO=true
export PLURAL_INIT_AFFIRM_BACKUP_KEY=false

export PLURAL_INIT_AFFIRM_SEND_METRICS=true

plural init
plural repos reset
plural bundle install console console-kind
Expand Down
2 changes: 1 addition & 1 deletion pkg/bundle/configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func TestConfigureEnvVariables(t *testing.T) {
ctx: map[string]interface{}{},
repo: "test",
envVars: map[string]string{"PLURAL_TEST_TEST_ITEM": "workspace.yaml"},
expectedValue: "apiVersion: \"\"\nkind: \"\"\nmetadata: null\nspec:\n cluster: \"\"\n bucket: \"\"\n project: test\n provider: \"\"\n region: \"\"\n owner: null\n network: null\n bucketPrefix: \"\"\n context: {}\n",
expectedValue: "apiVersion: \"\"\nkind: \"\"\nmetadata: null\nspec:\n cluster: \"\"\n bucket: \"\"\n project: test\n provider: \"\"\n region: \"\"\n sendmetrics: false\n owner: null\n network: null\n bucketPrefix: \"\"\n context: {}\n",
},
}
for _, test := range tests {
Expand Down
2 changes: 2 additions & 0 deletions pkg/scaffold/template/lua_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ test:
metadata: null
spec:
email: [email protected]
id: ""
token: abc
namespacePrefix: test
endpoint: http://example.com
Expand Down Expand Up @@ -154,6 +155,7 @@ test:
metadata: null
spec:
email: [email protected]
id: ""
token: abc
namespacePrefix: test
endpoint: http://example.com
Expand Down

0 comments on commit 4d51f4e

Please sign in to comment.