Skip to content

Commit

Permalink
Add one-word
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-asawicki committed Nov 27, 2024
1 parent 3ebac93 commit d31130c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkg/experiments/experiment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,28 @@ func Test_experiments(t *testing.T) {

maskOnCi := func(line string) error {
if os.Getenv("GITHUB_ACTIONS") == "true" {
t.Logf("masking %s", line)
t.Log("masking")
return echo(fmt.Sprintf(`"::add-mask::%s"`, line))
}
t.Logf("not masking %s", line)
return nil
}

t.Run("dynamic masking", func(t *testing.T) {
a := "something to mask"
b := "something not to mask"
c := "katarakta"

err := maskOnCi(a)
require.NoError(t, err)
err = maskOnCi(c)
require.NoError(t, err)

require.NoError(t, echo(a))
require.NoError(t, echo(b))
require.NoError(t, echo(a))
require.NoError(t, echo(c))
t.Log(a)
t.Log(b)
t.Log(c)
})

t.Run("masking from env", func(t *testing.T) {
Expand Down

0 comments on commit d31130c

Please sign in to comment.