Code Review
/
ric-plt
/
alarm-go.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix of alarm-go client library rmr init
[ric-plt/alarm-go.git]
/
manager
/
cmd
/
restapi_test.go
diff --git
a/manager/cmd/restapi_test.go
b/manager/cmd/restapi_test.go
index
795fb16
..
b1c175c
100755
(executable)
--- a/
manager/cmd/restapi_test.go
+++ b/
manager/cmd/restapi_test.go
@@
-27,8
+27,8
@@
import (
"net/http/httptest"
"testing"
"net/http/httptest"
"testing"
+ "gerrit.o-ran-sc.org/r/ric-plt/alarm-go.git/alarm"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/assert"
- "gerrit.o-ran-sc.org/r/ric-plt/alarm-go/alarm"
)
// Test cases
)
// Test cases
@@
-47,7
+47,7
@@
func TestGetActiveAlarmsRESTInterface(t *testing.T) {
}
func TestRaiseAlarmRESTInterface(t *testing.T) {
}
func TestRaiseAlarmRESTInterface(t *testing.T) {
- a := alarmer.NewAlarm(alarm.
RIC_RT_DISTRIBUTION_FAILED
, alarm.SeverityMajor, "Some App data", "eth 0 1")
+ a := alarmer.NewAlarm(alarm.
E2_CONNECTION_PROBLEM
, alarm.SeverityMajor, "Some App data", "eth 0 1")
b, err := json.Marshal(&a)
if err != nil {
t.Errorf("Unexpected error %v", err)
b, err := json.Marshal(&a)
if err != nil {
t.Errorf("Unexpected error %v", err)
@@
-67,7
+67,7
@@
func TestRaiseAlarmRESTInterface(t *testing.T) {
}
func TestClearAlarmRESTInterface(t *testing.T) {
}
func TestClearAlarmRESTInterface(t *testing.T) {
- a := alarmer.NewAlarm(alarm.
RIC_RT_DISTRIBUTION_FAILED
, alarm.SeverityMajor, "Some App data", "eth 0 1")
+ a := alarmer.NewAlarm(alarm.
E2_CONNECTION_PROBLEM
, alarm.SeverityMajor, "Some App data", "eth 0 1")
b, err := json.Marshal(&a)
if err != nil {
t.Errorf("Unexpected error %v", err)
b, err := json.Marshal(&a)
if err != nil {
t.Errorf("Unexpected error %v", err)
@@
-99,5
+99,3
@@
func TestSymptomDataHandler(t *testing.T) {
assert.Equal(t, true, rr != nil)
assert.Equal(t, rr.Code, http.StatusOK)
}
assert.Equal(t, true, rr != nil)
assert.Equal(t, rr.Code, http.StatusOK)
}
-
-