Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Mendoza committed Apr 23, 2024
1 parent f742e57 commit 2a8fd12
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion mock/mocktest/path_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ func TestPaths(t *testing.T) {
},
},
{
name: "tmp",
name: "docs",
input: []node{
oneOf{
allOf{
Expand Down Expand Up @@ -483,6 +483,57 @@ func TestPaths(t *testing.T) {
},
},
},
output: paths{
{
calls: []call{{text: "instance exists and is not offline"}},
result: result{text: "success"},
},
{
calls: []call{
{text: "instance does not exist"},
{text: "not able to be created"},
},
result: result{text: "error"},
},
{
calls: []call{
{text: "instance does not exist"},
{text: "able to be created"},
{text: "able to boot"},
},
result: result{text: "success"},
},
{
calls: []call{
{text: "instance does not exist"},
{text: "able to be created"},
{text: "not able to boot"},
},
result: result{text: "error"},
},
{
calls: []call{
{text: "instance exists but is offline"},
{text: "able to boot"},
},
result: result{text: "success"},
},
{
calls: []call{
{text: "instance exists but is offline"},
{text: "not able to boot"},
},
result: result{text: "error"},
},
},
describe: []string{
"instance exists and is not offline > success",
"instance does not exist > not able to be created > error",
"instance does not exist > able to be created > able to boot > success",
"instance does not exist > able to be created > not able to boot > error",
"instance exists but is offline > able to boot > success",
"instance exists but is offline > not able to boot > error",
},
},
} {
t.Run(testCase.name, func(t *testing.T) {
Expand Down

0 comments on commit 2a8fd12

Please sign in to comment.