Skip to content

Commit

Permalink
include namespace prefix (default/) in e2e snapshot-like test
Browse files Browse the repository at this point in the history
- also change msg for clarity in test below (avoid duplicates)

Signed-off-by: Ricardo Pardini <[email protected]>
  • Loading branch information
rpardini authored and jacobweinstock committed Aug 13, 2024
1 parent 53cd3c2 commit 81b4982
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 81b4982

Please sign in to comment.