Code Review
/
ric-plt
/
submgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
J release: Release container Image
[ric-plt/submgr.git]
/
pkg
/
control
/
ut_ctrl_submgr_test.go
diff --git
a/pkg/control/ut_ctrl_submgr_test.go
b/pkg/control/ut_ctrl_submgr_test.go
index
78d9990
..
0af1da4
100644
(file)
--- a/
pkg/control/ut_ctrl_submgr_test.go
+++ b/
pkg/control/ut_ctrl_submgr_test.go
@@
-535,7
+535,10
@@
func (mc *testingSubmgrControl) SendDeleteRequest(t *testing.T, addr string, pat
mc.TestLog(t, "Response status: %v", resp.Status)
mc.TestLog(t, "Response Headers: %v", resp.Header)
mc.TestLog(t, "Response status: %v", resp.Status)
mc.TestLog(t, "Response Headers: %v", resp.Header)
- if !strings.Contains(resp.Status, "204 No Content") {
+
+ // Note that xapp gets '204 No Content' response through Swagger generated delete route.
+ // Inject route returns '200 OK'
+ if !(strings.Contains(resp.Status, "204 No Content") || strings.Contains(resp.Status, "200 OK")) {
mc.TestError(t, "Wrong response status")
return
}
mc.TestError(t, "Wrong response status")
return
}