Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add test for expression template hasVarInEnv #13664

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

weafscast
Copy link
Contributor

Fixes #TODO

Motivation

Split from #13591 so that this can be independently merged

Modifications

Add test cases

Verification

Add test cases

@agilgur5 agilgur5 added area/build Build or GithubAction/CI issues area/templating Templating with `{{...}}` labels Sep 26, 2024
Signed-off-by: weafscast <weafscast@proton.me>
@@ -34,3 +34,50 @@ func Test_hasWorkflowParameters(t *testing.T) {
assert.False(t, hasWorkflowFailures("workflow .failures"))
})
}

func Test_hasVarInEnv(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use the existing function naming convention of TestHasVarInEnv

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will change, I just kept it consistent with this file.

Signed-off-by: weafscast <weafscast@proton.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Build or GithubAction/CI issues area/templating Templating with `{{...}}`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants