From 3d3307cfaf18079ca8e62e847004541728a9734a Mon Sep 17 00:00:00 2001 From: fabrizio-leoni Date: Fri, 28 Apr 2023 16:41:33 +0200 Subject: [PATCH] fix(Global Search): remove deprecated method getSupportedTypes (#253) Signed-off-by: Fabrizio Leoni --- globalsearchv2/global_search_v2.go | 111 +-------- .../global_search_v2_examples_test.go | 20 -- .../global_search_v2_integration_test.go | 18 -- globalsearchv2/global_search_v2_test.go | 217 ------------------ 4 files changed, 1 insertion(+), 365 deletions(-) diff --git a/globalsearchv2/global_search_v2.go b/globalsearchv2/global_search_v2.go index 2782ce74..304a1465 100644 --- a/globalsearchv2/global_search_v2.go +++ b/globalsearchv2/global_search_v2.go @@ -15,7 +15,7 @@ */ /* - * IBM OpenAPI SDK Code Generator Version: 3.67.0-df2073a1-20230222-221157 + * IBM OpenAPI SDK Code Generator Version: 3.70.0-7df966bf-20230419-195904 */ // Package globalsearchv2 : Operations and models for the GlobalSearchV2 service @@ -220,9 +220,6 @@ func (globalSearch *GlobalSearchV2) SearchWithContext(ctx context.Context, searc if searchOptions.AccountID != nil { builder.AddQuery("account_id", fmt.Sprint(*searchOptions.AccountID)) } - if searchOptions.Boundary != nil { - builder.AddQuery("boundary", fmt.Sprint(*searchOptions.Boundary)) - } if searchOptions.Limit != nil { builder.AddQuery("limit", fmt.Sprint(*searchOptions.Limit)) } @@ -284,79 +281,6 @@ func (globalSearch *GlobalSearchV2) SearchWithContext(ctx context.Context, searc return } -// GetSupportedTypes : DEPRECATED. Get all GhoST indexes -// Retrieves a list of all GhoST indexes. -// Deprecated: this method is deprecated and may be removed in a future release. -func (globalSearch *GlobalSearchV2) GetSupportedTypes(getSupportedTypesOptions *GetSupportedTypesOptions) (result *SupportedTypesList, response *core.DetailedResponse, err error) { - return globalSearch.GetSupportedTypesWithContext(context.Background(), getSupportedTypesOptions) -} - -// GetSupportedTypesWithContext is an alternate form of the GetSupportedTypes method which supports a Context parameter -// Deprecated: this method is deprecated and may be removed in a future release. -func (globalSearch *GlobalSearchV2) GetSupportedTypesWithContext(ctx context.Context, getSupportedTypesOptions *GetSupportedTypesOptions) (result *SupportedTypesList, response *core.DetailedResponse, err error) { - core.GetLogger().Warn("A deprecated operation has been invoked: GetSupportedTypes") - err = core.ValidateStruct(getSupportedTypesOptions, "getSupportedTypesOptions") - if err != nil { - return - } - - builder := core.NewRequestBuilder(core.GET) - builder = builder.WithContext(ctx) - builder.EnableGzipCompression = globalSearch.GetEnableGzipCompression() - _, err = builder.ResolveRequestURL(globalSearch.Service.Options.URL, `/v2/resources/supported_types`, nil) - if err != nil { - return - } - - for headerName, headerValue := range getSupportedTypesOptions.Headers { - builder.AddHeader(headerName, headerValue) - } - - sdkHeaders := common.GetSdkHeaders("global_search", "V2", "GetSupportedTypes") - for headerName, headerValue := range sdkHeaders { - builder.AddHeader(headerName, headerValue) - } - builder.AddHeader("Accept", "application/json") - - request, err := builder.Build() - if err != nil { - return - } - - var rawResponse map[string]json.RawMessage - response, err = globalSearch.Service.Request(request, &rawResponse) - if err != nil { - return - } - if rawResponse != nil { - err = core.UnmarshalModel(rawResponse, "", &result, UnmarshalSupportedTypesList) - if err != nil { - return - } - response.Result = result - } - - return -} - -// GetSupportedTypesOptions : The GetSupportedTypes options. -type GetSupportedTypesOptions struct { - - // Allows users to set headers on API requests - Headers map[string]string -} - -// NewGetSupportedTypesOptions : Instantiate GetSupportedTypesOptions -func (*GlobalSearchV2) NewGetSupportedTypesOptions() *GetSupportedTypesOptions { - return &GetSupportedTypesOptions{} -} - -// SetHeaders : Allow user to set Headers -func (options *GetSupportedTypesOptions) SetHeaders(param map[string]string) *GetSupportedTypesOptions { - options.Headers = param - return options -} - // ResultItem : A resource returned in a search result, which is identified by its `crn`. It contains other properties that depend on // the resource type. type ResultItem struct { @@ -481,9 +405,6 @@ type SearchOptions struct { // The account ID to filter resources. AccountID *string `json:"account_id,omitempty"` - // The boundary where the search performs. This parameter must be set only for the cross-account searches. - Boundary *string `json:"boundary,omitempty"` - // The maximum number of hits to return. Defaults to 10. Limit *int64 `json:"limit,omitempty"` @@ -522,13 +443,6 @@ type SearchOptions struct { Headers map[string]string } -// Constants associated with the SearchOptions.Boundary property. -// The boundary where the search performs. This parameter must be set only for the cross-account searches. -const ( - SearchOptionsBoundaryGlobalConst = "global" - SearchOptionsBoundaryUsRegulatedConst = "us-regulated" -) - // Constants associated with the SearchOptions.IsDeleted property. // Determines if deleted documents should be included in result set or not. Possible values are false (default), true or // any. If false, only existing documents are returned; if true, only deleted documents are returned; If any, both @@ -603,12 +517,6 @@ func (_options *SearchOptions) SetAccountID(accountID string) *SearchOptions { return _options } -// SetBoundary : Allow user to set Boundary -func (_options *SearchOptions) SetBoundary(boundary string) *SearchOptions { - _options.Boundary = core.StringPtr(boundary) - return _options -} - // SetLimit : Allow user to set Limit func (_options *SearchOptions) SetLimit(limit int64) *SearchOptions { _options.Limit = core.Int64Ptr(limit) @@ -662,20 +570,3 @@ func (options *SearchOptions) SetHeaders(param map[string]string) *SearchOptions options.Headers = param return options } - -// SupportedTypesList : A list of all GhoST indexes. -type SupportedTypesList struct { - // A list of all GhoST indexes. - SupportedTypes []string `json:"supported_types,omitempty"` -} - -// UnmarshalSupportedTypesList unmarshals an instance of SupportedTypesList from the specified map of raw messages. -func UnmarshalSupportedTypesList(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(SupportedTypesList) - err = core.UnmarshalPrimitive(m, "supported_types", &obj.SupportedTypes) - if err != nil { - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} diff --git a/globalsearchv2/global_search_v2_examples_test.go b/globalsearchv2/global_search_v2_examples_test.go index c6bcd27b..6f6bbf9e 100644 --- a/globalsearchv2/global_search_v2_examples_test.go +++ b/globalsearchv2/global_search_v2_examples_test.go @@ -157,25 +157,5 @@ var _ = Describe(`GlobalSearchV2 Examples Tests`, func() { Expect(scanResult).ToNot(BeNil()) }) - It(`GetSupportedTypes request example`, func() { - fmt.Println("\nGetSupportedTypes() result:") - // begin-get_supported_types - - getSupportedTypesOptions := globalSearchService.NewGetSupportedTypesOptions() - - supportedTypesList, response, err := globalSearchService.GetSupportedTypes(getSupportedTypesOptions) - if err != nil { - panic(err) - } - b, _ := json.MarshalIndent(supportedTypesList, "", " ") - fmt.Println(string(b)) - - // end-get_supported_types - - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(supportedTypesList).ToNot(BeNil()) - - }) }) }) diff --git a/globalsearchv2/global_search_v2_integration_test.go b/globalsearchv2/global_search_v2_integration_test.go index df59a29f..727c659d 100644 --- a/globalsearchv2/global_search_v2_integration_test.go +++ b/globalsearchv2/global_search_v2_integration_test.go @@ -138,22 +138,4 @@ var _ = Describe(`GlobalSearchV2 Integration Tests`, func() { fmt.Fprintf(GinkgoWriter, "Total results returned by Search(): %d\n", len(searchResults)) }) }) - - Describe(`GetSupportedTypes - Get all supported resource types`, func() { - BeforeEach(func() { - shouldSkipTest() - }) - It(`GetSupportedTypes(getSupportedTypesOptions *GetSupportedTypesOptions)`, func() { - - getSupportedTypesOptions := &globalsearchv2.GetSupportedTypesOptions{} - - supportedTypesList, response, err := globalSearchService.GetSupportedTypes(getSupportedTypesOptions) - - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(supportedTypesList).ToNot(BeNil()) - - fmt.Fprintf(GinkgoWriter, "GetSupportedTypes() result:\n%s\n", common.ToJSON(supportedTypesList)) - }) - }) }) diff --git a/globalsearchv2/global_search_v2_test.go b/globalsearchv2/global_search_v2_test.go index 9e3cbba7..5691a18d 100644 --- a/globalsearchv2/global_search_v2_test.go +++ b/globalsearchv2/global_search_v2_test.go @@ -176,7 +176,6 @@ var _ = Describe(`GlobalSearchV2`, func() { Expect(req.Header["Transaction-Id"]).ToNot(BeNil()) Expect(req.Header["Transaction-Id"][0]).To(Equal(fmt.Sprintf("%v", "testString"))) Expect(req.URL.Query()["account_id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["boundary"]).To(Equal([]string{"global"})) Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(1))})) Expect(req.URL.Query()["timeout"]).To(Equal([]string{fmt.Sprint(int64(0))})) Expect(req.URL.Query()["is_deleted"]).To(Equal([]string{"false"})) @@ -204,7 +203,6 @@ var _ = Describe(`GlobalSearchV2`, func() { searchOptionsModel.SearchCursor = core.StringPtr("testString") searchOptionsModel.TransactionID = core.StringPtr("testString") searchOptionsModel.AccountID = core.StringPtr("testString") - searchOptionsModel.Boundary = core.StringPtr("global") searchOptionsModel.Limit = core.Int64Ptr(int64(1)) searchOptionsModel.Timeout = core.Int64Ptr(int64(0)) searchOptionsModel.Sort = []string{"testString"} @@ -262,7 +260,6 @@ var _ = Describe(`GlobalSearchV2`, func() { Expect(req.Header["Transaction-Id"]).ToNot(BeNil()) Expect(req.Header["Transaction-Id"][0]).To(Equal(fmt.Sprintf("%v", "testString"))) Expect(req.URL.Query()["account_id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["boundary"]).To(Equal([]string{"global"})) Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(1))})) Expect(req.URL.Query()["timeout"]).To(Equal([]string{fmt.Sprint(int64(0))})) Expect(req.URL.Query()["is_deleted"]).To(Equal([]string{"false"})) @@ -295,7 +292,6 @@ var _ = Describe(`GlobalSearchV2`, func() { searchOptionsModel.SearchCursor = core.StringPtr("testString") searchOptionsModel.TransactionID = core.StringPtr("testString") searchOptionsModel.AccountID = core.StringPtr("testString") - searchOptionsModel.Boundary = core.StringPtr("global") searchOptionsModel.Limit = core.Int64Ptr(int64(1)) searchOptionsModel.Timeout = core.Int64Ptr(int64(0)) searchOptionsModel.Sort = []string{"testString"} @@ -359,7 +355,6 @@ var _ = Describe(`GlobalSearchV2`, func() { Expect(req.Header["Transaction-Id"]).ToNot(BeNil()) Expect(req.Header["Transaction-Id"][0]).To(Equal(fmt.Sprintf("%v", "testString"))) Expect(req.URL.Query()["account_id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["boundary"]).To(Equal([]string{"global"})) Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(1))})) Expect(req.URL.Query()["timeout"]).To(Equal([]string{fmt.Sprint(int64(0))})) Expect(req.URL.Query()["is_deleted"]).To(Equal([]string{"false"})) @@ -394,7 +389,6 @@ var _ = Describe(`GlobalSearchV2`, func() { searchOptionsModel.SearchCursor = core.StringPtr("testString") searchOptionsModel.TransactionID = core.StringPtr("testString") searchOptionsModel.AccountID = core.StringPtr("testString") - searchOptionsModel.Boundary = core.StringPtr("global") searchOptionsModel.Limit = core.Int64Ptr(int64(1)) searchOptionsModel.Timeout = core.Int64Ptr(int64(0)) searchOptionsModel.Sort = []string{"testString"} @@ -427,7 +421,6 @@ var _ = Describe(`GlobalSearchV2`, func() { searchOptionsModel.SearchCursor = core.StringPtr("testString") searchOptionsModel.TransactionID = core.StringPtr("testString") searchOptionsModel.AccountID = core.StringPtr("testString") - searchOptionsModel.Boundary = core.StringPtr("global") searchOptionsModel.Limit = core.Int64Ptr(int64(1)) searchOptionsModel.Timeout = core.Int64Ptr(int64(0)) searchOptionsModel.Sort = []string{"testString"} @@ -474,7 +467,6 @@ var _ = Describe(`GlobalSearchV2`, func() { searchOptionsModel.SearchCursor = core.StringPtr("testString") searchOptionsModel.TransactionID = core.StringPtr("testString") searchOptionsModel.AccountID = core.StringPtr("testString") - searchOptionsModel.Boundary = core.StringPtr("global") searchOptionsModel.Limit = core.Int64Ptr(int64(1)) searchOptionsModel.Timeout = core.Int64Ptr(int64(0)) searchOptionsModel.Sort = []string{"testString"} @@ -498,219 +490,12 @@ var _ = Describe(`GlobalSearchV2`, func() { }) }) }) - Describe(`GetSupportedTypes(getSupportedTypesOptions *GetSupportedTypesOptions) - Operation response error`, func() { - getSupportedTypesPath := "/v2/resources/supported_types" - Context(`Using mock server endpoint with invalid JSON response`, func() { - BeforeEach(func() { - testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { - defer GinkgoRecover() - - // Verify the contents of the request - Expect(req.URL.EscapedPath()).To(Equal(getSupportedTypesPath)) - Expect(req.Method).To(Equal("GET")) - res.Header().Set("Content-type", "application/json") - res.WriteHeader(200) - fmt.Fprint(res, `} this is not valid json {`) - })) - }) - It(`Invoke GetSupportedTypes with error: Operation response processing error`, func() { - globalSearchService, serviceErr := globalsearchv2.NewGlobalSearchV2(&globalsearchv2.GlobalSearchV2Options{ - URL: testServer.URL, - Authenticator: &core.NoAuthAuthenticator{}, - }) - Expect(serviceErr).To(BeNil()) - Expect(globalSearchService).ToNot(BeNil()) - - // Construct an instance of the GetSupportedTypesOptions model - getSupportedTypesOptionsModel := new(globalsearchv2.GetSupportedTypesOptions) - getSupportedTypesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} - // Expect response parsing to fail since we are receiving a text/plain response - result, response, operationErr := globalSearchService.GetSupportedTypes(getSupportedTypesOptionsModel) - Expect(operationErr).ToNot(BeNil()) - Expect(response).ToNot(BeNil()) - Expect(result).To(BeNil()) - - // Enable retries and test again - globalSearchService.EnableRetries(0, 0) - result, response, operationErr = globalSearchService.GetSupportedTypes(getSupportedTypesOptionsModel) - Expect(operationErr).ToNot(BeNil()) - Expect(response).ToNot(BeNil()) - Expect(result).To(BeNil()) - }) - AfterEach(func() { - testServer.Close() - }) - }) - }) - Describe(`GetSupportedTypes(getSupportedTypesOptions *GetSupportedTypesOptions)`, func() { - getSupportedTypesPath := "/v2/resources/supported_types" - Context(`Using mock server endpoint with timeout`, func() { - BeforeEach(func() { - testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { - defer GinkgoRecover() - - // Verify the contents of the request - Expect(req.URL.EscapedPath()).To(Equal(getSupportedTypesPath)) - Expect(req.Method).To(Equal("GET")) - - // Sleep a short time to support a timeout test - time.Sleep(100 * time.Millisecond) - - // Set mock response - res.Header().Set("Content-type", "application/json") - res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"supported_types": ["SupportedTypes"]}`) - })) - }) - It(`Invoke GetSupportedTypes successfully with retries`, func() { - globalSearchService, serviceErr := globalsearchv2.NewGlobalSearchV2(&globalsearchv2.GlobalSearchV2Options{ - URL: testServer.URL, - Authenticator: &core.NoAuthAuthenticator{}, - }) - Expect(serviceErr).To(BeNil()) - Expect(globalSearchService).ToNot(BeNil()) - globalSearchService.EnableRetries(0, 0) - - // Construct an instance of the GetSupportedTypesOptions model - getSupportedTypesOptionsModel := new(globalsearchv2.GetSupportedTypesOptions) - getSupportedTypesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} - - // Invoke operation with a Context to test a timeout error - ctx, cancelFunc := context.WithTimeout(context.Background(), 80*time.Millisecond) - defer cancelFunc() - _, _, operationErr := globalSearchService.GetSupportedTypesWithContext(ctx, getSupportedTypesOptionsModel) - Expect(operationErr).ToNot(BeNil()) - Expect(operationErr.Error()).To(ContainSubstring("deadline exceeded")) - - // Disable retries and test again - globalSearchService.DisableRetries() - result, response, operationErr := globalSearchService.GetSupportedTypes(getSupportedTypesOptionsModel) - Expect(operationErr).To(BeNil()) - Expect(response).ToNot(BeNil()) - Expect(result).ToNot(BeNil()) - - // Re-test the timeout error with retries disabled - ctx, cancelFunc2 := context.WithTimeout(context.Background(), 80*time.Millisecond) - defer cancelFunc2() - _, _, operationErr = globalSearchService.GetSupportedTypesWithContext(ctx, getSupportedTypesOptionsModel) - Expect(operationErr).ToNot(BeNil()) - Expect(operationErr.Error()).To(ContainSubstring("deadline exceeded")) - }) - AfterEach(func() { - testServer.Close() - }) - }) - Context(`Using mock server endpoint`, func() { - BeforeEach(func() { - testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { - defer GinkgoRecover() - - // Verify the contents of the request - Expect(req.URL.EscapedPath()).To(Equal(getSupportedTypesPath)) - Expect(req.Method).To(Equal("GET")) - - // Set mock response - res.Header().Set("Content-type", "application/json") - res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"supported_types": ["SupportedTypes"]}`) - })) - }) - It(`Invoke GetSupportedTypes successfully`, func() { - globalSearchService, serviceErr := globalsearchv2.NewGlobalSearchV2(&globalsearchv2.GlobalSearchV2Options{ - URL: testServer.URL, - Authenticator: &core.NoAuthAuthenticator{}, - }) - Expect(serviceErr).To(BeNil()) - Expect(globalSearchService).ToNot(BeNil()) - - // Invoke operation with nil options model (negative test) - result, response, operationErr := globalSearchService.GetSupportedTypes(nil) - Expect(operationErr).NotTo(BeNil()) - Expect(response).To(BeNil()) - Expect(result).To(BeNil()) - - // Construct an instance of the GetSupportedTypesOptions model - getSupportedTypesOptionsModel := new(globalsearchv2.GetSupportedTypesOptions) - getSupportedTypesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} - - // Invoke operation with valid options model (positive test) - result, response, operationErr = globalSearchService.GetSupportedTypes(getSupportedTypesOptionsModel) - Expect(operationErr).To(BeNil()) - Expect(response).ToNot(BeNil()) - Expect(result).ToNot(BeNil()) - - }) - It(`Invoke GetSupportedTypes with error: Operation request error`, func() { - globalSearchService, serviceErr := globalsearchv2.NewGlobalSearchV2(&globalsearchv2.GlobalSearchV2Options{ - URL: testServer.URL, - Authenticator: &core.NoAuthAuthenticator{}, - }) - Expect(serviceErr).To(BeNil()) - Expect(globalSearchService).ToNot(BeNil()) - - // Construct an instance of the GetSupportedTypesOptions model - getSupportedTypesOptionsModel := new(globalsearchv2.GetSupportedTypesOptions) - getSupportedTypesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} - // Invoke operation with empty URL (negative test) - err := globalSearchService.SetServiceURL("") - Expect(err).To(BeNil()) - result, response, operationErr := globalSearchService.GetSupportedTypes(getSupportedTypesOptionsModel) - Expect(operationErr).ToNot(BeNil()) - Expect(operationErr.Error()).To(ContainSubstring(core.ERRORMSG_SERVICE_URL_MISSING)) - Expect(response).To(BeNil()) - Expect(result).To(BeNil()) - }) - AfterEach(func() { - testServer.Close() - }) - }) - Context(`Using mock server endpoint with missing response body`, func() { - BeforeEach(func() { - testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { - defer GinkgoRecover() - - // Set success status code with no respoonse body - res.WriteHeader(200) - })) - }) - It(`Invoke GetSupportedTypes successfully`, func() { - globalSearchService, serviceErr := globalsearchv2.NewGlobalSearchV2(&globalsearchv2.GlobalSearchV2Options{ - URL: testServer.URL, - Authenticator: &core.NoAuthAuthenticator{}, - }) - Expect(serviceErr).To(BeNil()) - Expect(globalSearchService).ToNot(BeNil()) - - // Construct an instance of the GetSupportedTypesOptions model - getSupportedTypesOptionsModel := new(globalsearchv2.GetSupportedTypesOptions) - getSupportedTypesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} - - // Invoke operation - result, response, operationErr := globalSearchService.GetSupportedTypes(getSupportedTypesOptionsModel) - Expect(operationErr).To(BeNil()) - Expect(response).ToNot(BeNil()) - - // Verify a nil result - Expect(result).To(BeNil()) - }) - AfterEach(func() { - testServer.Close() - }) - }) - }) Describe(`Model constructor tests`, func() { Context(`Using a service client instance`, func() { globalSearchService, _ := globalsearchv2.NewGlobalSearchV2(&globalsearchv2.GlobalSearchV2Options{ URL: "http://globalsearchv2modelgenerator.com", Authenticator: &core.NoAuthAuthenticator{}, }) - It(`Invoke NewGetSupportedTypesOptions successfully`, func() { - // Construct an instance of the GetSupportedTypesOptions model - getSupportedTypesOptionsModel := globalSearchService.NewGetSupportedTypesOptions() - getSupportedTypesOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) - Expect(getSupportedTypesOptionsModel).ToNot(BeNil()) - Expect(getSupportedTypesOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) - }) It(`Invoke NewSearchOptions successfully`, func() { // Construct an instance of the SearchOptions model searchOptionsModel := globalSearchService.NewSearchOptions() @@ -719,7 +504,6 @@ var _ = Describe(`GlobalSearchV2`, func() { searchOptionsModel.SetSearchCursor("testString") searchOptionsModel.SetTransactionID("testString") searchOptionsModel.SetAccountID("testString") - searchOptionsModel.SetBoundary("global") searchOptionsModel.SetLimit(int64(1)) searchOptionsModel.SetTimeout(int64(0)) searchOptionsModel.SetSort([]string{"testString"}) @@ -735,7 +519,6 @@ var _ = Describe(`GlobalSearchV2`, func() { Expect(searchOptionsModel.SearchCursor).To(Equal(core.StringPtr("testString"))) Expect(searchOptionsModel.TransactionID).To(Equal(core.StringPtr("testString"))) Expect(searchOptionsModel.AccountID).To(Equal(core.StringPtr("testString"))) - Expect(searchOptionsModel.Boundary).To(Equal(core.StringPtr("global"))) Expect(searchOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(1)))) Expect(searchOptionsModel.Timeout).To(Equal(core.Int64Ptr(int64(0)))) Expect(searchOptionsModel.Sort).To(Equal([]string{"testString"}))