From 6ff9d102313fedbb9c69251f1582b7c7aa337528 Mon Sep 17 00:00:00 2001 From: Cameron Davis Date: Wed, 12 Oct 2022 11:35:23 -0500 Subject: [PATCH] Add proper error codes for list rule test Signed-off-by: Cameron Davis --- .../context_based_restrictions_v1_integration_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contextbasedrestrictionsv1/context_based_restrictions_v1_integration_test.go b/contextbasedrestrictionsv1/context_based_restrictions_v1_integration_test.go index 36c99d9d..8801142b 100644 --- a/contextbasedrestrictionsv1/context_based_restrictions_v1_integration_test.go +++ b/contextbasedrestrictionsv1/context_based_restrictions_v1_integration_test.go @@ -689,7 +689,7 @@ 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(), @@ -697,9 +697,9 @@ var _ = Describe(`ContextBasedRestrictionsV1 Integration Tests`, func() { 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