Skip to content

Commit

Permalink
HSS event response fix (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-sidelnikov authored Jan 14, 2025
1 parent c5e793b commit 274cd40
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions acceptance/openstack/hss/v5/event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ dpkg -i hostguard.x86_64.deb
rm -f hostguard_setup_config.conf
rm -f hostguard.x86_64.deb`

func TestEventsList(t *testing.T) {
client, err := clients.NewHssClient()
th.AssertNoErr(t, err)
tools.PrintResource(t, client)
listResp, err := event.List(client, event.ListOpts{Category: "host"})
th.AssertNoErr(t, err)

tools.PrintResource(t, listResp)
}

func TestEventsLifecycle(t *testing.T) {
if os.Getenv("RUN_HSS_LIFECYCLE") == "" {
t.Skip("too slow to run in zuul")
Expand Down
2 changes: 1 addition & 1 deletion openstack/hss/v5/event/List.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ type EventResp struct {
// Remarks. This API is available only for handled alarms.
Handler string `json:"handler"`
// Supported processing operation
OperateAcceptList string `json:"operate_accept_list"`
OperateAcceptList []string `json:"operate_accept_list"`
// Operation details list (not displayed on the page)
OperateDetailList []OperateDetailList `json:"operate_detail_list"`
// Attack information, in JSON format.
Expand Down

0 comments on commit 274cd40

Please sign in to comment.