Code Review
/
ric-plt
/
ricdms.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Implement uninstall of xApp
[ric-plt/ricdms.git]
/
pkg
/
resthooks
/
resthooks_test.go
diff --git
a/pkg/resthooks/resthooks_test.go
b/pkg/resthooks/resthooks_test.go
index
39ff3f3
..
7b65f15
100644
(file)
--- a/
pkg/resthooks/resthooks_test.go
+++ b/
pkg/resthooks/resthooks_test.go
@@
-126,8
+126,9
@@
func TestGetCharts(t *testing.T) {
resp := rh.GetCharts()
assert.NotEqual(t, nil, resp)
resp := rh.GetCharts()
assert.NotEqual(t, nil, resp)
- successResp := resp.(*charts.GetChartsListOK)
- assert.Equal(t, "SAMPLE_RESPONSE", successResp.Payload)
+ if _, ok := resp.(*charts.GetChartsListOK); !ok {
+ assert.Fail(t, "response type did not match : %t", resp)
+ }
}
func TestDownloadChart(t *testing.T) {
}
func TestDownloadChart(t *testing.T) {
@@
-212,6
+213,13
@@
func TestDownloadAndInstall(t *testing.T) {
}
}
+func TestUninstallxApp(t *testing.T) {
+ response := rh.UninstallChart("test", "test", "test")
+ if _, ok := response.(*d.DeleteDeployInternalServerError); !ok {
+ assert.Fail(t, "response type did not match actual: %T", response)
+ }
+}
+
type HealthCheckerMock struct {
mock.Mock
}
type HealthCheckerMock struct {
mock.Mock
}