Skip to content

Commit

Permalink
refactor: rename envVars to envs
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Germanov committed Oct 10, 2024
1 parent d4cf486 commit cf6af6f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmd/npmExecuteTests.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ func runNpmExecuteTests(config *npmExecuteTestsOptions, c command.ExecRunner) er
}
}

if len(config.EnvVars) > 0 {
c.SetEnv(config.EnvVars)
if len(config.Envs) > 0 {
c.SetEnv(config.Envs)
}

if len(config.Paths) > 0 {
Expand Down
6 changes: 3 additions & 3 deletions cmd/npmExecuteTests_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion resources/metadata/npmExecuteTests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ spec:
If you want to specify an extra option that the tested url it appended to.
For example if the test URL is `http://localhost and urlOptionPrefix is `--base-url=`,
we'll add `--base-url=http://localhost` to your runScript.
- name: envVars
- name: envs
type: "[]string"
description: List of environment variables to be set
- name: paths
Expand Down

0 comments on commit cf6af6f

Please sign in to comment.