Skip to content

Commit

Permalink
Check the HTTP status code when restarting the app
Browse files Browse the repository at this point in the history
Thus we ensure that the restart request succeeds

Co-authored-by: Danail Branekov <danailster@gmail.com>
  • Loading branch information
georgethebeatle and danail-branekov committed Nov 14, 2023
1 parent a7d9ca4 commit 746f082
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/e2e/apps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,11 @@ var _ = Describe("Apps", func() {
secondServiceInstanceGUID = createServiceInstance(space1GUID, generateGUID("service-instance"), moreCredentials)
bindingName = "custom-named-binding"
namedBindingGUID = createServiceBinding(appGUID, secondServiceInstanceGUID, bindingName)
_, httpError = adminClient.R().SetResult(&result).Post("/v3/apps/" + appGUID + "/actions/restart")

var httpResp *resty.Response
httpResp, httpError = adminClient.R().SetResult(&result).Post("/v3/apps/" + appGUID + "/actions/restart")
Expect(httpError).NotTo(HaveOccurred())
Expect(httpResp).To(HaveRestyStatusCode(http.StatusOK))
})

It("sets the $SERVICE_BINDING_ROOT env variable", func() {
Expand Down

0 comments on commit 746f082

Please sign in to comment.