Skip to content

Commit

Permalink
stop app after invoke call
Browse files Browse the repository at this point in the history
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
  • Loading branch information
mukundansundar committed May 31, 2023
1 parent 55da19d commit 060f159
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/e2e/standalone/invoke_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,16 @@ func TestStandaloneInvokeWithAppChannel(t *testing.T) {
executeAgainstRunningDapr(t, func() {
t.Run(fmt.Sprintf("data from file with app channel address set to localhost"), func(t *testing.T) {
// empty unix domain socket path
output, err := cmdInvoke("invoke_e2e", "test", "", "--data-file", "../testdata/message.json")
output, err := cmdInvoke("invoke_e2e_app_channel", "test", "", "--data-file", "../testdata/message.json")
t.Log(output)
assert.NoError(t, err, "unable to invoke with --data-file")
assert.Contains(t, output, "App invoked successfully")
assert.Contains(t, output, "{\"dapr\": \"is_great\"}")
})
}, "run", "--app-id", "invoke_e2e", "--app-port", strconv.Itoa(port), "--app-channel-address", "localhost")

output, err := cmdStopWithAppID("invoke_e2e_app_channel")
t.Log(output)
require.NoError(t, err, "dapr stop failed")
assert.Contains(t, output, "app stopped successfully: invoke_e2e_app_channel")
}, "run", "--app-id", "invoke_e2e_app_channel", "--app-port", strconv.Itoa(port), "--app-channel-address", "localhost")
}

0 comments on commit 060f159

Please sign in to comment.