Skip to content

Commit

Permalink
Test: Use a seperate artifact fingerprint for assert snapshot testing…
Browse files Browse the repository at this point in the history
…. If not we find the same artifact in flows from other tests
  • Loading branch information
ToreMerkely committed Dec 11, 2023
1 parent 47f9735 commit f26bf6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/kosli/assertSnapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ type assertSnapshotTestConfig struct {

func (suite *AssertSnapshotCommandTestSuite) SetupTest() {
suite.envName = "env-to-assert"
suite.flowName = "some-flow"
suite.flowName = "assert-snapshot"
suite.artifactName = "arti"
suite.artifactPath = "testdata/folder1/hello.txt"
suite.artifactPath = "testdata/assert_snapshot_artifact.txt"
global = &GlobalOpts{
ApiToken: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6ImNkNzg4OTg5In0.e8i_lA_QrEhFncb05Xw6E_tkCHU9QfcY4OLTVUCHffY",
Org: "docs-cmd-test-user",
Expand Down
1 change: 1 addition & 0 deletions cmd/kosli/testdata/assert_snapshot_artifact.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hi. I am artifact used for testing of assert artifact.

0 comments on commit f26bf6a

Please sign in to comment.