Skip to content

Commit

Permalink
Add proper error codes for list rule test
Browse files Browse the repository at this point in the history
Signed-off-by: Cameron Davis <[email protected]>
  • Loading branch information
cam-d12 committed Oct 12, 2022
1 parent 267c9b1 commit 6ff9d10
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -689,17 +689,17 @@ var _ = Describe(`ContextBasedRestrictionsV1 Integration Tests`, func() {
Expect(rule).ToNot(BeNil())

//list rule with service_group_id
It(`ListRules(listRulesOptions *ListRulesOptions) with service_group_id (201)`, func() {
It(`ListRules(listRulesOptions *ListRulesOptions) with service_group_id (200)`, func() {
listRulesOptions := &contextbasedrestrictionsv1.ListRulesOptions{
AccountID: core.StringPtr(InvalidID),
TransactionID: getTransactionID(),
}

ruleList, response, err := contextBasedRestrictionsService.ListRules(listRulesOptions)

Expect(err).To(Not(BeNil()))
Expect(response.StatusCode).To(Equal(201))
Expect(ruleList).To(BeNil())
Expect(err).To(BeNil())
Expect(response.StatusCode).To(Equal(200))
Expect(ruleList).ToNot(BeNil())
})

// cleanup
Expand Down

0 comments on commit 6ff9d10

Please sign in to comment.