Skip to content

Commit

Permalink
Merge pull request #1 from rpardini/fix-e2e-test
Browse files Browse the repository at this point in the history
include namespace prefix (default/) in e2e snapshot-like test

Signed-off-by: Willem Monsuwe <[email protected]>
  • Loading branch information
willemm authored Aug 5, 2024
2 parents c6698ed + 3347027 commit d5737e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,17 +164,17 @@ var _ = Describe("Tink API", func() {

// expected workflow name to context mapping
expectedWorkflows := map[string]*proto.WorkflowContext{
"wf1": {
WorkflowId: "wf1",
"default/wf1": {
WorkflowId: "default/wf1",
CurrentWorker: "3c:ec:ef:4c:4f:54",
CurrentTask: "os-installation",
CurrentAction: "stream-image",
CurrentActionIndex: 0,
CurrentActionState: proto.State_STATE_PENDING,
TotalNumberOfActions: 3,
},
"wf3": {
WorkflowId: "wf3",
"default/wf3": {
WorkflowId: "default/wf3",
CurrentWorker: "3c:ec:ef:4c:4f:54",
CurrentTask: "task-1",
CurrentAction: "task-1-action-1",
Expand All @@ -193,7 +193,7 @@ var _ = Describe("Tink API", func() {
if !googleproto.Equal(want, got) {
fmt.Printf("Expected:\n\t%#v\nGot:\n\t%#v", want, got)
}
Expect(googleproto.Equal(want, got)).To(Equal(true), fmt.Sprintf("Didn't find expected context for %s", got.WorkflowId))
Expect(googleproto.Equal(want, got)).To(Equal(true), fmt.Sprintf("Not equal context as expected for %s", got.WorkflowId))

// Remove the key from the map
delete(expectedWorkflows, got.WorkflowId)
Expand Down

0 comments on commit d5737e5

Please sign in to comment.