diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..176a458 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 144401b..5f16d22 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -10,7 +10,7 @@ jobs: test: strategy: matrix: - go-version: [1.19.x] + go-version: [1.21.x] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: @@ -31,7 +31,7 @@ jobs: if: success() uses: actions/setup-go@v1 with: - go-version: 1.19.x + go-version: 1.21.x - name: Checkout code uses: actions/checkout@v1 - name: Calc coverage @@ -57,10 +57,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set up Go 1.19 + - name: Set up Go 1.21 uses: actions/setup-go@v1 with: - go-version: 1.19 + go-version: 1.21 id: go - name: Check out code into the Go module directory diff --git a/.gitignore b/.gitignore index b202995..c446eed 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,6 @@ _testmain.go *.test *.prof *.DS_STORE + +# Git vendor things +vendor/ diff --git a/Makefile b/Makefile index 1b1f602..5812bce 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,11 @@ -GO_CMD=go -GO_BUILD=$(GO_CMD) build -GO_DEPS=$(GO_CMD) get -d -v -GO_DEPS_UPDATE=$(GO_DEPS) -u -GO_FMT=gofmt -GO_INSTALL=$(GO_CMD) install -GO_RUN=$(GO_CMD) run -GO_TEST=$(GO_CMD) test -TOOLS=$(GO_RUN) tools/main.go tools/loadmeta.go tools/common.go tools/version.go + +TOOLS=go run ./tools VETARGS?=-all COVERPROFILE=coverage.out PACKAGE_LIST := $$(go list ./... | grep -v '/vendor/') -.PHONY: all alpha build deps fmt fmtcheck generate install release test coverage test_deps update_deps version vet +.PHONY: all alpha build deps fmt fmtcheck generate release test coverage version vet all: build @@ -23,26 +16,23 @@ alpha: git push build: fmtcheck vet deps - $(GO_BUILD) ./... + go build ./... deps: - $(GO_DEPS) ./... + go mod vendor fmt: - @$(GO_FMT) -w `find . -name '*.go' | grep -v vendor` + gofmt -w `find . -name '*.go' | grep -v vendor` fmtcheck: - @fmt_list=$$($(GO_FMT) -e -l `find . -name '*.go' | grep -v vendor`) && \ + @fmt_list=$$(gofmt -e -l `find . -name '*.go' | grep -v vendor`) && \ [ -z $${fmt_list} ] || \ (echo "gofmt needs to be run on the following files:" \ && echo "$${fmt_list}" && \ echo "You can run 'make fmt' to format code" && false) generate: - @$(TOOLS) generate - -install: fmtcheck deps - @$(GO_INSTALL) ./... + go run ./tools generate release: build @NEW_VERSION=$$($(TOOLS) version --bump patch) && \ @@ -52,20 +42,14 @@ release: build git push && \ git push origin $${NEW_VERSION} -test: fmtcheck vet test_deps - @$(GO_TEST) $(PACKAGE_LIST) -timeout=30s -parallel=4 +test: fmtcheck vet deps + go test $(PACKAGE_LIST) -timeout=30s coverage: @echo "Running unit tests. Cover profile saved to $(COVERPROFILE) ...\n" - @$(GO_TEST) $(PACKAGE_LIST) -timeout=30s -parallel=4 -coverprofile=$(COVERPROFILE) + go test $(PACKAGE_LIST) -timeout=30s -coverprofile=$(COVERPROFILE) @echo "\nBuilding function coverage report...\n" - @$(GO_CMD) tool cover -func=$(COVERPROFILE) - -test_deps: - $(GO_DEPS) -t ./... - -update_deps: - $(GO_DEPS_UPDATE) ./... + go tool cover -func=$(COVERPROFILE) version: @$(TOOLS) version diff --git a/README.md b/README.md index aaefb69..b387995 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@ # softlayer-go -[![Build Status](https://travis-ci.org/softlayer/softlayer-go.svg?branch=master)](https://travis-ci.org/softlayer/softlayer-go) +[![Build Status](hhttps://github.com/softlayer/softlayer-go/actions/workflows/go/badge.svg?branch=master)](https://github.com/softlayer/softlayer-go/actions/workflows/go.yml) [![GoDoc](https://godoc.org/github.com/softlayer/softlayer-go?status.svg)](https://godoc.org/github.com/softlayer/softlayer-go) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0) -![Tests](https://github.com/softlayer/softlayer-go/workflows/Tests/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/softlayer/softlayer-go/badge.svg?branch=master)](https://coveralls.io/github/softlayer/softlayer-go?branch=master) The Official and Complete SoftLayer API Client for Golang (the Go programming language). @@ -326,6 +325,23 @@ func main() { } ``` +## Running Examples + +The [Examples](https://github.com/softlayer/softlayer-go/tree/master/examples) directory has a few rough examples scripts that can help you get started developing with this library. + +The Examples have their own modules since there are a few dependencies here not needed in the normal softlayer-go repo. +The following will get you started: + +```bash +cd examples +go mod vendor +go run main.go --help +``` + +The examples use [SPF13's Cobra Command](https://github.com/spf13/cobra) library to build little command examples, which should be easy enough to +expand upon if needed. The [SoftLayer-CLI](https://github.com/softlayer/softlayer-cli) project is also a good example of how to use the softlayer-go library. + + ## Development ### Setup @@ -379,10 +395,10 @@ make generate (manually) ```bash -go run tools/main.go tools/loadmeta.go tools/common.go tools/version.go generate +go run ./tools generate ``` ## Copyright -This software is Copyright (c) 2016 IBM Corp. See the bundled LICENSE file for more information. +This software is Copyright (c) 2016-2024 IBM Corp. See the bundled LICENSE file for more information. diff --git a/datatypes/abuse.go b/datatypes/abuse.go index 8cc82eb..76ced50 100644 --- a/datatypes/abuse.go +++ b/datatypes/abuse.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/account.go b/datatypes/account.go index d839a68..f7a07bc 100644 --- a/datatypes/account.go +++ b/datatypes/account.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes @@ -352,13 +345,6 @@ type Account struct { // A count of the DNS domains associated with an account. DomainCount *uint `json:"domainCount,omitempty" xmlrpc:"domainCount,omitempty"` - // A count of - DomainRegistrationCount *uint `json:"domainRegistrationCount,omitempty" xmlrpc:"domainRegistrationCount,omitempty"` - - // no documentation yet - // Deprecated: This function has been marked as deprecated. - DomainRegistrations []Dns_Domain_Registration `json:"domainRegistrations,omitempty" xmlrpc:"domainRegistrations,omitempty"` - // The DNS domains associated with an account. Domains []Dns_Domain `json:"domains,omitempty" xmlrpc:"domains,omitempty"` @@ -1267,9 +1253,11 @@ type Account struct { SubnetRegistrationDetailCount *uint `json:"subnetRegistrationDetailCount,omitempty" xmlrpc:"subnetRegistrationDetailCount,omitempty"` // no documentation yet + // Deprecated: This function has been marked as deprecated. SubnetRegistrationDetails []Account_Regional_Registry_Detail `json:"subnetRegistrationDetails,omitempty" xmlrpc:"subnetRegistrationDetails,omitempty"` // no documentation yet + // Deprecated: This function has been marked as deprecated. SubnetRegistrations []Network_Subnet_Registration `json:"subnetRegistrations,omitempty" xmlrpc:"subnetRegistrations,omitempty"` // All network subnets associated with an account. @@ -2616,10 +2604,12 @@ type Account_ProofOfConcept_Funding_Type struct { KeyName *string `json:"keyName,omitempty" xmlrpc:"keyName,omitempty"` } +// The subnet registration detail type has been deprecated. type Account_Regional_Registry_Detail struct { Entity - // The account that this detail object belongs to. + // [Deprecated] The account that this detail object belongs to. + // Deprecated: This function has been marked as deprecated. Account *Account `json:"account,omitempty" xmlrpc:"account,omitempty"` // The detail object's associated [[SoftLayer_Account|account]] id @@ -2628,16 +2618,18 @@ type Account_Regional_Registry_Detail struct { // The date and time the detail object was created CreateDate *Time `json:"createDate,omitempty" xmlrpc:"createDate,omitempty"` - // A count of references to the [[SoftLayer_Network_Subnet_Registration|registration objects]] that consume this detail object. + // A count of [Deprecated] References to the [[SoftLayer_Network_Subnet_Registration|registration objects]] that consume this detail object. DetailCount *uint `json:"detailCount,omitempty" xmlrpc:"detailCount,omitempty"` - // The associated type of this detail object. + // [Deprecated] The associated type of this detail object. + // Deprecated: This function has been marked as deprecated. DetailType *Account_Regional_Registry_Detail_Type `json:"detailType,omitempty" xmlrpc:"detailType,omitempty"` // The detail object's associated [[SoftLayer_Account_Regional_Registry_Detail_Type|type]] id DetailTypeId *int `json:"detailTypeId,omitempty" xmlrpc:"detailTypeId,omitempty"` - // References to the [[SoftLayer_Network_Subnet_Registration|registration objects]] that consume this detail object. + // [Deprecated] References to the [[SoftLayer_Network_Subnet_Registration|registration objects]] that consume this detail object. + // Deprecated: This function has been marked as deprecated. Details []Network_Subnet_Registration_Details `json:"details,omitempty" xmlrpc:"details,omitempty"` // Unique ID of the detail object @@ -2646,19 +2638,23 @@ type Account_Regional_Registry_Detail struct { // The date and time the detail object was last modified ModifyDate *Time `json:"modifyDate,omitempty" xmlrpc:"modifyDate,omitempty"` - // The individual properties that define this detail object's values. + // [Deprecated] The individual properties that define this detail object's values. + // Deprecated: This function has been marked as deprecated. Properties []Account_Regional_Registry_Detail_Property `json:"properties,omitempty" xmlrpc:"properties,omitempty"` - // A count of the individual properties that define this detail object's values. + // A count of [Deprecated] The individual properties that define this detail object's values. PropertyCount *uint `json:"propertyCount,omitempty" xmlrpc:"propertyCount,omitempty"` - // The associated RWhois handle of this detail object. Used only when detailed reassignments are necessary. + // [Deprecated] The associated RWhois handle of this detail object. Used only when detailed reassignments are necessary. + // Deprecated: This function has been marked as deprecated. RegionalInternetRegistryHandle *Account_Rwhois_Handle `json:"regionalInternetRegistryHandle,omitempty" xmlrpc:"regionalInternetRegistryHandle,omitempty"` // The detail object's associated [[SoftLayer_Account_Rwhois_Handle|RIR handle]] id RegionalInternetRegistryHandleId *int `json:"regionalInternetRegistryHandleId,omitempty" xmlrpc:"regionalInternetRegistryHandleId,omitempty"` } +// The subnet registration detail property type has been deprecated. +// // Subnet registration properties are used to define various attributes of the [[SoftLayer_Account_Regional_Registry_Detail|detail objects]]. These properties are defined by the [[SoftLayer_Account_Regional_Registry_Detail_Property_Type]] objects, which describe the available value formats. type Account_Regional_Registry_Detail_Property struct { Entity @@ -2666,7 +2662,8 @@ type Account_Regional_Registry_Detail_Property struct { // no documentation yet CreateDate *Time `json:"createDate,omitempty" xmlrpc:"createDate,omitempty"` - // The [[SoftLayer_Account_Regional_Registry_Detail]] object this property belongs to + // [Deprecated] The [[SoftLayer_Account_Regional_Registry_Detail]] object this property belongs to + // Deprecated: This function has been marked as deprecated. Detail *Account_Regional_Registry_Detail `json:"detail,omitempty" xmlrpc:"detail,omitempty"` // Unique ID of the property object @@ -2675,7 +2672,8 @@ type Account_Regional_Registry_Detail_Property struct { // no documentation yet ModifyDate *Time `json:"modifyDate,omitempty" xmlrpc:"modifyDate,omitempty"` - // The [[SoftLayer_Account_Regional_Registry_Detail_Property_Type]] object this property belongs to + // [Deprecated] The [[SoftLayer_Account_Regional_Registry_Detail_Property_Type]] object this property belongs to + // Deprecated: This function has been marked as deprecated. PropertyType *Account_Regional_Registry_Detail_Property_Type `json:"propertyType,omitempty" xmlrpc:"propertyType,omitempty"` // The numeric ID of the related [[SoftLayer_Account_Regional_Registry_Detail_Property_Type|property type object]] @@ -2691,6 +2689,8 @@ type Account_Regional_Registry_Detail_Property struct { Value *string `json:"value,omitempty" xmlrpc:"value,omitempty"` } +// The subnet registration detail property type type has been deprecated. +// // Subnet Registration Detail Property Type objects describe the nature of a [[SoftLayer_Account_Regional_Registry_Detail_Property]] object. These types use [http://php.net/pcre.pattern.php Perl-Compatible Regular Expressions] to validate the value of a property object. type Account_Regional_Registry_Detail_Property_Type struct { Entity @@ -2714,6 +2714,8 @@ type Account_Regional_Registry_Detail_Property_Type struct { ValueExpression *string `json:"valueExpression,omitempty" xmlrpc:"valueExpression,omitempty"` } +// The subnet registration detail type type has been deprecated. +// // Subnet Registration Detail Type objects describe the nature of a [[SoftLayer_Account_Regional_Registry_Detail]] object. // // The standard values for these objects are as follows: @@ -2736,6 +2738,8 @@ type Account_Regional_Registry_Detail_Type struct { Name *string `json:"name,omitempty" xmlrpc:"name,omitempty"` } +// The subnet registration default person detail type has been deprecated. +// // The SoftLayer_Account_Regional_Registry_Detail_Version4_Person_Default data type contains general information relating to a single SoftLayer RIR account. RIR account information in this type such as names, addresses, and phone numbers are assigned to the registry only and not to users belonging to the account. type Account_Regional_Registry_Detail_Version4_Person_Default struct { Account_Regional_Registry_Detail @@ -2809,11 +2813,14 @@ type Account_Reports_Request struct { UsrRecordId *int `json:"usrRecordId,omitempty" xmlrpc:"usrRecordId,omitempty"` } +// The subnet registration handle type has been deprecated. +// // Provides a means of tracking handle identifiers at the various regional internet registries (RIRs). These objects are used by the [[SoftLayer_Network_Subnet_Registration (type)|SoftLayer_Network_Subnet_Registration]] objects to identify a customer or organization when a subnet is registered. type Account_Rwhois_Handle struct { Entity - // The account that this handle belongs to. + // [Deprecated] The account that this handle belongs to. + // Deprecated: This function has been marked as deprecated. Account *Account `json:"account,omitempty" xmlrpc:"account,omitempty"` // The handle object's associated [[SoftLayer_Account|account]] id diff --git a/datatypes/auxiliary.go b/datatypes/auxiliary.go index 47fc6cc..cde07c5 100644 --- a/datatypes/auxiliary.go +++ b/datatypes/auxiliary.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/billing.go b/datatypes/billing.go index d549730..69f4af1 100644 --- a/datatypes/billing.go +++ b/datatypes/billing.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/bms.go b/datatypes/bms.go index 14815b3..6dc9e68 100644 --- a/datatypes/bms.go +++ b/datatypes/bms.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/brand.go b/datatypes/brand.go index 1b1e2c0..3d0321c 100644 --- a/datatypes/brand.go +++ b/datatypes/brand.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/business.go b/datatypes/business.go index 0d57545..c0df0cc 100644 --- a/datatypes/business.go +++ b/datatypes/business.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/catalyst.go b/datatypes/catalyst.go index 66ff15b..dec421a 100644 --- a/datatypes/catalyst.go +++ b/datatypes/catalyst.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/compliance.go b/datatypes/compliance.go index 0efbbf9..2287a6c 100644 --- a/datatypes/compliance.go +++ b/datatypes/compliance.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/configuration.go b/datatypes/configuration.go index f0d5e68..50b892d 100644 --- a/datatypes/configuration.go +++ b/datatypes/configuration.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/container.go b/datatypes/container.go index 41079aa..78942b9 100644 --- a/datatypes/container.go +++ b/datatypes/container.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes @@ -1372,233 +1365,6 @@ type Container_Disk_Image_Capture_Template_Volume_Partition struct { Name *string `json:"name,omitempty" xmlrpc:"name,omitempty"` } -// Contact information container for domain registration -type Container_Dns_Domain_Registration_Contact struct { - Entity - - // The street address of the contact. - Address1 *string `json:"address1,omitempty" xmlrpc:"address1,omitempty"` - - // The second line in the address of the contact. - Address2 *string `json:"address2,omitempty" xmlrpc:"address2,omitempty"` - - // The third line in the address of the contact. - Address3 *string `json:"address3,omitempty" xmlrpc:"address3,omitempty"` - - // The city of the contact. - City *string `json:"city,omitempty" xmlrpc:"city,omitempty"` - - // The 2-character Country code. (i.e. US) - Country *string `json:"country,omitempty" xmlrpc:"country,omitempty"` - - // The email address of the contact. - Email *string `json:"email,omitempty" xmlrpc:"email,omitempty"` - - // The fax number of the contact. - Fax *string `json:"fax,omitempty" xmlrpc:"fax,omitempty"` - - // The first name of the contact. - FirstName *string `json:"firstName,omitempty" xmlrpc:"firstName,omitempty"` - - // The last name of the contact. - LastName *string `json:"lastName,omitempty" xmlrpc:"lastName,omitempty"` - - // The organization name of the contact. - OrganizationName *string `json:"organizationName,omitempty" xmlrpc:"organizationName,omitempty"` - - // The phone number of the contact. - Phone *string `json:"phone,omitempty" xmlrpc:"phone,omitempty"` - - // The postal code of the contact. - PostalCode *string `json:"postalCode,omitempty" xmlrpc:"postalCode,omitempty"` - - // The state of the contact. - State *string `json:"state,omitempty" xmlrpc:"state,omitempty"` - - // The type of contact. The following are the valid types of contacts: - // * admin - // * owner - // * billing - // * tech - Type *string `json:"type,omitempty" xmlrpc:"type,omitempty"` -} - -// This container data type contains extended attributes information for a domain of country code TLD. -type Container_Dns_Domain_Registration_ExtendedAttribute struct { - Entity - - // Indicates if this is a child of another extended attribute. - ChildFlag *bool `json:"childFlag,omitempty" xmlrpc:"childFlag,omitempty"` - - // The description of an extended attribute. - Description *string `json:"description,omitempty" xmlrpc:"description,omitempty"` - - // The name of an extended attribute. - Name *string `json:"name,omitempty" xmlrpc:"name,omitempty"` - - // The collection of options for an extended attribute. - Options []Container_Dns_Domain_Registration_ExtendedAttribute_Option `json:"options,omitempty" xmlrpc:"options,omitempty"` - - // Indicates if extended attribute is required. - RequiredFlag *int `json:"requiredFlag,omitempty" xmlrpc:"requiredFlag,omitempty"` - - // User defined indicates that the value is required from outside sources. - UserDefinedFlag *bool `json:"userDefinedFlag,omitempty" xmlrpc:"userDefinedFlag,omitempty"` -} - -// This is the data type that may need to be populated to complete registraton for domains that are country code TLD's. -type Container_Dns_Domain_Registration_ExtendedAttribute_Configuration struct { - Entity - - // The extended attribute name. - Name *string `json:"name,omitempty" xmlrpc:"name,omitempty"` - - // The extended attribute option value. - Value *string `json:"value,omitempty" xmlrpc:"value,omitempty"` -} - -// This container data type contains extended attribute options information for a domain of country code TLD. -type Container_Dns_Domain_Registration_ExtendedAttribute_Option struct { - Entity - - // The description of an option. - Description *string `json:"description,omitempty" xmlrpc:"description,omitempty"` - - // Extended Attribute that is required for an option. - RequireExtendedAttributes []Container_Dns_Domain_Registration_ExtendedAttribute_Option_Require `json:"requireExtendedAttributes,omitempty" xmlrpc:"requireExtendedAttributes,omitempty"` - - // The title of an option. - Title *string `json:"title,omitempty" xmlrpc:"title,omitempty"` - - // The value of an option. - Value *string `json:"value,omitempty" xmlrpc:"value,omitempty"` -} - -// This container data type contains the extended attribute name that is required by an extended attribute option. -type Container_Dns_Domain_Registration_ExtendedAttribute_Option_Require struct { - Entity - - // The name of an extended attribute that is required by an extended attribute option. - Name *string `json:"name,omitempty" xmlrpc:"name,omitempty"` -} - -// Information container for domain registration -type Container_Dns_Domain_Registration_Information struct { - Entity - - // The information of the registered domain. - Contacts []Container_Dns_Domain_Registration_Contact `json:"contacts,omitempty" xmlrpc:"contacts,omitempty"` - - // The date that a domain is set to expire. - ExpireDate *Time `json:"expireDate,omitempty" xmlrpc:"expireDate,omitempty"` - - // The list of nameservers for the domain. - Nameservers []Container_Dns_Domain_Registration_Nameserver `json:"nameservers,omitempty" xmlrpc:"nameservers,omitempty"` - - // no documentation yet - RegistryCreateDate *Time `json:"registryCreateDate,omitempty" xmlrpc:"registryCreateDate,omitempty"` - - // no documentation yet - RegistryExpireDate *Time `json:"registryExpireDate,omitempty" xmlrpc:"registryExpireDate,omitempty"` - - // no documentation yet - RegistryUpdateDate *Time `json:"registryUpdateDate,omitempty" xmlrpc:"registryUpdateDate,omitempty"` -} - -// no documentation yet -type Container_Dns_Domain_Registration_List struct { - Entity - - // The domain name. - DomainName *string `json:"domainName,omitempty" xmlrpc:"domainName,omitempty"` - - // Three-character language tag for the IDN domain that you're trying to register. This is only required for IDN domains. - EncodingType *string `json:"encodingType,omitempty" xmlrpc:"encodingType,omitempty"` - - // Data required by the Registry for some country code top level domains (i.e. example.us). - // - // In order to determine if a domain requires extended attributes, use [[SoftLayer_Dns_Domain_Registration::getExtendedAttributes|domain registration]] service. - ExtendedAttributeConfiguration []Container_Dns_Domain_Registration_ExtendedAttribute_Configuration `json:"extendedAttributeConfiguration,omitempty" xmlrpc:"extendedAttributeConfiguration,omitempty"` - - // The length of the registration period in years. Valid values are 1 – 10. - RegistrationPeriod *int `json:"registrationPeriod,omitempty" xmlrpc:"registrationPeriod,omitempty"` -} - -// Lookup domain container for domain registration -type Container_Dns_Domain_Registration_Lookup struct { - Entity - - // The list of available and taken domain names. - Items []Container_Dns_Domain_Registration_Lookup_Items `json:"items,omitempty" xmlrpc:"items,omitempty"` -} - -// Lookup items container for domain registration -type Container_Dns_Domain_Registration_Lookup_Items struct { - Entity - - // The domain name. - DomainName *string `json:"domainName,omitempty" xmlrpc:"domainName,omitempty"` - - // The status of the domain name if available and can be registered. - Status *string `json:"status,omitempty" xmlrpc:"status,omitempty"` -} - -// Nameserver container for domain registration -type Container_Dns_Domain_Registration_Nameserver struct { - Entity - - // The list of fully qualified names of the nameserver. - Nameservers []Container_Dns_Domain_Registration_Nameserver_List `json:"nameservers,omitempty" xmlrpc:"nameservers,omitempty"` -} - -// Nameservers list container for domain registration -type Container_Dns_Domain_Registration_Nameserver_List struct { - Entity - - // The IPv4 address of the nameserver. - Ipv4Address *string `json:"ipv4Address,omitempty" xmlrpc:"ipv4Address,omitempty"` - - // The IPv6 address of the nameserver. - Ipv6Address *string `json:"ipv6Address,omitempty" xmlrpc:"ipv6Address,omitempty"` - - // The fully qualified name of the nameserver - Name *string `json:"name,omitempty" xmlrpc:"name,omitempty"` - - // The sort order of the nameserver - SortOrder *int `json:"sortOrder,omitempty" xmlrpc:"sortOrder,omitempty"` -} - -// no documentation yet -type Container_Dns_Domain_Registration_Registrant_Verification_StatusDetail struct { - Entity - - // The current status of the verification. - Status *Dns_Domain_Registration_Registrant_Verification_Status `json:"status,omitempty" xmlrpc:"status,omitempty"` - - // The adate when the domain will be suspended. - VerificationDeadlineDate *Time `json:"verificationDeadlineDate,omitempty" xmlrpc:"verificationDeadlineDate,omitempty"` -} - -// Transfer Information container for domain registration -type Container_Dns_Domain_Registration_Transfer_Information struct { - Entity - - // The reason why a domain is not transferable. - Reason *string `json:"reason,omitempty" xmlrpc:"reason,omitempty"` - - // The registrant email. - RegistrantEmail *string `json:"registrantEmail,omitempty" xmlrpc:"registrantEmail,omitempty"` - - // The status of the latest transfer on the domain. - Status *string `json:"status,omitempty" xmlrpc:"status,omitempty"` - - // The date and time of the most recent update to the state of the transfer. - TimeStamp *Time `json:"timeStamp,omitempty" xmlrpc:"timeStamp,omitempty"` - - // Indicates if the domain can be transferred. - Transferrable *int `json:"transferrable,omitempty" xmlrpc:"transferrable,omitempty"` -} - // The SoftLayer_Container_Exception data type represents a SoftLayer_Exception. type Container_Exception struct { Entity @@ -3950,37 +3716,6 @@ type Container_Product_Order_Billing_Information struct { VatId *string `json:"vatId,omitempty" xmlrpc:"vatId,omitempty"` } -// This is the datatype that needs to be populated and sent to SoftLayer_Product_Order::placeOrder. The SoftLayer_Container_Product_Order_Dns_Domain_Registration datatype contains everything required to place a domain registration order with SoftLayer. -type Container_Product_Order_Dns_Domain_Registration struct { - Container_Product_Order - - // Administrative contact information associated with an registraton or transfer. This is required if registration type is 'new' or 'transfer'. - AdministrativeContact *Container_Dns_Domain_Registration_Contact `json:"administrativeContact,omitempty" xmlrpc:"administrativeContact,omitempty"` - - // Billing contact information associated with an registraton or transfer. This is required if registration type is 'new' or 'transfer'. - BillingContact *Container_Dns_Domain_Registration_Contact `json:"billingContact,omitempty" xmlrpc:"billingContact,omitempty"` - - // The list of domains to be registered. This is required if registration type is 'new', 'renew', or 'transfer'. - DomainRegistrationList []Container_Dns_Domain_Registration_List `json:"domainRegistrationList,omitempty" xmlrpc:"domainRegistrationList,omitempty"` - - // Owner contact information associated with an registraton or transfer. This is required if registration type is 'new' or 'transfer'. - OwnerContact *Container_Dns_Domain_Registration_Contact `json:"ownerContact,omitempty" xmlrpc:"ownerContact,omitempty"` - - // The type of a domain registration order. The registration type is Required. Allowed values are new, transfer, and renew - RegistrationType *string `json:"registrationType,omitempty" xmlrpc:"registrationType,omitempty"` - - // Technical contact information associated with an registraton or transfer. This is required if registration type is 'new' or 'transfer'. - TechnicalContact *Container_Dns_Domain_Registration_Contact `json:"technicalContact,omitempty" xmlrpc:"technicalContact,omitempty"` -} - -// This is the datatype that needs to be populated and sent to SoftLayer_Product_Order::placeOrder. The SoftLayer_Container_Product_Order_Dns_Domain_Reseller datatype contains everything required to place a domain reseller credit order with SoftLayer. -type Container_Product_Order_Dns_Domain_Reseller struct { - Container_Product_Order - - // Amount to be credited to the domain reseller account. - CreditAmount *Float64 `json:"creditAmount,omitempty" xmlrpc:"creditAmount,omitempty"` -} - // This is the datatype that needs to be populated and sent to SoftLayer_Product_Order::placeOrder. This datatype has everything required to place a Gateway Appliance Cluster order with SoftLayer. type Container_Product_Order_Gateway_Appliance_Cluster struct { Container_Product_Order diff --git a/datatypes/device.go b/datatypes/device.go index 6f3d065..63ca0f5 100644 --- a/datatypes/device.go +++ b/datatypes/device.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/dns.go b/datatypes/dns.go index d502339..42a1143 100644 --- a/datatypes/dns.go +++ b/datatypes/dns.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes @@ -60,97 +53,6 @@ type Dns_Domain_Forward struct { Dns_Domain } -// The SoftLayer_Dns_Domain_Registration data type represents a domain registration record. -type Dns_Domain_Registration struct { - Entity - - // The SoftLayer customer account that the domain is registered to. - Account *Account `json:"account,omitempty" xmlrpc:"account,omitempty"` - - // no documentation yet - CreateDate *Time `json:"createDate,omitempty" xmlrpc:"createDate,omitempty"` - - // The domain registration status. - DomainRegistrationStatus *Dns_Domain_Registration_Status `json:"domainRegistrationStatus,omitempty" xmlrpc:"domainRegistrationStatus,omitempty"` - - // no documentation yet - DomainRegistrationStatusId *int `json:"domainRegistrationStatusId,omitempty" xmlrpc:"domainRegistrationStatusId,omitempty"` - - // The date that the domain registration will expire. - ExpireDate *Time `json:"expireDate,omitempty" xmlrpc:"expireDate,omitempty"` - - // A domain record's internal identifier. - Id *int `json:"id,omitempty" xmlrpc:"id,omitempty"` - - // Indicates whether a domain is locked or unlocked. - LockedFlag *int `json:"lockedFlag,omitempty" xmlrpc:"lockedFlag,omitempty"` - - // no documentation yet - ModifyDate *Time `json:"modifyDate,omitempty" xmlrpc:"modifyDate,omitempty"` - - // A domain's name, for example "example.com". - Name *string `json:"name,omitempty" xmlrpc:"name,omitempty"` - - // The registrant verification status. - RegistrantVerificationStatus *Dns_Domain_Registration_Registrant_Verification_Status `json:"registrantVerificationStatus,omitempty" xmlrpc:"registrantVerificationStatus,omitempty"` - - // no documentation yet - RegistrantVerificationStatusId *int `json:"registrantVerificationStatusId,omitempty" xmlrpc:"registrantVerificationStatusId,omitempty"` - - // no documentation yet - ServiceProvider *Service_Provider `json:"serviceProvider,omitempty" xmlrpc:"serviceProvider,omitempty"` - - // no documentation yet - ServiceProviderId *int `json:"serviceProviderId,omitempty" xmlrpc:"serviceProviderId,omitempty"` -} - -// [DEPRECATED] SoftLayer_Dns_Domain_Registration_Registrant_Verification_Status models the state of the registrant. Here are the following status codes: -// -// *”'Admin Reviewing”': The registrant data has been submitted and being reviewed by compliance team. -// *”'Pending”': The verification process has been inititated, and verification email will be sent. -// *”'Suspended”': The registrant has failed verification and the domain has been suspended. -// *”'Verified”': The registrant has been validated. -// *”'Verifying”': The verification process has been initiated and is waiting for registrant response. -// *”'Unverified”': The verification process has not been inititated. -type Dns_Domain_Registration_Registrant_Verification_Status struct { - Entity - - // The description of the registrant verification status. - Description *string `json:"description,omitempty" xmlrpc:"description,omitempty"` - - // The unique identifier of the registrant verification status - Id *int `json:"id,omitempty" xmlrpc:"id,omitempty"` - - // The unique keyname of the registrant verification status. - KeyName *string `json:"keyName,omitempty" xmlrpc:"keyName,omitempty"` - - // The name of the registrant verification status. - Name *string `json:"name,omitempty" xmlrpc:"name,omitempty"` -} - -// [DEPRECATED] SoftLayer_Dns_Domain_Registration_Status models the state of domain name. Here are the following status codes: -// -// *”'Active”': This domain name is active. -// *”'Pending Owner Approval”': Pending owner approval for completion of transfer. -// *”'Pending Admin Review”': Pending admin review for transfer. -// *”'Pending Registry”': Pending registry for transfer. -// *”'Expired”': Domain name has expired. -type Dns_Domain_Registration_Status struct { - Entity - - // The description of the domain registration status names. - Description *string `json:"description,omitempty" xmlrpc:"description,omitempty"` - - // The unique identifier of the domain registration status - Id *int `json:"id,omitempty" xmlrpc:"id,omitempty"` - - // The unique keyname of the domain registration status. - KeyName *string `json:"keyName,omitempty" xmlrpc:"keyName,omitempty"` - - // The name of the domain registration status. - Name *string `json:"name,omitempty" xmlrpc:"name,omitempty"` -} - // The SoftLayer_Dns_Domain_ResourceRecord data type represents a single resource record entry in a SoftLayer hosted domain. Each resource record contains a ”host” and ”data” property, defining a resource's name and it's target data. Domains contain multiple types of resource records. The ”type” property separates out resource records by type. ”Type” can take one of the following values: // * ”'"a"”' for [[SoftLayer_Dns_Domain_ResourceRecord_AType|address]] records // * ”'"aaaa"”' for [[SoftLayer_Dns_Domain_ResourceRecord_AaaaType|address]] records diff --git a/datatypes/email.go b/datatypes/email.go index 9312811..a0905de 100644 --- a/datatypes/email.go +++ b/datatypes/email.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/entity.go b/datatypes/entity.go index 49e32cf..092818a 100644 --- a/datatypes/entity.go +++ b/datatypes/entity.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/event.go b/datatypes/event.go index a9f541a..27a1943 100644 --- a/datatypes/event.go +++ b/datatypes/event.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/exception.go b/datatypes/exception.go index 2bc6d9b..00abf37 100644 --- a/datatypes/exception.go +++ b/datatypes/exception.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/flexiblecredit.go b/datatypes/flexiblecredit.go index 8c869e7..0e2314c 100644 --- a/datatypes/flexiblecredit.go +++ b/datatypes/flexiblecredit.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/hardware.go b/datatypes/hardware.go index 7948c25..14ffae2 100644 --- a/datatypes/hardware.go +++ b/datatypes/hardware.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/layout.go b/datatypes/layout.go index 880585b..6d85792 100644 --- a/datatypes/layout.go +++ b/datatypes/layout.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/legal.go b/datatypes/legal.go index f3bb064..dbad686 100644 --- a/datatypes/legal.go +++ b/datatypes/legal.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/locale.go b/datatypes/locale.go index d4d5da1..5f3e1d3 100644 --- a/datatypes/locale.go +++ b/datatypes/locale.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/location.go b/datatypes/location.go index 2c182e7..2eb4ed5 100644 --- a/datatypes/location.go +++ b/datatypes/location.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/marketplace.go b/datatypes/marketplace.go index 9e5b5a1..570141f 100644 --- a/datatypes/marketplace.go +++ b/datatypes/marketplace.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/mcafee.go b/datatypes/mcafee.go index 4d4b2d8..9fc067f 100644 --- a/datatypes/mcafee.go +++ b/datatypes/mcafee.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/metric.go b/datatypes/metric.go index f236d38..2a95a01 100644 --- a/datatypes/metric.go +++ b/datatypes/metric.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/monitoring.go b/datatypes/monitoring.go index aeb772d..af22c6c 100644 --- a/datatypes/monitoring.go +++ b/datatypes/monitoring.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/network.go b/datatypes/network.go index 5e9e165..8d07d93 100644 --- a/datatypes/network.go +++ b/datatypes/network.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes @@ -1013,7 +1006,7 @@ type Network_CdnMarketplace_Utils_Response struct { Message *string `json:"message,omitempty" xmlrpc:"message,omitempty"` } -// The SoftLayer_Network_CdnMarketplace_Vendor contains information regarding
 a CDN Vendor. This class is associated with
 SoftLayer_Network_CdnMarketplace_Vendor_Attribute class. +// The SoftLayer_Network_CdnMarketplace_Vendor contains information regarding a CDN Vendor. This class is associated with SoftLayer_Network_CdnMarketplace_Vendor_Attribute class. type Network_CdnMarketplace_Vendor struct { Entity } @@ -5660,11 +5653,14 @@ type Network_Subnet_IpAddress_Version6 struct { PublicVersion6NetworkGateway *Network_Gateway `json:"publicVersion6NetworkGateway,omitempty" xmlrpc:"publicVersion6NetworkGateway,omitempty"` } +// The subnet registration service has been deprecated. +// // The subnet registration data type contains general information relating to a single subnet registration instance. These registration instances can be updated to reflect changes, and will record the changes in the [[SoftLayer_Network_Subnet_Registration_Event|events]]. type Network_Subnet_Registration struct { Entity - // The account that this registration belongs to. + // [Deprecated] The account that this registration belongs to. + // Deprecated: This function has been marked as deprecated. Account *Account `json:"account,omitempty" xmlrpc:"account,omitempty"` // The registration object's associated [[SoftLayer_Account|account]] id @@ -5676,16 +5672,18 @@ type Network_Subnet_Registration struct { // no documentation yet CreateDate *Time `json:"createDate,omitempty" xmlrpc:"createDate,omitempty"` - // A count of the cross-reference records that tie the [[SoftLayer_Account_Regional_Registry_Detail]] objects to the registration object. + // A count of [Deprecated] The cross-reference records that tie the [[SoftLayer_Account_Regional_Registry_Detail]] objects to the registration object. DetailReferenceCount *uint `json:"detailReferenceCount,omitempty" xmlrpc:"detailReferenceCount,omitempty"` - // The cross-reference records that tie the [[SoftLayer_Account_Regional_Registry_Detail]] objects to the registration object. + // [Deprecated] The cross-reference records that tie the [[SoftLayer_Account_Regional_Registry_Detail]] objects to the registration object. + // Deprecated: This function has been marked as deprecated. DetailReferences []Network_Subnet_Registration_Details `json:"detailReferences,omitempty" xmlrpc:"detailReferences,omitempty"` - // A count of the related registration events. + // A count of [Deprecated] The related registration events. EventCount *uint `json:"eventCount,omitempty" xmlrpc:"eventCount,omitempty"` - // The related registration events. + // [Deprecated] The related registration events. + // Deprecated: This function has been marked as deprecated. Events []Network_Subnet_Registration_Event `json:"events,omitempty" xmlrpc:"events,omitempty"` // Unique ID of the registration object @@ -5694,7 +5692,8 @@ type Network_Subnet_Registration struct { // no documentation yet ModifyDate *Time `json:"modifyDate,omitempty" xmlrpc:"modifyDate,omitempty"` - // The "network" detail object. + // [Deprecated] The "network" detail object. + // Deprecated: This function has been marked as deprecated. NetworkDetail *Account_Regional_Registry_Detail `json:"networkDetail,omitempty" xmlrpc:"networkDetail,omitempty"` // The RIR-specific handle or name of the registered subnet. This field is read-only. @@ -5703,13 +5702,16 @@ type Network_Subnet_Registration struct { // The base IP address of the registered subnet NetworkIdentifier *string `json:"networkIdentifier,omitempty" xmlrpc:"networkIdentifier,omitempty"` - // The "person" detail object. + // [Deprecated] The "person" detail object. + // Deprecated: This function has been marked as deprecated. PersonDetail *Account_Regional_Registry_Detail `json:"personDetail,omitempty" xmlrpc:"personDetail,omitempty"` - // The related Regional Internet Registry. + // [Deprecated] The related Regional Internet Registry. + // Deprecated: This function has been marked as deprecated. RegionalInternetRegistry *Network_Regional_Internet_Registry `json:"regionalInternetRegistry,omitempty" xmlrpc:"regionalInternetRegistry,omitempty"` - // The RIR handle that this registration object belongs to. This field may not be populated until the registration is complete. + // [Deprecated] The RIR handle that this registration object belongs to. This field may not be populated until the registration is complete. + // Deprecated: This function has been marked as deprecated. RegionalInternetRegistryHandle *Account_Rwhois_Handle `json:"regionalInternetRegistryHandle,omitempty" xmlrpc:"regionalInternetRegistryHandle,omitempty"` // The registration object's associated [[SoftLayer_Account_Rwhois_Handle|RIR handle]] id @@ -5718,26 +5720,34 @@ type Network_Subnet_Registration struct { // The registration object's associated [[SoftLayer_Network_Regional_Internet_Registry|RIR]] id RegionalInternetRegistryId *int `json:"regionalInternetRegistryId,omitempty" xmlrpc:"regionalInternetRegistryId,omitempty"` - // The status of this registration. + // [Deprecated] The status of this registration. + // Deprecated: This function has been marked as deprecated. Status *Network_Subnet_Registration_Status `json:"status,omitempty" xmlrpc:"status,omitempty"` // The registration object's associated [[SoftLayer_Network_Subnet_Registration_Status|status]] id StatusId *int `json:"statusId,omitempty" xmlrpc:"statusId,omitempty"` - // The subnet that this registration pertains to. + // [Deprecated] The subnet that this registration pertains to. + // Deprecated: This function has been marked as deprecated. Subnet *Network_Subnet `json:"subnet,omitempty" xmlrpc:"subnet,omitempty"` } +// The APNIC subnet registration type has been deprecated. +// // APNIC-specific registration object. For more detail see [[SoftLayer_Network_Subnet_Registration (type)|SoftLayer_Network_Subnet_Registration]]. type Network_Subnet_Registration_Apnic struct { Network_Subnet_Registration } +// The ARIN subnet registration type has been deprecated. +// // ARIN-specific registration object. For more detail see [[SoftLayer_Network_Subnet_Registration (type)|SoftLayer_Network_Subnet_Registration]]. type Network_Subnet_Registration_Arin struct { Network_Subnet_Registration } +// The subnet registration details type has been deprecated. +// // The SoftLayer_Network_Subnet_Registration_Details objects are used to relate [[SoftLayer_Account_Regional_Registry_Detail]] objects to a [[SoftLayer_Network_Subnet_Registration]] object. This allows for easy reuse of registration details. It is important to note that only one detail object per type may be associated to a registration object. type Network_Subnet_Registration_Details struct { Entity @@ -5745,7 +5755,8 @@ type Network_Subnet_Registration_Details struct { // no documentation yet CreateDate *Time `json:"createDate,omitempty" xmlrpc:"createDate,omitempty"` - // The related [[SoftLayer_Account_Regional_Registry_Detail|detail object]]. + // [Deprecated] The related [[SoftLayer_Account_Regional_Registry_Detail|detail object]]. + // Deprecated: This function has been marked as deprecated. Detail *Account_Regional_Registry_Detail `json:"detail,omitempty" xmlrpc:"detail,omitempty"` // Numeric ID of the related [[SoftLayer_Account_Regional_Registry_Detail]] object @@ -5757,13 +5768,16 @@ type Network_Subnet_Registration_Details struct { // no documentation yet ModifyDate *Time `json:"modifyDate,omitempty" xmlrpc:"modifyDate,omitempty"` - // The related [[SoftLayer_Network_Subnet_Registration|registration object]]. + // [Deprecated] The related [[SoftLayer_Network_Subnet_Registration|registration object]]. + // Deprecated: This function has been marked as deprecated. Registration *Network_Subnet_Registration `json:"registration,omitempty" xmlrpc:"registration,omitempty"` // Numeric ID of the related [[SoftLayer_Network_Subnet_Registration]] object RegistrationId *int `json:"registrationId,omitempty" xmlrpc:"registrationId,omitempty"` } +// The subnet registration event type has been deprecated. +// // Each time a [[SoftLayer_Network_Subnet_Registration|subnet registration]] object is created or modified, the system will generate an event for it. Additional actions that would create an event include RIR responses and error cases. * type Network_Subnet_Registration_Event struct { Entity @@ -5780,19 +5794,23 @@ type Network_Subnet_Registration_Event struct { // no documentation yet ModifyDate *Time `json:"modifyDate,omitempty" xmlrpc:"modifyDate,omitempty"` - // The registration this event pertains to. + // [Deprecated] The registration this event pertains to. + // Deprecated: This function has been marked as deprecated. Registration *Network_Subnet_Registration `json:"registration,omitempty" xmlrpc:"registration,omitempty"` // The numeric ID of the related [[SoftLayer_Network_Subnet_Registration]] object RegistrationId *int `json:"registrationId,omitempty" xmlrpc:"registrationId,omitempty"` - // The type of this event. + // [Deprecated] The type of this event. + // Deprecated: This function has been marked as deprecated. Type *Network_Subnet_Registration_Event_Type `json:"type,omitempty" xmlrpc:"type,omitempty"` // The numeric ID of the associated [[SoftLayer_Network_Subnet_Registration_Event_Type|event type]] object TypeId *int `json:"typeId,omitempty" xmlrpc:"typeId,omitempty"` } +// The subnet registration event type type has been deprecated. +// // Subnet Registration Event Type objects describe the nature of a [[SoftLayer_Network_Subnet_Registration_Event]] // // The standard values for these objects are as follows: @@ -5817,11 +5835,15 @@ type Network_Subnet_Registration_Event_Type struct { Name *string `json:"name,omitempty" xmlrpc:"name,omitempty"` } +// The RIPE subnet registration type has been deprecated. +// // RIPE-specific registration object. For more detail see [[SoftLayer_Network_Subnet_Registration (type)|SoftLayer_Network_Subnet_Registration]]. type Network_Subnet_Registration_Ripe struct { Network_Subnet_Registration } +// The subnet registration status type has been deprecated. +// // Subnet Registration Status objects describe the current status of a subnet registration. // // The standard values for these objects are as follows: diff --git a/datatypes/notification.go b/datatypes/notification.go index 8c4d1cb..70aa2eb 100644 --- a/datatypes/notification.go +++ b/datatypes/notification.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/policy.go b/datatypes/policy.go index 03d5ac6..adfac37 100644 --- a/datatypes/policy.go +++ b/datatypes/policy.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/product.go b/datatypes/product.go index 97f1ad0..1c44a73 100644 --- a/datatypes/product.go +++ b/datatypes/product.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/provisioning.go b/datatypes/provisioning.go index fd191b1..f365136 100644 --- a/datatypes/provisioning.go +++ b/datatypes/provisioning.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/resource.go b/datatypes/resource.go index 51bf794..86e4d10 100644 --- a/datatypes/resource.go +++ b/datatypes/resource.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/sales.go b/datatypes/sales.go index e7bb3ad..22fb957 100644 --- a/datatypes/sales.go +++ b/datatypes/sales.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/search.go b/datatypes/search.go index 5afb44a..3681408 100644 --- a/datatypes/search.go +++ b/datatypes/search.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/security.go b/datatypes/security.go index 2a1dddb..06171aa 100644 --- a/datatypes/security.go +++ b/datatypes/security.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/service.go b/datatypes/service.go index c73b1f4..3ffd8fb 100644 --- a/datatypes/service.go +++ b/datatypes/service.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/software.go b/datatypes/software.go index 4152582..9c091ef 100644 --- a/datatypes/software.go +++ b/datatypes/software.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/sprint.go b/datatypes/sprint.go index 35af3cd..b21bdc7 100644 --- a/datatypes/sprint.go +++ b/datatypes/sprint.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/survey.go b/datatypes/survey.go index 243c100..2147ee2 100644 --- a/datatypes/survey.go +++ b/datatypes/survey.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/tag.go b/datatypes/tag.go index ef9105a..85044ee 100644 --- a/datatypes/tag.go +++ b/datatypes/tag.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/ticket.go b/datatypes/ticket.go index 809f173..ce2cac1 100644 --- a/datatypes/ticket.go +++ b/datatypes/ticket.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/trellix.go b/datatypes/trellix.go index c987521..fef6af4 100644 --- a/datatypes/trellix.go +++ b/datatypes/trellix.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/user.go b/datatypes/user.go index ec74c8a..c9bb026 100644 --- a/datatypes/user.go +++ b/datatypes/user.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/utility.go b/datatypes/utility.go index 2aa6148..661e218 100644 --- a/datatypes/utility.go +++ b/datatypes/utility.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/vendor.go b/datatypes/vendor.go index 34702aa..8ae7740 100644 --- a/datatypes/vendor.go +++ b/datatypes/vendor.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/verify.go b/datatypes/verify.go index e4d98d7..6d06885 100644 --- a/datatypes/verify.go +++ b/datatypes/verify.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/datatypes/virtual.go b/datatypes/virtual.go index 9c94c34..8c8074f 100644 --- a/datatypes/virtual.go +++ b/datatypes/virtual.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package datatypes diff --git a/examples/cmd/server_list.go b/examples/cmd/server_list.go index d0db33d..d10c786 100644 --- a/examples/cmd/server_list.go +++ b/examples/cmd/server_list.go @@ -51,7 +51,8 @@ func Run(cmd *cobra.Command, args []string) error { for { for _, server := range servers { ipAddress := "-" - if *server.PrimaryIpAddress != "" { + // Servers with a private only connection will not have a primary IP + if server.PrimaryIpAddress != nil { ipAddress = *server.PrimaryIpAddress } fmt.Printf("%v, %v, %v, %v\n", *server.Id, *server.Hostname, *server.Domain, ipAddress) diff --git a/examples/examples.go b/examples/examples.go index 0693e0d..455c404 100644 --- a/examples/examples.go +++ b/examples/examples.go @@ -131,26 +131,6 @@ func doCreateVMTest(sess *session.Session) { } } -func doGetDiskUsageMetricsTest(sess *session.Session) { - service := services.GetAccountService(sess) - - tEnd := sl.Time(time.Now()) - tStart := sl.Time(tEnd.AddDate(0, -6, 0)) - - data, err := service.GetDiskUsageMetricDataByDate(tStart, tEnd) - if err != nil { - fmt.Println("Error calling GetDiskUsageMetricDataByDate: ", err) - return - } - - fmt.Printf("Number of elements returned: %d\n", len(data)) - - // Retrieve and print a DateTime (sl.Time) value - if len(data) > 0 { - fmt.Printf("item.DateTime = %s\n", data[0].DateTime) - } -} - func doGetLatestBillDate(sess *session.Session) { service := services.GetAccountService(sess) diff --git a/examples/filters.go b/examples/filters.go deleted file mode 100644 index c99832c..0000000 --- a/examples/filters.go +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Copyright 2016 IBM Corp. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package main - -import ( - "fmt" - "github.com/softlayer/softlayer-go/filter" -) - -func testFilters() { - fmt.Println(filter.Path("virtualGuests.hostname").Eq("example.com").Build()) - - fmt.Println( - filter.New( - filter.Path("id").Eq("134"), - filter.Path("datacenter.locationName").Eq("Dallas"), - filter.Path("something.creationDate").Date("01/01/01"), - ).Build(), - ) - - fmt.Println( - filter.Build( - filter.Path("virtualGuests.domain").Eq("example.com"), - filter.Path("virtualGuests.id").NotEq(12345), - ), - ) - - filters := filter.New( - filter.Path("virtualGuests.hostname").StartsWith("KM078"), - filter.Path("virtualGuests.id").NotEq(12345), - ) - - filters = append(filters, filter.Path("virtualGuests.domain").Eq("example.com")) - - fmt.Println(filters.Build()) -} diff --git a/examples/go.mod b/examples/go.mod index 5d4cad8..4cd8eb9 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -1,2 +1,32 @@ -# This file is empty to prevent the examples directory from being built along with the rest of this package. -# Since the examples containt a few extra packages I don't feel need to be included in the base go.mod file +module github.com/softlayer/softlayer-go/examples + +go 1.21 + +require ( + github.com/jarcoal/httpmock v1.0.5 + github.com/jedib0t/go-pretty/v6 v6.5.4 + github.com/maxbrunsfeld/counterfeiter/v6 v6.8.1 + github.com/onsi/ginkgo/v2 v2.15.0 + github.com/onsi/gomega v1.31.1 + github.com/softlayer/softlayer-go v1.1.3 + github.com/softlayer/xmlrpc v0.0.0-20200409220501-5f089df7cb7e + github.com/spf13/cobra v1.8.0 + golang.org/x/tools v0.17.0 +) + +require ( + github.com/go-logr/logr v1.3.0 // indirect + github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect + github.com/google/go-cmp v0.6.0 // indirect + github.com/google/pprof v0.0.0-20211214055906-6f57359322fd // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/kr/pretty v0.3.1 // indirect + github.com/mattn/go-runewidth v0.0.15 // indirect + github.com/rivo/uniseg v0.2.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + golang.org/x/mod v0.14.0 // indirect + golang.org/x/net v0.20.0 // indirect + golang.org/x/sys v0.16.0 // indirect + golang.org/x/text v0.14.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) diff --git a/examples/go.sum b/examples/go.sum new file mode 100644 index 0000000..a6225fd --- /dev/null +++ b/examples/go.sum @@ -0,0 +1,68 @@ +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/go-logr/logr v1.3.0 h1:2y3SDp0ZXuc6/cjLSZ+Q3ir+QB9T/iG5yYRXqsagWSY= +github.com/go-logr/logr v1.3.0/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= +github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38 h1:yAJXTCF9TqKcTiHJAE8dj7HMvPfh66eeA2JYW7eFpSE= +github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20211214055906-6f57359322fd/go.mod h1:KgnwoLYCZ8IQu3XUZ8Nc/bM9CCZFOyjUNOSygVozoDg= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20210905161508-09a460cdf81d/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/jarcoal/httpmock v1.0.5 h1:cHtVEcTxRSX4J0je7mWPfc9BpDpqzXSJ5HbymZmyHck= +github.com/jarcoal/httpmock v1.0.5/go.mod h1:ATjnClrvW/3tijVmpL/va5Z3aAyGvqU3gCT8nX0Txik= +github.com/jedib0t/go-pretty/v6 v6.5.4 h1:gOGo0613MoqUcf0xCj+h/V3sHDaZasfv152G6/5l91s= +github.com/jedib0t/go-pretty/v6 v6.5.4/go.mod h1:5LQIxa52oJ/DlDSLv0HEkWOFMDGoWkJb9ss5KqPpJBg= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U= +github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= +github.com/maxbrunsfeld/counterfeiter/v6 v6.8.1 h1:NicmruxkeqHjDv03SfSxqmaLuisddudfP3h5wdXFbhM= +github.com/maxbrunsfeld/counterfeiter/v6 v6.8.1/go.mod h1:eyp4DdUJAKkr9tvxR3jWhw2mDK7CWABMG5r9uyaKC7I= +github.com/onsi/ginkgo/v2 v2.15.0 h1:79HwNRBAZHOEwrczrgSOPy+eFTTlIGELKy5as+ClttY= +github.com/onsi/ginkgo/v2 v2.15.0/go.mod h1:HlxMHtYF57y6Dpf+mc5529KKmSq9h2FpCF+/ZkwUxKM= +github.com/onsi/gomega v1.31.1 h1:KYppCUK+bUgAZwHOu7EXVBKyQA6ILvOESHkn/tgoqvo= +github.com/onsi/gomega v1.31.1/go.mod h1:y40C95dwAD1Nz36SsEnxvfFe8FFfNxzI5eJ0EYGyAy0= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= +github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/softlayer/softlayer-go v1.1.3 h1:dfFzt5eOKIAyB/b78fHMyDu5ICx0ZtxL9NRhBlf831A= +github.com/softlayer/softlayer-go v1.1.3/go.mod h1:Pc7F57OgUKaAam7TtpqkUeqL7QyKknfiUI4R49h41/U= +github.com/softlayer/xmlrpc v0.0.0-20200409220501-5f089df7cb7e h1:3OgWYFw7jxCZPcvAg+4R8A50GZ+CCkARF10lxu2qDsQ= +github.com/softlayer/xmlrpc v0.0.0-20200409220501-5f089df7cb7e/go.mod h1:fKZCUVdirrxrBpwd9wb+lSoVixvpwAu8eHzbQB2tums= +github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= +github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= +github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= +github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0= +golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/net v0.20.0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo= +golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= +golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/tools v0.17.0 h1:FvmRgNOcs3kOa+T20R1uhfP9F6HgG2mfxDv1vrx1Htc= +golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/generator/generate.go b/generator/generate.go new file mode 100644 index 0000000..1488098 --- /dev/null +++ b/generator/generate.go @@ -0,0 +1,97 @@ +package generator + +import ( + "encoding/json" + "fmt" + "github.com/spf13/cobra" + "os" + "strings" +) + +func init() { + generateCmd.Flags().StringVarP( + &varMetadata, + "metadata", "m", + SoftLayerMetadataAPIURL, + "A JSON file or HTTPS url to read metadata from.", + ) + generateCmd.Flags().StringVarP( + &varOutput, + "output", "o", + "./", + "Output directory. A 'services' and 'datatypes' directory will be created here.", + ) + rootCmd.AddCommand(generateCmd) +} + +const SoftLayerMetadataAPIURL = "https://api.softlayer.com/metadata/v3.1" + +var varMetadata string +var varOutput string +var generateCmd = &cobra.Command{ + Use: "generate", + Short: "Generates the service and datatype definitions", + Run: func(cmd *cobra.Command, args []string) { + varMetadata = strings.ToLower(varMetadata) + GenerateAPI(varMetadata, varOutput) + }, +} + +func GenerateAPI(metaPath string, outputDir string) { + fmt.Printf("Getting metadata from %s ...\n", metaPath) + var jsonResp []byte + var err error + if strings.HasPrefix(metaPath, "http") { + jsonResp, err = GetMetaFromURL(metaPath) + errCheck(err, fmt.Sprintf("Error getting metadata from %s", metaPath)) + } else { + jsonResp, err = GetMetaFromFile(metaPath) + errCheck(err, fmt.Sprintf("Error reading file %s", metaPath)) + } + var meta map[string]Type + err = json.Unmarshal(jsonResp, &meta) + errCheck(err, "Error unmarshaling json response") + + // Build an array of Types, sorted by name + // This will ensure consistency in the order that code is later emitted + keys := GetSortedKeys(meta) + + sortedTypes := make([]Type, 0, len(keys)) + sortedServices := make([]Type, 0, len(keys)) + + for _, name := range keys { + t := meta[name] + sortedTypes = append(sortedTypes, t) + AddComplexType(&t) + FixDatatype(&t, meta) + + // Not every datatype is also a service + if !t.NoService { + CreateGetters(&t) + sortedServices = append(sortedServices, t) + } + } + + // Services can be subclasses of other services. Copy methods from each service's 'Base' entity to + // the child service, only if a same-named method does not already exist (i.e., overridden by the + // child service) + for i, service := range sortedServices { + sortedServices[i].Methods = GetBaseMethods(service, meta) + FixReturnType(&sortedServices[i]) + } + + fmt.Printf("Creating Datatypes...\n") + err = WritePackage(outputDir, "datatypes", sortedTypes, datatype) + errCheck(err, "Error creating Datatypes") + + fmt.Printf("Creating Servicess...\n") + err = WritePackage(outputDir, "services", sortedServices, services) + errCheck(err, "Error creating Services") +} + +func errCheck(err error, msg string) { + if err != nil { + fmt.Printf("%s: %s\n", msg, err) + os.Exit(1) + } +} diff --git a/generator/generate_test.go b/generator/generate_test.go new file mode 100644 index 0000000..c05885b --- /dev/null +++ b/generator/generate_test.go @@ -0,0 +1,44 @@ +package generator_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + . "github.com/softlayer/softlayer-go/generator" + "os" + "testing" + + "fmt" +) + +func TestGenerator(t *testing.T) { + RegisterFailHandler(Fail) + RunSpecs(t, "Generator Tests") +} + +var metaPath = "../sldnSample.json" +var _ = Describe("Generate Tests", func() { + var outDir string + + BeforeEach(func() { + var err error + outDir, err = os.MkdirTemp("", "softlayer-go-test*") + Expect(err).NotTo(HaveOccurred()) + err = os.Mkdir(fmt.Sprintf("%s/services", outDir), 0750) + Expect(err).NotTo(HaveOccurred()) + err = os.Mkdir(fmt.Sprintf("%s/datatypes", outDir), 0750) + Expect(err).NotTo(HaveOccurred()) + }) + Context("Testing SLDN Generation", func() { + Context("GenerateAPI From File", func() { + It("Generates SLDN from test file", func() { + GenerateAPI(metaPath, outDir) + Expect(fmt.Sprintf("%s/services/account.go", outDir)).Should(BeAnExistingFile()) + Expect(fmt.Sprintf("%s/services/account_test.go", outDir)).Should(BeAnExistingFile()) + Expect(fmt.Sprintf("%s/datatypes/virtual.go", outDir)).Should(BeAnExistingFile()) + }) + }) + }) + AfterEach(func() { + Expect(os.RemoveAll(outDir)).To(Succeed()) + }) +}) diff --git a/tools/loadmeta.go b/generator/loadmeta.go similarity index 53% rename from tools/loadmeta.go rename to generator/loadmeta.go index 67e5e1a..d0313e8 100644 --- a/tools/loadmeta.go +++ b/generator/loadmeta.go @@ -14,242 +14,54 @@ * limitations under the License. */ -package main +package generator import ( "bytes" - "encoding/json" - "flag" + "fmt" + "github.com/spf13/cobra" "go/format" + "golang.org/x/tools/imports" "io/ioutil" "net/http" "os" "sort" "strings" "text/template" - - "golang.org/x/tools/imports" ) -const SoftLayerMetadataAPIURL = "https://api.softlayer.com/metadata/v3.1" - -type Type struct { - Name string `json:"name"` - Base string `json:"base"` - TypeDoc string `json:"typeDoc"` - Properties map[string]Property `json:"properties"` - ServiceDoc string `json:"serviceDoc"` - Methods map[string]Method `json:"methods"` - NoService bool `json:"noservice"` - Overview string `json:"docOverview"` - Deprecated bool `json:"deprecated"` -} - -type Property struct { - Name string `json:"name"` - Type string `json:"type"` - TypeArray bool `json:"typeArray"` - Form string `json:"form"` - Doc string `json:"doc"` - Overview string `json:"docOverview"` - Deprecated bool `json:"deprecated"` +var rootCmd = &cobra.Command{ + Use: "tools", + Short: "Generates the services and datatype definitions from SoftLayer API Metadata", } -type Method struct { - Name string `json:"name"` - Type string `json:"type"` - TypeArray bool `json:"typeArray"` - Doc string `json:"doc"` - Static bool `json:"static"` - NoAuth bool `json:"noauth"` - Limitable bool `json:"limitable"` - Filterable bool `json:"filterable"` - Maskable bool `json:"maskable"` - Parameters []Parameter `json:"parameters"` - Overview string `json:"docOverview"` - Deprecated bool `json:"deprecated"` +func Execute() error { + return rootCmd.Execute() } -type Parameter struct { - Name string `json:"name"` - Type string `json:"type"` - TypeArray bool `json:"typeArray"` - Doc string `json:"doc"` - DefaultValue interface{} `json:"defaultValue"` -} - -// Define custom template functions -var fMap = template.FuncMap{ - "convertType": ConvertType, // Converts SoftLayer types to Go types - "removePrefix": RemovePrefix, // Remove 'SoftLayer_' prefix. if it exists - "removeReserved": RemoveReservedWords, // Substitute language-reserved identifiers - "titleCase": strings.Title, // TitleCase the argument - "desnake": Desnake, // Remove '_' from Snake_Case - "goDoc": GoDoc, // Format a go doc string - "tags": Tags, // Remove omitempty tags if required - "phraseMethodArg": phraseMethodArg, // Get proper phrase for method argument - "getTypePrefix": getTypePrefix, // resturns [], * or nothing. - "deprecatedDoc": deprecatedDoc, // Marks things as deprecated if needed. -} - -var datatype = fmt.Sprintf(`%s - -%s - -package datatypes - -{{range .}}{{.TypeDoc|goDoc}} -type {{.Name|removePrefix}} struct { - {{.Base|removePrefix}} - -{{$base := .Name}}{{range .Properties}}{{.Doc|goDoc}}{{deprecatedDoc .Deprecated}}`+ - `{{$thisType := convertType .Type "datatypes" $base .Name}} - {{.Name|titleCase}} {{getTypePrefix .TypeArray $thisType}}{{$thisType}}`+ - "`json:\"{{.Name|tags}}\" xmlrpc:\"{{.Name|tags}}\"`"+` - -{{end}} +func init() { + // rootCmd.AddCommand(generateCmd) + // rootCmd.AddCommand(versionCmd) } -{{end}} -`, license, codegenWarning) - -var services = fmt.Sprintf(`%s - -%s - -package services - -import ( - "fmt" - "strings" -) - -{{range .}}{{$base := .Name|removePrefix}}{{.TypeDoc|goDoc}}{{deprecatedDoc .Deprecated}} - type {{$base}} struct { - Session *session.Session - Options sl.Options - } - - // Get{{$base | desnake}}Service returns an instance of the {{$base}} SoftLayer service - func Get{{$base | desnake}}Service(sess *session.Session) {{$base}} { - return {{$base}}{Session: sess} - } - - func (r {{$base}}) Id(id int) {{$base}} { - r.Options.Id = &id - return r - } - - func (r {{$base}}) Mask(mask string) {{$base}} { - if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { - mask = fmt.Sprintf("mask[%%s]", mask) - } - - r.Options.Mask = mask - return r - } - - func (r {{$base}}) Filter(filter string) {{$base}} { - r.Options.Filter = filter - return r - } - - func (r {{$base}}) Limit(limit int) {{$base}} { - r.Options.Limit = &limit - return r - } - - func (r {{$base}}) Offset(offset int) {{$base}} { - r.Options.Offset = &offset - return r - } - - {{$rawBase := .Name}}{{range .Methods}}{{$methodName := .Name}}{{.Doc|goDoc}}{{deprecatedDoc .Deprecated}} - func (r {{$base}}) {{.Name|titleCase}}({{range .Parameters}}{{phraseMethodArg $methodName .Name .TypeArray .Type}}{{end}}) ({{if .Type|ne "void"}}resp {{if .TypeArray}}[]{{end}}{{convertType .Type "services"}}, {{end}}err error) { - {{if .Type|eq "void"}}var resp datatypes.Void - {{end}}{{if or (eq .Name "placeOrder") (eq .Name "verifyOrder")}}err = datatypes.SetComplexType(orderData) - if err != nil { - return - } - {{end}}{{if len .Parameters | lt 0}}params := []interface{}{ - {{range .Parameters}}{{.Name|removeReserved}}, - {{end}} - } - {{end}}err = r.Session.DoRequest("{{$rawBase}}", "{{.Name}}", {{if len .Parameters | lt 0}}params{{else}}nil{{end}}, &r.Options, &resp) - return - } - {{end}} - -{{end}} -`, license, codegenWarning) - -func generateAPI() { - var meta map[string]Type - - flagset := flag.NewFlagSet(os.Args[1], flag.ExitOnError) - outputPath := flag.String("o", ".", "the root of the go project to be refreshed") - flagset.Parse(os.Args[2:]) - - jsonResp, code, err := makeHttpRequest(SoftLayerMetadataAPIURL, "GET", new(bytes.Buffer)) - - if err != nil { - fmt.Printf("Error retrieving metadata API: %s", err) - os.Exit(1) - } - - if code != 200 { - fmt.Printf("Unexpected HTTP status code received while retrieving metadata API: %d", code) - os.Exit(1) - } - - err = json.Unmarshal(jsonResp, &meta) - if err != nil { - fmt.Printf("Error unmarshaling json response: %s", err) - os.Exit(1) - } - - // Build an array of Types, sorted by name - // This will ensure consistency in the order that code is later emitted - keys := getSortedKeys(meta) - - sortedTypes := make([]Type, 0, len(keys)) - sortedServices := make([]Type, 0, len(keys)) - - for _, name := range keys { - t := meta[name] - sortedTypes = append(sortedTypes, t) - addComplexType(&t) - fixDatatype(&t, meta) - - // Not every datatype is also a service - if !t.NoService { - createGetters(&t) - sortedServices = append(sortedServices, t) - } +func NilParam(params []Parameter) string { + rString := "" + if len(params) == 0 { + return rString } - - // Services can be subclasses of other services. Copy methods from each service's 'Base' entity to - // the child service, only if a same-named method does not already exist (i.e., overridden by the - // child service) - for i, service := range sortedServices { - sortedServices[i].Methods = getBaseMethods(service, meta) - fixReturnType(&sortedServices[i]) + rString = "nil" + // The place/verify/quoteOrder are special + if params[0].Type == "SoftLayer_Container_Product_Order" { + rString = fmt.Sprintf("%s", "GetOrderContainer()") } - - err = writePackage(*outputPath, "datatypes", sortedTypes, datatype) - if err != nil { - fmt.Printf("Error writing to file: %s", err) - } - - err = writePackage(*outputPath, "services", sortedServices, services) - if err != nil { - fmt.Printf("Error writing to file: %s", err) + for _, _ = range params[1:] { + // rString = fmt.Sprintf("%s,%s-%s", rString, param.Name, param.Type) + rString = fmt.Sprintf("%s, nil", rString) } + return rString } -// Exported template functions - func RemovePrefix(args ...interface{}) string { s := args[0].(string) @@ -358,9 +170,7 @@ func Tags(args ...interface{}) string { } } -// private - -func createGetters(service *Type) { +func CreateGetters(service *Type) { for _, p := range service.Properties { if p.Form == "relational" { m := Method{ @@ -377,7 +187,7 @@ func createGetters(service *Type) { } // Special case for ensuring we can set a complexType on product orders. -func addComplexType(dataType *Type) { +func AddComplexType(dataType *Type) { // Only adding this to the base product order type. All others embed this one. if dataType.Name == "SoftLayer_Container_Product_Order" { dataType.Properties["complexType"] = Property{ @@ -396,15 +206,15 @@ func addComplexType(dataType *Type) { } } -// Special case for fixing some datatype properties in the metadata -func fixDatatype(t *Type, meta map[string]Type) { +// Special case for fixing some datatype properties in the metadata so that these properties can be set in their base +func FixDatatype(t *Type, meta map[string]Type) { if strings.HasPrefix(t.Name, "SoftLayer_Dns_Domain_ResourceRecord_") { baseRecordType, _ := meta["SoftLayer_Dns_Domain_ResourceRecord"] for propName, prop := range t.Properties { baseRecordType.Properties[propName] = prop } meta["SoftLayer_Dns_Domain_ResourceRecord"] = baseRecordType - } else if t.Name == "SoftLayer_Container_User_Customer_External_Binding_Verisign" || t.Name == "SoftLayer_Container_User_Customer_External_Binding_Verisign_Totp" { + } else if t.Name == "SoftLayer_Container_User_Customer_External_Binding_Verisign" { baseType, _ := meta["SoftLayer_Container_User_Customer_External_Binding"] for propName, prop := range t.Properties { baseType.Properties[propName] = prop @@ -414,7 +224,7 @@ func fixDatatype(t *Type, meta map[string]Type) { } // Special case for fixing some broken return types in the metadata -func fixReturnType(service *Type) { +func FixReturnType(service *Type) { brokenServices := map[string]string{ "SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service": "deleteObject", "SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualServer": "deleteObject", @@ -448,7 +258,7 @@ func phraseMethodArg(methodName string, argName string, isArray bool, argType st return fmt.Sprintf("%s %s%s, ", argName, refPrefix, argType) } -func combineMethods(baseMethods map[string]Method, subclassMethods map[string]Method) map[string]Method { +func CombineMethods(baseMethods map[string]Method, subclassMethods map[string]Method) map[string]Method { r := map[string]Method{} // Copy all subclass methods into the result set @@ -467,23 +277,23 @@ func combineMethods(baseMethods map[string]Method, subclassMethods map[string]Me return r } -func getBaseMethods(s Type, typeMap map[string]Type) map[string]Method { +func GetBaseMethods(s Type, typeMap map[string]Type) map[string]Method { var methods, baseMethods map[string]Method methods = s.Methods if s.Base != "SoftLayer_Entity" { - baseMethods = getBaseMethods(typeMap[s.Base], typeMap) + baseMethods = GetBaseMethods(typeMap[s.Base], typeMap) // Add base methods to current service methods - methods = combineMethods(baseMethods, methods) + methods = CombineMethods(baseMethods, methods) } // return my methods return methods } -func getSortedKeys(m map[string]Type) []string { +func GetSortedKeys(m map[string]Type) []string { keys := make([]string, 0, len(m)) for key := range m { if validCheck(key) { @@ -505,20 +315,21 @@ func validCheck(name string) bool { } return true } -func writePackage(base string, pkg string, meta []Type, ts string) error { +func WritePackage(base string, pkg string, meta []Type, ts string) error { var currPrefix string var start int for i, t := range meta { - components := strings.Split(RemovePrefix(t.Name), "_") + components := strings.Split(RemovePrefix(t.Name), "_") + meta[i].ServiceGroup = components[0] if i == 0 { currPrefix = components[0] continue } if components[0] != currPrefix { - err := writeGoFile(base, pkg, currPrefix, meta[start:i], ts) + err := WriteGoFile(base, pkg, currPrefix, meta[start:i], ts) if err != nil { return err } @@ -528,15 +339,15 @@ func writePackage(base string, pkg string, meta []Type, ts string) error { } } - writeGoFile(base, pkg, currPrefix, meta[start:], ts) + WriteGoFile(base, pkg, currPrefix, meta[start:], ts) return nil } // Executes a template against the metadata structure, and generates a go source file with the result -func writeGoFile(base string, pkg string, name string, meta []Type, ts string) error { +func WriteGoFile(base string, pkg string, name string, meta []Type, ts string) error { filename := base + "/" + pkg + "/" + strings.ToLower(name) + ".go" - + fmt.Printf("Creating %s\n", filename) // Generate the source var buf bytes.Buffer t := template.New(pkg).Funcs(fMap) @@ -560,35 +371,75 @@ func writeGoFile(base string, pkg string, name string, meta []Type, ts string) e f, err := os.Create(filename) if err != nil { - return fmt.Errorf("Error creating file: %s", err) + return fmt.Errorf("Error creating %s: %s", filename, err) } defer f.Close() fmt.Fprintf(f, "%s", pretty) + if pkg == "services" { + generateTestFiles(base, meta, strings.ToLower(name)) + } return nil } -func makeHttpRequest(url string, requestType string, requestBody *bytes.Buffer) ([]byte, int, error) { +func generateTestFiles(base string, meta []Type, groupName string) { + // These are technically a service... but dont have any methods to test... + if groupName == "exception" { + return + } + path := fmt.Sprintf("%s/services/%s_test.go", base, groupName) + fmt.Printf("Creating %s\n", path) + template := template.New(path) + template.Funcs(fMap) + _, err := template.Parse(testTemplate) + if err != nil { + fmt.Printf("Error Parsing Template: %s\n", err) + return + } + outfile, err := os.Create(path) + if err != nil { + fmt.Printf("Error Creating File %s: %s\n", path, err) + return + } + defer outfile.Close() + err = template.Execute(outfile, meta) + if err != nil { + fmt.Printf("Error Executing Template: %s\n", err) + return + } +} + +func GetMetaFromURL(url string) ([]byte, error) { client := http.DefaultClient - req, err := http.NewRequest(requestType, url, requestBody) + req, err := http.NewRequest("GET", url, nil) if err != nil { - return nil, 0, err + return nil, err } resp, err := client.Do(req) if err != nil { - return nil, 520, err + return nil, err } defer resp.Body.Close() responseBody, err := ioutil.ReadAll(resp.Body) if err != nil { - return nil, resp.StatusCode, err + return nil, err + } + + return responseBody, nil +} + +func GetMetaFromFile(file string) ([]byte, error) { + jsonFile, err := os.Open(file) + if err != nil { + return nil, err } - return responseBody, resp.StatusCode, nil + defer jsonFile.Close() + return ioutil.ReadAll(jsonFile) } func getTypePrefix(isArray bool, theType string) string { diff --git a/generator/loadmeta_test.go b/generator/loadmeta_test.go new file mode 100644 index 0000000..e733945 --- /dev/null +++ b/generator/loadmeta_test.go @@ -0,0 +1,159 @@ +package generator_test + +import ( + "encoding/json" + "fmt" + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + . "github.com/softlayer/softlayer-go/generator" +) + +var _ = Describe("LoadMeta Tests", func() { + BeforeEach(func() { + + }) + Context("Testing Load Meta methods", func() { + Context("RemovePrefix() Tests", func() { + It("Test SoftLayer_ is removed", func() { + result := RemovePrefix("SoftLayer_Test") + Expect(result).To(Equal("Test")) + }) + It("Unexpected Prefix not removed", func() { + result := RemovePrefix("Something_Else") + Expect(result).To(Equal("Something_Else")) + }) + }) + // https://onsi.github.io/ginkgo/#table-specs + Context("ConvertType() Tests", func() { + DescribeTable("Testing converting SL types to Go types", + func(i_string string, expected string) { + result := ConvertType(i_string, "datatypes") + Expect(result).To(Equal(expected)) + }, + // This handles printing out the Entry description. + func(i_string string, expected string) string { + return fmt.Sprintf("ConvertType(%s) = %s", i_string, expected) + }, + Entry(nil, "unsignedLong", "uint"), + Entry(nil, "boolean", "bool"), + Entry(nil, "dateTime", "Time"), + Entry(nil, "decimal", "Float64"), + Entry(nil, "base64Binary", "[]byte"), + Entry(nil, "json", "string"), + Entry(nil, "SoftLayer_Hardware", "Hardware"), + Entry(nil, "SoftLayer_Entity", "Entity"), + Entry(nil, "McAfee_Something", "McAfee_Something"), + Entry(nil, "test", "test"), + ) + Describe("Testing converting to an interface", func() { + result := ConvertType("SoftLayer_Entity", "datatypes", "SoftLayer_Test", "resource") + Expect(result).To(Equal("interface{}")) + }) + }) + Context("RemoveReservedWords() Tests", func() { + DescribeTable("Testing reserveed word removal", + func(i_string string, expected string) { + Expect(RemoveReservedWords(i_string)).To(Equal(expected)) + }, + func(i_string string, expected string) string { + return fmt.Sprintf("RemovedReservedWords(%s) = %s", i_string, expected) + }, + Entry(nil, "type", "typ"), + Entry(nil, "other", "other"), + Entry(nil, "SoftLayer", "SoftLayer"), + ) + }) + Context("Desnake() Tests", func() { + Describe("Test Desnake", func() { + It("Desnake(SoftLayer_Test_This_Thing)", func() { + Expect(Desnake("SoftLayer_Test_This_Thing")).To(Equal("SoftLayerTestThisThing")) + }) + + }) + }) + Context("GoDoc() Tests", func() { + Describe("GoDoc Tests", func() { + It("GoDoc('')", func() { + Expect(GoDoc("")).To(Equal("// no documentation yet")) + }) + It("GoDoc('TEST')", func() { + Expect(GoDoc("TEST")).To(Equal("// TEST")) + }) + }) + }) + Context("Tags() Tests", func() { + Describe("Tags Test", func() { + It("Tags('resourceRecords')", func() { + Expect(Tags("resourceRecords")).To(Equal("resourceRecords")) + }) + It("Tags('SomethingElse')", func() { + Expect(Tags("SomethingElse")).To(Equal("SomethingElse,omitempty")) + }) + }) + }) + Context("Data Fixing Tests", func() { + var sl_services map[string]Type + BeforeEach(func() { + jsonResp, err := GetMetaFromFile(metaPath) // from generate_test.go + Expect(err).NotTo(HaveOccurred()) + err = json.Unmarshal(jsonResp, &sl_services) + Expect(err).NotTo(HaveOccurred()) + }) + Describe("CreateGetters() Basic Tests", func() { + It("No Properties", func() { + test_service := sl_services["SoftLayer_Test_Service"] + CreateGetters(&test_service) + Expect(test_service.Name).To(Equal("SoftLayer_Test_Service")) + Expect(test_service.Methods).To(BeNil()) + }) + It("Happy Path", func() { + test_service := sl_services["SoftLayer_Account"] + CreateGetters(&test_service) + Expect(test_service.Name).To(Equal("SoftLayer_Account")) + Expect(test_service.Methods).ToNot(BeNil()) + Expect(len(test_service.Methods)).To(Equal(4)) + Expect(test_service.Methods["getAbuseEmail"].Name).To(Equal("getAbuseEmail")) + Expect(test_service.Methods["getAccountLinks"].Name).To(Equal("getAccountLinks")) + }) + }) + Describe("AddComplexType() Basic Tests", func() { + It("SoftLayer_Container_Product_Order Complex Type", func() { + test_datatype := sl_services["SoftLayer_Container_Product_Order"] + AddComplexType(&test_datatype) + Expect(len(test_datatype.Properties)).To(Equal(2)) + Expect(test_datatype.Properties["complexType"]).ToNot(BeNil()) + Expect(test_datatype.Properties["complexType"].Name).To(Equal("complexType")) + }) + It("SoftLayer_Container_User_Customer_External_Binding Complex Type", func() { + test_datatype := sl_services["SoftLayer_Container_User_Customer_External_Binding"] + AddComplexType(&test_datatype) + Expect(len(test_datatype.Properties)).To(Equal(2)) + Expect(test_datatype.Properties["complexType"]).ToNot(BeNil()) + Expect(test_datatype.Properties["complexType"].Name).To(Equal("complexType")) + }) + }) + Describe("FixDatatype() Basic Tests", func() { + It("Test SoftLayer_Dns_Domain_ResourceRecord Fixes", func() { + test_datatype1 := sl_services["SoftLayer_Dns_Domain_ResourceRecord_Test"] + test_datatype2 := sl_services["SoftLayer_Dns_Domain_ResourceRecord"] + Expect(len(test_datatype1.Properties)).To(Equal(1)) + Expect(len(test_datatype2.Properties)).To(Equal(1)) + FixDatatype(&test_datatype1, sl_services) + Expect(len(test_datatype2.Properties)).To(Equal(2)) + Expect(test_datatype2.Properties["testProp"]).ToNot(BeNil()) + Expect(test_datatype2.Properties["testProp"].Name).To(Equal("testProp1")) + }) + It("Test Container_User_Customer_External_Binding Fixes", func() { + test_datatype1 := sl_services["SoftLayer_Container_User_Customer_External_Binding_Verisign"] + test_datatype2 := sl_services["SoftLayer_Container_User_Customer_External_Binding"] + Expect(len(test_datatype1.Properties)).To(Equal(1)) + Expect(len(test_datatype2.Properties)).To(Equal(1)) + FixDatatype(&test_datatype1, sl_services) + Expect(len(test_datatype2.Properties)).To(Equal(2)) + Expect(test_datatype2.Properties["securityCode"]).ToNot(BeNil()) + Expect(test_datatype2.Properties["securityCode"].Name).To(Equal("securityCode")) + }) + }) + }) + }) +}) diff --git a/generator/templates.go b/generator/templates.go new file mode 100644 index 0000000..e32594f --- /dev/null +++ b/generator/templates.go @@ -0,0 +1,189 @@ +package generator + +import ( + "fmt" + "strings" + "text/template" +) + +const license = `/** + * Copyright 2016-2024 IBM Corp. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. + */ + ` +const codegenWarning = `// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY` + +// Define custom template functions +var fMap = template.FuncMap{ + "convertType": ConvertType, // Converts SoftLayer types to Go types + "removePrefix": RemovePrefix, // Remove 'SoftLayer_' prefix. if it exists + "removeReserved": RemoveReservedWords, // Substitute language-reserved identifiers + "titleCase": strings.Title, // TitleCase the argument + "desnake": Desnake, // Remove '_' from Snake_Case + "goDoc": GoDoc, // Format a go doc string + "tags": Tags, // Remove omitempty tags if required + "phraseMethodArg": phraseMethodArg, // Get proper phrase for method argument + "getTypePrefix": getTypePrefix, // resturns [], * or nothing. + "deprecatedDoc": deprecatedDoc, // Marks things as deprecated if needed. + "nilParam": NilParam, // For unit testing fakes +} + +var datatype = fmt.Sprintf(`%s + +%s + +package datatypes + +{{range .}}{{.TypeDoc|goDoc}} +type {{.Name|removePrefix}} struct { + {{.Base|removePrefix}} + +{{$base := .Name}}{{range .Properties}}{{.Doc|goDoc}}{{deprecatedDoc .Deprecated}}`+ + `{{$thisType := convertType .Type "datatypes" $base .Name}} + {{.Name|titleCase}} {{getTypePrefix .TypeArray $thisType}}{{$thisType}}`+ + "`json:\"{{.Name|tags}}\" xmlrpc:\"{{.Name|tags}}\"`"+` + +{{end}} +} + +{{end}} +`, license, codegenWarning) + +var services = fmt.Sprintf(`%s + +%s + +package services + +import ( + "fmt" + "strings" +) + +{{range .}}{{$base := .Name|removePrefix}}{{.TypeDoc|goDoc}}{{deprecatedDoc .Deprecated}} + type {{$base}} struct { + Session session.SLSession + Options sl.Options + } + + // Get{{$base | desnake}}Service returns an instance of the {{$base}} SoftLayer service + func Get{{$base | desnake}}Service(sess session.SLSession) {{$base}} { + return {{$base}}{Session: sess} + } + + func (r {{$base}}) Id(id int) {{$base}} { + r.Options.Id = &id + return r + } + + func (r {{$base}}) Mask(mask string) {{$base}} { + if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { + mask = fmt.Sprintf("mask[%%s]", mask) + } + + r.Options.Mask = mask + return r + } + + func (r {{$base}}) Filter(filter string) {{$base}} { + r.Options.Filter = filter + return r + } + + func (r {{$base}}) Limit(limit int) {{$base}} { + r.Options.Limit = &limit + return r + } + + func (r {{$base}}) Offset(offset int) {{$base}} { + r.Options.Offset = &offset + return r + } + + {{$rawBase := .Name}}{{range .Methods}}{{$methodName := .Name}}{{.Doc|goDoc}}{{deprecatedDoc .Deprecated}} + func (r {{$base}}) {{.Name|titleCase}}({{range .Parameters}}{{phraseMethodArg $methodName .Name .TypeArray .Type}}{{end}}) ({{if .Type|ne "void"}}resp {{if .TypeArray}}[]{{end}}{{convertType .Type "services"}}, {{end}}err error) { + {{if .Type|eq "void"}}var resp datatypes.Void + {{end}}{{if or (eq .Name "placeOrder") (eq .Name "verifyOrder")}}err = datatypes.SetComplexType(orderData) + if err != nil { + return + } + {{end}}{{if len .Parameters | lt 0}}params := []interface{}{ + {{range .Parameters}}{{.Name|removeReserved}}, + {{end}} + } + {{end}}err = r.Session.DoRequest("{{$rawBase}}", "{{.Name}}", {{if len .Parameters | lt 0}}params{{else}}nil{{end}}, &r.Options, &resp) + return + } + {{end}} + +{{end}} +`, license, codegenWarning) + +var testTemplate = `// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("{{(index . 0 ).ServiceGroup}} Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) +{{range .}} + Context("Testing {{.Name}} service", func() { + var sl_service services.{{.Name | removePrefix}} + BeforeEach(func() { + sl_service = services.Get{{.Name | removePrefix | desnake}}Service(slsession) + }) +{{- $serviceName := .Name }} + Context("{{$serviceName}} Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("{{$serviceName}} Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) +{{- range .Methods }} + Context("{{$serviceName}}::{{.Name}}", func() { + It("API Call Test", func() { +{{- if .Type|ne "void"}} + _, err := sl_service.{{.Name | titleCase}}({{.Parameters | nilParam}}) +{{- else }} + err := sl_service.{{.Name | titleCase}}({{.Parameters | nilParam}}) +{{- end }} + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) +{{- end }} + }) +{{ end }} +}) +` diff --git a/generator/types.go b/generator/types.go new file mode 100644 index 0000000..3340cf1 --- /dev/null +++ b/generator/types.go @@ -0,0 +1,48 @@ +package generator + +type Type struct { + Name string `json:"name"` + Base string `json:"base"` + TypeDoc string `json:"typeDoc"` + Properties map[string]Property `json:"properties"` + ServiceDoc string `json:"serviceDoc"` + Methods map[string]Method `json:"methods"` + NoService bool `json:"noservice"` + Overview string `json:"docOverview"` + Deprecated bool `json:"deprecated"` + ServiceGroup string +} + +type Property struct { + Name string `json:"name"` + Type string `json:"type"` + TypeArray bool `json:"typeArray"` + Form string `json:"form"` + Doc string `json:"doc"` + Overview string `json:"docOverview"` + Deprecated bool `json:"deprecated"` +} + +type Method struct { + Name string `json:"name"` + Type string `json:"type"` + TypeArray bool `json:"typeArray"` + Doc string `json:"doc"` + Static bool `json:"static"` + NoAuth bool `json:"noauth"` + Limitable bool `json:"limitable"` + Filterable bool `json:"filterable"` + Maskable bool `json:"maskable"` + Parameters []Parameter `json:"parameters"` + Overview string `json:"docOverview"` + Deprecated bool `json:"deprecated"` +} + +type Parameter struct { + Name string `json:"name"` + Type string `json:"type"` + TypeArray bool `json:"typeArray"` + Doc string `json:"doc"` + DefaultValue interface{} `json:"defaultValue"` + ParentMethod string +} diff --git a/go.mod b/go.mod index 16330df..c322f4d 100644 --- a/go.mod +++ b/go.mod @@ -1,15 +1,28 @@ module github.com/softlayer/softlayer-go -go 1.19 +go 1.21 require ( github.com/jarcoal/httpmock v1.0.5 + github.com/maxbrunsfeld/counterfeiter/v6 v6.8.1 + github.com/onsi/ginkgo/v2 v2.15.0 + github.com/onsi/gomega v1.31.1 github.com/softlayer/xmlrpc v0.0.0-20200409220501-5f089df7cb7e - golang.org/x/tools v0.1.12 + golang.org/x/tools v0.17.0 ) require ( - golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect - golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect - golang.org/x/text v0.3.8 // indirect + github.com/go-logr/logr v1.3.0 // indirect + github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect + github.com/google/go-cmp v0.6.0 // indirect + github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38 // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/kr/pretty v0.3.1 // indirect + github.com/spf13/cobra v1.8.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + golang.org/x/mod v0.14.0 // indirect + golang.org/x/net v0.20.0 // indirect + golang.org/x/sys v0.16.0 // indirect + golang.org/x/text v0.14.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 35c5929..25e65cb 100644 --- a/go.sum +++ b/go.sum @@ -1,12 +1,66 @@ +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/go-logr/logr v1.3.0 h1:2y3SDp0ZXuc6/cjLSZ+Q3ir+QB9T/iG5yYRXqsagWSY= +github.com/go-logr/logr v1.3.0/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= +github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= +github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38 h1:yAJXTCF9TqKcTiHJAE8dj7HMvPfh66eeA2JYW7eFpSE= +github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/jarcoal/httpmock v1.0.5 h1:cHtVEcTxRSX4J0je7mWPfc9BpDpqzXSJ5HbymZmyHck= github.com/jarcoal/httpmock v1.0.5/go.mod h1:ATjnClrvW/3tijVmpL/va5Z3aAyGvqU3gCT8nX0Txik= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/maxbrunsfeld/counterfeiter/v6 v6.8.1 h1:NicmruxkeqHjDv03SfSxqmaLuisddudfP3h5wdXFbhM= +github.com/maxbrunsfeld/counterfeiter/v6 v6.8.1/go.mod h1:eyp4DdUJAKkr9tvxR3jWhw2mDK7CWABMG5r9uyaKC7I= +github.com/onsi/ginkgo/v2 v2.15.0 h1:79HwNRBAZHOEwrczrgSOPy+eFTTlIGELKy5as+ClttY= +github.com/onsi/ginkgo/v2 v2.15.0/go.mod h1:HlxMHtYF57y6Dpf+mc5529KKmSq9h2FpCF+/ZkwUxKM= +github.com/onsi/gomega v1.31.1 h1:KYppCUK+bUgAZwHOu7EXVBKyQA6ILvOESHkn/tgoqvo= +github.com/onsi/gomega v1.31.1/go.mod h1:y40C95dwAD1Nz36SsEnxvfFe8FFfNxzI5eJ0EYGyAy0= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8= github.com/softlayer/xmlrpc v0.0.0-20200409220501-5f089df7cb7e h1:3OgWYFw7jxCZPcvAg+4R8A50GZ+CCkARF10lxu2qDsQ= github.com/softlayer/xmlrpc v0.0.0-20200409220501-5f089df7cb7e/go.mod h1:fKZCUVdirrxrBpwd9wb+lSoVixvpwAu8eHzbQB2tums= -golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 h1:6zppjxzCulZykYSLyVDYbneBfbaBIQPYMevg0bEwv2s= -golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f h1:v4INt8xihDGvnrfjMDVXGxw9wrfxYyCjk0KbXjhR55s= -golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/text v0.3.8 h1:nAL+RVCQ9uMn3vJZbV+MRnydTJFPf8qqY42YiA6MrqY= -golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= -golang.org/x/tools v0.1.12 h1:VveCTK38A2rkS8ZqFY25HIDFscX5X9OoEhJd3quQmXU= -golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= +github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= +github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= +github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0= +golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/net v0.20.0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo= +golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= +golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= +golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/tools v0.17.0 h1:FvmRgNOcs3kOa+T20R1uhfP9F6HgG2mfxDv1vrx1Htc= +golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps= +google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/services/account.go b/services/account.go index a636f85..d962b41 100644 --- a/services/account.go +++ b/services/account.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -33,12 +26,12 @@ import ( // // SoftLayer customers are unable to change their company account information in the portal or the API. If you need to change this information please open a sales ticket in our customer portal and our account management staff will assist you. type Account struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountService returns an instance of the Account SoftLayer service -func GetAccountService(sess *session.Session) Account { +func GetAccountService(sess session.SLSession) Account { return Account{Session: sess} } @@ -649,12 +642,6 @@ func (r Account) GetDisplaySupportRepresentativeAssignments() (resp []datatypes. return } -// Retrieve -func (r Account) GetDomainRegistrations() (resp []datatypes.Dns_Domain_Registration, err error) { - err = r.Session.DoRequest("SoftLayer_Account", "getDomainRegistrations", nil, &r.Options, &resp) - return -} - // Retrieve The DNS domains associated with an account. func (r Account) GetDomains() (resp []datatypes.Dns_Domain, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getDomains", nil, &r.Options, &resp) @@ -2195,12 +2182,12 @@ func (r Account) ValidateManualPaymentAmount(amount *string) (resp bool, err err // The SoftLayer_Account_Address data type contains information on an address associated with a SoftLayer account. type Account_Address struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountAddressService returns an instance of the Account_Address SoftLayer service -func GetAccountAddressService(sess *session.Session) Account_Address { +func GetAccountAddressService(sess session.SLSession) Account_Address { return Account_Address{Session: sess} } @@ -2310,12 +2297,12 @@ func (r Account_Address) GetType() (resp datatypes.Account_Address_Type, err err // no documentation yet type Account_Address_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountAddressTypeService returns an instance of the Account_Address_Type SoftLayer service -func GetAccountAddressTypeService(sess *session.Session) Account_Address_Type { +func GetAccountAddressTypeService(sess session.SLSession) Account_Address_Type { return Account_Address_Type{Session: sess} } @@ -2356,12 +2343,12 @@ func (r Account_Address_Type) GetObject() (resp datatypes.Account_Address_Type, // This service allows for a unique identifier to be associated to an existing customer account. type Account_Affiliation struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountAffiliationService returns an instance of the Account_Affiliation SoftLayer service -func GetAccountAffiliationService(sess *session.Session) Account_Affiliation { +func GetAccountAffiliationService(sess session.SLSession) Account_Affiliation { return Account_Affiliation{Session: sess} } @@ -2441,12 +2428,12 @@ func (r Account_Affiliation) GetObject() (resp datatypes.Account_Affiliation, er // no documentation yet type Account_Agreement struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountAgreementService returns an instance of the Account_Agreement SoftLayer service -func GetAccountAgreementService(sess *session.Session) Account_Agreement { +func GetAccountAgreementService(sess session.SLSession) Account_Agreement { return Account_Agreement{Session: sess} } @@ -2523,12 +2510,12 @@ func (r Account_Agreement) GetTopLevelBillingItems() (resp []datatypes.Billing_I // Account authentication has many different settings that can be set. This class allows the customer or employee to set these settings. type Account_Authentication_Attribute struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountAuthenticationAttributeService returns an instance of the Account_Authentication_Attribute SoftLayer service -func GetAccountAuthenticationAttributeService(sess *session.Session) Account_Authentication_Attribute { +func GetAccountAuthenticationAttributeService(sess session.SLSession) Account_Authentication_Attribute { return Account_Authentication_Attribute{Session: sess} } @@ -2587,12 +2574,12 @@ func (r Account_Authentication_Attribute) GetType() (resp datatypes.Account_Auth // SoftLayer_Account_Authentication_Attribute_Type models the type of attribute that can be assigned to a SoftLayer customer account authentication. type Account_Authentication_Attribute_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountAuthenticationAttributeTypeService returns an instance of the Account_Authentication_Attribute_Type SoftLayer service -func GetAccountAuthenticationAttributeTypeService(sess *session.Session) Account_Authentication_Attribute_Type { +func GetAccountAuthenticationAttributeTypeService(sess session.SLSession) Account_Authentication_Attribute_Type { return Account_Authentication_Attribute_Type{Session: sess} } @@ -2639,12 +2626,12 @@ func (r Account_Authentication_Attribute_Type) GetObject() (resp datatypes.Accou // no documentation yet type Account_Authentication_Saml struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountAuthenticationSamlService returns an instance of the Account_Authentication_Saml SoftLayer service -func GetAccountAuthenticationSamlService(sess *session.Session) Account_Authentication_Saml { +func GetAccountAuthenticationSamlService(sess session.SLSession) Account_Authentication_Saml { return Account_Authentication_Saml{Session: sess} } @@ -2727,12 +2714,12 @@ func (r Account_Authentication_Saml) GetObject() (resp datatypes.Account_Authent // Represents a request to migrate an account to the owned brand. type Account_Brand_Migration_Request struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountBrandMigrationRequestService returns an instance of the Account_Brand_Migration_Request SoftLayer service -func GetAccountBrandMigrationRequestService(sess *session.Session) Account_Brand_Migration_Request { +func GetAccountBrandMigrationRequestService(sess session.SLSession) Account_Brand_Migration_Request { return Account_Brand_Migration_Request{Session: sess} } @@ -2797,12 +2784,12 @@ func (r Account_Brand_Migration_Request) GetUser() (resp datatypes.User_Customer // Contains business partner details associated with an account. Country Enterprise Identifier (CEID), Channel ID, Segment ID and Reseller Level. type Account_Business_Partner struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountBusinessPartnerService returns an instance of the Account_Business_Partner SoftLayer service -func GetAccountBusinessPartnerService(sess *session.Session) Account_Business_Partner { +func GetAccountBusinessPartnerService(sess session.SLSession) Account_Business_Partner { return Account_Business_Partner{Session: sess} } @@ -2861,12 +2848,12 @@ func (r Account_Business_Partner) GetSegment() (resp datatypes.Business_Partner_ // no documentation yet type Account_Contact struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountContactService returns an instance of the Account_Contact SoftLayer service -func GetAccountContactService(sess *session.Session) Account_Contact { +func GetAccountContactService(sess session.SLSession) Account_Contact { return Account_Contact{Session: sess} } @@ -2958,12 +2945,12 @@ func (r Account_Contact) GetType() (resp datatypes.Account_Contact_Type, err err // no documentation yet type Account_External_Setup struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountExternalSetupService returns an instance of the Account_External_Setup SoftLayer service -func GetAccountExternalSetupService(sess *session.Session) Account_External_Setup { +func GetAccountExternalSetupService(sess session.SLSession) Account_External_Setup { return Account_External_Setup{Session: sess} } @@ -3019,12 +3006,12 @@ func (r Account_External_Setup) GetVerifyCardTransaction() (resp datatypes.Billi // no documentation yet type Account_Historical_Report struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountHistoricalReportService returns an instance of the Account_Historical_Report SoftLayer service -func GetAccountHistoricalReportService(sess *session.Session) Account_Historical_Report { +func GetAccountHistoricalReportService(sess session.SLSession) Account_Historical_Report { return Account_Historical_Report{Session: sess} } @@ -3129,12 +3116,12 @@ func (r Account_Historical_Report) GetUrlUptimeGraphData(configurationValueId *i // no documentation yet type Account_Internal_Ibm struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountInternalIbmService returns an instance of the Account_Internal_Ibm SoftLayer service -func GetAccountInternalIbmService(sess *session.Session) Account_Internal_Ibm { +func GetAccountInternalIbmService(sess session.SLSession) Account_Internal_Ibm { return Account_Internal_Ibm{Session: sess} } @@ -3257,12 +3244,12 @@ func (r Account_Internal_Ibm) RequestAccount(requestContainer *datatypes.Contain // no documentation yet type Account_Internal_Ibm_CostRecovery_Validator struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountInternalIbmCostRecoveryValidatorService returns an instance of the Account_Internal_Ibm_CostRecovery_Validator SoftLayer service -func GetAccountInternalIbmCostRecoveryValidatorService(sess *session.Session) Account_Internal_Ibm_CostRecovery_Validator { +func GetAccountInternalIbmCostRecoveryValidatorService(sess session.SLSession) Account_Internal_Ibm_CostRecovery_Validator { return Account_Internal_Ibm_CostRecovery_Validator{Session: sess} } @@ -3317,12 +3304,12 @@ func (r Account_Internal_Ibm_CostRecovery_Validator) ValidateByAccountAndCountry // no documentation yet type Account_Link_Bluemix struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountLinkBluemixService returns an instance of the Account_Link_Bluemix SoftLayer service -func GetAccountLinkBluemixService(sess *session.Session) Account_Link_Bluemix { +func GetAccountLinkBluemixService(sess session.SLSession) Account_Link_Bluemix { return Account_Link_Bluemix{Session: sess} } @@ -3369,12 +3356,12 @@ func (r Account_Link_Bluemix) GetSupportTierType() (resp string, err error) { // no documentation yet type Account_Link_OpenStack struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountLinkOpenStackService returns an instance of the Account_Link_OpenStack SoftLayer service -func GetAccountLinkOpenStackService(sess *session.Session) Account_Link_OpenStack { +func GetAccountLinkOpenStackService(sess session.SLSession) Account_Link_OpenStack { return Account_Link_OpenStack{Session: sess} } @@ -3472,12 +3459,12 @@ func (r Account_Link_OpenStack) ListOSProjects() (resp []datatypes.Account_Link_ // The SoftLayer_Account_Lockdown_Request data type holds information on API requests from brand customers. type Account_Lockdown_Request struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountLockdownRequestService returns an instance of the Account_Lockdown_Request SoftLayer service -func GetAccountLockdownRequestService(sess *session.Session) Account_Lockdown_Request { +func GetAccountLockdownRequestService(sess session.SLSession) Account_Lockdown_Request { return Account_Lockdown_Request{Session: sess} } @@ -3562,12 +3549,12 @@ func (r Account_Lockdown_Request) ReconnectCompute(reconnectDate *string) (resp // no documentation yet type Account_MasterServiceAgreement struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountMasterServiceAgreementService returns an instance of the Account_MasterServiceAgreement SoftLayer service -func GetAccountMasterServiceAgreementService(sess *session.Session) Account_MasterServiceAgreement { +func GetAccountMasterServiceAgreementService(sess session.SLSession) Account_MasterServiceAgreement { return Account_MasterServiceAgreement{Session: sess} } @@ -3620,12 +3607,12 @@ func (r Account_MasterServiceAgreement) GetObject() (resp datatypes.Account_Mast // The SoftLayer_Account_Media data type contains information on a single piece of media associated with a Data Transfer Service request. type Account_Media struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountMediaService returns an instance of the Account_Media SoftLayer service -func GetAccountMediaService(sess *session.Session) Account_Media { +func GetAccountMediaService(sess session.SLSession) Account_Media { return Account_Media{Session: sess} } @@ -3738,12 +3725,12 @@ func (r Account_Media) RemoveMediaFromList(mediaTemplate *datatypes.Account_Medi // The SoftLayer_Account_Media_Data_Transfer_Request data type contains information on a single Data Transfer Service request. Creation of these requests is limited to SoftLayer customers through the SoftLayer Customer Portal. type Account_Media_Data_Transfer_Request struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountMediaDataTransferRequestService returns an instance of the Account_Media_Data_Transfer_Request SoftLayer service -func GetAccountMediaDataTransferRequestService(sess *session.Session) Account_Media_Data_Transfer_Request { +func GetAccountMediaDataTransferRequestService(sess session.SLSession) Account_Media_Data_Transfer_Request { return Account_Media_Data_Transfer_Request{Session: sess} } @@ -3859,12 +3846,12 @@ func (r Account_Media_Data_Transfer_Request) GetTickets() (resp []datatypes.Tick // no documentation yet type Account_Note struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountNoteService returns an instance of the Account_Note SoftLayer service -func GetAccountNoteService(sess *session.Session) Account_Note { +func GetAccountNoteService(sess session.SLSession) Account_Note { return Account_Note{Session: sess} } @@ -3947,12 +3934,12 @@ func (r Account_Note) GetObject() (resp datatypes.Account_Note, err error) { // no documentation yet type Account_Partner_Referral_Prospect struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountPartnerReferralProspectService returns an instance of the Account_Partner_Referral_Prospect SoftLayer service -func GetAccountPartnerReferralProspectService(sess *session.Session) Account_Partner_Referral_Prospect { +func GetAccountPartnerReferralProspectService(sess session.SLSession) Account_Partner_Referral_Prospect { return Account_Partner_Referral_Prospect{Session: sess} } @@ -4009,12 +3996,12 @@ func (r Account_Partner_Referral_Prospect) GetSurveyQuestions() (resp []datatype // The SoftLayer_Account_Password contains username, passwords and notes for services that may require for external applications such the Webcc interface for the EVault Storage service. type Account_Password struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountPasswordService returns an instance of the Account_Password SoftLayer service -func GetAccountPasswordService(sess *session.Session) Account_Password { +func GetAccountPasswordService(sess session.SLSession) Account_Password { return Account_Password{Session: sess} } @@ -4076,12 +4063,12 @@ func (r Account_Password) GetType() (resp datatypes.Account_Password_Type, err e // no documentation yet type Account_ProofOfConcept struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountProofOfConceptService returns an instance of the Account_ProofOfConcept SoftLayer service -func GetAccountProofOfConceptService(sess *session.Session) Account_ProofOfConcept { +func GetAccountProofOfConceptService(sess session.SLSession) Account_ProofOfConcept { return Account_ProofOfConcept{Session: sess} } @@ -4288,12 +4275,12 @@ func (r Account_ProofOfConcept) VerifyReviewer(requestId *int, reviewerEmailAddr // This class represents a Proof of Concept account approver. type Account_ProofOfConcept_Approver struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountProofOfConceptApproverService returns an instance of the Account_ProofOfConcept_Approver SoftLayer service -func GetAccountProofOfConceptApproverService(sess *session.Session) Account_ProofOfConcept_Approver { +func GetAccountProofOfConceptApproverService(sess session.SLSession) Account_ProofOfConcept_Approver { return Account_ProofOfConcept_Approver{Session: sess} } @@ -4352,12 +4339,12 @@ func (r Account_ProofOfConcept_Approver) GetType() (resp datatypes.Account_Proof // This class represents a Proof of Concept account approver type. The current roles are Primary and Backup approvers. type Account_ProofOfConcept_Approver_Role struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountProofOfConceptApproverRoleService returns an instance of the Account_ProofOfConcept_Approver_Role SoftLayer service -func GetAccountProofOfConceptApproverRoleService(sess *session.Session) Account_ProofOfConcept_Approver_Role { +func GetAccountProofOfConceptApproverRoleService(sess session.SLSession) Account_ProofOfConcept_Approver_Role { return Account_ProofOfConcept_Approver_Role{Session: sess} } @@ -4398,12 +4385,12 @@ func (r Account_ProofOfConcept_Approver_Role) GetObject() (resp datatypes.Accoun // This class represents a Proof of Concept account approver type. type Account_ProofOfConcept_Approver_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountProofOfConceptApproverTypeService returns an instance of the Account_ProofOfConcept_Approver_Type SoftLayer service -func GetAccountProofOfConceptApproverTypeService(sess *session.Session) Account_ProofOfConcept_Approver_Type { +func GetAccountProofOfConceptApproverTypeService(sess session.SLSession) Account_ProofOfConcept_Approver_Type { return Account_ProofOfConcept_Approver_Type{Session: sess} } @@ -4450,12 +4437,12 @@ func (r Account_ProofOfConcept_Approver_Type) GetObject() (resp datatypes.Accoun // A [SoftLayer_Account_ProofOfConcept_Campaign_Code] provides a `code` and an optional `description`. type Account_ProofOfConcept_Campaign_Code struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountProofOfConceptCampaignCodeService returns an instance of the Account_ProofOfConcept_Campaign_Code SoftLayer service -func GetAccountProofOfConceptCampaignCodeService(sess *session.Session) Account_ProofOfConcept_Campaign_Code { +func GetAccountProofOfConceptCampaignCodeService(sess session.SLSession) Account_ProofOfConcept_Campaign_Code { return Account_ProofOfConcept_Campaign_Code{Session: sess} } @@ -4502,12 +4489,12 @@ func (r Account_ProofOfConcept_Campaign_Code) GetObject() (resp datatypes.Accoun // no documentation yet type Account_ProofOfConcept_Funding_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountProofOfConceptFundingTypeService returns an instance of the Account_ProofOfConcept_Funding_Type SoftLayer service -func GetAccountProofOfConceptFundingTypeService(sess *session.Session) Account_ProofOfConcept_Funding_Type { +func GetAccountProofOfConceptFundingTypeService(sess session.SLSession) Account_ProofOfConcept_Funding_Type { return Account_ProofOfConcept_Funding_Type{Session: sess} } @@ -4564,13 +4551,16 @@ func (r Account_ProofOfConcept_Funding_Type) GetObject() (resp datatypes.Account return } +// The subnet registration detail type has been deprecated. +// +// Deprecated: This function has been marked as deprecated. type Account_Regional_Registry_Detail struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountRegionalRegistryDetailService returns an instance of the Account_Regional_Registry_Detail SoftLayer service -func GetAccountRegionalRegistryDetailService(sess *session.Session) Account_Regional_Registry_Detail { +func GetAccountRegionalRegistryDetailService(sess session.SLSession) Account_Regional_Registry_Detail { return Account_Regional_Registry_Detail{Session: sess} } @@ -4603,9 +4593,12 @@ func (r Account_Regional_Registry_Detail) Offset(offset int) Account_Regional_Re return r } +// The subnet registration detail service has been deprecated. +// // This method will create a new SoftLayer_Account_Regional_Registry_Detail object. // // Input - [[SoftLayer_Account_Regional_Registry_Detail (type)|SoftLayer_Account_Regional_Registry_Detail]] +// Deprecated: This function has been marked as deprecated. func (r Account_Regional_Registry_Detail) CreateObject(templateObject *datatypes.Account_Regional_Registry_Detail) (resp datatypes.Account_Regional_Registry_Detail, err error) { params := []interface{}{ templateObject, @@ -4614,13 +4607,19 @@ func (r Account_Regional_Registry_Detail) CreateObject(templateObject *datatypes return } +// The subnet registration detail service has been deprecated. +// // This method will delete an existing SoftLayer_Account_Regional_Registry_Detail object. +// Deprecated: This function has been marked as deprecated. func (r Account_Regional_Registry_Detail) DeleteObject() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail", "deleteObject", nil, &r.Options, &resp) return } +// The subnet registration detail service has been deprecated. +// // This method will edit an existing SoftLayer_Account_Regional_Registry_Detail object. For more detail, see [[SoftLayer_Account_Regional_Registry_Detail::createObject|createObject]]. +// Deprecated: This function has been marked as deprecated. func (r Account_Regional_Registry_Detail) EditObject(templateObject *datatypes.Account_Regional_Registry_Detail) (resp bool, err error) { params := []interface{}{ templateObject, @@ -4629,19 +4628,19 @@ func (r Account_Regional_Registry_Detail) EditObject(templateObject *datatypes.A return } -// Retrieve The account that this detail object belongs to. +// Retrieve [Deprecated] The account that this detail object belongs to. func (r Account_Regional_Registry_Detail) GetAccount() (resp datatypes.Account, err error) { err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail", "getAccount", nil, &r.Options, &resp) return } -// Retrieve The associated type of this detail object. +// Retrieve [Deprecated] The associated type of this detail object. func (r Account_Regional_Registry_Detail) GetDetailType() (resp datatypes.Account_Regional_Registry_Detail_Type, err error) { err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail", "getDetailType", nil, &r.Options, &resp) return } -// Retrieve References to the [[SoftLayer_Network_Subnet_Registration|registration objects]] that consume this detail object. +// Retrieve [Deprecated] References to the [[SoftLayer_Network_Subnet_Registration|registration objects]] that consume this detail object. func (r Account_Regional_Registry_Detail) GetDetails() (resp []datatypes.Network_Subnet_Registration_Details, err error) { err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail", "getDetails", nil, &r.Options, &resp) return @@ -4653,24 +4652,29 @@ func (r Account_Regional_Registry_Detail) GetObject() (resp datatypes.Account_Re return } -// Retrieve The individual properties that define this detail object's values. +// Retrieve [Deprecated] The individual properties that define this detail object's values. func (r Account_Regional_Registry_Detail) GetProperties() (resp []datatypes.Account_Regional_Registry_Detail_Property, err error) { err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail", "getProperties", nil, &r.Options, &resp) return } -// Retrieve The associated RWhois handle of this detail object. Used only when detailed reassignments are necessary. +// Retrieve [Deprecated] The associated RWhois handle of this detail object. Used only when detailed reassignments are necessary. func (r Account_Regional_Registry_Detail) GetRegionalInternetRegistryHandle() (resp datatypes.Account_Rwhois_Handle, err error) { err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail", "getRegionalInternetRegistryHandle", nil, &r.Options, &resp) return } +// The subnet registration detail service has been deprecated. +// // This method will create a bulk transaction to update any registrations that reference this detail object. It should only be called from a child class such as [[SoftLayer_Account_Regional_Registry_Detail_Person]] or [[SoftLayer_Account_Regional_Registry_Detail_Network]]. The registrations should be in the Open or Registration_Complete status. +// Deprecated: This function has been marked as deprecated. func (r Account_Regional_Registry_Detail) UpdateReferencedRegistrations() (resp datatypes.Container_Network_Subnet_Registration_TransactionDetails, err error) { err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail", "updateReferencedRegistrations", nil, &r.Options, &resp) return } +// The subnet registration detail service has been deprecated. +// // Validates this person detail against all supported external registrars (APNIC/ARIN/RIPE). The validation uses the most restrictive rules ensuring that any person detail passing this validation would be acceptable to any supported registrar. // // # The person detail properties are validated against - Non-emptiness - Minimum length - Maximum length - Maximum words - Supported characters - Format of data @@ -4678,19 +4682,23 @@ func (r Account_Regional_Registry_Detail) UpdateReferencedRegistrations() (resp // If the person detail validation succeeds, then an empty list is returned indicating no errors were found and that this person detail would work against all three registrars during a subnet registration. // // If the person detail validation fails, then an array of validation errors (SoftLayer_Container_Message[]) is returned. Each message container contains error messages grouped by property type and a message type indicating the person detail property type object which failed validation. It is possible to create a subnet registration using a person detail which does not pass this validation, but at least one registrar would reject it for being invalid. +// Deprecated: This function has been marked as deprecated. func (r Account_Regional_Registry_Detail) ValidatePersonForAllRegistrars() (resp []datatypes.Container_Message, err error) { err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail", "validatePersonForAllRegistrars", nil, &r.Options, &resp) return } +// The subnet registration detail property type has been deprecated. +// // Subnet registration properties are used to define various attributes of the [[SoftLayer_Account_Regional_Registry_Detail|detail objects]]. These properties are defined by the [[SoftLayer_Account_Regional_Registry_Detail_Property_Type]] objects, which describe the available value formats. +// Deprecated: This function has been marked as deprecated. type Account_Regional_Registry_Detail_Property struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountRegionalRegistryDetailPropertyService returns an instance of the Account_Regional_Registry_Detail_Property SoftLayer service -func GetAccountRegionalRegistryDetailPropertyService(sess *session.Session) Account_Regional_Registry_Detail_Property { +func GetAccountRegionalRegistryDetailPropertyService(sess session.SLSession) Account_Regional_Registry_Detail_Property { return Account_Regional_Registry_Detail_Property{Session: sess} } @@ -4723,9 +4731,12 @@ func (r Account_Regional_Registry_Detail_Property) Offset(offset int) Account_Re return r } +// The subnet registration detail property service has been deprecated. +// // This method will create a new SoftLayer_Account_Regional_Registry_Detail_Property object. // // Input - [[SoftLayer_Account_Regional_Registry_Detail_Property (type)|SoftLayer_Account_Regional_Registry_Detail_Property]] +// Deprecated: This function has been marked as deprecated. func (r Account_Regional_Registry_Detail_Property) CreateObject(templateObject *datatypes.Account_Regional_Registry_Detail_Property) (resp datatypes.Account_Regional_Registry_Detail_Property, err error) { params := []interface{}{ templateObject, @@ -4734,7 +4745,10 @@ func (r Account_Regional_Registry_Detail_Property) CreateObject(templateObject * return } +// The subnet registration detail property service has been deprecated. +// // Edit multiple [[SoftLayer_Account_Regional_Registry_Detail_Property]] objects. +// Deprecated: This function has been marked as deprecated. func (r Account_Regional_Registry_Detail_Property) CreateObjects(templateObjects []datatypes.Account_Regional_Registry_Detail_Property) (resp []datatypes.Account_Regional_Registry_Detail_Property, err error) { params := []interface{}{ templateObjects, @@ -4743,13 +4757,19 @@ func (r Account_Regional_Registry_Detail_Property) CreateObjects(templateObjects return } +// The subnet registration detail property service has been deprecated. +// // This method will delete an existing SoftLayer_Account_Regional_Registry_Detail_Property object. +// Deprecated: This function has been marked as deprecated. func (r Account_Regional_Registry_Detail_Property) DeleteObject() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail_Property", "deleteObject", nil, &r.Options, &resp) return } +// The subnet registration detail property service has been deprecated. +// // This method will edit an existing SoftLayer_Account_Regional_Registry_Detail_Property object. For more detail, see [[SoftLayer_Account_Regional_Registry_Detail_Property::createObject|createObject]]. +// Deprecated: This function has been marked as deprecated. func (r Account_Regional_Registry_Detail_Property) EditObject(templateObject *datatypes.Account_Regional_Registry_Detail_Property) (resp bool, err error) { params := []interface{}{ templateObject, @@ -4758,7 +4778,10 @@ func (r Account_Regional_Registry_Detail_Property) EditObject(templateObject *da return } +// The subnet registration detail property service has been deprecated. +// // Edit multiple [[SoftLayer_Account_Regional_Registry_Detail_Property]] objects. +// Deprecated: This function has been marked as deprecated. func (r Account_Regional_Registry_Detail_Property) EditObjects(templateObjects []datatypes.Account_Regional_Registry_Detail_Property) (resp bool, err error) { params := []interface{}{ templateObjects, @@ -4767,7 +4790,7 @@ func (r Account_Regional_Registry_Detail_Property) EditObjects(templateObjects [ return } -// Retrieve The [[SoftLayer_Account_Regional_Registry_Detail]] object this property belongs to +// Retrieve [Deprecated] The [[SoftLayer_Account_Regional_Registry_Detail]] object this property belongs to func (r Account_Regional_Registry_Detail_Property) GetDetail() (resp datatypes.Account_Regional_Registry_Detail, err error) { err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail_Property", "getDetail", nil, &r.Options, &resp) return @@ -4779,20 +4802,23 @@ func (r Account_Regional_Registry_Detail_Property) GetObject() (resp datatypes.A return } -// Retrieve The [[SoftLayer_Account_Regional_Registry_Detail_Property_Type]] object this property belongs to +// Retrieve [Deprecated] The [[SoftLayer_Account_Regional_Registry_Detail_Property_Type]] object this property belongs to func (r Account_Regional_Registry_Detail_Property) GetPropertyType() (resp datatypes.Account_Regional_Registry_Detail_Property_Type, err error) { err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail_Property", "getPropertyType", nil, &r.Options, &resp) return } +// The subnet registration detail property type type has been deprecated. +// // Subnet Registration Detail Property Type objects describe the nature of a [[SoftLayer_Account_Regional_Registry_Detail_Property]] object. These types use [http://php.net/pcre.pattern.php Perl-Compatible Regular Expressions] to validate the value of a property object. +// Deprecated: This function has been marked as deprecated. type Account_Regional_Registry_Detail_Property_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountRegionalRegistryDetailPropertyTypeService returns an instance of the Account_Regional_Registry_Detail_Property_Type SoftLayer service -func GetAccountRegionalRegistryDetailPropertyTypeService(sess *session.Session) Account_Regional_Registry_Detail_Property_Type { +func GetAccountRegionalRegistryDetailPropertyTypeService(sess session.SLSession) Account_Regional_Registry_Detail_Property_Type { return Account_Regional_Registry_Detail_Property_Type{Session: sess} } @@ -4826,6 +4852,7 @@ func (r Account_Regional_Registry_Detail_Property_Type) Offset(offset int) Accou } // no documentation yet +// Deprecated: This function has been marked as deprecated. func (r Account_Regional_Registry_Detail_Property_Type) GetAllObjects() (resp []datatypes.Account_Regional_Registry_Detail_Property_Type, err error) { err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail_Property_Type", "getAllObjects", nil, &r.Options, &resp) return @@ -4837,16 +4864,19 @@ func (r Account_Regional_Registry_Detail_Property_Type) GetObject() (resp dataty return } +// The subnet registration detail type type has been deprecated. +// // Subnet Registration Detail Type objects describe the nature of a [[SoftLayer_Account_Regional_Registry_Detail]] object. // // The standard values for these objects are as follows: +// Deprecated: This function has been marked as deprecated. type Account_Regional_Registry_Detail_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountRegionalRegistryDetailTypeService returns an instance of the Account_Regional_Registry_Detail_Type SoftLayer service -func GetAccountRegionalRegistryDetailTypeService(sess *session.Session) Account_Regional_Registry_Detail_Type { +func GetAccountRegionalRegistryDetailTypeService(sess session.SLSession) Account_Regional_Registry_Detail_Type { return Account_Regional_Registry_Detail_Type{Session: sess} } @@ -4880,6 +4910,7 @@ func (r Account_Regional_Registry_Detail_Type) Offset(offset int) Account_Region } // no documentation yet +// Deprecated: This function has been marked as deprecated. func (r Account_Regional_Registry_Detail_Type) GetAllObjects() (resp []datatypes.Account_Regional_Registry_Detail_Type, err error) { err = r.Session.DoRequest("SoftLayer_Account_Regional_Registry_Detail_Type", "getAllObjects", nil, &r.Options, &resp) return @@ -4893,12 +4924,12 @@ func (r Account_Regional_Registry_Detail_Type) GetObject() (resp datatypes.Accou // no documentation yet type Account_Reports_Request struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountReportsRequestService returns an instance of the Account_Reports_Request SoftLayer service -func GetAccountReportsRequestService(sess *session.Session) Account_Reports_Request { +func GetAccountReportsRequestService(sess session.SLSession) Account_Reports_Request { return Account_Reports_Request{Session: sess} } @@ -5020,12 +5051,12 @@ func (r Account_Reports_Request) UpdateTicketOnDecline(request *datatypes.Accoun // The SoftLayer_Account_Shipment data type contains information relating to a shipment. Basic information such as addresses, the shipment courier, and any tracking information for as shipment is accessible with this data type. type Account_Shipment struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountShipmentService returns an instance of the Account_Shipment SoftLayer service -func GetAccountShipmentService(sess *session.Session) Account_Shipment { +func GetAccountShipmentService(sess session.SLSession) Account_Shipment { return Account_Shipment{Session: sess} } @@ -5192,12 +5223,12 @@ func (r Account_Shipment) GetViaAddress() (resp datatypes.Account_Address, err e // The SoftLayer_Account_Shipment_Item data type contains information relating to a shipment's item. Basic information such as addresses, the shipment courier, and any tracking information for as shipment is accessible with this data type. type Account_Shipment_Item struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountShipmentItemService returns an instance of the Account_Shipment_Item SoftLayer service -func GetAccountShipmentItemService(sess *session.Session) Account_Shipment_Item { +func GetAccountShipmentItemService(sess session.SLSession) Account_Shipment_Item { return Account_Shipment_Item{Session: sess} } @@ -5259,12 +5290,12 @@ func (r Account_Shipment_Item) GetShipmentItemType() (resp datatypes.Account_Shi // no documentation yet type Account_Shipment_Item_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountShipmentItemTypeService returns an instance of the Account_Shipment_Item_Type SoftLayer service -func GetAccountShipmentItemTypeService(sess *session.Session) Account_Shipment_Item_Type { +func GetAccountShipmentItemTypeService(sess session.SLSession) Account_Shipment_Item_Type { return Account_Shipment_Item_Type{Session: sess} } @@ -5305,12 +5336,12 @@ func (r Account_Shipment_Item_Type) GetObject() (resp datatypes.Account_Shipment // no documentation yet type Account_Shipment_Resource_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountShipmentResourceTypeService returns an instance of the Account_Shipment_Resource_Type SoftLayer service -func GetAccountShipmentResourceTypeService(sess *session.Session) Account_Shipment_Resource_Type { +func GetAccountShipmentResourceTypeService(sess session.SLSession) Account_Shipment_Resource_Type { return Account_Shipment_Resource_Type{Session: sess} } @@ -5351,12 +5382,12 @@ func (r Account_Shipment_Resource_Type) GetObject() (resp datatypes.Account_Ship // no documentation yet type Account_Shipment_Status struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountShipmentStatusService returns an instance of the Account_Shipment_Status SoftLayer service -func GetAccountShipmentStatusService(sess *session.Session) Account_Shipment_Status { +func GetAccountShipmentStatusService(sess session.SLSession) Account_Shipment_Status { return Account_Shipment_Status{Session: sess} } @@ -5397,12 +5428,12 @@ func (r Account_Shipment_Status) GetObject() (resp datatypes.Account_Shipment_St // The SoftLayer_Account_Shipment_Tracking_Data data type contains information on a single piece of tracking information pertaining to a shipment. This tracking information tracking numbers by which the shipment may be tracked through the shipping courier. type Account_Shipment_Tracking_Data struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountShipmentTrackingDataService returns an instance of the Account_Shipment_Tracking_Data SoftLayer service -func GetAccountShipmentTrackingDataService(sess *session.Session) Account_Shipment_Tracking_Data { +func GetAccountShipmentTrackingDataService(sess session.SLSession) Account_Shipment_Tracking_Data { return Account_Shipment_Tracking_Data{Session: sess} } @@ -5506,12 +5537,12 @@ func (r Account_Shipment_Tracking_Data) GetShipment() (resp datatypes.Account_Sh // no documentation yet type Account_Shipment_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAccountShipmentTypeService returns an instance of the Account_Shipment_Type SoftLayer service -func GetAccountShipmentTypeService(sess *session.Session) Account_Shipment_Type { +func GetAccountShipmentTypeService(sess session.SLSession) Account_Shipment_Type { return Account_Shipment_Type{Session: sess} } diff --git a/services/account_test.go b/services/account_test.go new file mode 100644 index 0000000..9d22c61 --- /dev/null +++ b/services/account_test.go @@ -0,0 +1,5239 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Account Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Account service", func() { + var sl_service services.Account + BeforeEach(func() { + sl_service = services.GetAccountService(slsession) + }) + Context("SoftLayer_Account Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account::activatePartner", func() { + It("API Call Test", func() { + _, err := sl_service.ActivatePartner(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::addAchInformation", func() { + It("API Call Test", func() { + _, err := sl_service.AddAchInformation(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::addReferralPartnerPaymentOption", func() { + It("API Call Test", func() { + _, err := sl_service.AddReferralPartnerPaymentOption(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::areVdrUpdatesBlockedForBilling", func() { + It("API Call Test", func() { + _, err := sl_service.AreVdrUpdatesBlockedForBilling() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::cancelPayPalTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.CancelPayPalTransaction(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::completePayPalTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.CompletePayPalTransaction(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::countHourlyInstances", func() { + It("API Call Test", func() { + _, err := sl_service.CountHourlyInstances() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::createUser", func() { + It("API Call Test", func() { + _, err := sl_service.CreateUser(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::disableEuSupport", func() { + It("API Call Test", func() { + err := sl_service.DisableEuSupport() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::disableVpnConfigRequiresVpnManageAttribute", func() { + It("API Call Test", func() { + err := sl_service.DisableVpnConfigRequiresVpnManageAttribute() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::editAccount", func() { + It("API Call Test", func() { + _, err := sl_service.EditAccount(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::enableEuSupport", func() { + It("API Call Test", func() { + err := sl_service.EnableEuSupport() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::enableVpnConfigRequiresVpnManageAttribute", func() { + It("API Call Test", func() { + err := sl_service.EnableVpnConfigRequiresVpnManageAttribute() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAbuseEmail", func() { + It("API Call Test", func() { + _, err := sl_service.GetAbuseEmail() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAbuseEmails", func() { + It("API Call Test", func() { + _, err := sl_service.GetAbuseEmails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAccountBackupHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountBackupHistory(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAccountContacts", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountContacts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAccountLicenses", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountLicenses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAccountLinks", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountLinks() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAccountStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAccountTraitValue", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountTraitValue(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getActiveAccountDiscountBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveAccountDiscountBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getActiveAccountLicenses", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveAccountLicenses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getActiveAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getActiveAgreements", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveAgreements() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getActiveBillingAgreements", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveBillingAgreements() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getActiveCatalystEnrollment", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveCatalystEnrollment() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getActiveColocationContainers", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveColocationContainers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getActiveFlexibleCreditEnrollment", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveFlexibleCreditEnrollment() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getActiveFlexibleCreditEnrollments", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveFlexibleCreditEnrollments() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getActiveNotificationSubscribers", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveNotificationSubscribers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getActiveOutletPackages", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveOutletPackages() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getActivePackages", func() { + It("API Call Test", func() { + _, err := sl_service.GetActivePackages() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getActivePackagesByAttribute", func() { + It("API Call Test", func() { + _, err := sl_service.GetActivePackagesByAttribute(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getActivePrivateHostedCloudPackages", func() { + It("API Call Test", func() { + _, err := sl_service.GetActivePrivateHostedCloudPackages() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getActiveQuotes", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveQuotes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getActiveReservedCapacityAgreements", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveReservedCapacityAgreements() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getActiveVirtualLicenses", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveVirtualLicenses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAdcLoadBalancers", func() { + It("API Call Test", func() { + _, err := sl_service.GetAdcLoadBalancers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAffiliateId", func() { + It("API Call Test", func() { + _, err := sl_service.GetAffiliateId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAllBillingItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllBillingItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAllCommissionBillingItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllCommissionBillingItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAllRecurringTopLevelBillingItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllRecurringTopLevelBillingItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAllRecurringTopLevelBillingItemsUnfiltered", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllRecurringTopLevelBillingItemsUnfiltered() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAllSubnetBillingItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllSubnetBillingItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAllTopLevelBillingItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllTopLevelBillingItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAllTopLevelBillingItemsUnfiltered", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllTopLevelBillingItemsUnfiltered() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAllowIbmIdSilentMigrationFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowIbmIdSilentMigrationFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAllowsBluemixAccountLinkingFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowsBluemixAccountLinkingFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAlternateCreditCardData", func() { + It("API Call Test", func() { + _, err := sl_service.GetAlternateCreditCardData() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getApplicationDeliveryControllers", func() { + It("API Call Test", func() { + _, err := sl_service.GetApplicationDeliveryControllers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAttributeByType", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributeByType(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAuxiliaryNotifications", func() { + It("API Call Test", func() { + _, err := sl_service.GetAuxiliaryNotifications() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAvailablePublicNetworkVlans", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailablePublicNetworkVlans() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAverageArchiveUsageMetricDataByDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageArchiveUsageMetricDataByDate(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getAveragePublicUsageMetricDataByDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetAveragePublicUsageMetricDataByDate(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getBalance", func() { + It("API Call Test", func() { + _, err := sl_service.GetBalance() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getBandwidthAllotments", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthAllotments() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getBandwidthAllotmentsOverAllocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthAllotmentsOverAllocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getBandwidthAllotmentsProjectedOverAllocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthAllotmentsProjectedOverAllocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getBandwidthList", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthList(nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getBareMetalInstances", func() { + It("API Call Test", func() { + _, err := sl_service.GetBareMetalInstances() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getBillingAgreements", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingAgreements() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getBillingInfo", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingInfo() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getBlockDeviceTemplateGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetBlockDeviceTemplateGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getBluemixAccountId", func() { + It("API Call Test", func() { + _, err := sl_service.GetBluemixAccountId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getBluemixAccountLink", func() { + It("API Call Test", func() { + _, err := sl_service.GetBluemixAccountLink() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getBluemixLinkedFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBluemixLinkedFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getBrand", func() { + It("API Call Test", func() { + _, err := sl_service.GetBrand() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getBrandAccountFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBrandAccountFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getBrandKeyName", func() { + It("API Call Test", func() { + _, err := sl_service.GetBrandKeyName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getBusinessPartner", func() { + It("API Call Test", func() { + _, err := sl_service.GetBusinessPartner() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getCanOrderAdditionalVlansFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetCanOrderAdditionalVlansFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getCarts", func() { + It("API Call Test", func() { + _, err := sl_service.GetCarts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getCatalystEnrollments", func() { + It("API Call Test", func() { + _, err := sl_service.GetCatalystEnrollments() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getClosedTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetClosedTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getCurrentUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getDatacentersWithSubnetAllocations", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacentersWithSubnetAllocations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getDedicatedHosts", func() { + It("API Call Test", func() { + _, err := sl_service.GetDedicatedHosts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getDedicatedHostsForImageTemplate", func() { + It("API Call Test", func() { + _, err := sl_service.GetDedicatedHostsForImageTemplate(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getDisablePaymentProcessingFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetDisablePaymentProcessingFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getDisplaySupportRepresentativeAssignments", func() { + It("API Call Test", func() { + _, err := sl_service.GetDisplaySupportRepresentativeAssignments() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getDomains", func() { + It("API Call Test", func() { + _, err := sl_service.GetDomains() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getDomainsWithoutSecondaryDnsRecords", func() { + It("API Call Test", func() { + _, err := sl_service.GetDomainsWithoutSecondaryDnsRecords() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getEuSupportedFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetEuSupportedFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getEvaultCapacityGB", func() { + It("API Call Test", func() { + _, err := sl_service.GetEvaultCapacityGB() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getEvaultMasterUsers", func() { + It("API Call Test", func() { + _, err := sl_service.GetEvaultMasterUsers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getEvaultNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetEvaultNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getExpiredSecurityCertificates", func() { + It("API Call Test", func() { + _, err := sl_service.GetExpiredSecurityCertificates() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getFacilityLogs", func() { + It("API Call Test", func() { + _, err := sl_service.GetFacilityLogs() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getFileBlockBetaAccessFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetFileBlockBetaAccessFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getFlexibleCreditEnrollments", func() { + It("API Call Test", func() { + _, err := sl_service.GetFlexibleCreditEnrollments() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getFlexibleCreditProgramInfo", func() { + It("API Call Test", func() { + _, err := sl_service.GetFlexibleCreditProgramInfo(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getFlexibleCreditProgramsInfo", func() { + It("API Call Test", func() { + _, err := sl_service.GetFlexibleCreditProgramsInfo(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getForcePaasAccountLinkDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetForcePaasAccountLinkDate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getGlobalIpRecords", func() { + It("API Call Test", func() { + _, err := sl_service.GetGlobalIpRecords() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getGlobalIpv4Records", func() { + It("API Call Test", func() { + _, err := sl_service.GetGlobalIpv4Records() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getGlobalIpv6Records", func() { + It("API Call Test", func() { + _, err := sl_service.GetGlobalIpv6Records() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getGlobalLoadBalancerAccounts", func() { + It("API Call Test", func() { + _, err := sl_service.GetGlobalLoadBalancerAccounts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHardwareOverBandwidthAllocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareOverBandwidthAllocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHardwarePools", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwarePools() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHardwareProjectedOverBandwidthAllocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareProjectedOverBandwidthAllocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHardwareWithCpanel", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareWithCpanel() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHardwareWithHelm", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareWithHelm() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHardwareWithMcafee", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareWithMcafee() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHardwareWithMcafeeAntivirusRedhat", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareWithMcafeeAntivirusRedhat() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHardwareWithMcafeeAntivirusWindows", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareWithMcafeeAntivirusWindows() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHardwareWithMcafeeIntrusionDetectionSystem", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareWithMcafeeIntrusionDetectionSystem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHardwareWithPlesk", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareWithPlesk() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHardwareWithQuantastor", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareWithQuantastor() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHardwareWithUrchin", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareWithUrchin() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHardwareWithWindows", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareWithWindows() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHasEvaultBareMetalRestorePluginFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasEvaultBareMetalRestorePluginFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHasIderaBareMetalRestorePluginFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasIderaBareMetalRestorePluginFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHasPendingOrder", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasPendingOrder() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHasR1softBareMetalRestorePluginFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasR1softBareMetalRestorePluginFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHourlyBareMetalInstances", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlyBareMetalInstances() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHourlyServiceBillingItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlyServiceBillingItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHourlyVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlyVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getHubNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetHubNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getIbmCustomerNumber", func() { + It("API Call Test", func() { + _, err := sl_service.GetIbmCustomerNumber() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getIbmIdAuthenticationRequiredFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetIbmIdAuthenticationRequiredFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getIbmIdMigrationExpirationTimestamp", func() { + It("API Call Test", func() { + _, err := sl_service.GetIbmIdMigrationExpirationTimestamp() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getInProgressExternalAccountSetup", func() { + It("API Call Test", func() { + _, err := sl_service.GetInProgressExternalAccountSetup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getInternalCciHostAccountFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetInternalCciHostAccountFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getInternalImageTemplateCreationFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetInternalImageTemplateCreationFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getInternalNotes", func() { + It("API Call Test", func() { + _, err := sl_service.GetInternalNotes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getInternalRestrictionFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetInternalRestrictionFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getInvoices", func() { + It("API Call Test", func() { + _, err := sl_service.GetInvoices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getIscsiIsolationDisabled", func() { + It("API Call Test", func() { + _, err := sl_service.GetIscsiIsolationDisabled() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getIscsiNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetIscsiNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getLargestAllowedSubnetCidr", func() { + It("API Call Test", func() { + _, err := sl_service.GetLargestAllowedSubnetCidr(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getLastCanceledBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastCanceledBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getLastCancelledServerBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastCancelledServerBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getLastFiveClosedAbuseTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastFiveClosedAbuseTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getLastFiveClosedAccountingTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastFiveClosedAccountingTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getLastFiveClosedOtherTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastFiveClosedOtherTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getLastFiveClosedSalesTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastFiveClosedSalesTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getLastFiveClosedSupportTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastFiveClosedSupportTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getLastFiveClosedTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastFiveClosedTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getLatestBillDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetLatestBillDate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getLatestRecurringInvoice", func() { + It("API Call Test", func() { + _, err := sl_service.GetLatestRecurringInvoice() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getLatestRecurringPendingInvoice", func() { + It("API Call Test", func() { + _, err := sl_service.GetLatestRecurringPendingInvoice() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getLegacyBandwidthAllotments", func() { + It("API Call Test", func() { + _, err := sl_service.GetLegacyBandwidthAllotments() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getLegacyIscsiCapacityGB", func() { + It("API Call Test", func() { + _, err := sl_service.GetLegacyIscsiCapacityGB() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getLoadBalancers", func() { + It("API Call Test", func() { + _, err := sl_service.GetLoadBalancers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getLockboxCapacityGB", func() { + It("API Call Test", func() { + _, err := sl_service.GetLockboxCapacityGB() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getLockboxNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetLockboxNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getManualPaymentsUnderReview", func() { + It("API Call Test", func() { + _, err := sl_service.GetManualPaymentsUnderReview() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getMasterUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetMasterUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getMediaDataTransferRequests", func() { + It("API Call Test", func() { + _, err := sl_service.GetMediaDataTransferRequests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getMetricTrackingObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getMigratedToIbmCloudPortalFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetMigratedToIbmCloudPortalFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getMonthlyBareMetalInstances", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonthlyBareMetalInstances() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getMonthlyVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonthlyVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNasNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetNasNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNetAppActiveAccountLicenseKeys", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetAppActiveAccountLicenseKeys() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNetworkCreationFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkCreationFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNetworkGateways", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkGateways() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNetworkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNetworkMessageDeliveryAccounts", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMessageDeliveryAccounts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNetworkMonitorDownHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorDownHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNetworkMonitorDownVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorDownVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNetworkMonitorRecoveringHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorRecoveringHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNetworkMonitorRecoveringVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorRecoveringVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNetworkMonitorUpHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorUpHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNetworkMonitorUpVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorUpVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNetworkStorageGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkStorageGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNetworkTunnelContexts", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkTunnelContexts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNetworkVlanSpan", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlanSpan() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNetworkVlans", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlans() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNextBillingPublicAllotmentHardwareBandwidthDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextBillingPublicAllotmentHardwareBandwidthDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNextInvoiceExcel", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceExcel(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNextInvoiceIncubatorExemptTotal", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceIncubatorExemptTotal() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNextInvoicePdf", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoicePdf(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNextInvoicePdfDetailed", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoicePdfDetailed(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNextInvoiceRecurringAmountEligibleForAccountDiscount", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceRecurringAmountEligibleForAccountDiscount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNextInvoiceTopLevelBillingItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceTopLevelBillingItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNextInvoiceTotalAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceTotalAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNextInvoiceTotalOneTimeAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceTotalOneTimeAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNextInvoiceTotalOneTimeTaxAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceTotalOneTimeTaxAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNextInvoiceTotalRecurringAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceTotalRecurringAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNextInvoiceTotalRecurringAmountBeforeAccountDiscount", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceTotalRecurringAmountBeforeAccountDiscount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNextInvoiceTotalRecurringTaxAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceTotalRecurringTaxAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNextInvoiceTotalTaxableRecurringAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceTotalTaxableRecurringAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNextInvoiceZeroFeeItemCounts", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceZeroFeeItemCounts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getNotificationSubscribers", func() { + It("API Call Test", func() { + _, err := sl_service.GetNotificationSubscribers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getOpenAbuseTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenAbuseTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getOpenAccountingTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenAccountingTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getOpenBillingTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenBillingTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getOpenCancellationRequests", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenCancellationRequests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getOpenOtherTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenOtherTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getOpenRecurringInvoices", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenRecurringInvoices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getOpenSalesTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenSalesTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getOpenStackAccountLinks", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenStackAccountLinks() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getOpenStackObjectStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenStackObjectStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getOpenSupportTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenSupportTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getOpenTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getOpenTicketsWaitingOnCustomer", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenTicketsWaitingOnCustomer() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getOrders", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrders() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getOrphanBillingItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrphanBillingItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getOwnedBrands", func() { + It("API Call Test", func() { + _, err := sl_service.GetOwnedBrands() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getOwnedHardwareGenericComponentModels", func() { + It("API Call Test", func() { + _, err := sl_service.GetOwnedHardwareGenericComponentModels() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPaymentProcessors", func() { + It("API Call Test", func() { + _, err := sl_service.GetPaymentProcessors() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPendingCreditCardChangeRequestData", func() { + It("API Call Test", func() { + _, err := sl_service.GetPendingCreditCardChangeRequestData() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPendingEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetPendingEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPendingInvoice", func() { + It("API Call Test", func() { + _, err := sl_service.GetPendingInvoice() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPendingInvoiceTopLevelItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetPendingInvoiceTopLevelItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPendingInvoiceTotalAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetPendingInvoiceTotalAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPendingInvoiceTotalOneTimeAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetPendingInvoiceTotalOneTimeAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPendingInvoiceTotalOneTimeTaxAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetPendingInvoiceTotalOneTimeTaxAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPendingInvoiceTotalRecurringAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetPendingInvoiceTotalRecurringAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPendingInvoiceTotalRecurringTaxAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetPendingInvoiceTotalRecurringTaxAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPermissionGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetPermissionGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPermissionRoles", func() { + It("API Call Test", func() { + _, err := sl_service.GetPermissionRoles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPlacementGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetPlacementGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPortableStorageVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetPortableStorageVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPostProvisioningHooks", func() { + It("API Call Test", func() { + _, err := sl_service.GetPostProvisioningHooks() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPptpVpnAllowedFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetPptpVpnAllowedFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPptpVpnUsers", func() { + It("API Call Test", func() { + _, err := sl_service.GetPptpVpnUsers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPreviousRecurringRevenue", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreviousRecurringRevenue() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPriceRestrictions", func() { + It("API Call Test", func() { + _, err := sl_service.GetPriceRestrictions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPriorityOneTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetPriorityOneTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPrivateAllotmentHardwareBandwidthDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateAllotmentHardwareBandwidthDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPrivateBlockDeviceTemplateGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateBlockDeviceTemplateGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPrivateIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPrivateNetworkVlans", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateNetworkVlans() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPrivateSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getProofOfConceptAccountFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetProofOfConceptAccountFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPublicAllotmentHardwareBandwidthDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicAllotmentHardwareBandwidthDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPublicIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPublicNetworkVlans", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicNetworkVlans() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getPublicSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getQuotes", func() { + It("API Call Test", func() { + _, err := sl_service.GetQuotes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getRecentEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetRecentEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getReferralPartner", func() { + It("API Call Test", func() { + _, err := sl_service.GetReferralPartner() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getReferralPartnerCommissionForecast", func() { + It("API Call Test", func() { + _, err := sl_service.GetReferralPartnerCommissionForecast() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getReferralPartnerCommissionHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetReferralPartnerCommissionHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getReferralPartnerCommissionPending", func() { + It("API Call Test", func() { + _, err := sl_service.GetReferralPartnerCommissionPending() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getReferredAccountFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetReferredAccountFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getReferredAccounts", func() { + It("API Call Test", func() { + _, err := sl_service.GetReferredAccounts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getRegulatedWorkloads", func() { + It("API Call Test", func() { + _, err := sl_service.GetRegulatedWorkloads() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getRemoteManagementCommandRequests", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemoteManagementCommandRequests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getReplicationEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicationEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getRequireSilentIBMidUserCreation", func() { + It("API Call Test", func() { + _, err := sl_service.GetRequireSilentIBMidUserCreation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getReservedCapacityAgreements", func() { + It("API Call Test", func() { + _, err := sl_service.GetReservedCapacityAgreements() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getReservedCapacityGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetReservedCapacityGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getRwhoisData", func() { + It("API Call Test", func() { + _, err := sl_service.GetRwhoisData() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getSamlAuthentication", func() { + It("API Call Test", func() { + _, err := sl_service.GetSamlAuthentication() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getSecondaryDomains", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecondaryDomains() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getSecurityCertificates", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecurityCertificates() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getSecurityGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecurityGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getSecurityLevel", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecurityLevel() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getSecurityScanRequests", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecurityScanRequests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getServiceBillingItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceBillingItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getSharedBlockDeviceTemplateGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetSharedBlockDeviceTemplateGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getShipments", func() { + It("API Call Test", func() { + _, err := sl_service.GetShipments() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getSshKeys", func() { + It("API Call Test", func() { + _, err := sl_service.GetSshKeys() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getSslVpnUsers", func() { + It("API Call Test", func() { + _, err := sl_service.GetSslVpnUsers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getStandardPoolVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetStandardPoolVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getSubnetRegistrationDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubnetRegistrationDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getSubnetRegistrations", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubnetRegistrations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getSupportRepresentatives", func() { + It("API Call Test", func() { + _, err := sl_service.GetSupportRepresentatives() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getSupportSubscriptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetSupportSubscriptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getSupportTier", func() { + It("API Call Test", func() { + _, err := sl_service.GetSupportTier() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getSuppressInvoicesFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetSuppressInvoicesFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getTags", func() { + It("API Call Test", func() { + _, err := sl_service.GetTags() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getTechIncubatorProgramInfo", func() { + It("API Call Test", func() { + _, err := sl_service.GetTechIncubatorProgramInfo(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getTestAccountAttributeFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetTestAccountAttributeFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getThirdPartyPoliciesAcceptanceStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetThirdPartyPoliciesAcceptanceStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getTicketsClosedInTheLastThreeDays", func() { + It("API Call Test", func() { + _, err := sl_service.GetTicketsClosedInTheLastThreeDays() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getTicketsClosedToday", func() { + It("API Call Test", func() { + _, err := sl_service.GetTicketsClosedToday() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getUpgradeRequests", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeRequests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getUsers", func() { + It("API Call Test", func() { + _, err := sl_service.GetUsers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getValidSecurityCertificateEntries", func() { + It("API Call Test", func() { + _, err := sl_service.GetValidSecurityCertificateEntries() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getValidSecurityCertificates", func() { + It("API Call Test", func() { + _, err := sl_service.GetValidSecurityCertificates() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getVdrUpdatesInProgressFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetVdrUpdatesInProgressFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getVirtualDedicatedRacks", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualDedicatedRacks() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getVirtualDiskImages", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualDiskImages() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getVirtualGuestsOverBandwidthAllocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuestsOverBandwidthAllocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getVirtualGuestsProjectedOverBandwidthAllocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuestsProjectedOverBandwidthAllocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getVirtualGuestsWithCpanel", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuestsWithCpanel() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getVirtualGuestsWithMcafee", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuestsWithMcafee() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getVirtualGuestsWithMcafeeAntivirusRedhat", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuestsWithMcafeeAntivirusRedhat() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getVirtualGuestsWithMcafeeAntivirusWindows", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuestsWithMcafeeAntivirusWindows() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getVirtualGuestsWithMcafeeIntrusionDetectionSystem", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuestsWithMcafeeIntrusionDetectionSystem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getVirtualGuestsWithPlesk", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuestsWithPlesk() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getVirtualGuestsWithQuantastor", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuestsWithQuantastor() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getVirtualGuestsWithUrchin", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuestsWithUrchin() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getVirtualPrivateRack", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualPrivateRack() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getVirtualStorageArchiveRepositories", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualStorageArchiveRepositories() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getVirtualStoragePublicRepositories", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualStoragePublicRepositories() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getVmWareActiveAccountLicenseKeys", func() { + It("API Call Test", func() { + _, err := sl_service.GetVmWareActiveAccountLicenseKeys() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getVpcVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetVpcVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getVpnConfigRequiresVPNManageFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetVpnConfigRequiresVPNManageFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::getWindowsUpdateStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetWindowsUpdateStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::hasAttribute", func() { + It("API Call Test", func() { + _, err := sl_service.HasAttribute(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::hourlyInstanceLimit", func() { + It("API Call Test", func() { + _, err := sl_service.HourlyInstanceLimit() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::hourlyServerLimit", func() { + It("API Call Test", func() { + _, err := sl_service.HourlyServerLimit() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::initiatePayerAuthentication", func() { + It("API Call Test", func() { + _, err := sl_service.InitiatePayerAuthentication(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::isActiveVmwareCustomer", func() { + It("API Call Test", func() { + _, err := sl_service.IsActiveVmwareCustomer() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::isEligibleForLocalCurrencyProgram", func() { + It("API Call Test", func() { + _, err := sl_service.IsEligibleForLocalCurrencyProgram() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::isEligibleToLinkWithPaas", func() { + It("API Call Test", func() { + _, err := sl_service.IsEligibleToLinkWithPaas() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::linkExternalAccount", func() { + It("API Call Test", func() { + err := sl_service.LinkExternalAccount(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::removeAlternateCreditCard", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAlternateCreditCard() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::requestCreditCardChange", func() { + It("API Call Test", func() { + _, err := sl_service.RequestCreditCardChange(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::requestManualPayment", func() { + It("API Call Test", func() { + _, err := sl_service.RequestManualPayment(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::requestManualPaymentUsingCreditCardOnFile", func() { + It("API Call Test", func() { + _, err := sl_service.RequestManualPaymentUsingCreditCardOnFile(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::saveInternalCostRecovery", func() { + It("API Call Test", func() { + err := sl_service.SaveInternalCostRecovery(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::setAbuseEmails", func() { + It("API Call Test", func() { + _, err := sl_service.SetAbuseEmails(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::setManagedPoolQuantity", func() { + It("API Call Test", func() { + _, err := sl_service.SetManagedPoolQuantity(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::setVlanSpan", func() { + It("API Call Test", func() { + _, err := sl_service.SetVlanSpan(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::swapCreditCards", func() { + It("API Call Test", func() { + _, err := sl_service.SwapCreditCards() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::syncCurrentUserPopulationWithPaas", func() { + It("API Call Test", func() { + err := sl_service.SyncCurrentUserPopulationWithPaas() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::updateVpnUsersForResource", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateVpnUsersForResource(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::validate", func() { + It("API Call Test", func() { + _, err := sl_service.Validate(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account::validateManualPaymentAmount", func() { + It("API Call Test", func() { + _, err := sl_service.ValidateManualPaymentAmount(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Address service", func() { + var sl_service services.Account_Address + BeforeEach(func() { + sl_service = services.GetAccountAddressService(slsession) + }) + Context("SoftLayer_Account_Address Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Address Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Address::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Address::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Address::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Address::getAllDataCenters", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllDataCenters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Address::getCreateUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetCreateUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Address::getLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Address::getModifyEmployee", func() { + It("API Call Test", func() { + _, err := sl_service.GetModifyEmployee() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Address::getModifyUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetModifyUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Address::getNetworkAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Address::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Address::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Address_Type service", func() { + var sl_service services.Account_Address_Type + BeforeEach(func() { + sl_service = services.GetAccountAddressTypeService(slsession) + }) + Context("SoftLayer_Account_Address_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Address_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Address_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Affiliation service", func() { + var sl_service services.Account_Affiliation + BeforeEach(func() { + sl_service = services.GetAccountAffiliationService(slsession) + }) + Context("SoftLayer_Account_Affiliation Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Affiliation Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Affiliation::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Affiliation::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Affiliation::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Affiliation::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Affiliation::getAccountAffiliationsByAffiliateId", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountAffiliationsByAffiliateId(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Affiliation::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Agreement service", func() { + var sl_service services.Account_Agreement + BeforeEach(func() { + sl_service = services.GetAccountAgreementService(slsession) + }) + Context("SoftLayer_Account_Agreement Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Agreement Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Agreement::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Agreement::getAgreementType", func() { + It("API Call Test", func() { + _, err := sl_service.GetAgreementType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Agreement::getAttachedBillingAgreementFiles", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedBillingAgreementFiles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Agreement::getBillingItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Agreement::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Agreement::getStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Agreement::getTopLevelBillingItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetTopLevelBillingItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Authentication_Attribute service", func() { + var sl_service services.Account_Authentication_Attribute + BeforeEach(func() { + sl_service = services.GetAccountAuthenticationAttributeService(slsession) + }) + Context("SoftLayer_Account_Authentication_Attribute Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Authentication_Attribute Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Authentication_Attribute::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Authentication_Attribute::getAuthenticationRecord", func() { + It("API Call Test", func() { + _, err := sl_service.GetAuthenticationRecord() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Authentication_Attribute::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Authentication_Attribute::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Authentication_Attribute_Type service", func() { + var sl_service services.Account_Authentication_Attribute_Type + BeforeEach(func() { + sl_service = services.GetAccountAuthenticationAttributeTypeService(slsession) + }) + Context("SoftLayer_Account_Authentication_Attribute_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Authentication_Attribute_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Authentication_Attribute_Type::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Authentication_Attribute_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Authentication_Saml service", func() { + var sl_service services.Account_Authentication_Saml + BeforeEach(func() { + sl_service = services.GetAccountAuthenticationSamlService(slsession) + }) + Context("SoftLayer_Account_Authentication_Saml Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Authentication_Saml Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Authentication_Saml::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Authentication_Saml::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Authentication_Saml::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Authentication_Saml::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Authentication_Saml::getAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Authentication_Saml::getMetadata", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetadata() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Authentication_Saml::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Brand_Migration_Request service", func() { + var sl_service services.Account_Brand_Migration_Request + BeforeEach(func() { + sl_service = services.GetAccountBrandMigrationRequestService(slsession) + }) + Context("SoftLayer_Account_Brand_Migration_Request Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Brand_Migration_Request Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Brand_Migration_Request::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Brand_Migration_Request::getDestinationBrand", func() { + It("API Call Test", func() { + _, err := sl_service.GetDestinationBrand() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Brand_Migration_Request::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Brand_Migration_Request::getSourceBrand", func() { + It("API Call Test", func() { + _, err := sl_service.GetSourceBrand() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Brand_Migration_Request::getUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Business_Partner service", func() { + var sl_service services.Account_Business_Partner + BeforeEach(func() { + sl_service = services.GetAccountBusinessPartnerService(slsession) + }) + Context("SoftLayer_Account_Business_Partner Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Business_Partner Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Business_Partner::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Business_Partner::getChannel", func() { + It("API Call Test", func() { + _, err := sl_service.GetChannel() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Business_Partner::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Business_Partner::getSegment", func() { + It("API Call Test", func() { + _, err := sl_service.GetSegment() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Contact service", func() { + var sl_service services.Account_Contact + BeforeEach(func() { + sl_service = services.GetAccountContactService(slsession) + }) + Context("SoftLayer_Account_Contact Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Contact Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Contact::createComplianceReportRequestorContact", func() { + It("API Call Test", func() { + _, err := sl_service.CreateComplianceReportRequestorContact(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Contact::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Contact::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Contact::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Contact::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Contact::getAllContactTypes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllContactTypes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Contact::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Contact::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_External_Setup service", func() { + var sl_service services.Account_External_Setup + BeforeEach(func() { + sl_service = services.GetAccountExternalSetupService(slsession) + }) + Context("SoftLayer_Account_External_Setup Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_External_Setup Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_External_Setup::finalizeExternalBillingForAccount", func() { + It("API Call Test", func() { + _, err := sl_service.FinalizeExternalBillingForAccount(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_External_Setup::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_External_Setup::getVerifyCardTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.GetVerifyCardTransaction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Historical_Report service", func() { + var sl_service services.Account_Historical_Report + BeforeEach(func() { + sl_service = services.GetAccountHistoricalReportService(slsession) + }) + Context("SoftLayer_Account_Historical_Report Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Historical_Report Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Historical_Report::getAccountHostUptimeSummary", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountHostUptimeSummary(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Historical_Report::getAccountUrlUptimeSummary", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountUrlUptimeSummary(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Historical_Report::getHostUptimeDetail", func() { + It("API Call Test", func() { + _, err := sl_service.GetHostUptimeDetail(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Historical_Report::getHostUptimeGraphData", func() { + It("API Call Test", func() { + _, err := sl_service.GetHostUptimeGraphData(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Historical_Report::getUrlUptimeDetail", func() { + It("API Call Test", func() { + _, err := sl_service.GetUrlUptimeDetail(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Historical_Report::getUrlUptimeGraphData", func() { + It("API Call Test", func() { + _, err := sl_service.GetUrlUptimeGraphData(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Internal_Ibm service", func() { + var sl_service services.Account_Internal_Ibm + BeforeEach(func() { + sl_service = services.GetAccountInternalIbmService(slsession) + }) + Context("SoftLayer_Account_Internal_Ibm Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Internal_Ibm Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Internal_Ibm::getAccountTypes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountTypes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Internal_Ibm::getAuthorizationUrl", func() { + It("API Call Test", func() { + _, err := sl_service.GetAuthorizationUrl(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Internal_Ibm::getBmsCountries", func() { + It("API Call Test", func() { + _, err := sl_service.GetBmsCountries() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Internal_Ibm::getBmsCountryList", func() { + It("API Call Test", func() { + _, err := sl_service.GetBmsCountryList() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Internal_Ibm::getEmployeeAccessToken", func() { + It("API Call Test", func() { + _, err := sl_service.GetEmployeeAccessToken(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Internal_Ibm::getManagerPreview", func() { + It("API Call Test", func() { + _, err := sl_service.GetManagerPreview(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Internal_Ibm::hasExistingRequest", func() { + It("API Call Test", func() { + _, err := sl_service.HasExistingRequest(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Internal_Ibm::managerApprove", func() { + It("API Call Test", func() { + err := sl_service.ManagerApprove(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Internal_Ibm::managerDeny", func() { + It("API Call Test", func() { + err := sl_service.ManagerDeny(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Internal_Ibm::requestAccount", func() { + It("API Call Test", func() { + err := sl_service.RequestAccount(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Internal_Ibm_CostRecovery_Validator service", func() { + var sl_service services.Account_Internal_Ibm_CostRecovery_Validator + BeforeEach(func() { + sl_service = services.GetAccountInternalIbmCostRecoveryValidatorService(slsession) + }) + Context("SoftLayer_Account_Internal_Ibm_CostRecovery_Validator Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Internal_Ibm_CostRecovery_Validator Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Internal_Ibm_CostRecovery_Validator::getSprintContainer", func() { + It("API Call Test", func() { + _, err := sl_service.GetSprintContainer(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Internal_Ibm_CostRecovery_Validator::validateByAccountAndCountryId", func() { + It("API Call Test", func() { + _, err := sl_service.ValidateByAccountAndCountryId(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Link_Bluemix service", func() { + var sl_service services.Account_Link_Bluemix + BeforeEach(func() { + sl_service = services.GetAccountLinkBluemixService(slsession) + }) + Context("SoftLayer_Account_Link_Bluemix Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Link_Bluemix Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Link_Bluemix::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Link_Bluemix::getSupportTierType", func() { + It("API Call Test", func() { + _, err := sl_service.GetSupportTierType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Link_OpenStack service", func() { + var sl_service services.Account_Link_OpenStack + BeforeEach(func() { + sl_service = services.GetAccountLinkOpenStackService(slsession) + }) + Context("SoftLayer_Account_Link_OpenStack Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Link_OpenStack Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Link_OpenStack::createOSDomain", func() { + It("API Call Test", func() { + _, err := sl_service.CreateOSDomain(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Link_OpenStack::createOSProject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateOSProject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Link_OpenStack::deleteOSDomain", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteOSDomain(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Link_OpenStack::deleteOSProject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteOSProject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Link_OpenStack::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Link_OpenStack::getOSProject", func() { + It("API Call Test", func() { + _, err := sl_service.GetOSProject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Link_OpenStack::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Link_OpenStack::listOSProjects", func() { + It("API Call Test", func() { + _, err := sl_service.ListOSProjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Lockdown_Request service", func() { + var sl_service services.Account_Lockdown_Request + BeforeEach(func() { + sl_service = services.GetAccountLockdownRequestService(slsession) + }) + Context("SoftLayer_Account_Lockdown_Request Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Lockdown_Request Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Lockdown_Request::cancelRequest", func() { + It("API Call Test", func() { + err := sl_service.CancelRequest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Lockdown_Request::disableLockedAccount", func() { + It("API Call Test", func() { + _, err := sl_service.DisableLockedAccount(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Lockdown_Request::disconnectCompute", func() { + It("API Call Test", func() { + _, err := sl_service.DisconnectCompute(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Lockdown_Request::getAccountHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountHistory(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Lockdown_Request::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Lockdown_Request::reconnectCompute", func() { + It("API Call Test", func() { + _, err := sl_service.ReconnectCompute(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_MasterServiceAgreement service", func() { + var sl_service services.Account_MasterServiceAgreement + BeforeEach(func() { + sl_service = services.GetAccountMasterServiceAgreementService(slsession) + }) + Context("SoftLayer_Account_MasterServiceAgreement Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_MasterServiceAgreement Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_MasterServiceAgreement::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_MasterServiceAgreement::getFile", func() { + It("API Call Test", func() { + _, err := sl_service.GetFile() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_MasterServiceAgreement::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Media service", func() { + var sl_service services.Account_Media + BeforeEach(func() { + sl_service = services.GetAccountMediaService(slsession) + }) + Context("SoftLayer_Account_Media Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Media Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Media::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media::getAllMediaTypes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllMediaTypes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media::getCreateUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetCreateUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media::getDatacenter", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media::getModifyEmployee", func() { + It("API Call Test", func() { + _, err := sl_service.GetModifyEmployee() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media::getModifyUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetModifyUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media::getRequest", func() { + It("API Call Test", func() { + _, err := sl_service.GetRequest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media::getVolume", func() { + It("API Call Test", func() { + _, err := sl_service.GetVolume() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media::removeMediaFromList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveMediaFromList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Media_Data_Transfer_Request service", func() { + var sl_service services.Account_Media_Data_Transfer_Request + BeforeEach(func() { + sl_service = services.GetAccountMediaDataTransferRequestService(slsession) + }) + Context("SoftLayer_Account_Media_Data_Transfer_Request Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Media_Data_Transfer_Request Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Media_Data_Transfer_Request::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media_Data_Transfer_Request::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media_Data_Transfer_Request::getActiveTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media_Data_Transfer_Request::getAllRequestStatuses", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllRequestStatuses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media_Data_Transfer_Request::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media_Data_Transfer_Request::getCreateUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetCreateUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media_Data_Transfer_Request::getMedia", func() { + It("API Call Test", func() { + _, err := sl_service.GetMedia() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media_Data_Transfer_Request::getModifyEmployee", func() { + It("API Call Test", func() { + _, err := sl_service.GetModifyEmployee() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media_Data_Transfer_Request::getModifyUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetModifyUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media_Data_Transfer_Request::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media_Data_Transfer_Request::getShipments", func() { + It("API Call Test", func() { + _, err := sl_service.GetShipments() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media_Data_Transfer_Request::getStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Media_Data_Transfer_Request::getTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Note service", func() { + var sl_service services.Account_Note + BeforeEach(func() { + sl_service = services.GetAccountNoteService(slsession) + }) + Context("SoftLayer_Account_Note Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Note Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Note::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Note::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Note::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Note::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Note::getCustomer", func() { + It("API Call Test", func() { + _, err := sl_service.GetCustomer() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Note::getNoteHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetNoteHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Note::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Partner_Referral_Prospect service", func() { + var sl_service services.Account_Partner_Referral_Prospect + BeforeEach(func() { + sl_service = services.GetAccountPartnerReferralProspectService(slsession) + }) + Context("SoftLayer_Account_Partner_Referral_Prospect Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Partner_Referral_Prospect Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Partner_Referral_Prospect::createProspect", func() { + It("API Call Test", func() { + _, err := sl_service.CreateProspect(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Partner_Referral_Prospect::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Partner_Referral_Prospect::getSurveyQuestions", func() { + It("API Call Test", func() { + _, err := sl_service.GetSurveyQuestions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Password service", func() { + var sl_service services.Account_Password + BeforeEach(func() { + sl_service = services.GetAccountPasswordService(slsession) + }) + Context("SoftLayer_Account_Password Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Password Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Password::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Password::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Password::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Password::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_ProofOfConcept service", func() { + var sl_service services.Account_ProofOfConcept + BeforeEach(func() { + sl_service = services.GetAccountProofOfConceptService(slsession) + }) + Context("SoftLayer_Account_ProofOfConcept Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_ProofOfConcept Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_ProofOfConcept::approveReview", func() { + It("API Call Test", func() { + err := sl_service.ApproveReview(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept::denyReview", func() { + It("API Call Test", func() { + err := sl_service.DenyReview(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept::getAuthenticationUrl", func() { + It("API Call Test", func() { + _, err := sl_service.GetAuthenticationUrl(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept::getRequestsPendingIntegratedOfferingTeamReview", func() { + It("API Call Test", func() { + _, err := sl_service.GetRequestsPendingIntegratedOfferingTeamReview(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept::getRequestsPendingOverThresholdReview", func() { + It("API Call Test", func() { + _, err := sl_service.GetRequestsPendingOverThresholdReview(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept::getReviewerAccessToken", func() { + It("API Call Test", func() { + _, err := sl_service.GetReviewerAccessToken(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept::getReviewerEmailFromAccessToken", func() { + It("API Call Test", func() { + _, err := sl_service.GetReviewerEmailFromAccessToken(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept::getSubmittedRequest", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubmittedRequest(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept::getSubmittedRequests", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubmittedRequests(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept::getSupportEmailAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetSupportEmailAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept::getTotalRequestsPendingIntegratedOfferingTeamReview", func() { + It("API Call Test", func() { + _, err := sl_service.GetTotalRequestsPendingIntegratedOfferingTeamReview(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept::getTotalRequestsPendingOverThresholdReviewCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetTotalRequestsPendingOverThresholdReviewCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept::isCurrentReviewer", func() { + It("API Call Test", func() { + _, err := sl_service.IsCurrentReviewer(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept::isIntegratedOfferingTeamReviewer", func() { + It("API Call Test", func() { + _, err := sl_service.IsIntegratedOfferingTeamReviewer(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept::isOverThresholdReviewer", func() { + It("API Call Test", func() { + _, err := sl_service.IsOverThresholdReviewer(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept::requestAccountTeamFundedAccount", func() { + It("API Call Test", func() { + _, err := sl_service.RequestAccountTeamFundedAccount(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept::requestGlobalFundedAccount", func() { + It("API Call Test", func() { + _, err := sl_service.RequestGlobalFundedAccount(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept::verifyReviewer", func() { + It("API Call Test", func() { + err := sl_service.VerifyReviewer(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_ProofOfConcept_Approver service", func() { + var sl_service services.Account_ProofOfConcept_Approver + BeforeEach(func() { + sl_service = services.GetAccountProofOfConceptApproverService(slsession) + }) + Context("SoftLayer_Account_ProofOfConcept_Approver Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_ProofOfConcept_Approver Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_ProofOfConcept_Approver::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept_Approver::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept_Approver::getRole", func() { + It("API Call Test", func() { + _, err := sl_service.GetRole() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept_Approver::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_ProofOfConcept_Approver_Role service", func() { + var sl_service services.Account_ProofOfConcept_Approver_Role + BeforeEach(func() { + sl_service = services.GetAccountProofOfConceptApproverRoleService(slsession) + }) + Context("SoftLayer_Account_ProofOfConcept_Approver_Role Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_ProofOfConcept_Approver_Role Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_ProofOfConcept_Approver_Role::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_ProofOfConcept_Approver_Type service", func() { + var sl_service services.Account_ProofOfConcept_Approver_Type + BeforeEach(func() { + sl_service = services.GetAccountProofOfConceptApproverTypeService(slsession) + }) + Context("SoftLayer_Account_ProofOfConcept_Approver_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_ProofOfConcept_Approver_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_ProofOfConcept_Approver_Type::getApprovers", func() { + It("API Call Test", func() { + _, err := sl_service.GetApprovers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept_Approver_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_ProofOfConcept_Campaign_Code service", func() { + var sl_service services.Account_ProofOfConcept_Campaign_Code + BeforeEach(func() { + sl_service = services.GetAccountProofOfConceptCampaignCodeService(slsession) + }) + Context("SoftLayer_Account_ProofOfConcept_Campaign_Code Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_ProofOfConcept_Campaign_Code Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_ProofOfConcept_Campaign_Code::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept_Campaign_Code::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_ProofOfConcept_Funding_Type service", func() { + var sl_service services.Account_ProofOfConcept_Funding_Type + BeforeEach(func() { + sl_service = services.GetAccountProofOfConceptFundingTypeService(slsession) + }) + Context("SoftLayer_Account_ProofOfConcept_Funding_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_ProofOfConcept_Funding_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_ProofOfConcept_Funding_Type::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept_Funding_Type::getApproverTypes", func() { + It("API Call Test", func() { + _, err := sl_service.GetApproverTypes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept_Funding_Type::getApprovers", func() { + It("API Call Test", func() { + _, err := sl_service.GetApprovers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_ProofOfConcept_Funding_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Regional_Registry_Detail service", func() { + var sl_service services.Account_Regional_Registry_Detail + BeforeEach(func() { + sl_service = services.GetAccountRegionalRegistryDetailService(slsession) + }) + Context("SoftLayer_Account_Regional_Registry_Detail Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail::getDetailType", func() { + It("API Call Test", func() { + _, err := sl_service.GetDetailType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail::getDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail::getProperties", func() { + It("API Call Test", func() { + _, err := sl_service.GetProperties() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail::getRegionalInternetRegistryHandle", func() { + It("API Call Test", func() { + _, err := sl_service.GetRegionalInternetRegistryHandle() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail::updateReferencedRegistrations", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateReferencedRegistrations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail::validatePersonForAllRegistrars", func() { + It("API Call Test", func() { + _, err := sl_service.ValidatePersonForAllRegistrars() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Regional_Registry_Detail_Property service", func() { + var sl_service services.Account_Regional_Registry_Detail_Property + BeforeEach(func() { + sl_service = services.GetAccountRegionalRegistryDetailPropertyService(slsession) + }) + Context("SoftLayer_Account_Regional_Registry_Detail_Property Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail_Property Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail_Property::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail_Property::createObjects", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail_Property::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail_Property::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail_Property::editObjects", func() { + It("API Call Test", func() { + _, err := sl_service.EditObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail_Property::getDetail", func() { + It("API Call Test", func() { + _, err := sl_service.GetDetail() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail_Property::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail_Property::getPropertyType", func() { + It("API Call Test", func() { + _, err := sl_service.GetPropertyType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Regional_Registry_Detail_Property_Type service", func() { + var sl_service services.Account_Regional_Registry_Detail_Property_Type + BeforeEach(func() { + sl_service = services.GetAccountRegionalRegistryDetailPropertyTypeService(slsession) + }) + Context("SoftLayer_Account_Regional_Registry_Detail_Property_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail_Property_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail_Property_Type::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail_Property_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Regional_Registry_Detail_Type service", func() { + var sl_service services.Account_Regional_Registry_Detail_Type + BeforeEach(func() { + sl_service = services.GetAccountRegionalRegistryDetailTypeService(slsession) + }) + Context("SoftLayer_Account_Regional_Registry_Detail_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail_Type::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Regional_Registry_Detail_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Reports_Request service", func() { + var sl_service services.Account_Reports_Request + BeforeEach(func() { + sl_service = services.GetAccountReportsRequestService(slsession) + }) + Context("SoftLayer_Account_Reports_Request Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Reports_Request Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Reports_Request::createRequest", func() { + It("API Call Test", func() { + _, err := sl_service.CreateRequest(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Reports_Request::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Reports_Request::getAccountContact", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountContact() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Reports_Request::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Reports_Request::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Reports_Request::getReportType", func() { + It("API Call Test", func() { + _, err := sl_service.GetReportType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Reports_Request::getRequestByRequestKey", func() { + It("API Call Test", func() { + _, err := sl_service.GetRequestByRequestKey(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Reports_Request::getRequestorContact", func() { + It("API Call Test", func() { + _, err := sl_service.GetRequestorContact() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Reports_Request::getTicket", func() { + It("API Call Test", func() { + _, err := sl_service.GetTicket() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Reports_Request::getUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Reports_Request::sendReportEmail", func() { + It("API Call Test", func() { + _, err := sl_service.SendReportEmail(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Reports_Request::updateTicketOnDecline", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateTicketOnDecline(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Shipment service", func() { + var sl_service services.Account_Shipment + BeforeEach(func() { + sl_service = services.GetAccountShipmentService(slsession) + }) + Context("SoftLayer_Account_Shipment Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Shipment Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Shipment::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment::getAllCouriers", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllCouriers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment::getAllCouriersByType", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllCouriersByType(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment::getAllShipmentStatuses", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllShipmentStatuses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment::getAllShipmentTypes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllShipmentTypes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment::getCourier", func() { + It("API Call Test", func() { + _, err := sl_service.GetCourier() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment::getCreateEmployee", func() { + It("API Call Test", func() { + _, err := sl_service.GetCreateEmployee() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment::getCreateUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetCreateUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment::getCurrency", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrency() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment::getDestinationAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetDestinationAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment::getMasterTrackingData", func() { + It("API Call Test", func() { + _, err := sl_service.GetMasterTrackingData() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment::getModifyEmployee", func() { + It("API Call Test", func() { + _, err := sl_service.GetModifyEmployee() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment::getModifyUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetModifyUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment::getOriginationAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetOriginationAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment::getShipmentItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetShipmentItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment::getStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment::getTrackingData", func() { + It("API Call Test", func() { + _, err := sl_service.GetTrackingData() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment::getViaAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetViaAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Shipment_Item service", func() { + var sl_service services.Account_Shipment_Item + BeforeEach(func() { + sl_service = services.GetAccountShipmentItemService(slsession) + }) + Context("SoftLayer_Account_Shipment_Item Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Shipment_Item Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Shipment_Item::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment_Item::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment_Item::getShipment", func() { + It("API Call Test", func() { + _, err := sl_service.GetShipment() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment_Item::getShipmentItemType", func() { + It("API Call Test", func() { + _, err := sl_service.GetShipmentItemType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Shipment_Item_Type service", func() { + var sl_service services.Account_Shipment_Item_Type + BeforeEach(func() { + sl_service = services.GetAccountShipmentItemTypeService(slsession) + }) + Context("SoftLayer_Account_Shipment_Item_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Shipment_Item_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Shipment_Item_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Shipment_Resource_Type service", func() { + var sl_service services.Account_Shipment_Resource_Type + BeforeEach(func() { + sl_service = services.GetAccountShipmentResourceTypeService(slsession) + }) + Context("SoftLayer_Account_Shipment_Resource_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Shipment_Resource_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Shipment_Resource_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Shipment_Status service", func() { + var sl_service services.Account_Shipment_Status + BeforeEach(func() { + sl_service = services.GetAccountShipmentStatusService(slsession) + }) + Context("SoftLayer_Account_Shipment_Status Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Shipment_Status Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Shipment_Status::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Shipment_Tracking_Data service", func() { + var sl_service services.Account_Shipment_Tracking_Data + BeforeEach(func() { + sl_service = services.GetAccountShipmentTrackingDataService(slsession) + }) + Context("SoftLayer_Account_Shipment_Tracking_Data Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Shipment_Tracking_Data Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Shipment_Tracking_Data::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment_Tracking_Data::createObjects", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment_Tracking_Data::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment_Tracking_Data::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment_Tracking_Data::getCreateEmployee", func() { + It("API Call Test", func() { + _, err := sl_service.GetCreateEmployee() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment_Tracking_Data::getCreateUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetCreateUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment_Tracking_Data::getModifyEmployee", func() { + It("API Call Test", func() { + _, err := sl_service.GetModifyEmployee() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment_Tracking_Data::getModifyUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetModifyUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment_Tracking_Data::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Account_Shipment_Tracking_Data::getShipment", func() { + It("API Call Test", func() { + _, err := sl_service.GetShipment() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Account_Shipment_Type service", func() { + var sl_service services.Account_Shipment_Type + BeforeEach(func() { + sl_service = services.GetAccountShipmentTypeService(slsession) + }) + Context("SoftLayer_Account_Shipment_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Account_Shipment_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Account_Shipment_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/auxiliary.go b/services/auxiliary.go index 08b418e..bbf0f76 100644 --- a/services/auxiliary.go +++ b/services/auxiliary.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // no documentation yet type Auxiliary_Network_Status struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAuxiliaryNetworkStatusService returns an instance of the Auxiliary_Network_Status SoftLayer service -func GetAuxiliaryNetworkStatusService(sess *session.Session) Auxiliary_Network_Status { +func GetAuxiliaryNetworkStatusService(sess session.SLSession) Auxiliary_Network_Status { return Auxiliary_Network_Status{Session: sess} } @@ -81,12 +74,12 @@ func (r Auxiliary_Network_Status) GetNetworkStatus(target *string) (resp []datat // A SoftLayer_Auxiliary_Notification_Emergency data object represents a notification event being broadcast to the SoftLayer customer base. It is used to provide information regarding outages or current known issues. type Auxiliary_Notification_Emergency struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAuxiliaryNotificationEmergencyService returns an instance of the Auxiliary_Notification_Emergency SoftLayer service -func GetAuxiliaryNotificationEmergencyService(sess *session.Session) Auxiliary_Notification_Emergency { +func GetAuxiliaryNotificationEmergencyService(sess session.SLSession) Auxiliary_Notification_Emergency { return Auxiliary_Notification_Emergency{Session: sess} } @@ -151,12 +144,12 @@ func (r Auxiliary_Notification_Emergency) GetStatus() (resp datatypes.Auxiliary_ // no documentation yet type Auxiliary_Shipping_Courier_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetAuxiliaryShippingCourierTypeService returns an instance of the Auxiliary_Shipping_Courier_Type SoftLayer service -func GetAuxiliaryShippingCourierTypeService(sess *session.Session) Auxiliary_Shipping_Courier_Type { +func GetAuxiliaryShippingCourierTypeService(sess session.SLSession) Auxiliary_Shipping_Courier_Type { return Auxiliary_Shipping_Courier_Type{Session: sess} } diff --git a/services/auxiliary_test.go b/services/auxiliary_test.go new file mode 100644 index 0000000..7377728 --- /dev/null +++ b/services/auxiliary_test.go @@ -0,0 +1,170 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Auxiliary Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Auxiliary_Network_Status service", func() { + var sl_service services.Auxiliary_Network_Status + BeforeEach(func() { + sl_service = services.GetAuxiliaryNetworkStatusService(slsession) + }) + Context("SoftLayer_Auxiliary_Network_Status Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Auxiliary_Network_Status Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Auxiliary_Network_Status::getNetworkStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkStatus(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Auxiliary_Notification_Emergency service", func() { + var sl_service services.Auxiliary_Notification_Emergency + BeforeEach(func() { + sl_service = services.GetAuxiliaryNotificationEmergencyService(slsession) + }) + Context("SoftLayer_Auxiliary_Notification_Emergency Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Auxiliary_Notification_Emergency Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Auxiliary_Notification_Emergency::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Auxiliary_Notification_Emergency::getCurrentNotifications", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentNotifications() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Auxiliary_Notification_Emergency::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Auxiliary_Notification_Emergency::getSignature", func() { + It("API Call Test", func() { + _, err := sl_service.GetSignature() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Auxiliary_Notification_Emergency::getStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Auxiliary_Shipping_Courier_Type service", func() { + var sl_service services.Auxiliary_Shipping_Courier_Type + BeforeEach(func() { + sl_service = services.GetAuxiliaryShippingCourierTypeService(slsession) + }) + Context("SoftLayer_Auxiliary_Shipping_Courier_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Auxiliary_Shipping_Courier_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Auxiliary_Shipping_Courier_Type::getCourier", func() { + It("API Call Test", func() { + _, err := sl_service.GetCourier() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Auxiliary_Shipping_Courier_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Auxiliary_Shipping_Courier_Type::getTypeByKeyName", func() { + It("API Call Test", func() { + _, err := sl_service.GetTypeByKeyName(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/billing.go b/services/billing.go index 474327a..4ee7522 100644 --- a/services/billing.go +++ b/services/billing.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // no documentation yet type Billing_Currency struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBillingCurrencyService returns an instance of the Billing_Currency SoftLayer service -func GetBillingCurrencyService(sess *session.Session) Billing_Currency { +func GetBillingCurrencyService(sess session.SLSession) Billing_Currency { return Billing_Currency{Session: sess} } @@ -99,12 +92,12 @@ func (r Billing_Currency) GetPrice(price *datatypes.Float64, formatOptions *data // The SoftLayer_Billing_Currency_Country data type maps what currencies are valid for specific countries. US Dollars are valid from any country, but other currencies are only available to customers in certain countries. type Billing_Currency_Country struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBillingCurrencyCountryService returns an instance of the Billing_Currency_Country SoftLayer service -func GetBillingCurrencyCountryService(sess *session.Session) Billing_Currency_Country { +func GetBillingCurrencyCountryService(sess session.SLSession) Billing_Currency_Country { return Billing_Currency_Country{Session: sess} } @@ -151,12 +144,12 @@ func (r Billing_Currency_Country) GetObject() (resp datatypes.Billing_Currency_C // no documentation yet type Billing_Currency_ExchangeRate struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBillingCurrencyExchangeRateService returns an instance of the Billing_Currency_ExchangeRate SoftLayer service -func GetBillingCurrencyExchangeRateService(sess *session.Session) Billing_Currency_ExchangeRate { +func GetBillingCurrencyExchangeRateService(sess session.SLSession) Billing_Currency_ExchangeRate { return Billing_Currency_ExchangeRate{Session: sess} } @@ -245,12 +238,12 @@ func (r Billing_Currency_ExchangeRate) GetPrice(price *datatypes.Float64, format // Every SoftLayer customer account has billing specific information which is kept in the SoftLayer_Billing_Info data type. This information is used by the SoftLayer accounting group when sending invoices and making billing inquiries. type Billing_Info struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBillingInfoService returns an instance of the Billing_Info SoftLayer service -func GetBillingInfoService(sess *session.Session) Billing_Info { +func GetBillingInfoService(sess session.SLSession) Billing_Info { return Billing_Info{Session: sess} } @@ -327,12 +320,12 @@ func (r Billing_Info) GetObject() (resp datatypes.Billing_Info, err error) { // The SoftLayer_Billing_Invoice data type contains general information relating to an individual invoice applied to a SoftLayer customer account. Personal information in this type such as names, addresses, and phone numbers are taken from the account's contact information at the time the invoice is generated. type Billing_Invoice struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBillingInvoiceService returns an instance of the Billing_Invoice SoftLayer service -func GetBillingInvoiceService(sess *session.Session) Billing_Invoice { +func GetBillingInvoiceService(sess session.SLSession) Billing_Invoice { return Billing_Invoice{Session: sess} } @@ -575,12 +568,12 @@ func (r Billing_Invoice) GetZeroFeeItemCounts() (resp []datatypes.Container_Prod // Each billing invoice item makes up a record within an invoice. This provides you with a detailed record of everything related to an invoice item. When you are billed, our system takes active billing items and creates an invoice. These invoice items are a copy of your active billing items, and make up the contents of your invoice. type Billing_Invoice_Item struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBillingInvoiceItemService returns an instance of the Billing_Invoice_Item SoftLayer service -func GetBillingInvoiceItemService(sess *session.Session) Billing_Invoice_Item { +func GetBillingInvoiceItemService(sess session.SLSession) Billing_Invoice_Item { return Billing_Invoice_Item{Session: sess} } @@ -735,12 +728,12 @@ func (r Billing_Invoice_Item) GetUsageChargeFlag() (resp bool, err error) { // no documentation yet type Billing_Invoice_Next struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBillingInvoiceNextService returns an instance of the Billing_Invoice_Next SoftLayer service -func GetBillingInvoiceNextService(sess *session.Session) Billing_Invoice_Next { +func GetBillingInvoiceNextService(sess session.SLSession) Billing_Invoice_Next { return Billing_Invoice_Next{Session: sess} } @@ -802,12 +795,12 @@ func (r Billing_Invoice_Next) GetPdfDetailed(documentCreateDate *datatypes.Time) // The invoice tax status data type models a single status or state that an invoice can reflect in regard to an integration with a third-party tax calculation service. type Billing_Invoice_Tax_Status struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBillingInvoiceTaxStatusService returns an instance of the Billing_Invoice_Tax_Status SoftLayer service -func GetBillingInvoiceTaxStatusService(sess *session.Session) Billing_Invoice_Tax_Status { +func GetBillingInvoiceTaxStatusService(sess session.SLSession) Billing_Invoice_Tax_Status { return Billing_Invoice_Tax_Status{Session: sess} } @@ -854,12 +847,12 @@ func (r Billing_Invoice_Tax_Status) GetObject() (resp datatypes.Billing_Invoice_ // The invoice tax type data type models a single strategy for handling tax calculations. type Billing_Invoice_Tax_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBillingInvoiceTaxTypeService returns an instance of the Billing_Invoice_Tax_Type SoftLayer service -func GetBillingInvoiceTaxTypeService(sess *session.Session) Billing_Invoice_Tax_Type { +func GetBillingInvoiceTaxTypeService(sess session.SLSession) Billing_Invoice_Tax_Type { return Billing_Invoice_Tax_Type{Session: sess} } @@ -908,12 +901,12 @@ func (r Billing_Invoice_Tax_Type) GetObject() (resp datatypes.Billing_Invoice_Ta // // Billing items exist in a tree relationship. Items are associated with each other by parent/child relationships. Component items such as CPU's, RAM, and software each have a parent billing item for the server chassis they're associated with. Billing Items with a null parent item do not have an associated parent item. type Billing_Item struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBillingItemService returns an instance of the Billing_Item SoftLayer service -func GetBillingItemService(sess *session.Session) Billing_Item { +func GetBillingItemService(sess session.SLSession) Billing_Item { return Billing_Item{Session: sess} } @@ -1317,12 +1310,12 @@ func (r Billing_Item) VoidCancelService() (resp bool, err error) { // The SoftLayer_Billing_Item_Cancellation_Reason data type contains cancellation reasons. type Billing_Item_Cancellation_Reason struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBillingItemCancellationReasonService returns an instance of the Billing_Item_Cancellation_Reason SoftLayer service -func GetBillingItemCancellationReasonService(sess *session.Session) Billing_Item_Cancellation_Reason { +func GetBillingItemCancellationReasonService(sess session.SLSession) Billing_Item_Cancellation_Reason { return Billing_Item_Cancellation_Reason{Session: sess} } @@ -1387,12 +1380,12 @@ func (r Billing_Item_Cancellation_Reason) GetTranslatedReason() (resp string, er // The SoftLayer_Billing_Item_Cancellation_Reason_Category data type contains cancellation reason categories. type Billing_Item_Cancellation_Reason_Category struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBillingItemCancellationReasonCategoryService returns an instance of the Billing_Item_Cancellation_Reason_Category SoftLayer service -func GetBillingItemCancellationReasonCategoryService(sess *session.Session) Billing_Item_Cancellation_Reason_Category { +func GetBillingItemCancellationReasonCategoryService(sess session.SLSession) Billing_Item_Cancellation_Reason_Category { return Billing_Item_Cancellation_Reason_Category{Session: sess} } @@ -1445,12 +1438,12 @@ func (r Billing_Item_Cancellation_Reason_Category) GetObject() (resp datatypes.B // SoftLayer_Billing_Item_Cancellation_Request data type is used to cancel service billing items. type Billing_Item_Cancellation_Request struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBillingItemCancellationRequestService returns an instance of the Billing_Item_Cancellation_Request SoftLayer service -func GetBillingItemCancellationRequestService(sess *session.Session) Billing_Item_Cancellation_Request { +func GetBillingItemCancellationRequestService(sess session.SLSession) Billing_Item_Cancellation_Request { return Billing_Item_Cancellation_Request{Session: sess} } @@ -1579,12 +1572,12 @@ func (r Billing_Item_Cancellation_Request) Void(closeRelatedTicketFlag *bool) (r // no documentation yet type Billing_Item_Chronicle struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBillingItemChronicleService returns an instance of the Billing_Item_Chronicle SoftLayer service -func GetBillingItemChronicleService(sess *session.Session) Billing_Item_Chronicle { +func GetBillingItemChronicleService(sess session.SLSession) Billing_Item_Chronicle { return Billing_Item_Chronicle{Session: sess} } @@ -1637,12 +1630,12 @@ func (r Billing_Item_Chronicle) GetProduct() (resp datatypes.Product_Item, err e // no documentation yet type Billing_Item_Virtual_DedicatedHost struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBillingItemVirtualDedicatedHostService returns an instance of the Billing_Item_Virtual_DedicatedHost SoftLayer service -func GetBillingItemVirtualDedicatedHostService(sess *session.Session) Billing_Item_Virtual_DedicatedHost { +func GetBillingItemVirtualDedicatedHostService(sess session.SLSession) Billing_Item_Virtual_DedicatedHost { return Billing_Item_Virtual_DedicatedHost{Session: sess} } @@ -2052,12 +2045,12 @@ func (r Billing_Item_Virtual_DedicatedHost) VoidCancelService() (resp bool, err // The SoftLayer_Billing_Order data type contains general information relating to an individual order applied to a SoftLayer customer account or to a new customer. Personal information in this type such as names, addresses, and phone numbers are taken from the account's contact information at the time the order is generated for existing SoftLayer customer. type Billing_Order struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBillingOrderService returns an instance of the Billing_Order SoftLayer service -func GetBillingOrderService(sess *session.Session) Billing_Order { +func GetBillingOrderService(sess session.SLSession) Billing_Order { return Billing_Order{Session: sess} } @@ -2312,12 +2305,12 @@ func (r Billing_Order) IsPendingEditApproval() (resp bool, err error) { // no documentation yet type Billing_Order_Cart struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBillingOrderCartService returns an instance of the Billing_Order_Cart SoftLayer service -func GetBillingOrderCartService(sess *session.Session) Billing_Order_Cart { +func GetBillingOrderCartService(sess session.SLSession) Billing_Order_Cart { return Billing_Order_Cart{Session: sess} } @@ -2512,12 +2505,12 @@ func (r Billing_Order_Cart) WithdrawGdprAcceptance() (err error) { // // Billing items exist in a tree relationship. Items are associated with each other by parent/child relationships. Component items such as CPU's, RAM, and software each have a parent billing item for the server chassis they're associated with. Billing Items with a null parent item do not have an associated parent item. type Billing_Order_Item struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBillingOrderItemService returns an instance of the Billing_Order_Item SoftLayer service -func GetBillingOrderItemService(sess *session.Session) Billing_Order_Item { +func GetBillingOrderItemService(sess session.SLSession) Billing_Order_Item { return Billing_Order_Item{Session: sess} } @@ -2696,12 +2689,12 @@ func (r Billing_Order_Item) GetUpgradeItem() (resp datatypes.Product_Item, err e // The SoftLayer_Billing_Oder_Quote data type contains general information relating to an individual order applied to a SoftLayer customer account or to a new customer. Personal information in this type such as names, addresses, and phone numbers are taken from the account's contact information at the time the quote is generated for existing SoftLayer customer. type Billing_Order_Quote struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBillingOrderQuoteService returns an instance of the Billing_Order_Quote SoftLayer service -func GetBillingOrderQuoteService(sess *session.Session) Billing_Order_Quote { +func GetBillingOrderQuoteService(sess session.SLSession) Billing_Order_Quote { return Billing_Order_Quote{Session: sess} } diff --git a/services/billing_test.go b/services/billing_test.go new file mode 100644 index 0000000..c6bcb21 --- /dev/null +++ b/services/billing_test.go @@ -0,0 +1,2778 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Billing Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Billing_Currency service", func() { + var sl_service services.Billing_Currency + BeforeEach(func() { + sl_service = services.GetBillingCurrencyService(slsession) + }) + Context("SoftLayer_Billing_Currency Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Billing_Currency Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Billing_Currency::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Currency::getCurrentExchangeRate", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentExchangeRate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Currency::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Currency::getPrice", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrice(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Billing_Currency_Country service", func() { + var sl_service services.Billing_Currency_Country + BeforeEach(func() { + sl_service = services.GetBillingCurrencyCountryService(slsession) + }) + Context("SoftLayer_Billing_Currency_Country Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Billing_Currency_Country Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Billing_Currency_Country::getCountriesWithListOfEligibleCurrencies", func() { + It("API Call Test", func() { + _, err := sl_service.GetCountriesWithListOfEligibleCurrencies() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Currency_Country::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Billing_Currency_ExchangeRate service", func() { + var sl_service services.Billing_Currency_ExchangeRate + BeforeEach(func() { + sl_service = services.GetBillingCurrencyExchangeRateService(slsession) + }) + Context("SoftLayer_Billing_Currency_ExchangeRate Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Billing_Currency_ExchangeRate Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Billing_Currency_ExchangeRate::getAllCurrencyExchangeRates", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllCurrencyExchangeRates(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Currency_ExchangeRate::getCurrencies", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrencies() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Currency_ExchangeRate::getExchangeRate", func() { + It("API Call Test", func() { + _, err := sl_service.GetExchangeRate(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Currency_ExchangeRate::getFundingCurrency", func() { + It("API Call Test", func() { + _, err := sl_service.GetFundingCurrency() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Currency_ExchangeRate::getLocalCurrency", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocalCurrency() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Currency_ExchangeRate::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Currency_ExchangeRate::getPrice", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrice(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Billing_Info service", func() { + var sl_service services.Billing_Info + BeforeEach(func() { + sl_service = services.GetBillingInfoService(slsession) + }) + Context("SoftLayer_Billing_Info Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Billing_Info Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Billing_Info::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Info::getAchInformation", func() { + It("API Call Test", func() { + _, err := sl_service.GetAchInformation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Info::getCurrency", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrency() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Info::getCurrentBillingCycle", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBillingCycle() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Info::getLastBillDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastBillDate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Info::getNextBillDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextBillDate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Info::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Billing_Invoice service", func() { + var sl_service services.Billing_Invoice + BeforeEach(func() { + sl_service = services.GetBillingInvoiceService(slsession) + }) + Context("SoftLayer_Billing_Invoice Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Billing_Invoice Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Billing_Invoice::emailInvoices", func() { + It("API Call Test", func() { + err := sl_service.EmailInvoices(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getBrandAtInvoiceCreation", func() { + It("API Call Test", func() { + _, err := sl_service.GetBrandAtInvoiceCreation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getChargebackType", func() { + It("API Call Test", func() { + _, err := sl_service.GetChargebackType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getDetailedPdfGeneratedFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetDetailedPdfGeneratedFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getExcel", func() { + It("API Call Test", func() { + _, err := sl_service.GetExcel() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getInvoiceTopLevelItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetInvoiceTopLevelItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getInvoiceTotalAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetInvoiceTotalAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getInvoiceTotalOneTimeAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetInvoiceTotalOneTimeAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getInvoiceTotalOneTimeTaxAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetInvoiceTotalOneTimeTaxAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getInvoiceTotalPreTaxAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetInvoiceTotalPreTaxAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getInvoiceTotalRecurringAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetInvoiceTotalRecurringAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getInvoiceTotalRecurringTaxAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetInvoiceTotalRecurringTaxAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getLocalCurrencyExchangeRate", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocalCurrencyExchangeRate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getPayment", func() { + It("API Call Test", func() { + _, err := sl_service.GetPayment() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getPayments", func() { + It("API Call Test", func() { + _, err := sl_service.GetPayments() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getPdf", func() { + It("API Call Test", func() { + _, err := sl_service.GetPdf() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getPdfDetailed", func() { + It("API Call Test", func() { + _, err := sl_service.GetPdfDetailed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getPdfDetailedFilename", func() { + It("API Call Test", func() { + _, err := sl_service.GetPdfDetailedFilename() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getPdfFileSize", func() { + It("API Call Test", func() { + _, err := sl_service.GetPdfFileSize() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getPdfFilename", func() { + It("API Call Test", func() { + _, err := sl_service.GetPdfFilename() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getPreliminaryExcel", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreliminaryExcel() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getPreliminaryPdf", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreliminaryPdf() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getPreliminaryPdfDetailed", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreliminaryPdfDetailed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getSellerRegistration", func() { + It("API Call Test", func() { + _, err := sl_service.GetSellerRegistration() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getTaxInfo", func() { + It("API Call Test", func() { + _, err := sl_service.GetTaxInfo() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getTaxInfoHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetTaxInfoHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getTaxMessage", func() { + It("API Call Test", func() { + _, err := sl_service.GetTaxMessage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getTaxType", func() { + It("API Call Test", func() { + _, err := sl_service.GetTaxType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getXlsFilename", func() { + It("API Call Test", func() { + _, err := sl_service.GetXlsFilename() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice::getZeroFeeItemCounts", func() { + It("API Call Test", func() { + _, err := sl_service.GetZeroFeeItemCounts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Billing_Invoice_Item service", func() { + var sl_service services.Billing_Invoice_Item + BeforeEach(func() { + sl_service = services.GetBillingInvoiceItemService(slsession) + }) + Context("SoftLayer_Billing_Invoice_Item Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Billing_Invoice_Item Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Billing_Invoice_Item::getAssociatedChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssociatedChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Item::getAssociatedInvoiceItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssociatedInvoiceItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Item::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Item::getCategory", func() { + It("API Call Test", func() { + _, err := sl_service.GetCategory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Item::getChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Item::getDPart", func() { + It("API Call Test", func() { + _, err := sl_service.GetDPart() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Item::getFilteredAssociatedChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetFilteredAssociatedChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Item::getHourlyFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlyFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Item::getInvoice", func() { + It("API Call Test", func() { + _, err := sl_service.GetInvoice() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Item::getLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Item::getNonZeroAssociatedChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetNonZeroAssociatedChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Item::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Item::getParent", func() { + It("API Call Test", func() { + _, err := sl_service.GetParent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Item::getProduct", func() { + It("API Call Test", func() { + _, err := sl_service.GetProduct() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Item::getTopLevelProductGroupName", func() { + It("API Call Test", func() { + _, err := sl_service.GetTopLevelProductGroupName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Item::getTotalOneTimeAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetTotalOneTimeAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Item::getTotalOneTimeTaxAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetTotalOneTimeTaxAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Item::getTotalRecurringAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetTotalRecurringAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Item::getTotalRecurringTaxAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetTotalRecurringTaxAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Item::getUsageChargeFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetUsageChargeFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Billing_Invoice_Next service", func() { + var sl_service services.Billing_Invoice_Next + BeforeEach(func() { + sl_service = services.GetBillingInvoiceNextService(slsession) + }) + Context("SoftLayer_Billing_Invoice_Next Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Billing_Invoice_Next Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Billing_Invoice_Next::getExcel", func() { + It("API Call Test", func() { + _, err := sl_service.GetExcel(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Next::getPdf", func() { + It("API Call Test", func() { + _, err := sl_service.GetPdf(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Next::getPdfDetailed", func() { + It("API Call Test", func() { + _, err := sl_service.GetPdfDetailed(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Billing_Invoice_Tax_Status service", func() { + var sl_service services.Billing_Invoice_Tax_Status + BeforeEach(func() { + sl_service = services.GetBillingInvoiceTaxStatusService(slsession) + }) + Context("SoftLayer_Billing_Invoice_Tax_Status Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Billing_Invoice_Tax_Status Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Billing_Invoice_Tax_Status::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Tax_Status::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Billing_Invoice_Tax_Type service", func() { + var sl_service services.Billing_Invoice_Tax_Type + BeforeEach(func() { + sl_service = services.GetBillingInvoiceTaxTypeService(slsession) + }) + Context("SoftLayer_Billing_Invoice_Tax_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Billing_Invoice_Tax_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Billing_Invoice_Tax_Type::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Invoice_Tax_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Billing_Item service", func() { + var sl_service services.Billing_Item + BeforeEach(func() { + sl_service = services.GetBillingItemService(slsession) + }) + Context("SoftLayer_Billing_Item Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Billing_Item Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Billing_Item::cancelItem", func() { + It("API Call Test", func() { + _, err := sl_service.CancelItem(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::cancelService", func() { + It("API Call Test", func() { + _, err := sl_service.CancelService() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::cancelServiceOnAnniversaryDate", func() { + It("API Call Test", func() { + _, err := sl_service.CancelServiceOnAnniversaryDate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getActiveAgreement", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveAgreement() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getActiveAgreementFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveAgreementFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getActiveAssociatedChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveAssociatedChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getActiveAssociatedGuestDiskBillingItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveAssociatedGuestDiskBillingItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getActiveBundledItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveBundledItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getActiveCancellationItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveCancellationItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getActiveChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getActiveFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getActiveSparePoolAssociatedGuestDiskBillingItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveSparePoolAssociatedGuestDiskBillingItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getActiveSparePoolBundledItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveSparePoolBundledItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getAssociatedBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssociatedBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getAssociatedBillingItemHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssociatedBillingItemHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getAssociatedChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssociatedChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getAssociatedParent", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssociatedParent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getAvailableMatchingVlans", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableMatchingVlans() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getBandwidthAllocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthAllocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getBillableChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillableChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getBundledItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetBundledItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getCanceledChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetCanceledChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getCancellationReason", func() { + It("API Call Test", func() { + _, err := sl_service.GetCancellationReason() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getCancellationRequests", func() { + It("API Call Test", func() { + _, err := sl_service.GetCancellationRequests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getCategory", func() { + It("API Call Test", func() { + _, err := sl_service.GetCategory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getChildrenWithActiveAgreement", func() { + It("API Call Test", func() { + _, err := sl_service.GetChildrenWithActiveAgreement() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getDowngradeItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetDowngradeItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getFilteredNextInvoiceChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetFilteredNextInvoiceChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getHourlyFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlyFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getInvoiceItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetInvoiceItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getInvoiceItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetInvoiceItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getNextInvoiceChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getNextInvoiceTotalOneTimeAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceTotalOneTimeAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getNextInvoiceTotalOneTimeTaxAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceTotalOneTimeTaxAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getNextInvoiceTotalRecurringAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceTotalRecurringAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getNextInvoiceTotalRecurringTaxAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceTotalRecurringTaxAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getNonZeroNextInvoiceChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetNonZeroNextInvoiceChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getOrderItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getOriginalLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetOriginalLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getPackage", func() { + It("API Call Test", func() { + _, err := sl_service.GetPackage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getParent", func() { + It("API Call Test", func() { + _, err := sl_service.GetParent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getParentVirtualGuestBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetParentVirtualGuestBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getPendingCancellationFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetPendingCancellationFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getPendingOrderItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetPendingOrderItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getProvisionTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.GetProvisionTransaction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getServiceBillingItemsByCategory", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceBillingItemsByCategory(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getSoftwareDescription", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareDescription() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getUpgradeItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::getUpgradeItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::removeAssociationId", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAssociationId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::setAssociationId", func() { + It("API Call Test", func() { + _, err := sl_service.SetAssociationId(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item::voidCancelService", func() { + It("API Call Test", func() { + _, err := sl_service.VoidCancelService() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Billing_Item_Cancellation_Reason service", func() { + var sl_service services.Billing_Item_Cancellation_Reason + BeforeEach(func() { + sl_service = services.GetBillingItemCancellationReasonService(slsession) + }) + Context("SoftLayer_Billing_Item_Cancellation_Reason Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Reason Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Reason::getAllCancellationReasons", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllCancellationReasons() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Reason::getBillingCancellationReasonCategory", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingCancellationReasonCategory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Reason::getBillingItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Reason::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Reason::getTranslatedReason", func() { + It("API Call Test", func() { + _, err := sl_service.GetTranslatedReason() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Billing_Item_Cancellation_Reason_Category service", func() { + var sl_service services.Billing_Item_Cancellation_Reason_Category + BeforeEach(func() { + sl_service = services.GetBillingItemCancellationReasonCategoryService(slsession) + }) + Context("SoftLayer_Billing_Item_Cancellation_Reason_Category Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Reason_Category Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Reason_Category::getAllCancellationReasonCategories", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllCancellationReasonCategories() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Reason_Category::getBillingCancellationReasons", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingCancellationReasons() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Reason_Category::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Billing_Item_Cancellation_Request service", func() { + var sl_service services.Billing_Item_Cancellation_Request + BeforeEach(func() { + sl_service = services.GetBillingItemCancellationRequestService(slsession) + }) + Context("SoftLayer_Billing_Item_Cancellation_Request Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Request Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Request::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Request::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Request::getAllCancellationRequests", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllCancellationRequests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Request::getCancellationCutoffDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetCancellationCutoffDate(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Request::getItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Request::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Request::getStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Request::getTicket", func() { + It("API Call Test", func() { + _, err := sl_service.GetTicket() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Request::getUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Request::removeCancellationItem", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveCancellationItem(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Request::validateBillingItemForCancellation", func() { + It("API Call Test", func() { + _, err := sl_service.ValidateBillingItemForCancellation(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Cancellation_Request::void", func() { + It("API Call Test", func() { + _, err := sl_service.Void(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Billing_Item_Chronicle service", func() { + var sl_service services.Billing_Item_Chronicle + BeforeEach(func() { + sl_service = services.GetBillingItemChronicleService(slsession) + }) + Context("SoftLayer_Billing_Item_Chronicle Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Billing_Item_Chronicle Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Billing_Item_Chronicle::getAssociatedChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssociatedChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Chronicle::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Chronicle::getProduct", func() { + It("API Call Test", func() { + _, err := sl_service.GetProduct() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Billing_Item_Virtual_DedicatedHost service", func() { + var sl_service services.Billing_Item_Virtual_DedicatedHost + BeforeEach(func() { + sl_service = services.GetBillingItemVirtualDedicatedHostService(slsession) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::cancelItem", func() { + It("API Call Test", func() { + _, err := sl_service.CancelItem(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::cancelService", func() { + It("API Call Test", func() { + _, err := sl_service.CancelService() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::cancelServiceOnAnniversaryDate", func() { + It("API Call Test", func() { + _, err := sl_service.CancelServiceOnAnniversaryDate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getActiveAgreement", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveAgreement() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getActiveAgreementFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveAgreementFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getActiveAssociatedChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveAssociatedChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getActiveAssociatedGuestDiskBillingItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveAssociatedGuestDiskBillingItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getActiveBundledItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveBundledItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getActiveCancellationItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveCancellationItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getActiveChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getActiveFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getActiveSparePoolAssociatedGuestDiskBillingItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveSparePoolAssociatedGuestDiskBillingItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getActiveSparePoolBundledItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveSparePoolBundledItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getAssociatedBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssociatedBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getAssociatedBillingItemHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssociatedBillingItemHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getAssociatedChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssociatedChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getAssociatedParent", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssociatedParent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getAvailableMatchingVlans", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableMatchingVlans() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getBandwidthAllocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthAllocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getBillableChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillableChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getBundledItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetBundledItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getCanceledChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetCanceledChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getCancellationReason", func() { + It("API Call Test", func() { + _, err := sl_service.GetCancellationReason() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getCancellationRequests", func() { + It("API Call Test", func() { + _, err := sl_service.GetCancellationRequests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getCategory", func() { + It("API Call Test", func() { + _, err := sl_service.GetCategory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getChildrenWithActiveAgreement", func() { + It("API Call Test", func() { + _, err := sl_service.GetChildrenWithActiveAgreement() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getDowngradeItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetDowngradeItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getFilteredNextInvoiceChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetFilteredNextInvoiceChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getHourlyFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlyFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getInvoiceItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetInvoiceItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getInvoiceItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetInvoiceItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getNextInvoiceChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getNextInvoiceTotalOneTimeAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceTotalOneTimeAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getNextInvoiceTotalOneTimeTaxAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceTotalOneTimeTaxAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getNextInvoiceTotalRecurringAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceTotalRecurringAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getNextInvoiceTotalRecurringTaxAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoiceTotalRecurringTaxAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getNonZeroNextInvoiceChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetNonZeroNextInvoiceChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getOrderItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getOriginalLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetOriginalLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getPackage", func() { + It("API Call Test", func() { + _, err := sl_service.GetPackage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getParent", func() { + It("API Call Test", func() { + _, err := sl_service.GetParent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getParentVirtualGuestBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetParentVirtualGuestBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getPendingCancellationFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetPendingCancellationFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getPendingOrderItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetPendingOrderItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getProvisionTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.GetProvisionTransaction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getResource", func() { + It("API Call Test", func() { + _, err := sl_service.GetResource() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getServiceBillingItemsByCategory", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceBillingItemsByCategory(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getSoftwareDescription", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareDescription() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getUpgradeItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::getUpgradeItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::removeAssociationId", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAssociationId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::setAssociationId", func() { + It("API Call Test", func() { + _, err := sl_service.SetAssociationId(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Item_Virtual_DedicatedHost::voidCancelService", func() { + It("API Call Test", func() { + _, err := sl_service.VoidCancelService() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Billing_Order service", func() { + var sl_service services.Billing_Order + BeforeEach(func() { + sl_service = services.GetBillingOrderService(slsession) + }) + Context("SoftLayer_Billing_Order Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Billing_Order Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Billing_Order::approveModifiedOrder", func() { + It("API Call Test", func() { + _, err := sl_service.ApproveModifiedOrder() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getBrand", func() { + It("API Call Test", func() { + _, err := sl_service.GetBrand() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getCart", func() { + It("API Call Test", func() { + _, err := sl_service.GetCart() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getCoreRestrictedItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetCoreRestrictedItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getCreditCardTransactions", func() { + It("API Call Test", func() { + _, err := sl_service.GetCreditCardTransactions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getExchangeRate", func() { + It("API Call Test", func() { + _, err := sl_service.GetExchangeRate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getInitialInvoice", func() { + It("API Call Test", func() { + _, err := sl_service.GetInitialInvoice() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getOrderApprovalDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderApprovalDate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getOrderNonServerMonthlyAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderNonServerMonthlyAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getOrderServerMonthlyAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderServerMonthlyAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getOrderStatuses", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderStatuses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getOrderTopLevelItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderTopLevelItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getOrderTotalAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderTotalAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getOrderTotalOneTime", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderTotalOneTime() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getOrderTotalOneTimeAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderTotalOneTimeAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getOrderTotalOneTimeTaxAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderTotalOneTimeTaxAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getOrderTotalRecurring", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderTotalRecurring() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getOrderTotalRecurringAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderTotalRecurringAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getOrderTotalRecurringTaxAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderTotalRecurringTaxAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getOrderTotalSetupAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderTotalSetupAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getOrderType", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getPaypalTransactions", func() { + It("API Call Test", func() { + _, err := sl_service.GetPaypalTransactions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getPdf", func() { + It("API Call Test", func() { + _, err := sl_service.GetPdf() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getPdfFilename", func() { + It("API Call Test", func() { + _, err := sl_service.GetPdfFilename() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getPresaleEvent", func() { + It("API Call Test", func() { + _, err := sl_service.GetPresaleEvent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getQuote", func() { + It("API Call Test", func() { + _, err := sl_service.GetQuote() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getRecalculatedOrderContainer", func() { + It("API Call Test", func() { + _, err := sl_service.GetRecalculatedOrderContainer(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getReceipt", func() { + It("API Call Test", func() { + _, err := sl_service.GetReceipt() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getReferralPartner", func() { + It("API Call Test", func() { + _, err := sl_service.GetReferralPartner() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getUpgradeRequestFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeRequestFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::getUserRecord", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserRecord() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order::isPendingEditApproval", func() { + It("API Call Test", func() { + _, err := sl_service.IsPendingEditApproval() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Billing_Order_Cart service", func() { + var sl_service services.Billing_Order_Cart + BeforeEach(func() { + sl_service = services.GetBillingOrderCartService(slsession) + }) + Context("SoftLayer_Billing_Order_Cart Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Billing_Order_Cart Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Billing_Order_Cart::claim", func() { + It("API Call Test", func() { + _, err := sl_service.Claim(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Cart::createCart", func() { + It("API Call Test", func() { + _, err := sl_service.CreateCart(GetOrderContainer()) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Cart::deleteCart", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteCart() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Cart::deleteQuote", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteQuote() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Cart::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Cart::getCartByCartKey", func() { + It("API Call Test", func() { + _, err := sl_service.GetCartByCartKey(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Cart::getDoNotContactFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetDoNotContactFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Cart::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Cart::getOrder", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrder() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Cart::getOrdersFromQuote", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrdersFromQuote() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Cart::getPdf", func() { + It("API Call Test", func() { + _, err := sl_service.GetPdf() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Cart::getQuoteByQuoteKey", func() { + It("API Call Test", func() { + _, err := sl_service.GetQuoteByQuoteKey(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Cart::getRecalculatedOrderContainer", func() { + It("API Call Test", func() { + _, err := sl_service.GetRecalculatedOrderContainer(GetOrderContainer(), nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Cart::placeOrder", func() { + It("API Call Test", func() { + _, err := sl_service.PlaceOrder(GetOrderContainer()) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Cart::placeQuote", func() { + It("API Call Test", func() { + _, err := sl_service.PlaceQuote(GetOrderContainer()) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Cart::saveQuote", func() { + It("API Call Test", func() { + _, err := sl_service.SaveQuote() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Cart::updateCart", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateCart(GetOrderContainer()) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Cart::verifyOrder", func() { + It("API Call Test", func() { + _, err := sl_service.VerifyOrder(GetOrderContainer()) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Cart::withdrawGdprAcceptance", func() { + It("API Call Test", func() { + err := sl_service.WithdrawGdprAcceptance() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Billing_Order_Item service", func() { + var sl_service services.Billing_Order_Item + BeforeEach(func() { + sl_service = services.GetBillingOrderItemService(slsession) + }) + Context("SoftLayer_Billing_Order_Item Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Billing_Order_Item Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Billing_Order_Item::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getBundledItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetBundledItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getCategory", func() { + It("API Call Test", func() { + _, err := sl_service.GetCategory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getGlobalIdentifier", func() { + It("API Call Test", func() { + _, err := sl_service.GetGlobalIdentifier() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getHardwareGenericComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareGenericComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getItemCategoryAnswers", func() { + It("API Call Test", func() { + _, err := sl_service.GetItemCategoryAnswers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getItemPrice", func() { + It("API Call Test", func() { + _, err := sl_service.GetItemPrice() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getNextOrderChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextOrderChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getOldBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetOldBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getOrder", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrder() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getOrderApprovalDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderApprovalDate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getPackage", func() { + It("API Call Test", func() { + _, err := sl_service.GetPackage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getParent", func() { + It("API Call Test", func() { + _, err := sl_service.GetParent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getPreset", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreset() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getPromoCode", func() { + It("API Call Test", func() { + _, err := sl_service.GetPromoCode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getRedundantPowerSupplyCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetRedundantPowerSupplyCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getSoftwareDescription", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareDescription() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getStorageGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getTotalRecurringAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetTotalRecurringAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Item::getUpgradeItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Billing_Order_Quote service", func() { + var sl_service services.Billing_Order_Quote + BeforeEach(func() { + sl_service = services.GetBillingOrderQuoteService(slsession) + }) + Context("SoftLayer_Billing_Order_Quote Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Billing_Order_Quote Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Billing_Order_Quote::claim", func() { + It("API Call Test", func() { + _, err := sl_service.Claim(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Quote::deleteQuote", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteQuote() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Quote::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Quote::getDoNotContactFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetDoNotContactFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Quote::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Quote::getOrder", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrder() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Quote::getOrdersFromQuote", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrdersFromQuote() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Quote::getPdf", func() { + It("API Call Test", func() { + _, err := sl_service.GetPdf() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Quote::getQuoteByQuoteKey", func() { + It("API Call Test", func() { + _, err := sl_service.GetQuoteByQuoteKey(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Quote::getRecalculatedOrderContainer", func() { + It("API Call Test", func() { + _, err := sl_service.GetRecalculatedOrderContainer(GetOrderContainer(), nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Quote::placeOrder", func() { + It("API Call Test", func() { + _, err := sl_service.PlaceOrder(GetOrderContainer()) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Quote::placeQuote", func() { + It("API Call Test", func() { + _, err := sl_service.PlaceQuote(GetOrderContainer()) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Quote::saveQuote", func() { + It("API Call Test", func() { + _, err := sl_service.SaveQuote() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Quote::verifyOrder", func() { + It("API Call Test", func() { + _, err := sl_service.VerifyOrder(GetOrderContainer()) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Billing_Order_Quote::withdrawGdprAcceptance", func() { + It("API Call Test", func() { + err := sl_service.WithdrawGdprAcceptance() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/brand.go b/services/brand.go index 27c0478..a19a601 100644 --- a/services/brand.go +++ b/services/brand.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -33,12 +26,12 @@ import ( // // IBM Cloud Infrastructure customers are unable to change their brand information in the portal or the API. type Brand struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBrandService returns an instance of the Brand SoftLayer service -func GetBrandService(sess *session.Session) Brand { +func GetBrandService(sess session.SLSession) Brand { return Brand{Session: sess} } @@ -458,12 +451,12 @@ func (r Brand) VerifyCanReactivateAccount(accountId *int) (err error) { // Contains business partner details associated with a brand. Country Enterprise Identifier (CEID), Channel ID, Segment ID and Reseller Level. type Brand_Business_Partner struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBrandBusinessPartnerService returns an instance of the Brand_Business_Partner SoftLayer service -func GetBrandBusinessPartnerService(sess *session.Session) Brand_Business_Partner { +func GetBrandBusinessPartnerService(sess session.SLSession) Brand_Business_Partner { return Brand_Business_Partner{Session: sess} } @@ -522,12 +515,12 @@ func (r Brand_Business_Partner) GetSegment() (resp datatypes.Business_Partner_Se // The [[SoftLayer_Brand_Restriction_Location_CustomerCountry]] data type defines the relationship between brands, locations and countries associated with a user's account that are ineligible when ordering products. For example, the India datacenter may not be available on the SoftLayer US brand for customers that live in Great Britain. type Brand_Restriction_Location_CustomerCountry struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBrandRestrictionLocationCustomerCountryService returns an instance of the Brand_Restriction_Location_CustomerCountry SoftLayer service -func GetBrandRestrictionLocationCustomerCountryService(sess *session.Session) Brand_Restriction_Location_CustomerCountry { +func GetBrandRestrictionLocationCustomerCountryService(sess session.SLSession) Brand_Restriction_Location_CustomerCountry { return Brand_Restriction_Location_CustomerCountry{Session: sess} } diff --git a/services/brand_test.go b/services/brand_test.go new file mode 100644 index 0000000..3b47dcc --- /dev/null +++ b/services/brand_test.go @@ -0,0 +1,436 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Brand Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Brand service", func() { + var sl_service services.Brand + BeforeEach(func() { + sl_service = services.GetBrandService(slsession) + }) + Context("SoftLayer_Brand Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Brand Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Brand::createCustomerAccount", func() { + It("API Call Test", func() { + _, err := sl_service.CreateCustomerAccount(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::disableAccount", func() { + It("API Call Test", func() { + err := sl_service.DisableAccount(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getAllOwnedAccounts", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllOwnedAccounts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getAllTicketSubjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllTicketSubjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getAllowAccountCreationFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowAccountCreationFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getBillingItemSnapshots", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItemSnapshots() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getBillingItemSnapshotsForSingleOwnedAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItemSnapshotsForSingleOwnedAccount(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getBillingItemSnapshotsWithExternalAccountId", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItemSnapshotsWithExternalAccountId(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getBusinessPartner", func() { + It("API Call Test", func() { + _, err := sl_service.GetBusinessPartner() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getBusinessPartnerFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBusinessPartnerFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getCatalog", func() { + It("API Call Test", func() { + _, err := sl_service.GetCatalog() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getContactInformation", func() { + It("API Call Test", func() { + _, err := sl_service.GetContactInformation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getContacts", func() { + It("API Call Test", func() { + _, err := sl_service.GetContacts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getCustomerCountryLocationRestrictions", func() { + It("API Call Test", func() { + _, err := sl_service.GetCustomerCountryLocationRestrictions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getDistributor", func() { + It("API Call Test", func() { + _, err := sl_service.GetDistributor() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getDistributorChildFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetDistributorChildFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getDistributorFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetDistributorFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getHasAgentAdvancedSupportFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasAgentAdvancedSupportFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getHasAgentSupportFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasAgentSupportFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getMerchantName", func() { + It("API Call Test", func() { + _, err := sl_service.GetMerchantName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getOpenTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getOwnedAccounts", func() { + It("API Call Test", func() { + _, err := sl_service.GetOwnedAccounts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getSecurityLevel", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecurityLevel() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getTicketGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetTicketGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getToken", func() { + It("API Call Test", func() { + _, err := sl_service.GetToken(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getUsers", func() { + It("API Call Test", func() { + _, err := sl_service.GetUsers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::getVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::isIbmSlicBrand", func() { + It("API Call Test", func() { + _, err := sl_service.IsIbmSlicBrand() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::isPlatformServicesBrand", func() { + It("API Call Test", func() { + _, err := sl_service.IsPlatformServicesBrand() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::migrateExternalAccount", func() { + It("API Call Test", func() { + _, err := sl_service.MigrateExternalAccount(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::reactivateAccount", func() { + It("API Call Test", func() { + err := sl_service.ReactivateAccount(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::refreshBillingItemSnapshot", func() { + It("API Call Test", func() { + _, err := sl_service.RefreshBillingItemSnapshot(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::verifyCanDisableAccount", func() { + It("API Call Test", func() { + err := sl_service.VerifyCanDisableAccount(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand::verifyCanReactivateAccount", func() { + It("API Call Test", func() { + err := sl_service.VerifyCanReactivateAccount(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Brand_Business_Partner service", func() { + var sl_service services.Brand_Business_Partner + BeforeEach(func() { + sl_service = services.GetBrandBusinessPartnerService(slsession) + }) + Context("SoftLayer_Brand_Business_Partner Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Brand_Business_Partner Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Brand_Business_Partner::getBrand", func() { + It("API Call Test", func() { + _, err := sl_service.GetBrand() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand_Business_Partner::getChannel", func() { + It("API Call Test", func() { + _, err := sl_service.GetChannel() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand_Business_Partner::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand_Business_Partner::getSegment", func() { + It("API Call Test", func() { + _, err := sl_service.GetSegment() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Brand_Restriction_Location_CustomerCountry service", func() { + var sl_service services.Brand_Restriction_Location_CustomerCountry + BeforeEach(func() { + sl_service = services.GetBrandRestrictionLocationCustomerCountryService(slsession) + }) + Context("SoftLayer_Brand_Restriction_Location_CustomerCountry Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Brand_Restriction_Location_CustomerCountry Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Brand_Restriction_Location_CustomerCountry::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand_Restriction_Location_CustomerCountry::getBrand", func() { + It("API Call Test", func() { + _, err := sl_service.GetBrand() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand_Restriction_Location_CustomerCountry::getLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Brand_Restriction_Location_CustomerCountry::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/business.go b/services/business.go index bfe53c0..be4a32d 100644 --- a/services/business.go +++ b/services/business.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // Contains business partner channel information type Business_Partner_Channel struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBusinessPartnerChannelService returns an instance of the Business_Partner_Channel SoftLayer service -func GetBusinessPartnerChannelService(sess *session.Session) Business_Partner_Channel { +func GetBusinessPartnerChannelService(sess session.SLSession) Business_Partner_Channel { return Business_Partner_Channel{Session: sess} } @@ -77,12 +70,12 @@ func (r Business_Partner_Channel) GetObject() (resp datatypes.Business_Partner_C // Contains business partner segment information type Business_Partner_Segment struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetBusinessPartnerSegmentService returns an instance of the Business_Partner_Segment SoftLayer service -func GetBusinessPartnerSegmentService(sess *session.Session) Business_Partner_Segment { +func GetBusinessPartnerSegmentService(sess session.SLSession) Business_Partner_Segment { return Business_Partner_Segment{Session: sess} } diff --git a/services/business_test.go b/services/business_test.go new file mode 100644 index 0000000..17283c6 --- /dev/null +++ b/services/business_test.go @@ -0,0 +1,91 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Business Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Business_Partner_Channel service", func() { + var sl_service services.Business_Partner_Channel + BeforeEach(func() { + sl_service = services.GetBusinessPartnerChannelService(slsession) + }) + Context("SoftLayer_Business_Partner_Channel Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Business_Partner_Channel Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Business_Partner_Channel::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Business_Partner_Segment service", func() { + var sl_service services.Business_Partner_Segment + BeforeEach(func() { + sl_service = services.GetBusinessPartnerSegmentService(slsession) + }) + Context("SoftLayer_Business_Partner_Segment Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Business_Partner_Segment Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Business_Partner_Segment::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/catalyst.go b/services/catalyst.go index 12242da..6462ac0 100644 --- a/services/catalyst.go +++ b/services/catalyst.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // no documentation yet type Catalyst_Company_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetCatalystCompanyTypeService returns an instance of the Catalyst_Company_Type SoftLayer service -func GetCatalystCompanyTypeService(sess *session.Session) Catalyst_Company_Type { +func GetCatalystCompanyTypeService(sess session.SLSession) Catalyst_Company_Type { return Catalyst_Company_Type{Session: sess} } @@ -83,12 +76,12 @@ func (r Catalyst_Company_Type) GetObject() (resp datatypes.Catalyst_Company_Type // no documentation yet type Catalyst_Enrollment struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetCatalystEnrollmentService returns an instance of the Catalyst_Enrollment SoftLayer service -func GetCatalystEnrollmentService(sess *session.Session) Catalyst_Enrollment { +func GetCatalystEnrollmentService(sess session.SLSession) Catalyst_Enrollment { return Catalyst_Enrollment{Session: sess} } diff --git a/services/catalyst_test.go b/services/catalyst_test.go new file mode 100644 index 0000000..d3b22bb --- /dev/null +++ b/services/catalyst_test.go @@ -0,0 +1,182 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Catalyst Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Catalyst_Company_Type service", func() { + var sl_service services.Catalyst_Company_Type + BeforeEach(func() { + sl_service = services.GetCatalystCompanyTypeService(slsession) + }) + Context("SoftLayer_Catalyst_Company_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Catalyst_Company_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Catalyst_Company_Type::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Catalyst_Company_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Catalyst_Enrollment service", func() { + var sl_service services.Catalyst_Enrollment + BeforeEach(func() { + sl_service = services.GetCatalystEnrollmentService(slsession) + }) + Context("SoftLayer_Catalyst_Enrollment Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Catalyst_Enrollment Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Catalyst_Enrollment::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Catalyst_Enrollment::getAffiliate", func() { + It("API Call Test", func() { + _, err := sl_service.GetAffiliate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Catalyst_Enrollment::getAffiliates", func() { + It("API Call Test", func() { + _, err := sl_service.GetAffiliates() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Catalyst_Enrollment::getCompanyType", func() { + It("API Call Test", func() { + _, err := sl_service.GetCompanyType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Catalyst_Enrollment::getCompanyTypes", func() { + It("API Call Test", func() { + _, err := sl_service.GetCompanyTypes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Catalyst_Enrollment::getEnrollmentRequestAnnualRevenueOptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetEnrollmentRequestAnnualRevenueOptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Catalyst_Enrollment::getEnrollmentRequestUserCountOptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetEnrollmentRequestUserCountOptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Catalyst_Enrollment::getEnrollmentRequestYearsInOperationOptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetEnrollmentRequestYearsInOperationOptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Catalyst_Enrollment::getIsActiveFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsActiveFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Catalyst_Enrollment::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Catalyst_Enrollment::getRepresentative", func() { + It("API Call Test", func() { + _, err := sl_service.GetRepresentative() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Catalyst_Enrollment::requestManualEnrollment", func() { + It("API Call Test", func() { + err := sl_service.RequestManualEnrollment(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Catalyst_Enrollment::requestSelfEnrollment", func() { + It("API Call Test", func() { + _, err := sl_service.RequestSelfEnrollment(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/compliance.go b/services/compliance.go index f8db4f0..0940658 100644 --- a/services/compliance.go +++ b/services/compliance.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // no documentation yet type Compliance_Report_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetComplianceReportTypeService returns an instance of the Compliance_Report_Type SoftLayer service -func GetComplianceReportTypeService(sess *session.Session) Compliance_Report_Type { +func GetComplianceReportTypeService(sess session.SLSession) Compliance_Report_Type { return Compliance_Report_Type{Session: sess} } diff --git a/services/compliance_test.go b/services/compliance_test.go new file mode 100644 index 0000000..c0c1ec7 --- /dev/null +++ b/services/compliance_test.go @@ -0,0 +1,61 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Compliance Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Compliance_Report_Type service", func() { + var sl_service services.Compliance_Report_Type + BeforeEach(func() { + sl_service = services.GetComplianceReportTypeService(slsession) + }) + Context("SoftLayer_Compliance_Report_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Compliance_Report_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Compliance_Report_Type::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Compliance_Report_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/configuration.go b/services/configuration.go index 57d1eaf..1343c6a 100644 --- a/services/configuration.go +++ b/services/configuration.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // Supported hardware raid modes type Configuration_Storage_Group_Array_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetConfigurationStorageGroupArrayTypeService returns an instance of the Configuration_Storage_Group_Array_Type SoftLayer service -func GetConfigurationStorageGroupArrayTypeService(sess *session.Session) Configuration_Storage_Group_Array_Type { +func GetConfigurationStorageGroupArrayTypeService(sess session.SLSession) Configuration_Storage_Group_Array_Type { return Configuration_Storage_Group_Array_Type{Session: sess} } @@ -89,12 +82,12 @@ func (r Configuration_Storage_Group_Array_Type) GetObject() (resp datatypes.Conf // The SoftLayer_Configuration_Template data type contains general information of an arbitrary resource. type Configuration_Template struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetConfigurationTemplateService returns an instance of the Configuration_Template SoftLayer service -func GetConfigurationTemplateService(sess *session.Session) Configuration_Template { +func GetConfigurationTemplateService(sess session.SLSession) Configuration_Template { return Configuration_Template{Session: sess} } @@ -224,12 +217,12 @@ func (r Configuration_Template) UpdateDefaultValues(configurationValues []dataty // // Configuration can contain sub-sections. type Configuration_Template_Section struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetConfigurationTemplateSectionService returns an instance of the Configuration_Template_Section SoftLayer service -func GetConfigurationTemplateSectionService(sess *session.Session) Configuration_Template_Section { +func GetConfigurationTemplateSectionService(sess session.SLSession) Configuration_Template_Section { return Configuration_Template_Section{Session: sess} } @@ -332,12 +325,12 @@ func (r Configuration_Template_Section) HasSubSections() (resp bool, err error) // // If value type is defined as "Resource Specific Values", you will have to make an additional API call to retrieve your system specific values. type Configuration_Template_Section_Definition struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetConfigurationTemplateSectionDefinitionService returns an instance of the Configuration_Template_Section_Definition SoftLayer service -func GetConfigurationTemplateSectionDefinitionService(sess *session.Session) Configuration_Template_Section_Definition { +func GetConfigurationTemplateSectionDefinitionService(sess session.SLSession) Configuration_Template_Section_Definition { return Configuration_Template_Section_Definition{Session: sess} } @@ -414,12 +407,12 @@ func (r Configuration_Template_Section_Definition) GetValueType() (resp datatype // Configuration definition group gives you details of the definition and allows extra functionality. type Configuration_Template_Section_Definition_Group struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetConfigurationTemplateSectionDefinitionGroupService returns an instance of the Configuration_Template_Section_Definition_Group SoftLayer service -func GetConfigurationTemplateSectionDefinitionGroupService(sess *session.Session) Configuration_Template_Section_Definition_Group { +func GetConfigurationTemplateSectionDefinitionGroupService(sess session.SLSession) Configuration_Template_Section_Definition_Group { return Configuration_Template_Section_Definition_Group{Session: sess} } @@ -474,12 +467,12 @@ func (r Configuration_Template_Section_Definition_Group) GetParent() (resp datat // SoftLayer_Configuration_Template_Section_Definition_Type further defines the value of a configuration definition. type Configuration_Template_Section_Definition_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetConfigurationTemplateSectionDefinitionTypeService returns an instance of the Configuration_Template_Section_Definition_Type SoftLayer service -func GetConfigurationTemplateSectionDefinitionTypeService(sess *session.Session) Configuration_Template_Section_Definition_Type { +func GetConfigurationTemplateSectionDefinitionTypeService(sess session.SLSession) Configuration_Template_Section_Definition_Type { return Configuration_Template_Section_Definition_Type{Session: sess} } @@ -520,12 +513,12 @@ func (r Configuration_Template_Section_Definition_Type) GetObject() (resp dataty // SoftLayer_Configuration_Section_Value is used to set the value for a configuration definition type Configuration_Template_Section_Definition_Value struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetConfigurationTemplateSectionDefinitionValueService returns an instance of the Configuration_Template_Section_Definition_Value SoftLayer service -func GetConfigurationTemplateSectionDefinitionValueService(sess *session.Session) Configuration_Template_Section_Definition_Value { +func GetConfigurationTemplateSectionDefinitionValueService(sess session.SLSession) Configuration_Template_Section_Definition_Value { return Configuration_Template_Section_Definition_Value{Session: sess} } @@ -580,12 +573,12 @@ func (r Configuration_Template_Section_Definition_Value) GetTemplate() (resp dat // // For example, you can create multiple configuration profiles to monitor multiple hard drives with "CPU/Memory/Disk Monitoring Agent". SoftLayer_Configuration_Template_Section_Profile help you keep track of custom configuration profiles. type Configuration_Template_Section_Profile struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetConfigurationTemplateSectionProfileService returns an instance of the Configuration_Template_Section_Profile SoftLayer service -func GetConfigurationTemplateSectionProfileService(sess *session.Session) Configuration_Template_Section_Profile { +func GetConfigurationTemplateSectionProfileService(sess session.SLSession) Configuration_Template_Section_Profile { return Configuration_Template_Section_Profile{Session: sess} } @@ -632,12 +625,12 @@ func (r Configuration_Template_Section_Profile) GetObject() (resp datatypes.Conf // The SoftLayer_Configuration_Template_Section_Reference data type contains information of a configuration section and its associated configuration template. type Configuration_Template_Section_Reference struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetConfigurationTemplateSectionReferenceService returns an instance of the Configuration_Template_Section_Reference SoftLayer service -func GetConfigurationTemplateSectionReferenceService(sess *session.Session) Configuration_Template_Section_Reference { +func GetConfigurationTemplateSectionReferenceService(sess session.SLSession) Configuration_Template_Section_Reference { return Configuration_Template_Section_Reference{Session: sess} } @@ -692,12 +685,12 @@ func (r Configuration_Template_Section_Reference) GetTemplate() (resp datatypes. // // Configuration can contain sub-sections. type Configuration_Template_Section_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetConfigurationTemplateSectionTypeService returns an instance of the Configuration_Template_Section_Type SoftLayer service -func GetConfigurationTemplateSectionTypeService(sess *session.Session) Configuration_Template_Section_Type { +func GetConfigurationTemplateSectionTypeService(sess session.SLSession) Configuration_Template_Section_Type { return Configuration_Template_Section_Type{Session: sess} } @@ -738,12 +731,12 @@ func (r Configuration_Template_Section_Type) GetObject() (resp datatypes.Configu // The SoftLayer_Configuration_Template_Type data type contains configuration template type information. type Configuration_Template_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetConfigurationTemplateTypeService returns an instance of the Configuration_Template_Type SoftLayer service -func GetConfigurationTemplateTypeService(sess *session.Session) Configuration_Template_Type { +func GetConfigurationTemplateTypeService(sess session.SLSession) Configuration_Template_Type { return Configuration_Template_Type{Session: sess} } diff --git a/services/configuration_test.go b/services/configuration_test.go new file mode 100644 index 0000000..54b8c0b --- /dev/null +++ b/services/configuration_test.go @@ -0,0 +1,690 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Configuration Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Configuration_Storage_Group_Array_Type service", func() { + var sl_service services.Configuration_Storage_Group_Array_Type + BeforeEach(func() { + sl_service = services.GetConfigurationStorageGroupArrayTypeService(slsession) + }) + Context("SoftLayer_Configuration_Storage_Group_Array_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Configuration_Storage_Group_Array_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Configuration_Storage_Group_Array_Type::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Storage_Group_Array_Type::getHardwareComponentModels", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareComponentModels() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Storage_Group_Array_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Configuration_Template service", func() { + var sl_service services.Configuration_Template + BeforeEach(func() { + sl_service = services.GetConfigurationTemplateService(slsession) + }) + Context("SoftLayer_Configuration_Template Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Configuration_Template Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Configuration_Template::copyTemplate", func() { + It("API Call Test", func() { + _, err := sl_service.CopyTemplate(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template::getConfigurationSections", func() { + It("API Call Test", func() { + _, err := sl_service.GetConfigurationSections() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template::getDefaultValues", func() { + It("API Call Test", func() { + _, err := sl_service.GetDefaultValues() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template::getDefinitions", func() { + It("API Call Test", func() { + _, err := sl_service.GetDefinitions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template::getItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template::getLinkedSectionReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetLinkedSectionReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template::getParent", func() { + It("API Call Test", func() { + _, err := sl_service.GetParent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template::getUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template::updateDefaultValues", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateDefaultValues(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Configuration_Template_Section service", func() { + var sl_service services.Configuration_Template_Section + BeforeEach(func() { + sl_service = services.GetConfigurationTemplateSectionService(slsession) + }) + Context("SoftLayer_Configuration_Template_Section Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Configuration_Template_Section Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Configuration_Template_Section::getDefinitions", func() { + It("API Call Test", func() { + _, err := sl_service.GetDefinitions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section::getDisallowedDeletionFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetDisallowedDeletionFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section::getLinkedTemplate", func() { + It("API Call Test", func() { + _, err := sl_service.GetLinkedTemplate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section::getLinkedTemplateReference", func() { + It("API Call Test", func() { + _, err := sl_service.GetLinkedTemplateReference() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section::getProfiles", func() { + It("API Call Test", func() { + _, err := sl_service.GetProfiles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section::getSectionType", func() { + It("API Call Test", func() { + _, err := sl_service.GetSectionType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section::getSectionTypeName", func() { + It("API Call Test", func() { + _, err := sl_service.GetSectionTypeName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section::getSubSections", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubSections() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section::getTemplate", func() { + It("API Call Test", func() { + _, err := sl_service.GetTemplate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section::hasSubSections", func() { + It("API Call Test", func() { + _, err := sl_service.HasSubSections() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Configuration_Template_Section_Definition service", func() { + var sl_service services.Configuration_Template_Section_Definition + BeforeEach(func() { + sl_service = services.GetConfigurationTemplateSectionDefinitionService(slsession) + }) + Context("SoftLayer_Configuration_Template_Section_Definition Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Definition Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Definition::getAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Definition::getDefaultValue", func() { + It("API Call Test", func() { + _, err := sl_service.GetDefaultValue() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Definition::getGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Definition::getMonitoringDataFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringDataFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Definition::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Definition::getSection", func() { + It("API Call Test", func() { + _, err := sl_service.GetSection() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Definition::getValueType", func() { + It("API Call Test", func() { + _, err := sl_service.GetValueType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Configuration_Template_Section_Definition_Group service", func() { + var sl_service services.Configuration_Template_Section_Definition_Group + BeforeEach(func() { + sl_service = services.GetConfigurationTemplateSectionDefinitionGroupService(slsession) + }) + Context("SoftLayer_Configuration_Template_Section_Definition_Group Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Definition_Group Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Definition_Group::getAllGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Definition_Group::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Definition_Group::getParent", func() { + It("API Call Test", func() { + _, err := sl_service.GetParent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Configuration_Template_Section_Definition_Type service", func() { + var sl_service services.Configuration_Template_Section_Definition_Type + BeforeEach(func() { + sl_service = services.GetConfigurationTemplateSectionDefinitionTypeService(slsession) + }) + Context("SoftLayer_Configuration_Template_Section_Definition_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Definition_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Definition_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Configuration_Template_Section_Definition_Value service", func() { + var sl_service services.Configuration_Template_Section_Definition_Value + BeforeEach(func() { + sl_service = services.GetConfigurationTemplateSectionDefinitionValueService(slsession) + }) + Context("SoftLayer_Configuration_Template_Section_Definition_Value Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Definition_Value Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Definition_Value::getDefinition", func() { + It("API Call Test", func() { + _, err := sl_service.GetDefinition() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Definition_Value::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Definition_Value::getTemplate", func() { + It("API Call Test", func() { + _, err := sl_service.GetTemplate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Configuration_Template_Section_Profile service", func() { + var sl_service services.Configuration_Template_Section_Profile + BeforeEach(func() { + sl_service = services.GetConfigurationTemplateSectionProfileService(slsession) + }) + Context("SoftLayer_Configuration_Template_Section_Profile Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Profile Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Profile::getConfigurationSection", func() { + It("API Call Test", func() { + _, err := sl_service.GetConfigurationSection() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Profile::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Configuration_Template_Section_Reference service", func() { + var sl_service services.Configuration_Template_Section_Reference + BeforeEach(func() { + sl_service = services.GetConfigurationTemplateSectionReferenceService(slsession) + }) + Context("SoftLayer_Configuration_Template_Section_Reference Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Reference Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Reference::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Reference::getSection", func() { + It("API Call Test", func() { + _, err := sl_service.GetSection() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Reference::getTemplate", func() { + It("API Call Test", func() { + _, err := sl_service.GetTemplate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Configuration_Template_Section_Type service", func() { + var sl_service services.Configuration_Template_Section_Type + BeforeEach(func() { + sl_service = services.GetConfigurationTemplateSectionTypeService(slsession) + }) + Context("SoftLayer_Configuration_Template_Section_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Configuration_Template_Section_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Configuration_Template_Type service", func() { + var sl_service services.Configuration_Template_Type + BeforeEach(func() { + sl_service = services.GetConfigurationTemplateTypeService(slsession) + }) + Context("SoftLayer_Configuration_Template_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Configuration_Template_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Configuration_Template_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/dns.go b/services/dns.go index 0f7356d..edf6c12 100644 --- a/services/dns.go +++ b/services/dns.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // The SoftLayer_Dns_Domain data type represents a single DNS domain record hosted on the SoftLayer nameservers. Domains contain general information about the domain name such as name and serial. Individual records such as A, AAAA, CTYPE, and MX records are stored in the domain's associated [[SoftLayer_Dns_Domain_ResourceRecord (type)|SoftLayer_Dns_Domain_ResourceRecord]] records. type Dns_Domain struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetDnsDomainService returns an instance of the Dns_Domain SoftLayer service -func GetDnsDomainService(sess *session.Session) Dns_Domain { +func GetDnsDomainService(sess session.SLSession) Dns_Domain { return Dns_Domain{Session: sess} } @@ -248,353 +241,6 @@ func (r Dns_Domain) GetZoneFileContents() (resp string, err error) { return } -// The SoftLayer_Dns_Domain_Registration data type represents a domain registration record. -// Deprecated: This function has been marked as deprecated. -type Dns_Domain_Registration struct { - Session *session.Session - Options sl.Options -} - -// GetDnsDomainRegistrationService returns an instance of the Dns_Domain_Registration SoftLayer service -func GetDnsDomainRegistrationService(sess *session.Session) Dns_Domain_Registration { - return Dns_Domain_Registration{Session: sess} -} - -func (r Dns_Domain_Registration) Id(id int) Dns_Domain_Registration { - r.Options.Id = &id - return r -} - -func (r Dns_Domain_Registration) Mask(mask string) Dns_Domain_Registration { - if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { - mask = fmt.Sprintf("mask[%s]", mask) - } - - r.Options.Mask = mask - return r -} - -func (r Dns_Domain_Registration) Filter(filter string) Dns_Domain_Registration { - r.Options.Filter = filter - return r -} - -func (r Dns_Domain_Registration) Limit(limit int) Dns_Domain_Registration { - r.Options.Limit = &limit - return r -} - -func (r Dns_Domain_Registration) Offset(offset int) Dns_Domain_Registration { - r.Options.Offset = &offset - return r -} - -// The addNameserversToDomain method adds nameservers to a domain for a domain that already has nameservers assigned to it. This method does not create a nameserver; the nameserver must already exist. -func (r Dns_Domain_Registration) AddNameserversToDomain(nameservers []string) (resp bool, err error) { - params := []interface{}{ - nameservers, - } - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "addNameserversToDomain", params, &r.Options, &resp) - return -} - -// The deleteRegisteredNameserver method deletes a nameserver that was registered, provided it is not currently serving a domain -func (r Dns_Domain_Registration) DeleteRegisteredNameserver(nameserver *string) (resp bool, err error) { - params := []interface{}{ - nameserver, - } - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "deleteRegisteredNameserver", params, &r.Options, &resp) - return -} - -// Retrieve The SoftLayer customer account that the domain is registered to. -func (r Dns_Domain_Registration) GetAccount() (resp datatypes.Account, err error) { - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "getAccount", nil, &r.Options, &resp) - return -} - -// The getAuthenticationCode method retrieves the authentication code for the domain. -func (r Dns_Domain_Registration) GetAuthenticationCode() (resp string, err error) { - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "getAuthenticationCode", nil, &r.Options, &resp) - return -} - -// The getDomainInformation method retrieves all the information for a domain. -func (r Dns_Domain_Registration) GetDomainInformation() (resp datatypes.Container_Dns_Domain_Registration_Information, err error) { - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "getDomainInformation", nil, &r.Options, &resp) - return -} - -// The getDomainNameservers method retrieve nameservers information for domain. -func (r Dns_Domain_Registration) GetDomainNameservers() (resp []datatypes.Container_Dns_Domain_Registration_Nameserver, err error) { - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "getDomainNameservers", nil, &r.Options, &resp) - return -} - -// Retrieve The domain registration status. -func (r Dns_Domain_Registration) GetDomainRegistrationStatus() (resp datatypes.Dns_Domain_Registration_Status, err error) { - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "getDomainRegistrationStatus", nil, &r.Options, &resp) - return -} - -// The getExtendedAttributes method determines if a country code top level domain requires extended attributes. -func (r Dns_Domain_Registration) GetExtendedAttributes(domainName *string) (resp []datatypes.Container_Dns_Domain_Registration_ExtendedAttribute, err error) { - params := []interface{}{ - domainName, - } - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "getExtendedAttributes", params, &r.Options, &resp) - return -} - -// getObject retrieves the SoftLayer_Dns_Domain_Registration object whose ID number corresponds to the ID number of the init parameter passed to the SoftLayer_Dns_Domain_Registration service. -func (r Dns_Domain_Registration) GetObject() (resp datatypes.Dns_Domain_Registration, err error) { - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "getObject", nil, &r.Options, &resp) - return -} - -// The getRegisteredNameserver method retrieves registered nameservers. -func (r Dns_Domain_Registration) GetRegisteredNameserver() (resp datatypes.Container_Dns_Domain_Registration_Nameserver, err error) { - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "getRegisteredNameserver", nil, &r.Options, &resp) - return -} - -// Retrieve The registrant verification status. -func (r Dns_Domain_Registration) GetRegistrantVerificationStatus() (resp datatypes.Dns_Domain_Registration_Registrant_Verification_Status, err error) { - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "getRegistrantVerificationStatus", nil, &r.Options, &resp) - return -} - -// When a domain is registered or transferred, or when the registrant contact information is changed, the registrant must reply to an email requesting them to confirm that the submitted contact information is correct. This method returns the current state of the verification request. -func (r Dns_Domain_Registration) GetRegistrantVerificationStatusDetail() (resp datatypes.Container_Dns_Domain_Registration_Registrant_Verification_StatusDetail, err error) { - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "getRegistrantVerificationStatusDetail", nil, &r.Options, &resp) - return -} - -// Retrieve -func (r Dns_Domain_Registration) GetServiceProvider() (resp datatypes.Service_Provider, err error) { - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "getServiceProvider", nil, &r.Options, &resp) - return -} - -// The getTransferInformation method checks to see if the domain can be transferred and also can be used to check the status of the last transfer request. -func (r Dns_Domain_Registration) GetTransferInformation(domainName *string) (resp datatypes.Container_Dns_Domain_Registration_Transfer_Information, err error) { - params := []interface{}{ - domainName, - } - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "getTransferInformation", params, &r.Options, &resp) - return -} - -// The lockDomain method locks a domain to prevent unauthorized, unwanted or accidental changes to the domain name. When set, the following actions are prohibited: -// * Transferring of the domain name -// * Deletion of the domain name -func (r Dns_Domain_Registration) LockDomain() (resp bool, err error) { - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "lockDomain", nil, &r.Options, &resp) - return -} - -// The lookupDomain method checks whether a specified domain name is available for registration in TLD's, and suggests other similar domain names, and checks whether they are available as well. -func (r Dns_Domain_Registration) LookupDomain(domainName *string) (resp []datatypes.Container_Dns_Domain_Registration_Lookup, err error) { - params := []interface{}{ - domainName, - } - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "lookupDomain", params, &r.Options, &resp) - return -} - -// The modifyContact method modifies contact information (admin, billing, owner, technical) for a domain. -func (r Dns_Domain_Registration) ModifyContact(contact *datatypes.Container_Dns_Domain_Registration_Contact) (resp bool, err error) { - params := []interface{}{ - contact, - } - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "modifyContact", params, &r.Options, &resp) - return -} - -// The modifyRegisteredNameserver method modifies a nameserver that was registered. -func (r Dns_Domain_Registration) ModifyRegisteredNameserver(oldNameserver *string, newNameserver *string, ipAddress *string) (resp bool, err error) { - params := []interface{}{ - oldNameserver, - newNameserver, - ipAddress, - } - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "modifyRegisteredNameserver", params, &r.Options, &resp) - return -} - -// The registerNameserver method creates a nameserver for the domain. -func (r Dns_Domain_Registration) RegisterNameserver(nameserver *string, ipAddress *string) (resp bool, err error) { - params := []interface{}{ - nameserver, - ipAddress, - } - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "registerNameserver", params, &r.Options, &resp) - return -} - -// The removeNameserversFromDomain method removes nameservers from a domain for a domain that already has nameservers assigned to it. -func (r Dns_Domain_Registration) RemoveNameserversFromDomain(nameservers []string) (resp bool, err error) { - params := []interface{}{ - nameservers, - } - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "removeNameserversFromDomain", params, &r.Options, &resp) - return -} - -// The sendAuthenticationCode method sends the authentication code to the administrative contact for the domain. -func (r Dns_Domain_Registration) SendAuthenticationCode() (resp bool, err error) { - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "sendAuthenticationCode", nil, &r.Options, &resp) - return -} - -// When a domain is registered or transferred, or when the registrant contact information is changed, the registrant must reply to an email requesting them to confirm that the submitted contact information is correct. This method sends the verification email to the registrant. -func (r Dns_Domain_Registration) SendRegistrantVerificationEmail() (resp bool, err error) { - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "sendRegistrantVerificationEmail", nil, &r.Options, &resp) - return -} - -// The sendTransferApprovalEmail method resends a transfer approval email message for a transfer that is in 'pending owner approval' state, to the admin contact listed for the domain at the time that the transfer request was submitted -func (r Dns_Domain_Registration) SendTransferApprovalEmail() (resp bool, err error) { - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "sendTransferApprovalEmail", nil, &r.Options, &resp) - return -} - -// The setAuthenticationCode method sets the authentication code for the domain. The authentication code is a transfer key and provides an extra level of security, safeguarding domain names from unauthorized transfers. -func (r Dns_Domain_Registration) SetAuthenticationCode(authenticationCode *string) (resp bool, err error) { - params := []interface{}{ - authenticationCode, - } - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "setAuthenticationCode", params, &r.Options, &resp) - return -} - -// The unlockDomain method unlocks a domain -func (r Dns_Domain_Registration) UnlockDomain() (resp bool, err error) { - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration", "unlockDomain", nil, &r.Options, &resp) - return -} - -// [DEPRECATED] SoftLayer_Dns_Domain_Registration_Registrant_Verification_Status models the state of the registrant. Here are the following status codes: -// -// *”'Admin Reviewing”': The registrant data has been submitted and being reviewed by compliance team. -// *”'Pending”': The verification process has been inititated, and verification email will be sent. -// *”'Suspended”': The registrant has failed verification and the domain has been suspended. -// *”'Verified”': The registrant has been validated. -// *”'Verifying”': The verification process has been initiated and is waiting for registrant response. -// *”'Unverified”': The verification process has not been inititated. -// -// Deprecated: This function has been marked as deprecated. -type Dns_Domain_Registration_Registrant_Verification_Status struct { - Session *session.Session - Options sl.Options -} - -// GetDnsDomainRegistrationRegistrantVerificationStatusService returns an instance of the Dns_Domain_Registration_Registrant_Verification_Status SoftLayer service -func GetDnsDomainRegistrationRegistrantVerificationStatusService(sess *session.Session) Dns_Domain_Registration_Registrant_Verification_Status { - return Dns_Domain_Registration_Registrant_Verification_Status{Session: sess} -} - -func (r Dns_Domain_Registration_Registrant_Verification_Status) Id(id int) Dns_Domain_Registration_Registrant_Verification_Status { - r.Options.Id = &id - return r -} - -func (r Dns_Domain_Registration_Registrant_Verification_Status) Mask(mask string) Dns_Domain_Registration_Registrant_Verification_Status { - if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { - mask = fmt.Sprintf("mask[%s]", mask) - } - - r.Options.Mask = mask - return r -} - -func (r Dns_Domain_Registration_Registrant_Verification_Status) Filter(filter string) Dns_Domain_Registration_Registrant_Verification_Status { - r.Options.Filter = filter - return r -} - -func (r Dns_Domain_Registration_Registrant_Verification_Status) Limit(limit int) Dns_Domain_Registration_Registrant_Verification_Status { - r.Options.Limit = &limit - return r -} - -func (r Dns_Domain_Registration_Registrant_Verification_Status) Offset(offset int) Dns_Domain_Registration_Registrant_Verification_Status { - r.Options.Offset = &offset - return r -} - -// no documentation yet -func (r Dns_Domain_Registration_Registrant_Verification_Status) GetAllObjects() (resp []datatypes.Dns_Domain_Registration_Registrant_Verification_Status, err error) { - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration_Registrant_Verification_Status", "getAllObjects", nil, &r.Options, &resp) - return -} - -// no documentation yet -func (r Dns_Domain_Registration_Registrant_Verification_Status) GetObject() (resp datatypes.Dns_Domain_Registration_Registrant_Verification_Status, err error) { - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration_Registrant_Verification_Status", "getObject", nil, &r.Options, &resp) - return -} - -// [DEPRECATED] SoftLayer_Dns_Domain_Registration_Status models the state of domain name. Here are the following status codes: -// -// *”'Active”': This domain name is active. -// *”'Pending Owner Approval”': Pending owner approval for completion of transfer. -// *”'Pending Admin Review”': Pending admin review for transfer. -// *”'Pending Registry”': Pending registry for transfer. -// *”'Expired”': Domain name has expired. -// -// Deprecated: This function has been marked as deprecated. -type Dns_Domain_Registration_Status struct { - Session *session.Session - Options sl.Options -} - -// GetDnsDomainRegistrationStatusService returns an instance of the Dns_Domain_Registration_Status SoftLayer service -func GetDnsDomainRegistrationStatusService(sess *session.Session) Dns_Domain_Registration_Status { - return Dns_Domain_Registration_Status{Session: sess} -} - -func (r Dns_Domain_Registration_Status) Id(id int) Dns_Domain_Registration_Status { - r.Options.Id = &id - return r -} - -func (r Dns_Domain_Registration_Status) Mask(mask string) Dns_Domain_Registration_Status { - if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { - mask = fmt.Sprintf("mask[%s]", mask) - } - - r.Options.Mask = mask - return r -} - -func (r Dns_Domain_Registration_Status) Filter(filter string) Dns_Domain_Registration_Status { - r.Options.Filter = filter - return r -} - -func (r Dns_Domain_Registration_Status) Limit(limit int) Dns_Domain_Registration_Status { - r.Options.Limit = &limit - return r -} - -func (r Dns_Domain_Registration_Status) Offset(offset int) Dns_Domain_Registration_Status { - r.Options.Offset = &offset - return r -} - -// no documentation yet -func (r Dns_Domain_Registration_Status) GetAllObjects() (resp []datatypes.Dns_Domain_Registration_Status, err error) { - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration_Status", "getAllObjects", nil, &r.Options, &resp) - return -} - -// no documentation yet -func (r Dns_Domain_Registration_Status) GetObject() (resp datatypes.Dns_Domain_Registration_Status, err error) { - err = r.Session.DoRequest("SoftLayer_Dns_Domain_Registration_Status", "getObject", nil, &r.Options, &resp) - return -} - // The SoftLayer_Dns_Domain_ResourceRecord data type represents a single resource record entry in a SoftLayer hosted domain. Each resource record contains a ”host” and ”data” property, defining a resource's name and it's target data. Domains contain multiple types of resource records. The ”type” property separates out resource records by type. ”Type” can take one of the following values: // * ”'"a"”' for [[SoftLayer_Dns_Domain_ResourceRecord_AType|address]] records // * ”'"aaaa"”' for [[SoftLayer_Dns_Domain_ResourceRecord_AaaaType|address]] records @@ -609,12 +255,12 @@ func (r Dns_Domain_Registration_Status) GetObject() (resp datatypes.Dns_Domain_R // // As ”SoftLayer_Dns_Domain_ResourceRecord” objects are created and loaded, the API verifies the ”type” property and casts the object as the appropriate type. type Dns_Domain_ResourceRecord struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetDnsDomainResourceRecordService returns an instance of the Dns_Domain_ResourceRecord SoftLayer service -func GetDnsDomainResourceRecordService(sess *session.Session) Dns_Domain_ResourceRecord { +func GetDnsDomainResourceRecordService(sess session.SLSession) Dns_Domain_ResourceRecord { return Dns_Domain_ResourceRecord{Session: sess} } @@ -728,12 +374,12 @@ func (r Dns_Domain_ResourceRecord) GetObject() (resp datatypes.Dns_Domain_Resour // // MX records must be defined for hosts with accompanying A or AAAA resource records. They may not point mail towards a host defined by a CNAME record. type Dns_Domain_ResourceRecord_MxType struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetDnsDomainResourceRecordMxTypeService returns an instance of the Dns_Domain_ResourceRecord_MxType SoftLayer service -func GetDnsDomainResourceRecordMxTypeService(sess *session.Session) Dns_Domain_ResourceRecord_MxType { +func GetDnsDomainResourceRecordMxTypeService(sess session.SLSession) Dns_Domain_ResourceRecord_MxType { return Dns_Domain_ResourceRecord_MxType{Session: sess} } @@ -841,12 +487,12 @@ func (r Dns_Domain_ResourceRecord_MxType) GetObject() (resp datatypes.Dns_Domain // SoftLayer_Dns_Domain_ResourceRecord_SrvType is a SoftLayer_Dns_Domain_ResourceRecord object whose ”type” property is set to "srv" and defines a DNS SRV record on a SoftLayer hosted domain. type Dns_Domain_ResourceRecord_SrvType struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetDnsDomainResourceRecordSrvTypeService returns an instance of the Dns_Domain_ResourceRecord_SrvType SoftLayer service -func GetDnsDomainResourceRecordSrvTypeService(sess *session.Session) Dns_Domain_ResourceRecord_SrvType { +func GetDnsDomainResourceRecordSrvTypeService(sess session.SLSession) Dns_Domain_ResourceRecord_SrvType { return Dns_Domain_ResourceRecord_SrvType{Session: sess} } @@ -954,12 +600,12 @@ func (r Dns_Domain_ResourceRecord_SrvType) GetObject() (resp datatypes.Dns_Domai // The SoftLayer_Dns_Secondary data type contains information on a single secondary DNS zone which is managed through SoftLayer's zone transfer service. Domains created via zone transfer may not be modified by the SoftLayer portal or API. type Dns_Secondary struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetDnsSecondaryService returns an instance of the Dns_Secondary SoftLayer service -func GetDnsSecondaryService(sess *session.Session) Dns_Secondary { +func GetDnsSecondaryService(sess session.SLSession) Dns_Secondary { return Dns_Secondary{Session: sess} } diff --git a/services/dns_test.go b/services/dns_test.go new file mode 100644 index 0000000..b83453a --- /dev/null +++ b/services/dns_test.go @@ -0,0 +1,552 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Dns Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Dns_Domain service", func() { + var sl_service services.Dns_Domain + BeforeEach(func() { + sl_service = services.GetDnsDomainService(slsession) + }) + Context("SoftLayer_Dns_Domain Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Dns_Domain Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Dns_Domain::createARecord", func() { + It("API Call Test", func() { + _, err := sl_service.CreateARecord(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain::createAaaaRecord", func() { + It("API Call Test", func() { + _, err := sl_service.CreateAaaaRecord(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain::createCnameRecord", func() { + It("API Call Test", func() { + _, err := sl_service.CreateCnameRecord(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain::createMxRecord", func() { + It("API Call Test", func() { + _, err := sl_service.CreateMxRecord(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain::createNsRecord", func() { + It("API Call Test", func() { + _, err := sl_service.CreateNsRecord(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain::createObjects", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain::createPtrRecord", func() { + It("API Call Test", func() { + _, err := sl_service.CreatePtrRecord(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain::createSpfRecord", func() { + It("API Call Test", func() { + _, err := sl_service.CreateSpfRecord(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain::createTxtRecord", func() { + It("API Call Test", func() { + _, err := sl_service.CreateTxtRecord(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain::getByDomainName", func() { + It("API Call Test", func() { + _, err := sl_service.GetByDomainName(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain::getManagedResourceFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetManagedResourceFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain::getResourceRecords", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceRecords() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain::getSecondary", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecondary() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain::getSoaResourceRecord", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoaResourceRecord() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain::getZoneFileContents", func() { + It("API Call Test", func() { + _, err := sl_service.GetZoneFileContents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Dns_Domain_ResourceRecord service", func() { + var sl_service services.Dns_Domain_ResourceRecord + BeforeEach(func() { + sl_service = services.GetDnsDomainResourceRecordService(slsession) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord::createObjects", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord::deleteObjects", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord::editObjects", func() { + It("API Call Test", func() { + _, err := sl_service.EditObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord::getDomain", func() { + It("API Call Test", func() { + _, err := sl_service.GetDomain() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Dns_Domain_ResourceRecord_MxType service", func() { + var sl_service services.Dns_Domain_ResourceRecord_MxType + BeforeEach(func() { + sl_service = services.GetDnsDomainResourceRecordMxTypeService(slsession) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord_MxType Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord_MxType Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord_MxType::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord_MxType::createObjects", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord_MxType::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord_MxType::deleteObjects", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord_MxType::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord_MxType::editObjects", func() { + It("API Call Test", func() { + _, err := sl_service.EditObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord_MxType::getDomain", func() { + It("API Call Test", func() { + _, err := sl_service.GetDomain() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord_MxType::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Dns_Domain_ResourceRecord_SrvType service", func() { + var sl_service services.Dns_Domain_ResourceRecord_SrvType + BeforeEach(func() { + sl_service = services.GetDnsDomainResourceRecordSrvTypeService(slsession) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord_SrvType Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord_SrvType Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord_SrvType::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord_SrvType::createObjects", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord_SrvType::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord_SrvType::deleteObjects", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord_SrvType::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord_SrvType::editObjects", func() { + It("API Call Test", func() { + _, err := sl_service.EditObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord_SrvType::getDomain", func() { + It("API Call Test", func() { + _, err := sl_service.GetDomain() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Domain_ResourceRecord_SrvType::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Dns_Secondary service", func() { + var sl_service services.Dns_Secondary + BeforeEach(func() { + sl_service = services.GetDnsSecondaryService(slsession) + }) + Context("SoftLayer_Dns_Secondary Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Dns_Secondary Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Dns_Secondary::convertToPrimary", func() { + It("API Call Test", func() { + _, err := sl_service.ConvertToPrimary() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Secondary::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Secondary::createObjects", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Secondary::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Secondary::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Secondary::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Secondary::getByDomainName", func() { + It("API Call Test", func() { + _, err := sl_service.GetByDomainName(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Secondary::getDomain", func() { + It("API Call Test", func() { + _, err := sl_service.GetDomain() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Secondary::getErrorMessages", func() { + It("API Call Test", func() { + _, err := sl_service.GetErrorMessages() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Secondary::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Secondary::getStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Dns_Secondary::transferNow", func() { + It("API Call Test", func() { + _, err := sl_service.TransferNow() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/email.go b/services/email.go index 85bb97e..2d36ae9 100644 --- a/services/email.go +++ b/services/email.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // no documentation yet type Email_Subscription struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetEmailSubscriptionService returns an instance of the Email_Subscription SoftLayer service -func GetEmailSubscriptionService(sess *session.Session) Email_Subscription { +func GetEmailSubscriptionService(sess session.SLSession) Email_Subscription { return Email_Subscription{Session: sess} } @@ -101,12 +94,12 @@ func (r Email_Subscription) GetObject() (resp datatypes.Email_Subscription, err // no documentation yet type Email_Subscription_Group struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetEmailSubscriptionGroupService returns an instance of the Email_Subscription_Group SoftLayer service -func GetEmailSubscriptionGroupService(sess *session.Session) Email_Subscription_Group { +func GetEmailSubscriptionGroupService(sess session.SLSession) Email_Subscription_Group { return Email_Subscription_Group{Session: sess} } diff --git a/services/email_test.go b/services/email_test.go new file mode 100644 index 0000000..a354e9b --- /dev/null +++ b/services/email_test.go @@ -0,0 +1,133 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Email Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Email_Subscription service", func() { + var sl_service services.Email_Subscription + BeforeEach(func() { + sl_service = services.GetEmailSubscriptionService(slsession) + }) + Context("SoftLayer_Email_Subscription Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Email_Subscription Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Email_Subscription::disable", func() { + It("API Call Test", func() { + _, err := sl_service.Disable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Email_Subscription::enable", func() { + It("API Call Test", func() { + _, err := sl_service.Enable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Email_Subscription::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Email_Subscription::getEnabled", func() { + It("API Call Test", func() { + _, err := sl_service.GetEnabled() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Email_Subscription::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Email_Subscription_Group service", func() { + var sl_service services.Email_Subscription_Group + BeforeEach(func() { + sl_service = services.GetEmailSubscriptionGroupService(slsession) + }) + Context("SoftLayer_Email_Subscription_Group Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Email_Subscription_Group Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Email_Subscription_Group::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Email_Subscription_Group::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Email_Subscription_Group::getSubscriptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubscriptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/event.go b/services/event.go index b378fa8..69307bb 100644 --- a/services/event.go +++ b/services/event.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // The SoftLayer_Event_Log data type contains an event detail occurred upon various SoftLayer resources. type Event_Log struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetEventLogService returns an instance of the Event_Log SoftLayer service -func GetEventLogService(sess *session.Session) Event_Log { +func GetEventLogService(sess session.SLSession) Event_Log { return Event_Log{Session: sess} } diff --git a/services/event_test.go b/services/event_test.go new file mode 100644 index 0000000..038e6b7 --- /dev/null +++ b/services/event_test.go @@ -0,0 +1,82 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Event Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Event_Log service", func() { + var sl_service services.Event_Log + BeforeEach(func() { + sl_service = services.GetEventLogService(slsession) + }) + Context("SoftLayer_Event_Log Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Event_Log Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Event_Log::getAllEventNames", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllEventNames(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Event_Log::getAllEventObjectNames", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllEventObjectNames() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Event_Log::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Event_Log::getAllUserTypes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllUserTypes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Event_Log::getUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/exception.go b/services/exception.go index a93f911..421c927 100644 --- a/services/exception.go +++ b/services/exception.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -30,12 +23,12 @@ import ( // Throw this exception if there are validation errors. The types are specified in SoftLayer_Brand_Creation_Input including: KEY_NAME, PREFIX, NAME, LONG_NAME, SUPPORT_POLICY, POLICY_ACKNOWLEDGEMENT_FLAG, etc. type Exception_Brand_Creation struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetExceptionBrandCreationService returns an instance of the Exception_Brand_Creation SoftLayer service -func GetExceptionBrandCreationService(sess *session.Session) Exception_Brand_Creation { +func GetExceptionBrandCreationService(sess session.SLSession) Exception_Brand_Creation { return Exception_Brand_Creation{Session: sess} } diff --git a/services/flexiblecredit.go b/services/flexiblecredit.go index 4851a5c..8d02519 100644 --- a/services/flexiblecredit.go +++ b/services/flexiblecredit.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // no documentation yet type FlexibleCredit_Program struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetFlexibleCreditProgramService returns an instance of the FlexibleCredit_Program SoftLayer service -func GetFlexibleCreditProgramService(sess *session.Session) FlexibleCredit_Program { +func GetFlexibleCreditProgramService(sess session.SLSession) FlexibleCredit_Program { return FlexibleCredit_Program{Session: sess} } diff --git a/services/flexiblecredit_test.go b/services/flexiblecredit_test.go new file mode 100644 index 0000000..021b12c --- /dev/null +++ b/services/flexiblecredit_test.go @@ -0,0 +1,75 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("FlexibleCredit Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_FlexibleCredit_Program service", func() { + var sl_service services.FlexibleCredit_Program + BeforeEach(func() { + sl_service = services.GetFlexibleCreditProgramService(slsession) + }) + Context("SoftLayer_FlexibleCredit_Program Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_FlexibleCredit_Program Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_FlexibleCredit_Program::getAffiliatesAvailableForSelfEnrollmentByVerificationType", func() { + It("API Call Test", func() { + _, err := sl_service.GetAffiliatesAvailableForSelfEnrollmentByVerificationType(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_FlexibleCredit_Program::getCompanyTypes", func() { + It("API Call Test", func() { + _, err := sl_service.GetCompanyTypes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_FlexibleCredit_Program::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_FlexibleCredit_Program::selfEnrollNewAccount", func() { + It("API Call Test", func() { + _, err := sl_service.SelfEnrollNewAccount(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/hardware.go b/services/hardware.go index a09610b..c1d9bde 100644 --- a/services/hardware.go +++ b/services/hardware.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // The SoftLayer_Hardware data type contains general information relating to a single SoftLayer hardware. type Hardware struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetHardwareService returns an instance of the Hardware SoftLayer service -func GetHardwareService(sess *session.Session) Hardware { +func GetHardwareService(sess session.SLSession) Hardware { return Hardware{Session: sess} } @@ -1560,12 +1553,12 @@ func (r Hardware) UpdateIpmiPassword(password *string) (resp bool, err error) { // The SoftLayer_Hardware_Benchmark_Certification data type contains general information relating to a single SoftLayer hardware benchmark certification document. type Hardware_Benchmark_Certification struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetHardwareBenchmarkCertificationService returns an instance of the Hardware_Benchmark_Certification SoftLayer service -func GetHardwareBenchmarkCertificationService(sess *session.Session) Hardware_Benchmark_Certification { +func GetHardwareBenchmarkCertificationService(sess session.SLSession) Hardware_Benchmark_Certification { return Hardware_Benchmark_Certification{Session: sess} } @@ -1624,12 +1617,12 @@ func (r Hardware_Benchmark_Certification) GetResultFile() (resp []byte, err erro // no documentation yet type Hardware_Blade struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetHardwareBladeService returns an instance of the Hardware_Blade SoftLayer service -func GetHardwareBladeService(sess *session.Session) Hardware_Blade { +func GetHardwareBladeService(sess session.SLSession) Hardware_Blade { return Hardware_Blade{Session: sess} } @@ -1682,12 +1675,12 @@ func (r Hardware_Blade) GetObject() (resp datatypes.Hardware_Blade, err error) { // no documentation yet type Hardware_Component_Locator struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetHardwareComponentLocatorService returns an instance of the Hardware_Component_Locator SoftLayer service -func GetHardwareComponentLocatorService(sess *session.Session) Hardware_Component_Locator { +func GetHardwareComponentLocatorService(sess session.SLSession) Hardware_Component_Locator { return Hardware_Component_Locator{Session: sess} } @@ -1746,12 +1739,12 @@ func (r Hardware_Component_Locator) GetServerPackageAvailability() (resp []datat // The SoftLayer_Hardware_Component_Model data type contains general information relating to a single SoftLayer component model. A component model represents a vendor specific representation of a hardware component. Every piece of hardware on a server will have a specific hardware component model. type Hardware_Component_Model struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetHardwareComponentModelService returns an instance of the Hardware_Component_Model SoftLayer service -func GetHardwareComponentModelService(sess *session.Session) Hardware_Component_Model { +func GetHardwareComponentModelService(sess session.SLSession) Hardware_Component_Model { return Hardware_Component_Model{Session: sess} } @@ -1888,12 +1881,12 @@ func (r Hardware_Component_Model) GetValidAttributeTypes() (resp []datatypes.Har // The SoftLayer_Hardware_Component_Partition_OperatingSystem data type contains general information relating to a single SoftLayer Operating System Partition Template. type Hardware_Component_Partition_OperatingSystem struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetHardwareComponentPartitionOperatingSystemService returns an instance of the Hardware_Component_Partition_OperatingSystem SoftLayer service -func GetHardwareComponentPartitionOperatingSystemService(sess *session.Session) Hardware_Component_Partition_OperatingSystem { +func GetHardwareComponentPartitionOperatingSystemService(sess session.SLSession) Hardware_Component_Partition_OperatingSystem { return Hardware_Component_Partition_OperatingSystem{Session: sess} } @@ -1955,12 +1948,12 @@ func (r Hardware_Component_Partition_OperatingSystem) GetPartitionTemplates() (r // The SoftLayer_Hardware_Component_Partition_Template data type contains general information relating to a single SoftLayer partition template. Partition templates group 1 or more partition configurations that can be used to predefine how a hard drive's partitions will be configured. type Hardware_Component_Partition_Template struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetHardwareComponentPartitionTemplateService returns an instance of the Hardware_Component_Partition_Template SoftLayer service -func GetHardwareComponentPartitionTemplateService(sess *session.Session) Hardware_Component_Partition_Template { +func GetHardwareComponentPartitionTemplateService(sess session.SLSession) Hardware_Component_Partition_Template { return Hardware_Component_Partition_Template{Session: sess} } @@ -2031,12 +2024,12 @@ func (r Hardware_Component_Partition_Template) GetPartitionTemplatePartition() ( // The SoftLayer_Hardware_Router data type contains general information relating to a single SoftLayer router. type Hardware_Router struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetHardwareRouterService returns an instance of the Hardware_Router SoftLayer service -func GetHardwareRouterService(sess *session.Session) Hardware_Router { +func GetHardwareRouterService(sess session.SLSession) Hardware_Router { return Hardware_Router{Session: sess} } @@ -3578,12 +3571,12 @@ func (r Hardware_Router) UpdateIpmiPassword(password *string) (resp bool, err er // no documentation yet type Hardware_SecurityModule struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetHardwareSecurityModuleService returns an instance of the Hardware_SecurityModule SoftLayer service -func GetHardwareSecurityModuleService(sess *session.Session) Hardware_SecurityModule { +func GetHardwareSecurityModuleService(sess session.SLSession) Hardware_SecurityModule { return Hardware_SecurityModule{Session: sess} } @@ -5962,12 +5955,12 @@ func (r Hardware_SecurityModule) ValidatePartitionsForOperatingSystem(operatingS // no documentation yet type Hardware_SecurityModule750 struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetHardwareSecurityModule750Service returns an instance of the Hardware_SecurityModule750 SoftLayer service -func GetHardwareSecurityModule750Service(sess *session.Session) Hardware_SecurityModule750 { +func GetHardwareSecurityModule750Service(sess session.SLSession) Hardware_SecurityModule750 { return Hardware_SecurityModule750{Session: sess} } @@ -8346,12 +8339,12 @@ func (r Hardware_SecurityModule750) ValidatePartitionsForOperatingSystem(operati // The SoftLayer_Hardware_Server data type contains general information relating to a single SoftLayer server. type Hardware_Server struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetHardwareServerService returns an instance of the Hardware_Server SoftLayer service -func GetHardwareServerService(sess *session.Session) Hardware_Server { +func GetHardwareServerService(sess session.SLSession) Hardware_Server { return Hardware_Server{Session: sess} } diff --git a/services/hardware_test.go b/services/hardware_test.go new file mode 100644 index 0000000..3b1c590 --- /dev/null +++ b/services/hardware_test.go @@ -0,0 +1,9370 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Hardware Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Hardware service", func() { + var sl_service services.Hardware + BeforeEach(func() { + sl_service = services.GetHardwareService(slsession) + }) + Context("SoftLayer_Hardware Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Hardware Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Hardware::allowAccessToNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToNetworkStorage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::allowAccessToNetworkStorageList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToNetworkStorageList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::captureImage", func() { + It("API Call Test", func() { + _, err := sl_service.CaptureImage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::deleteSoftwareComponentPasswords", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteSoftwareComponentPasswords(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::deleteTag", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteTag(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::editSoftwareComponentPasswords", func() { + It("API Call Test", func() { + _, err := sl_service.EditSoftwareComponentPasswords(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::executeRemoteScript", func() { + It("API Call Test", func() { + err := sl_service.ExecuteRemoteScript(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::findByIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.FindByIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::generateOrderTemplate", func() { + It("API Call Test", func() { + _, err := sl_service.GenerateOrderTemplate(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getActiveComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getActiveNetworkMonitorIncident", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveNetworkMonitorIncident() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getAllPowerComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllPowerComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getAllowedHost", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedHost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getAllowedNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getAllowedNetworkStorageReplicas", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedNetworkStorageReplicas() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getAntivirusSpywareSoftwareComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetAntivirusSpywareSoftwareComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getAttachedNetworkStorages", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedNetworkStorages(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getAvailableBillingTermChangePrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableBillingTermChangePrices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getAvailableNetworkStorages", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableNetworkStorages(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getAverageDailyPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageDailyPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getBackendIncomingBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendIncomingBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getBackendNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getBackendOutgoingBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendOutgoingBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getBackendRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getBandwidthAllocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthAllocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getBandwidthAllotmentDetail", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthAllotmentDetail() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getBenchmarkCertifications", func() { + It("API Call Test", func() { + _, err := sl_service.GetBenchmarkCertifications() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getBillingItemFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItemFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getBlockCancelBecauseDisconnectedFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBlockCancelBecauseDisconnectedFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getBusinessContinuanceInsuranceFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBusinessContinuanceInsuranceFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getChildrenHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetChildrenHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getComponentDetailsXML", func() { + It("API Call Test", func() { + _, err := sl_service.GetComponentDetailsXML() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getContinuousDataProtectionSoftwareComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetContinuousDataProtectionSoftwareComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getCreateObjectOptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetCreateObjectOptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getCurrentBillableBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBillableBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getCurrentBillingDetail", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBillingDetail() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getCurrentBillingTotal", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBillingTotal() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getDailyAverage", func() { + It("API Call Test", func() { + _, err := sl_service.GetDailyAverage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getDatacenter", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getDatacenterName", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenterName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getDaysInSparePool", func() { + It("API Call Test", func() { + _, err := sl_service.GetDaysInSparePool() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getDownlinkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownlinkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getDownlinkNetworkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownlinkNetworkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getDownlinkServers", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownlinkServers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getDownlinkVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownlinkVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getDownstreamHardwareBindings", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamHardwareBindings() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getDownstreamNetworkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamNetworkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getDownstreamNetworkHardwareWithIncidents", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamNetworkHardwareWithIncidents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getDownstreamServers", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamServers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getDownstreamVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getDriveControllers", func() { + It("API Call Test", func() { + _, err := sl_service.GetDriveControllers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getEvaultNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetEvaultNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getFirewallServiceComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallServiceComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getFixedConfigurationPreset", func() { + It("API Call Test", func() { + _, err := sl_service.GetFixedConfigurationPreset() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getFrontendIncomingBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendIncomingBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getFrontendNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getFrontendOutgoingBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendOutgoingBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getFrontendRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getFutureBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetFutureBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getGlobalIdentifier", func() { + It("API Call Test", func() { + _, err := sl_service.GetGlobalIdentifier() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getHardDrives", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardDrives() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getHardwareChassis", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareChassis() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getHardwareFunction", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareFunction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getHardwareFunctionDescription", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareFunctionDescription() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getHardwareState", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareState() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getHardwareStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getHasTrustedPlatformModuleBillingItemFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasTrustedPlatformModuleBillingItemFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getHostIpsSoftwareComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetHostIpsSoftwareComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getHourlyBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlyBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getHourlyBillingFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlyBillingFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getInboundBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetInboundBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getInboundPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetInboundPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getIsBillingTermChangeAvailableFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsBillingTermChangeAvailableFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getLastTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastTransaction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getLatestNetworkMonitorIncident", func() { + It("API Call Test", func() { + _, err := sl_service.GetLatestNetworkMonitorIncident() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getLocationPathString", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationPathString() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getLockboxNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetLockboxNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getManagedResourceFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetManagedResourceFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getMemory", func() { + It("API Call Test", func() { + _, err := sl_service.GetMemory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getMemoryCapacity", func() { + It("API Call Test", func() { + _, err := sl_service.GetMemoryCapacity() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getMetricTrackingObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getModules", func() { + It("API Call Test", func() { + _, err := sl_service.GetModules() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getMonitoringRobot", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringRobot() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getMonitoringServiceComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringServiceComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getMonitoringServiceEligibilityFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringServiceEligibilityFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getMotherboard", func() { + It("API Call Test", func() { + _, err := sl_service.GetMotherboard() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getNetworkCards", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkCards() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getNetworkGatewayMember", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkGatewayMember() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getNetworkGatewayMemberFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkGatewayMemberFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getNetworkManagementIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkManagementIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getNetworkMonitorAttachedDownHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorAttachedDownHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getNetworkMonitorAttachedDownVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorAttachedDownVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getNetworkMonitorIncidents", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorIncidents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getNetworkMonitors", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitors() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getNetworkStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getNetworkStatusAttribute", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkStatusAttribute() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getNetworkVlans", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlans() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getNextBillingCycleBandwidthAllocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextBillingCycleBandwidthAllocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getNotesHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetNotesHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getNvRamCapacity", func() { + It("API Call Test", func() { + _, err := sl_service.GetNvRamCapacity() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getNvRamComponentModels", func() { + It("API Call Test", func() { + _, err := sl_service.GetNvRamComponentModels() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getOperatingSystem", func() { + It("API Call Test", func() { + _, err := sl_service.GetOperatingSystem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getOperatingSystemReferenceCode", func() { + It("API Call Test", func() { + _, err := sl_service.GetOperatingSystemReferenceCode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getOutboundBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetOutboundBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getOutboundPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetOutboundPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getParentBay", func() { + It("API Call Test", func() { + _, err := sl_service.GetParentBay() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getParentHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetParentHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getPointOfPresenceLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetPointOfPresenceLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getPowerComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetPowerComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getPowerSupply", func() { + It("API Call Test", func() { + _, err := sl_service.GetPowerSupply() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getPrimaryBackendIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryBackendIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getPrimaryBackendNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryBackendNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getPrimaryIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getPrimaryNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getPrivateBandwidthData", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateBandwidthData(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getPrivateNetworkOnlyFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateNetworkOnlyFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getProcessorCoreAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetProcessorCoreAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getProcessorPhysicalCoreAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetProcessorPhysicalCoreAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getProcessors", func() { + It("API Call Test", func() { + _, err := sl_service.GetProcessors() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getPublicBandwidthData", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicBandwidthData(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getRack", func() { + It("API Call Test", func() { + _, err := sl_service.GetRack() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getRaidControllers", func() { + It("API Call Test", func() { + _, err := sl_service.GetRaidControllers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getRecentEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetRecentEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getRemoteManagementAccounts", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemoteManagementAccounts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getRemoteManagementComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemoteManagementComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getResourceConfigurations", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceConfigurations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getResourceGroupMemberReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceGroupMemberReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getResourceGroupRoles", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceGroupRoles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getResourceGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getSecurityScanRequests", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecurityScanRequests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getSensorData", func() { + It("API Call Test", func() { + _, err := sl_service.GetSensorData() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getSensorDataWithGraphs", func() { + It("API Call Test", func() { + _, err := sl_service.GetSensorDataWithGraphs() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getServerFanSpeedGraphs", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerFanSpeedGraphs() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getServerPowerState", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerPowerState() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getServerRoom", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerRoom() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getServerTemperatureGraphs", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerTemperatureGraphs() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getServiceProvider", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceProvider() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getSoftwareComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getSparePoolBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetSparePoolBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getSshKeys", func() { + It("API Call Test", func() { + _, err := sl_service.GetSshKeys() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getStorageGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getStorageNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getTagReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetTagReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getTopLevelLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetTopLevelLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getTransactionHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetTransactionHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getUpgradeItemPrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeItemPrices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getUpgradeRequest", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeRequest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getUpgradeableActiveComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeableActiveComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getUplinkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetUplinkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getUplinkNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetUplinkNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getUserData", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserData() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getVirtualChassis", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualChassis() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getVirtualChassisSiblings", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualChassisSiblings() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getVirtualHost", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualHost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getVirtualLicenses", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualLicenses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getVirtualRack", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualRack() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getVirtualRackId", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualRackId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getVirtualRackName", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualRackName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::getVirtualizationPlatform", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualizationPlatform() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::importVirtualHost", func() { + It("API Call Test", func() { + _, err := sl_service.ImportVirtualHost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::isPingable", func() { + It("API Call Test", func() { + _, err := sl_service.IsPingable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::ping", func() { + It("API Call Test", func() { + _, err := sl_service.Ping() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::powerCycle", func() { + It("API Call Test", func() { + _, err := sl_service.PowerCycle() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::powerOff", func() { + It("API Call Test", func() { + _, err := sl_service.PowerOff() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::powerOn", func() { + It("API Call Test", func() { + _, err := sl_service.PowerOn() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::rebootDefault", func() { + It("API Call Test", func() { + _, err := sl_service.RebootDefault() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::rebootHard", func() { + It("API Call Test", func() { + _, err := sl_service.RebootHard() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::rebootSoft", func() { + It("API Call Test", func() { + _, err := sl_service.RebootSoft() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::refreshDeviceStatus", func() { + It("API Call Test", func() { + _, err := sl_service.RefreshDeviceStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::removeAccessToNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToNetworkStorage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::removeAccessToNetworkStorageList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToNetworkStorageList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::removeTags", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveTags(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::setTags", func() { + It("API Call Test", func() { + _, err := sl_service.SetTags(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware::updateIpmiPassword", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateIpmiPassword(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Hardware_Benchmark_Certification service", func() { + var sl_service services.Hardware_Benchmark_Certification + BeforeEach(func() { + sl_service = services.GetHardwareBenchmarkCertificationService(slsession) + }) + Context("SoftLayer_Hardware_Benchmark_Certification Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Hardware_Benchmark_Certification Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Hardware_Benchmark_Certification::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Benchmark_Certification::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Benchmark_Certification::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Benchmark_Certification::getResultFile", func() { + It("API Call Test", func() { + _, err := sl_service.GetResultFile() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Hardware_Blade service", func() { + var sl_service services.Hardware_Blade + BeforeEach(func() { + sl_service = services.GetHardwareBladeService(slsession) + }) + Context("SoftLayer_Hardware_Blade Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Hardware_Blade Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Hardware_Blade::getHardwareChild", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareChild() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Blade::getHardwareParent", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareParent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Blade::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Hardware_Component_Locator service", func() { + var sl_service services.Hardware_Component_Locator + BeforeEach(func() { + sl_service = services.GetHardwareComponentLocatorService(slsession) + }) + Context("SoftLayer_Hardware_Component_Locator Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Hardware_Component_Locator Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Hardware_Component_Locator::getGenericComponentModelAvailability", func() { + It("API Call Test", func() { + _, err := sl_service.GetGenericComponentModelAvailability(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Locator::getPackageItemsAvailability", func() { + It("API Call Test", func() { + _, err := sl_service.GetPackageItemsAvailability(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Locator::getServerPackageAvailability", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerPackageAvailability() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Hardware_Component_Model service", func() { + var sl_service services.Hardware_Component_Model + BeforeEach(func() { + sl_service = services.GetHardwareComponentModelService(slsession) + }) + Context("SoftLayer_Hardware_Component_Model Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Hardware_Component_Model Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Hardware_Component_Model::getArchitectureType", func() { + It("API Call Test", func() { + _, err := sl_service.GetArchitectureType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Model::getAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Model::getCompatibleArrayTypes", func() { + It("API Call Test", func() { + _, err := sl_service.GetCompatibleArrayTypes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Model::getCompatibleChildComponentModels", func() { + It("API Call Test", func() { + _, err := sl_service.GetCompatibleChildComponentModels() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Model::getCompatibleParentComponentModels", func() { + It("API Call Test", func() { + _, err := sl_service.GetCompatibleParentComponentModels() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Model::getFirmwareQuantity", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirmwareQuantity() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Model::getFirmwares", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirmwares() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Model::getHardwareComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Model::getHardwareGenericComponentModel", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareGenericComponentModel() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Model::getInfinibandCompatibleAttribute", func() { + It("API Call Test", func() { + _, err := sl_service.GetInfinibandCompatibleAttribute() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Model::getIsFlexSkuCompatible", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsFlexSkuCompatible() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Model::getIsInfinibandCompatible", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsInfinibandCompatible() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Model::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Model::getQualifiedFirmwares", func() { + It("API Call Test", func() { + _, err := sl_service.GetQualifiedFirmwares() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Model::getRebootTime", func() { + It("API Call Test", func() { + _, err := sl_service.GetRebootTime() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Model::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Model::getValidAttributeTypes", func() { + It("API Call Test", func() { + _, err := sl_service.GetValidAttributeTypes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Hardware_Component_Partition_OperatingSystem service", func() { + var sl_service services.Hardware_Component_Partition_OperatingSystem + BeforeEach(func() { + sl_service = services.GetHardwareComponentPartitionOperatingSystemService(slsession) + }) + Context("SoftLayer_Hardware_Component_Partition_OperatingSystem Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Hardware_Component_Partition_OperatingSystem Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Hardware_Component_Partition_OperatingSystem::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Partition_OperatingSystem::getByDescription", func() { + It("API Call Test", func() { + _, err := sl_service.GetByDescription(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Partition_OperatingSystem::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Partition_OperatingSystem::getPartitionTemplates", func() { + It("API Call Test", func() { + _, err := sl_service.GetPartitionTemplates() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Hardware_Component_Partition_Template service", func() { + var sl_service services.Hardware_Component_Partition_Template + BeforeEach(func() { + sl_service = services.GetHardwareComponentPartitionTemplateService(slsession) + }) + Context("SoftLayer_Hardware_Component_Partition_Template Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Hardware_Component_Partition_Template Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Hardware_Component_Partition_Template::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Partition_Template::getData", func() { + It("API Call Test", func() { + _, err := sl_service.GetData() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Partition_Template::getExpireDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetExpireDate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Partition_Template::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Partition_Template::getPartitionOperatingSystem", func() { + It("API Call Test", func() { + _, err := sl_service.GetPartitionOperatingSystem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Component_Partition_Template::getPartitionTemplatePartition", func() { + It("API Call Test", func() { + _, err := sl_service.GetPartitionTemplatePartition() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Hardware_Router service", func() { + var sl_service services.Hardware_Router + BeforeEach(func() { + sl_service = services.GetHardwareRouterService(slsession) + }) + Context("SoftLayer_Hardware_Router Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Hardware_Router Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Hardware_Router::allowAccessToNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToNetworkStorage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::allowAccessToNetworkStorageList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToNetworkStorageList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::captureImage", func() { + It("API Call Test", func() { + _, err := sl_service.CaptureImage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::deleteSoftwareComponentPasswords", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteSoftwareComponentPasswords(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::deleteTag", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteTag(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::editSoftwareComponentPasswords", func() { + It("API Call Test", func() { + _, err := sl_service.EditSoftwareComponentPasswords(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::executeRemoteScript", func() { + It("API Call Test", func() { + err := sl_service.ExecuteRemoteScript(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::findByIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.FindByIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::generateOrderTemplate", func() { + It("API Call Test", func() { + _, err := sl_service.GenerateOrderTemplate(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getActiveComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getActiveNetworkMonitorIncident", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveNetworkMonitorIncident() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getAllPowerComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllPowerComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getAllowedHost", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedHost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getAllowedNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getAllowedNetworkStorageReplicas", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedNetworkStorageReplicas() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getAntivirusSpywareSoftwareComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetAntivirusSpywareSoftwareComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getAttachedNetworkStorages", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedNetworkStorages(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getAvailableBillingTermChangePrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableBillingTermChangePrices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getAvailableNetworkStorages", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableNetworkStorages(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getAverageDailyPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageDailyPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getBackendIncomingBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendIncomingBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getBackendNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getBackendOutgoingBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendOutgoingBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getBackendRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getBandwidthAllocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthAllocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getBandwidthAllotmentDetail", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthAllotmentDetail() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getBenchmarkCertifications", func() { + It("API Call Test", func() { + _, err := sl_service.GetBenchmarkCertifications() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getBillingItemFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItemFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getBlockCancelBecauseDisconnectedFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBlockCancelBecauseDisconnectedFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getBoundSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetBoundSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getBusinessContinuanceInsuranceFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBusinessContinuanceInsuranceFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getChildrenHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetChildrenHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getComponentDetailsXML", func() { + It("API Call Test", func() { + _, err := sl_service.GetComponentDetailsXML() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getContinuousDataProtectionSoftwareComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetContinuousDataProtectionSoftwareComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getCreateObjectOptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetCreateObjectOptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getCurrentBillableBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBillableBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getCurrentBillingDetail", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBillingDetail() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getCurrentBillingTotal", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBillingTotal() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getDailyAverage", func() { + It("API Call Test", func() { + _, err := sl_service.GetDailyAverage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getDatacenter", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getDatacenterName", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenterName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getDaysInSparePool", func() { + It("API Call Test", func() { + _, err := sl_service.GetDaysInSparePool() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getDownlinkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownlinkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getDownlinkNetworkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownlinkNetworkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getDownlinkServers", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownlinkServers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getDownlinkVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownlinkVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getDownstreamHardwareBindings", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamHardwareBindings() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getDownstreamNetworkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamNetworkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getDownstreamNetworkHardwareWithIncidents", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamNetworkHardwareWithIncidents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getDownstreamServers", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamServers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getDownstreamVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getDriveControllers", func() { + It("API Call Test", func() { + _, err := sl_service.GetDriveControllers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getEvaultNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetEvaultNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getFirewallServiceComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallServiceComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getFixedConfigurationPreset", func() { + It("API Call Test", func() { + _, err := sl_service.GetFixedConfigurationPreset() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getFrontendIncomingBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendIncomingBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getFrontendNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getFrontendOutgoingBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendOutgoingBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getFrontendRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getFutureBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetFutureBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getGlobalIdentifier", func() { + It("API Call Test", func() { + _, err := sl_service.GetGlobalIdentifier() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getHardDrives", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardDrives() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getHardwareChassis", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareChassis() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getHardwareFunction", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareFunction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getHardwareFunctionDescription", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareFunctionDescription() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getHardwareState", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareState() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getHardwareStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getHasTrustedPlatformModuleBillingItemFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasTrustedPlatformModuleBillingItemFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getHostIpsSoftwareComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetHostIpsSoftwareComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getHourlyBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlyBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getHourlyBillingFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlyBillingFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getInboundBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetInboundBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getInboundPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetInboundPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getIsBillingTermChangeAvailableFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsBillingTermChangeAvailableFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getLastTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastTransaction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getLatestNetworkMonitorIncident", func() { + It("API Call Test", func() { + _, err := sl_service.GetLatestNetworkMonitorIncident() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getLocalDiskStorageCapabilityFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocalDiskStorageCapabilityFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getLocationPathString", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationPathString() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getLockboxNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetLockboxNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getManagedResourceFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetManagedResourceFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getMemory", func() { + It("API Call Test", func() { + _, err := sl_service.GetMemory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getMemoryCapacity", func() { + It("API Call Test", func() { + _, err := sl_service.GetMemoryCapacity() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getMetricTrackingObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getModules", func() { + It("API Call Test", func() { + _, err := sl_service.GetModules() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getMonitoringRobot", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringRobot() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getMonitoringServiceComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringServiceComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getMonitoringServiceEligibilityFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringServiceEligibilityFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getMotherboard", func() { + It("API Call Test", func() { + _, err := sl_service.GetMotherboard() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getNetworkCards", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkCards() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getNetworkGatewayMember", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkGatewayMember() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getNetworkGatewayMemberFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkGatewayMemberFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getNetworkManagementIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkManagementIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getNetworkMonitorAttachedDownHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorAttachedDownHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getNetworkMonitorAttachedDownVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorAttachedDownVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getNetworkMonitorIncidents", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorIncidents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getNetworkMonitors", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitors() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getNetworkStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getNetworkStatusAttribute", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkStatusAttribute() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getNetworkVlans", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlans() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getNextBillingCycleBandwidthAllocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextBillingCycleBandwidthAllocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getNotesHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetNotesHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getNvRamCapacity", func() { + It("API Call Test", func() { + _, err := sl_service.GetNvRamCapacity() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getNvRamComponentModels", func() { + It("API Call Test", func() { + _, err := sl_service.GetNvRamComponentModels() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getOperatingSystem", func() { + It("API Call Test", func() { + _, err := sl_service.GetOperatingSystem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getOperatingSystemReferenceCode", func() { + It("API Call Test", func() { + _, err := sl_service.GetOperatingSystemReferenceCode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getOutboundBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetOutboundBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getOutboundPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetOutboundPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getParentBay", func() { + It("API Call Test", func() { + _, err := sl_service.GetParentBay() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getParentHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetParentHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getPointOfPresenceLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetPointOfPresenceLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getPowerComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetPowerComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getPowerSupply", func() { + It("API Call Test", func() { + _, err := sl_service.GetPowerSupply() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getPrimaryBackendIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryBackendIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getPrimaryBackendNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryBackendNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getPrimaryIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getPrimaryNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getPrivateBandwidthData", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateBandwidthData(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getPrivateNetworkOnlyFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateNetworkOnlyFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getProcessorCoreAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetProcessorCoreAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getProcessorPhysicalCoreAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetProcessorPhysicalCoreAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getProcessors", func() { + It("API Call Test", func() { + _, err := sl_service.GetProcessors() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getPublicBandwidthData", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicBandwidthData(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getRack", func() { + It("API Call Test", func() { + _, err := sl_service.GetRack() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getRaidControllers", func() { + It("API Call Test", func() { + _, err := sl_service.GetRaidControllers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getRecentEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetRecentEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getRemoteManagementAccounts", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemoteManagementAccounts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getRemoteManagementComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemoteManagementComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getResourceConfigurations", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceConfigurations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getResourceGroupMemberReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceGroupMemberReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getResourceGroupRoles", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceGroupRoles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getResourceGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getSanStorageCapabilityFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetSanStorageCapabilityFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getSecurityScanRequests", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecurityScanRequests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getSensorData", func() { + It("API Call Test", func() { + _, err := sl_service.GetSensorData() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getSensorDataWithGraphs", func() { + It("API Call Test", func() { + _, err := sl_service.GetSensorDataWithGraphs() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getServerFanSpeedGraphs", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerFanSpeedGraphs() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getServerPowerState", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerPowerState() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getServerRoom", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerRoom() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getServerTemperatureGraphs", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerTemperatureGraphs() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getServiceProvider", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceProvider() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getSoftwareComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getSparePoolBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetSparePoolBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getSshKeys", func() { + It("API Call Test", func() { + _, err := sl_service.GetSshKeys() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getStorageGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getStorageNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getTagReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetTagReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getTopLevelLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetTopLevelLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getTransactionHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetTransactionHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getUpgradeItemPrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeItemPrices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getUpgradeRequest", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeRequest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getUpgradeableActiveComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeableActiveComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getUplinkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetUplinkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getUplinkNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetUplinkNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getUserData", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserData() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getVirtualChassis", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualChassis() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getVirtualChassisSiblings", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualChassisSiblings() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getVirtualHost", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualHost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getVirtualLicenses", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualLicenses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getVirtualRack", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualRack() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getVirtualRackId", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualRackId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getVirtualRackName", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualRackName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::getVirtualizationPlatform", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualizationPlatform() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::importVirtualHost", func() { + It("API Call Test", func() { + _, err := sl_service.ImportVirtualHost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::isPingable", func() { + It("API Call Test", func() { + _, err := sl_service.IsPingable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::ping", func() { + It("API Call Test", func() { + _, err := sl_service.Ping() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::powerCycle", func() { + It("API Call Test", func() { + _, err := sl_service.PowerCycle() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::powerOff", func() { + It("API Call Test", func() { + _, err := sl_service.PowerOff() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::powerOn", func() { + It("API Call Test", func() { + _, err := sl_service.PowerOn() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::rebootDefault", func() { + It("API Call Test", func() { + _, err := sl_service.RebootDefault() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::rebootHard", func() { + It("API Call Test", func() { + _, err := sl_service.RebootHard() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::rebootSoft", func() { + It("API Call Test", func() { + _, err := sl_service.RebootSoft() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::refreshDeviceStatus", func() { + It("API Call Test", func() { + _, err := sl_service.RefreshDeviceStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::removeAccessToNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToNetworkStorage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::removeAccessToNetworkStorageList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToNetworkStorageList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::removeTags", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveTags(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::setTags", func() { + It("API Call Test", func() { + _, err := sl_service.SetTags(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Router::updateIpmiPassword", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateIpmiPassword(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Hardware_SecurityModule service", func() { + var sl_service services.Hardware_SecurityModule + BeforeEach(func() { + sl_service = services.GetHardwareSecurityModuleService(slsession) + }) + Context("SoftLayer_Hardware_SecurityModule Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Hardware_SecurityModule Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::activatePrivatePort", func() { + It("API Call Test", func() { + _, err := sl_service.ActivatePrivatePort() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::activatePublicPort", func() { + It("API Call Test", func() { + _, err := sl_service.ActivatePublicPort() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::allowAccessToNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToNetworkStorage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::allowAccessToNetworkStorageList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToNetworkStorageList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::bootToRescueLayer", func() { + It("API Call Test", func() { + _, err := sl_service.BootToRescueLayer(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::captureImage", func() { + It("API Call Test", func() { + _, err := sl_service.CaptureImage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::createFirmwareReflashTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.CreateFirmwareReflashTransaction(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::createFirmwareUpdateTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.CreateFirmwareUpdateTransaction(nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::createHyperThreadingUpdateTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.CreateHyperThreadingUpdateTransaction(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::createPostSoftwareInstallTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.CreatePostSoftwareInstallTransaction(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::deleteSoftwareComponentPasswords", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteSoftwareComponentPasswords(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::deleteTag", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteTag(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::editSoftwareComponentPasswords", func() { + It("API Call Test", func() { + _, err := sl_service.EditSoftwareComponentPasswords(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::executeRemoteScript", func() { + It("API Call Test", func() { + err := sl_service.ExecuteRemoteScript(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::findByIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.FindByIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::generateOrderTemplate", func() { + It("API Call Test", func() { + _, err := sl_service.GenerateOrderTemplate(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getActiveComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getActiveNetworkFirewallBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveNetworkFirewallBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getActiveNetworkMonitorIncident", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveNetworkMonitorIncident() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getActiveTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getActiveTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveTransaction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getActiveTransactions", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveTransactions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getAllPowerComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllPowerComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getAllowedHost", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedHost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getAllowedNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getAllowedNetworkStorageReplicas", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedNetworkStorageReplicas() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getAntivirusSpywareSoftwareComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetAntivirusSpywareSoftwareComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getAttachedNetworkStorages", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedNetworkStorages(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getAvailableBillingTermChangePrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableBillingTermChangePrices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getAvailableMonitoring", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableMonitoring() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getAvailableNetworkStorages", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableNetworkStorages(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getAverageDailyBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageDailyBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getAverageDailyPrivateBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageDailyPrivateBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getAverageDailyPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageDailyPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getBackendBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendBandwidthUsage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getBackendIncomingBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendIncomingBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getBackendNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getBackendOutgoingBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendOutgoingBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getBackendRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getBandwidthAllocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthAllocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getBandwidthAllotmentDetail", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthAllotmentDetail() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getBandwidthForDateRange", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthForDateRange(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getBandwidthImage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthImage(nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getBenchmarkCertifications", func() { + It("API Call Test", func() { + _, err := sl_service.GetBenchmarkCertifications() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getBillingCycleBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingCycleBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getBillingCyclePrivateBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingCyclePrivateBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getBillingCyclePublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingCyclePublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getBillingItemFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItemFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getBiosPasswordNullFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBiosPasswordNullFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getBlockCancelBecauseDisconnectedFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBlockCancelBecauseDisconnectedFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getBootModeOptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetBootModeOptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getBusinessContinuanceInsuranceFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBusinessContinuanceInsuranceFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getCaptureEnabledFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetCaptureEnabledFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getChildrenHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetChildrenHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getComponentDetailsXML", func() { + It("API Call Test", func() { + _, err := sl_service.GetComponentDetailsXML() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getContainsSolidStateDrivesFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetContainsSolidStateDrivesFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getContinuousDataProtectionSoftwareComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetContinuousDataProtectionSoftwareComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getControlPanel", func() { + It("API Call Test", func() { + _, err := sl_service.GetControlPanel() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getCost", func() { + It("API Call Test", func() { + _, err := sl_service.GetCost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getCreateObjectOptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetCreateObjectOptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getCurrentBandwidthSummary", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBandwidthSummary() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getCurrentBenchmarkCertificationResultFile", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBenchmarkCertificationResultFile() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getCurrentBillableBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBillableBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getCurrentBillingDetail", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBillingDetail() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getCurrentBillingTotal", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBillingTotal() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getCustomerInstalledOperatingSystemFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetCustomerInstalledOperatingSystemFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getCustomerOwnedFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetCustomerOwnedFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getDailyAverage", func() { + It("API Call Test", func() { + _, err := sl_service.GetDailyAverage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getDatacenter", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getDatacenterName", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenterName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getDaysInSparePool", func() { + It("API Call Test", func() { + _, err := sl_service.GetDaysInSparePool() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getDownlinkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownlinkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getDownlinkNetworkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownlinkNetworkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getDownlinkServers", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownlinkServers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getDownlinkVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownlinkVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getDownstreamHardwareBindings", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamHardwareBindings() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getDownstreamNetworkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamNetworkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getDownstreamNetworkHardwareWithIncidents", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamNetworkHardwareWithIncidents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getDownstreamServers", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamServers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getDownstreamVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getDriveControllers", func() { + It("API Call Test", func() { + _, err := sl_service.GetDriveControllers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getEvaultNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetEvaultNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getFirewallProtectableSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallProtectableSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getFirewallServiceComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallServiceComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getFixedConfigurationPreset", func() { + It("API Call Test", func() { + _, err := sl_service.GetFixedConfigurationPreset() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getFrontendBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendBandwidthUsage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getFrontendIncomingBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendIncomingBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getFrontendNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getFrontendOutgoingBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendOutgoingBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getFrontendRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getFutureBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetFutureBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getGlobalIdentifier", func() { + It("API Call Test", func() { + _, err := sl_service.GetGlobalIdentifier() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getHardDrives", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardDrives() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getHardwareByIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareByIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getHardwareChassis", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareChassis() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getHardwareFunction", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareFunction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getHardwareFunctionDescription", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareFunctionDescription() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getHardwareState", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareState() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getHardwareStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getHasSingleRootVirtualizationBillingItemFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasSingleRootVirtualizationBillingItemFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getHasTrustedPlatformModuleBillingItemFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasTrustedPlatformModuleBillingItemFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getHostIpsSoftwareComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetHostIpsSoftwareComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getHourlyBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlyBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getHourlyBillingFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlyBillingFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getInboundBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetInboundBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getInboundPrivateBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetInboundPrivateBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getInboundPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetInboundPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getIsBillingTermChangeAvailableFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsBillingTermChangeAvailableFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getIsCloudReadyNodeCertified", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsCloudReadyNodeCertified() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getIsIpmiDisabled", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsIpmiDisabled() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getIsQeInternalServer", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsQeInternalServer() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getIsVirtualPrivateCloudNode", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsVirtualPrivateCloudNode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getItemPricesFromSoftwareDescriptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetItemPricesFromSoftwareDescriptions(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getLastOperatingSystemReload", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastOperatingSystemReload() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getLastTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastTransaction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getLatestNetworkMonitorIncident", func() { + It("API Call Test", func() { + _, err := sl_service.GetLatestNetworkMonitorIncident() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getLocationPathString", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationPathString() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getLockboxNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetLockboxNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getLogicalVolumeStorageGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetLogicalVolumeStorageGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getManagedResourceFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetManagedResourceFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getManagementNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetManagementNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getMemory", func() { + It("API Call Test", func() { + _, err := sl_service.GetMemory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getMemoryCapacity", func() { + It("API Call Test", func() { + _, err := sl_service.GetMemoryCapacity() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getMetricTrackingObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getMetricTrackingObjectId", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObjectId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getModules", func() { + It("API Call Test", func() { + _, err := sl_service.GetModules() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getMonitoringRobot", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringRobot() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getMonitoringServiceComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringServiceComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getMonitoringServiceEligibilityFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringServiceEligibilityFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getMonitoringUserNotification", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringUserNotification() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getMotherboard", func() { + It("API Call Test", func() { + _, err := sl_service.GetMotherboard() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getNetworkCards", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkCards() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getNetworkComponentFirewallProtectableIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponentFirewallProtectableIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getNetworkGatewayMember", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkGatewayMember() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getNetworkGatewayMemberFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkGatewayMemberFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getNetworkManagementIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkManagementIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getNetworkMonitorAttachedDownHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorAttachedDownHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getNetworkMonitorAttachedDownVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorAttachedDownVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getNetworkMonitorIncidents", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorIncidents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getNetworkMonitors", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitors() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getNetworkStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getNetworkStatusAttribute", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkStatusAttribute() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getNetworkVlans", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlans() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getNextBillingCycleBandwidthAllocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextBillingCycleBandwidthAllocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getNotesHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetNotesHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getNvRamCapacity", func() { + It("API Call Test", func() { + _, err := sl_service.GetNvRamCapacity() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getNvRamComponentModels", func() { + It("API Call Test", func() { + _, err := sl_service.GetNvRamComponentModels() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getOpenCancellationTicket", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenCancellationTicket() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getOperatingSystem", func() { + It("API Call Test", func() { + _, err := sl_service.GetOperatingSystem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getOperatingSystemReferenceCode", func() { + It("API Call Test", func() { + _, err := sl_service.GetOperatingSystemReferenceCode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getOutboundBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetOutboundBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getOutboundPrivateBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetOutboundPrivateBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getOutboundPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetOutboundPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getOverBandwidthAllocationFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetOverBandwidthAllocationFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPMInfo", func() { + It("API Call Test", func() { + _, err := sl_service.GetPMInfo() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getParentBay", func() { + It("API Call Test", func() { + _, err := sl_service.GetParentBay() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getParentHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetParentHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPartitions", func() { + It("API Call Test", func() { + _, err := sl_service.GetPartitions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPointOfPresenceLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetPointOfPresenceLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPowerComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetPowerComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPowerSupply", func() { + It("API Call Test", func() { + _, err := sl_service.GetPowerSupply() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPrimaryBackendIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryBackendIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPrimaryBackendNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryBackendNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPrimaryDriveSize", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryDriveSize() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPrimaryIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPrimaryNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPrivateBackendNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateBackendNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPrivateBandwidthData", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateBandwidthData(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPrivateBandwidthDataSummary", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateBandwidthDataSummary() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPrivateBandwidthGraphImage", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateBandwidthGraphImage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPrivateIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPrivateNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPrivateNetworkOnlyFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateNetworkOnlyFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPrivateVlan", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateVlan() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPrivateVlanByIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateVlanByIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getProcessorCoreAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetProcessorCoreAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getProcessorPhysicalCoreAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetProcessorPhysicalCoreAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getProcessors", func() { + It("API Call Test", func() { + _, err := sl_service.GetProcessors() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getProjectedOverBandwidthAllocationFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetProjectedOverBandwidthAllocationFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getProjectedPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetProjectedPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getProvisionDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetProvisionDate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPublicBandwidthData", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicBandwidthData(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPublicBandwidthDataSummary", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicBandwidthDataSummary() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPublicBandwidthGraphImage", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicBandwidthGraphImage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPublicBandwidthTotal", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicBandwidthTotal(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPublicNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPublicVlan", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicVlan() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getPublicVlanByHostname", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicVlanByHostname(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getRack", func() { + It("API Call Test", func() { + _, err := sl_service.GetRack() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getRaidControllers", func() { + It("API Call Test", func() { + _, err := sl_service.GetRaidControllers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getReadyNodeFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetReadyNodeFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getRecentEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetRecentEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getRecentRemoteManagementCommands", func() { + It("API Call Test", func() { + _, err := sl_service.GetRecentRemoteManagementCommands() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getRegionalInternetRegistry", func() { + It("API Call Test", func() { + _, err := sl_service.GetRegionalInternetRegistry() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getRemoteManagement", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemoteManagement() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getRemoteManagementAccounts", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemoteManagementAccounts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getRemoteManagementComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemoteManagementComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getRemoteManagementUsers", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemoteManagementUsers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getResourceConfigurations", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceConfigurations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getResourceGroupMemberReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceGroupMemberReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getResourceGroupRoles", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceGroupRoles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getResourceGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getReverseDomainRecords", func() { + It("API Call Test", func() { + _, err := sl_service.GetReverseDomainRecords() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getSecurityScanRequests", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecurityScanRequests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getSensorData", func() { + It("API Call Test", func() { + _, err := sl_service.GetSensorData() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getSensorDataWithGraphs", func() { + It("API Call Test", func() { + _, err := sl_service.GetSensorDataWithGraphs() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getServerDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getServerFanSpeedGraphs", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerFanSpeedGraphs() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getServerPowerState", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerPowerState() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getServerRoom", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerRoom() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getServerTemperatureGraphs", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerTemperatureGraphs() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getServiceProvider", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceProvider() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getSoftwareComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getSoftwareGuardExtensionEnabled", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareGuardExtensionEnabled() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getSparePoolBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetSparePoolBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getSshKeys", func() { + It("API Call Test", func() { + _, err := sl_service.GetSshKeys() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getStatisticsRemoteManagement", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatisticsRemoteManagement() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getStorageGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getStorageNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getTagReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetTagReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getTopLevelLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetTopLevelLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getTransactionHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetTransactionHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getUefiBootFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetUefiBootFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getUpgradeItemPrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeItemPrices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getUpgradeRequest", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeRequest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getUpgradeableActiveComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeableActiveComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getUplinkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetUplinkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getUplinkNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetUplinkNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getUserData", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserData() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getUsers", func() { + It("API Call Test", func() { + _, err := sl_service.GetUsers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getValidBlockDeviceTemplateGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetValidBlockDeviceTemplateGroups(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getVirtualChassis", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualChassis() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getVirtualChassisSiblings", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualChassisSiblings() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getVirtualHost", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualHost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getVirtualLicenses", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualLicenses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getVirtualRack", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualRack() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getVirtualRackId", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualRackId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getVirtualRackName", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualRackName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getVirtualizationPlatform", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualizationPlatform() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getWindowsUpdateAvailableUpdates", func() { + It("API Call Test", func() { + _, err := sl_service.GetWindowsUpdateAvailableUpdates() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getWindowsUpdateInstalledUpdates", func() { + It("API Call Test", func() { + _, err := sl_service.GetWindowsUpdateInstalledUpdates() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::getWindowsUpdateStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetWindowsUpdateStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::importVirtualHost", func() { + It("API Call Test", func() { + _, err := sl_service.ImportVirtualHost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::initiateIderaBareMetalRestore", func() { + It("API Call Test", func() { + _, err := sl_service.InitiateIderaBareMetalRestore() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::initiateR1SoftBareMetalRestore", func() { + It("API Call Test", func() { + _, err := sl_service.InitiateR1SoftBareMetalRestore() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::isBackendPingable", func() { + It("API Call Test", func() { + _, err := sl_service.IsBackendPingable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::isPingable", func() { + It("API Call Test", func() { + _, err := sl_service.IsPingable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::isWindowsServer", func() { + It("API Call Test", func() { + _, err := sl_service.IsWindowsServer() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::massFirmwareReflash", func() { + It("API Call Test", func() { + _, err := sl_service.MassFirmwareReflash(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::massFirmwareUpdate", func() { + It("API Call Test", func() { + _, err := sl_service.MassFirmwareUpdate(nil, nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::massHyperThreadingUpdate", func() { + It("API Call Test", func() { + _, err := sl_service.MassHyperThreadingUpdate(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::massReloadOperatingSystem", func() { + It("API Call Test", func() { + _, err := sl_service.MassReloadOperatingSystem(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::massSparePool", func() { + It("API Call Test", func() { + _, err := sl_service.MassSparePool(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::ping", func() { + It("API Call Test", func() { + _, err := sl_service.Ping() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::populateServerRam", func() { + It("API Call Test", func() { + err := sl_service.PopulateServerRam(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::powerCycle", func() { + It("API Call Test", func() { + _, err := sl_service.PowerCycle() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::powerOff", func() { + It("API Call Test", func() { + _, err := sl_service.PowerOff() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::powerOn", func() { + It("API Call Test", func() { + _, err := sl_service.PowerOn() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::rebootDefault", func() { + It("API Call Test", func() { + _, err := sl_service.RebootDefault() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::rebootHard", func() { + It("API Call Test", func() { + _, err := sl_service.RebootHard() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::rebootSoft", func() { + It("API Call Test", func() { + _, err := sl_service.RebootSoft() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::refreshDeviceStatus", func() { + It("API Call Test", func() { + _, err := sl_service.RefreshDeviceStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::reloadCurrentOperatingSystemConfiguration", func() { + It("API Call Test", func() { + _, err := sl_service.ReloadCurrentOperatingSystemConfiguration(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::reloadOperatingSystem", func() { + It("API Call Test", func() { + _, err := sl_service.ReloadOperatingSystem(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::removeAccessToNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToNetworkStorage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::removeAccessToNetworkStorageList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToNetworkStorageList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::removeTags", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveTags(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::runPassmarkCertificationBenchmark", func() { + It("API Call Test", func() { + _, err := sl_service.RunPassmarkCertificationBenchmark() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::setOperatingSystemPassword", func() { + It("API Call Test", func() { + _, err := sl_service.SetOperatingSystemPassword(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::setPrivateNetworkInterfaceSpeed", func() { + It("API Call Test", func() { + _, err := sl_service.SetPrivateNetworkInterfaceSpeed(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::setPublicNetworkInterfaceSpeed", func() { + It("API Call Test", func() { + _, err := sl_service.SetPublicNetworkInterfaceSpeed(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::setTags", func() { + It("API Call Test", func() { + _, err := sl_service.SetTags(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::setUserMetadata", func() { + It("API Call Test", func() { + _, err := sl_service.SetUserMetadata(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::shutdownPrivatePort", func() { + It("API Call Test", func() { + _, err := sl_service.ShutdownPrivatePort() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::shutdownPublicPort", func() { + It("API Call Test", func() { + _, err := sl_service.ShutdownPublicPort() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::sparePool", func() { + It("API Call Test", func() { + _, err := sl_service.SparePool(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::testRaidAlertService", func() { + It("API Call Test", func() { + _, err := sl_service.TestRaidAlertService() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::toggleManagementInterface", func() { + It("API Call Test", func() { + _, err := sl_service.ToggleManagementInterface(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::updateIpmiPassword", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateIpmiPassword(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule::validatePartitionsForOperatingSystem", func() { + It("API Call Test", func() { + _, err := sl_service.ValidatePartitionsForOperatingSystem(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Hardware_SecurityModule750 service", func() { + var sl_service services.Hardware_SecurityModule750 + BeforeEach(func() { + sl_service = services.GetHardwareSecurityModule750Service(slsession) + }) + Context("SoftLayer_Hardware_SecurityModule750 Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750 Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::activatePrivatePort", func() { + It("API Call Test", func() { + _, err := sl_service.ActivatePrivatePort() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::activatePublicPort", func() { + It("API Call Test", func() { + _, err := sl_service.ActivatePublicPort() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::allowAccessToNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToNetworkStorage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::allowAccessToNetworkStorageList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToNetworkStorageList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::bootToRescueLayer", func() { + It("API Call Test", func() { + _, err := sl_service.BootToRescueLayer(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::captureImage", func() { + It("API Call Test", func() { + _, err := sl_service.CaptureImage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::createFirmwareReflashTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.CreateFirmwareReflashTransaction(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::createFirmwareUpdateTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.CreateFirmwareUpdateTransaction(nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::createHyperThreadingUpdateTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.CreateHyperThreadingUpdateTransaction(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::createPostSoftwareInstallTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.CreatePostSoftwareInstallTransaction(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::deleteSoftwareComponentPasswords", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteSoftwareComponentPasswords(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::deleteTag", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteTag(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::editSoftwareComponentPasswords", func() { + It("API Call Test", func() { + _, err := sl_service.EditSoftwareComponentPasswords(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::executeRemoteScript", func() { + It("API Call Test", func() { + err := sl_service.ExecuteRemoteScript(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::findByIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.FindByIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::generateOrderTemplate", func() { + It("API Call Test", func() { + _, err := sl_service.GenerateOrderTemplate(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getActiveComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getActiveNetworkFirewallBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveNetworkFirewallBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getActiveNetworkMonitorIncident", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveNetworkMonitorIncident() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getActiveTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getActiveTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveTransaction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getActiveTransactions", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveTransactions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getAllPowerComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllPowerComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getAllowedHost", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedHost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getAllowedNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getAllowedNetworkStorageReplicas", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedNetworkStorageReplicas() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getAntivirusSpywareSoftwareComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetAntivirusSpywareSoftwareComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getAttachedNetworkStorages", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedNetworkStorages(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getAvailableBillingTermChangePrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableBillingTermChangePrices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getAvailableMonitoring", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableMonitoring() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getAvailableNetworkStorages", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableNetworkStorages(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getAverageDailyBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageDailyBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getAverageDailyPrivateBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageDailyPrivateBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getAverageDailyPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageDailyPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getBackendBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendBandwidthUsage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getBackendIncomingBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendIncomingBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getBackendNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getBackendOutgoingBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendOutgoingBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getBackendRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getBandwidthAllocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthAllocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getBandwidthAllotmentDetail", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthAllotmentDetail() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getBandwidthForDateRange", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthForDateRange(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getBandwidthImage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthImage(nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getBenchmarkCertifications", func() { + It("API Call Test", func() { + _, err := sl_service.GetBenchmarkCertifications() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getBillingCycleBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingCycleBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getBillingCyclePrivateBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingCyclePrivateBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getBillingCyclePublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingCyclePublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getBillingItemFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItemFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getBiosPasswordNullFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBiosPasswordNullFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getBlockCancelBecauseDisconnectedFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBlockCancelBecauseDisconnectedFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getBootModeOptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetBootModeOptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getBusinessContinuanceInsuranceFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBusinessContinuanceInsuranceFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getCaptureEnabledFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetCaptureEnabledFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getChildrenHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetChildrenHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getComponentDetailsXML", func() { + It("API Call Test", func() { + _, err := sl_service.GetComponentDetailsXML() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getContainsSolidStateDrivesFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetContainsSolidStateDrivesFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getContinuousDataProtectionSoftwareComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetContinuousDataProtectionSoftwareComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getControlPanel", func() { + It("API Call Test", func() { + _, err := sl_service.GetControlPanel() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getCost", func() { + It("API Call Test", func() { + _, err := sl_service.GetCost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getCreateObjectOptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetCreateObjectOptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getCurrentBandwidthSummary", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBandwidthSummary() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getCurrentBenchmarkCertificationResultFile", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBenchmarkCertificationResultFile() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getCurrentBillableBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBillableBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getCurrentBillingDetail", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBillingDetail() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getCurrentBillingTotal", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBillingTotal() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getCustomerInstalledOperatingSystemFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetCustomerInstalledOperatingSystemFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getCustomerOwnedFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetCustomerOwnedFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getDailyAverage", func() { + It("API Call Test", func() { + _, err := sl_service.GetDailyAverage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getDatacenter", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getDatacenterName", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenterName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getDaysInSparePool", func() { + It("API Call Test", func() { + _, err := sl_service.GetDaysInSparePool() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getDownlinkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownlinkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getDownlinkNetworkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownlinkNetworkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getDownlinkServers", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownlinkServers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getDownlinkVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownlinkVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getDownstreamHardwareBindings", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamHardwareBindings() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getDownstreamNetworkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamNetworkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getDownstreamNetworkHardwareWithIncidents", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamNetworkHardwareWithIncidents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getDownstreamServers", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamServers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getDownstreamVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getDriveControllers", func() { + It("API Call Test", func() { + _, err := sl_service.GetDriveControllers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getEvaultNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetEvaultNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getFirewallProtectableSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallProtectableSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getFirewallServiceComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallServiceComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getFixedConfigurationPreset", func() { + It("API Call Test", func() { + _, err := sl_service.GetFixedConfigurationPreset() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getFrontendBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendBandwidthUsage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getFrontendIncomingBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendIncomingBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getFrontendNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getFrontendOutgoingBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendOutgoingBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getFrontendRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getFutureBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetFutureBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getGlobalIdentifier", func() { + It("API Call Test", func() { + _, err := sl_service.GetGlobalIdentifier() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getHardDrives", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardDrives() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getHardwareByIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareByIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getHardwareChassis", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareChassis() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getHardwareFunction", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareFunction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getHardwareFunctionDescription", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareFunctionDescription() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getHardwareState", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareState() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getHardwareStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getHasSingleRootVirtualizationBillingItemFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasSingleRootVirtualizationBillingItemFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getHasTrustedPlatformModuleBillingItemFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasTrustedPlatformModuleBillingItemFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getHostIpsSoftwareComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetHostIpsSoftwareComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getHourlyBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlyBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getHourlyBillingFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlyBillingFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getInboundBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetInboundBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getInboundPrivateBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetInboundPrivateBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getInboundPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetInboundPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getIsBillingTermChangeAvailableFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsBillingTermChangeAvailableFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getIsCloudReadyNodeCertified", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsCloudReadyNodeCertified() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getIsIpmiDisabled", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsIpmiDisabled() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getIsQeInternalServer", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsQeInternalServer() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getIsVirtualPrivateCloudNode", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsVirtualPrivateCloudNode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getItemPricesFromSoftwareDescriptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetItemPricesFromSoftwareDescriptions(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getLastOperatingSystemReload", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastOperatingSystemReload() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getLastTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastTransaction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getLatestNetworkMonitorIncident", func() { + It("API Call Test", func() { + _, err := sl_service.GetLatestNetworkMonitorIncident() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getLocationPathString", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationPathString() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getLockboxNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetLockboxNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getLogicalVolumeStorageGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetLogicalVolumeStorageGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getManagedResourceFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetManagedResourceFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getManagementNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetManagementNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getMemory", func() { + It("API Call Test", func() { + _, err := sl_service.GetMemory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getMemoryCapacity", func() { + It("API Call Test", func() { + _, err := sl_service.GetMemoryCapacity() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getMetricTrackingObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getMetricTrackingObjectId", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObjectId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getModules", func() { + It("API Call Test", func() { + _, err := sl_service.GetModules() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getMonitoringRobot", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringRobot() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getMonitoringServiceComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringServiceComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getMonitoringServiceEligibilityFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringServiceEligibilityFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getMonitoringUserNotification", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringUserNotification() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getMotherboard", func() { + It("API Call Test", func() { + _, err := sl_service.GetMotherboard() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getNetworkCards", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkCards() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getNetworkComponentFirewallProtectableIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponentFirewallProtectableIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getNetworkGatewayMember", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkGatewayMember() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getNetworkGatewayMemberFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkGatewayMemberFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getNetworkManagementIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkManagementIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getNetworkMonitorAttachedDownHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorAttachedDownHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getNetworkMonitorAttachedDownVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorAttachedDownVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getNetworkMonitorIncidents", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorIncidents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getNetworkMonitors", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitors() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getNetworkStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getNetworkStatusAttribute", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkStatusAttribute() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getNetworkVlans", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlans() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getNextBillingCycleBandwidthAllocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextBillingCycleBandwidthAllocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getNotesHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetNotesHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getNvRamCapacity", func() { + It("API Call Test", func() { + _, err := sl_service.GetNvRamCapacity() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getNvRamComponentModels", func() { + It("API Call Test", func() { + _, err := sl_service.GetNvRamComponentModels() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getOpenCancellationTicket", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenCancellationTicket() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getOperatingSystem", func() { + It("API Call Test", func() { + _, err := sl_service.GetOperatingSystem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getOperatingSystemReferenceCode", func() { + It("API Call Test", func() { + _, err := sl_service.GetOperatingSystemReferenceCode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getOutboundBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetOutboundBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getOutboundPrivateBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetOutboundPrivateBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getOutboundPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetOutboundPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getOverBandwidthAllocationFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetOverBandwidthAllocationFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPMInfo", func() { + It("API Call Test", func() { + _, err := sl_service.GetPMInfo() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getParentBay", func() { + It("API Call Test", func() { + _, err := sl_service.GetParentBay() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getParentHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetParentHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPartitions", func() { + It("API Call Test", func() { + _, err := sl_service.GetPartitions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPointOfPresenceLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetPointOfPresenceLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPowerComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetPowerComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPowerSupply", func() { + It("API Call Test", func() { + _, err := sl_service.GetPowerSupply() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPrimaryBackendIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryBackendIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPrimaryBackendNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryBackendNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPrimaryDriveSize", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryDriveSize() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPrimaryIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPrimaryNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPrivateBackendNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateBackendNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPrivateBandwidthData", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateBandwidthData(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPrivateBandwidthDataSummary", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateBandwidthDataSummary() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPrivateBandwidthGraphImage", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateBandwidthGraphImage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPrivateIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPrivateNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPrivateNetworkOnlyFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateNetworkOnlyFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPrivateVlan", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateVlan() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPrivateVlanByIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateVlanByIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getProcessorCoreAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetProcessorCoreAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getProcessorPhysicalCoreAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetProcessorPhysicalCoreAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getProcessors", func() { + It("API Call Test", func() { + _, err := sl_service.GetProcessors() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getProjectedOverBandwidthAllocationFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetProjectedOverBandwidthAllocationFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getProjectedPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetProjectedPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getProvisionDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetProvisionDate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPublicBandwidthData", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicBandwidthData(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPublicBandwidthDataSummary", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicBandwidthDataSummary() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPublicBandwidthGraphImage", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicBandwidthGraphImage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPublicBandwidthTotal", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicBandwidthTotal(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPublicNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPublicVlan", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicVlan() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getPublicVlanByHostname", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicVlanByHostname(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getRack", func() { + It("API Call Test", func() { + _, err := sl_service.GetRack() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getRaidControllers", func() { + It("API Call Test", func() { + _, err := sl_service.GetRaidControllers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getReadyNodeFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetReadyNodeFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getRecentEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetRecentEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getRecentRemoteManagementCommands", func() { + It("API Call Test", func() { + _, err := sl_service.GetRecentRemoteManagementCommands() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getRegionalInternetRegistry", func() { + It("API Call Test", func() { + _, err := sl_service.GetRegionalInternetRegistry() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getRemoteManagement", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemoteManagement() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getRemoteManagementAccounts", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemoteManagementAccounts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getRemoteManagementComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemoteManagementComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getRemoteManagementUsers", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemoteManagementUsers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getResourceConfigurations", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceConfigurations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getResourceGroupMemberReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceGroupMemberReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getResourceGroupRoles", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceGroupRoles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getResourceGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getReverseDomainRecords", func() { + It("API Call Test", func() { + _, err := sl_service.GetReverseDomainRecords() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getSecurityScanRequests", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecurityScanRequests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getSensorData", func() { + It("API Call Test", func() { + _, err := sl_service.GetSensorData() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getSensorDataWithGraphs", func() { + It("API Call Test", func() { + _, err := sl_service.GetSensorDataWithGraphs() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getServerDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getServerFanSpeedGraphs", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerFanSpeedGraphs() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getServerPowerState", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerPowerState() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getServerRoom", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerRoom() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getServerTemperatureGraphs", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerTemperatureGraphs() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getServiceProvider", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceProvider() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getSoftwareComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getSoftwareGuardExtensionEnabled", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareGuardExtensionEnabled() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getSparePoolBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetSparePoolBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getSshKeys", func() { + It("API Call Test", func() { + _, err := sl_service.GetSshKeys() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getStatisticsRemoteManagement", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatisticsRemoteManagement() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getStorageGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getStorageNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getTagReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetTagReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getTopLevelLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetTopLevelLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getTransactionHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetTransactionHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getUefiBootFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetUefiBootFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getUpgradeItemPrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeItemPrices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getUpgradeRequest", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeRequest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getUpgradeableActiveComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeableActiveComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getUplinkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetUplinkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getUplinkNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetUplinkNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getUserData", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserData() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getUsers", func() { + It("API Call Test", func() { + _, err := sl_service.GetUsers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getValidBlockDeviceTemplateGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetValidBlockDeviceTemplateGroups(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getVirtualChassis", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualChassis() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getVirtualChassisSiblings", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualChassisSiblings() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getVirtualHost", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualHost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getVirtualLicenses", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualLicenses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getVirtualRack", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualRack() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getVirtualRackId", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualRackId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getVirtualRackName", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualRackName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getVirtualizationPlatform", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualizationPlatform() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getWindowsUpdateAvailableUpdates", func() { + It("API Call Test", func() { + _, err := sl_service.GetWindowsUpdateAvailableUpdates() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getWindowsUpdateInstalledUpdates", func() { + It("API Call Test", func() { + _, err := sl_service.GetWindowsUpdateInstalledUpdates() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::getWindowsUpdateStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetWindowsUpdateStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::importVirtualHost", func() { + It("API Call Test", func() { + _, err := sl_service.ImportVirtualHost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::initiateIderaBareMetalRestore", func() { + It("API Call Test", func() { + _, err := sl_service.InitiateIderaBareMetalRestore() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::initiateR1SoftBareMetalRestore", func() { + It("API Call Test", func() { + _, err := sl_service.InitiateR1SoftBareMetalRestore() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::isBackendPingable", func() { + It("API Call Test", func() { + _, err := sl_service.IsBackendPingable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::isPingable", func() { + It("API Call Test", func() { + _, err := sl_service.IsPingable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::isWindowsServer", func() { + It("API Call Test", func() { + _, err := sl_service.IsWindowsServer() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::massFirmwareReflash", func() { + It("API Call Test", func() { + _, err := sl_service.MassFirmwareReflash(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::massFirmwareUpdate", func() { + It("API Call Test", func() { + _, err := sl_service.MassFirmwareUpdate(nil, nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::massHyperThreadingUpdate", func() { + It("API Call Test", func() { + _, err := sl_service.MassHyperThreadingUpdate(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::massReloadOperatingSystem", func() { + It("API Call Test", func() { + _, err := sl_service.MassReloadOperatingSystem(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::massSparePool", func() { + It("API Call Test", func() { + _, err := sl_service.MassSparePool(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::ping", func() { + It("API Call Test", func() { + _, err := sl_service.Ping() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::populateServerRam", func() { + It("API Call Test", func() { + err := sl_service.PopulateServerRam(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::powerCycle", func() { + It("API Call Test", func() { + _, err := sl_service.PowerCycle() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::powerOff", func() { + It("API Call Test", func() { + _, err := sl_service.PowerOff() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::powerOn", func() { + It("API Call Test", func() { + _, err := sl_service.PowerOn() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::rebootDefault", func() { + It("API Call Test", func() { + _, err := sl_service.RebootDefault() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::rebootHard", func() { + It("API Call Test", func() { + _, err := sl_service.RebootHard() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::rebootSoft", func() { + It("API Call Test", func() { + _, err := sl_service.RebootSoft() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::refreshDeviceStatus", func() { + It("API Call Test", func() { + _, err := sl_service.RefreshDeviceStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::reloadCurrentOperatingSystemConfiguration", func() { + It("API Call Test", func() { + _, err := sl_service.ReloadCurrentOperatingSystemConfiguration(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::reloadOperatingSystem", func() { + It("API Call Test", func() { + _, err := sl_service.ReloadOperatingSystem(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::removeAccessToNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToNetworkStorage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::removeAccessToNetworkStorageList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToNetworkStorageList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::removeTags", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveTags(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::runPassmarkCertificationBenchmark", func() { + It("API Call Test", func() { + _, err := sl_service.RunPassmarkCertificationBenchmark() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::setOperatingSystemPassword", func() { + It("API Call Test", func() { + _, err := sl_service.SetOperatingSystemPassword(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::setPrivateNetworkInterfaceSpeed", func() { + It("API Call Test", func() { + _, err := sl_service.SetPrivateNetworkInterfaceSpeed(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::setPublicNetworkInterfaceSpeed", func() { + It("API Call Test", func() { + _, err := sl_service.SetPublicNetworkInterfaceSpeed(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::setTags", func() { + It("API Call Test", func() { + _, err := sl_service.SetTags(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::setUserMetadata", func() { + It("API Call Test", func() { + _, err := sl_service.SetUserMetadata(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::shutdownPrivatePort", func() { + It("API Call Test", func() { + _, err := sl_service.ShutdownPrivatePort() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::shutdownPublicPort", func() { + It("API Call Test", func() { + _, err := sl_service.ShutdownPublicPort() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::sparePool", func() { + It("API Call Test", func() { + _, err := sl_service.SparePool(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::testRaidAlertService", func() { + It("API Call Test", func() { + _, err := sl_service.TestRaidAlertService() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::toggleManagementInterface", func() { + It("API Call Test", func() { + _, err := sl_service.ToggleManagementInterface(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::updateIpmiPassword", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateIpmiPassword(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_SecurityModule750::validatePartitionsForOperatingSystem", func() { + It("API Call Test", func() { + _, err := sl_service.ValidatePartitionsForOperatingSystem(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Hardware_Server service", func() { + var sl_service services.Hardware_Server + BeforeEach(func() { + sl_service = services.GetHardwareServerService(slsession) + }) + Context("SoftLayer_Hardware_Server Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Hardware_Server Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Hardware_Server::activatePrivatePort", func() { + It("API Call Test", func() { + _, err := sl_service.ActivatePrivatePort() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::activatePublicPort", func() { + It("API Call Test", func() { + _, err := sl_service.ActivatePublicPort() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::allowAccessToNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToNetworkStorage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::allowAccessToNetworkStorageList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToNetworkStorageList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::bootToRescueLayer", func() { + It("API Call Test", func() { + _, err := sl_service.BootToRescueLayer(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::captureImage", func() { + It("API Call Test", func() { + _, err := sl_service.CaptureImage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::createFirmwareReflashTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.CreateFirmwareReflashTransaction(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::createFirmwareUpdateTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.CreateFirmwareUpdateTransaction(nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::createHyperThreadingUpdateTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.CreateHyperThreadingUpdateTransaction(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::createPostSoftwareInstallTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.CreatePostSoftwareInstallTransaction(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::deleteSoftwareComponentPasswords", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteSoftwareComponentPasswords(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::deleteTag", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteTag(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::editSoftwareComponentPasswords", func() { + It("API Call Test", func() { + _, err := sl_service.EditSoftwareComponentPasswords(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::executeRemoteScript", func() { + It("API Call Test", func() { + err := sl_service.ExecuteRemoteScript(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::findByIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.FindByIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::generateOrderTemplate", func() { + It("API Call Test", func() { + _, err := sl_service.GenerateOrderTemplate(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getActiveComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getActiveNetworkFirewallBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveNetworkFirewallBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getActiveNetworkMonitorIncident", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveNetworkMonitorIncident() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getActiveTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getActiveTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveTransaction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getActiveTransactions", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveTransactions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getAllPowerComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllPowerComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getAllowedHost", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedHost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getAllowedNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getAllowedNetworkStorageReplicas", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedNetworkStorageReplicas() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getAntivirusSpywareSoftwareComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetAntivirusSpywareSoftwareComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getAttachedNetworkStorages", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedNetworkStorages(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getAvailableBillingTermChangePrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableBillingTermChangePrices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getAvailableMonitoring", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableMonitoring() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getAvailableNetworkStorages", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableNetworkStorages(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getAverageDailyBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageDailyBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getAverageDailyPrivateBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageDailyPrivateBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getAverageDailyPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageDailyPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getBackendBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendBandwidthUsage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getBackendIncomingBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendIncomingBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getBackendNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getBackendOutgoingBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendOutgoingBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getBackendRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getBandwidthAllocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthAllocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getBandwidthAllotmentDetail", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthAllotmentDetail() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getBandwidthForDateRange", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthForDateRange(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getBandwidthImage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthImage(nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getBenchmarkCertifications", func() { + It("API Call Test", func() { + _, err := sl_service.GetBenchmarkCertifications() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getBillingCycleBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingCycleBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getBillingCyclePrivateBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingCyclePrivateBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getBillingCyclePublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingCyclePublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getBillingItemFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItemFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getBiosPasswordNullFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBiosPasswordNullFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getBlockCancelBecauseDisconnectedFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBlockCancelBecauseDisconnectedFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getBootModeOptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetBootModeOptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getBusinessContinuanceInsuranceFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBusinessContinuanceInsuranceFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getCaptureEnabledFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetCaptureEnabledFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getChildrenHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetChildrenHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getComponentDetailsXML", func() { + It("API Call Test", func() { + _, err := sl_service.GetComponentDetailsXML() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getContainsSolidStateDrivesFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetContainsSolidStateDrivesFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getContinuousDataProtectionSoftwareComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetContinuousDataProtectionSoftwareComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getControlPanel", func() { + It("API Call Test", func() { + _, err := sl_service.GetControlPanel() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getCost", func() { + It("API Call Test", func() { + _, err := sl_service.GetCost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getCreateObjectOptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetCreateObjectOptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getCurrentBandwidthSummary", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBandwidthSummary() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getCurrentBenchmarkCertificationResultFile", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBenchmarkCertificationResultFile() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getCurrentBillableBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBillableBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getCurrentBillingDetail", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBillingDetail() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getCurrentBillingTotal", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBillingTotal() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getCustomerInstalledOperatingSystemFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetCustomerInstalledOperatingSystemFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getCustomerOwnedFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetCustomerOwnedFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getDailyAverage", func() { + It("API Call Test", func() { + _, err := sl_service.GetDailyAverage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getDatacenter", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getDatacenterName", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenterName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getDaysInSparePool", func() { + It("API Call Test", func() { + _, err := sl_service.GetDaysInSparePool() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getDownlinkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownlinkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getDownlinkNetworkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownlinkNetworkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getDownlinkServers", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownlinkServers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getDownlinkVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownlinkVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getDownstreamHardwareBindings", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamHardwareBindings() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getDownstreamNetworkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamNetworkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getDownstreamNetworkHardwareWithIncidents", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamNetworkHardwareWithIncidents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getDownstreamServers", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamServers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getDownstreamVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownstreamVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getDriveControllers", func() { + It("API Call Test", func() { + _, err := sl_service.GetDriveControllers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getEvaultNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetEvaultNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getFirewallProtectableSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallProtectableSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getFirewallServiceComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallServiceComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getFixedConfigurationPreset", func() { + It("API Call Test", func() { + _, err := sl_service.GetFixedConfigurationPreset() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getFrontendBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendBandwidthUsage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getFrontendIncomingBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendIncomingBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getFrontendNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getFrontendOutgoingBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendOutgoingBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getFrontendRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getFutureBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetFutureBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getGlobalIdentifier", func() { + It("API Call Test", func() { + _, err := sl_service.GetGlobalIdentifier() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getHardDrives", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardDrives() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getHardwareByIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareByIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getHardwareChassis", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareChassis() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getHardwareFunction", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareFunction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getHardwareFunctionDescription", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareFunctionDescription() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getHardwareState", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareState() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getHardwareStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getHasSingleRootVirtualizationBillingItemFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasSingleRootVirtualizationBillingItemFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getHasTrustedPlatformModuleBillingItemFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasTrustedPlatformModuleBillingItemFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getHostIpsSoftwareComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetHostIpsSoftwareComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getHourlyBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlyBandwidth(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getHourlyBillingFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlyBillingFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getInboundBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetInboundBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getInboundPrivateBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetInboundPrivateBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getInboundPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetInboundPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getIsBillingTermChangeAvailableFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsBillingTermChangeAvailableFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getIsCloudReadyNodeCertified", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsCloudReadyNodeCertified() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getIsIpmiDisabled", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsIpmiDisabled() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getIsQeInternalServer", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsQeInternalServer() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getIsVirtualPrivateCloudNode", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsVirtualPrivateCloudNode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getItemPricesFromSoftwareDescriptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetItemPricesFromSoftwareDescriptions(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getLastOperatingSystemReload", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastOperatingSystemReload() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getLastTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastTransaction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getLatestNetworkMonitorIncident", func() { + It("API Call Test", func() { + _, err := sl_service.GetLatestNetworkMonitorIncident() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getLocationPathString", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationPathString() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getLockboxNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetLockboxNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getLogicalVolumeStorageGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetLogicalVolumeStorageGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getManagedResourceFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetManagedResourceFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getManagementNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetManagementNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getMemory", func() { + It("API Call Test", func() { + _, err := sl_service.GetMemory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getMemoryCapacity", func() { + It("API Call Test", func() { + _, err := sl_service.GetMemoryCapacity() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getMetricTrackingObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getMetricTrackingObjectId", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObjectId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getModules", func() { + It("API Call Test", func() { + _, err := sl_service.GetModules() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getMonitoringRobot", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringRobot() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getMonitoringServiceComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringServiceComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getMonitoringServiceEligibilityFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringServiceEligibilityFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getMonitoringUserNotification", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringUserNotification() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getMotherboard", func() { + It("API Call Test", func() { + _, err := sl_service.GetMotherboard() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getNetworkCards", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkCards() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getNetworkComponentFirewallProtectableIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponentFirewallProtectableIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getNetworkGatewayMember", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkGatewayMember() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getNetworkGatewayMemberFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkGatewayMemberFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getNetworkManagementIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkManagementIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getNetworkMonitorAttachedDownHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorAttachedDownHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getNetworkMonitorAttachedDownVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorAttachedDownVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getNetworkMonitorIncidents", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorIncidents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getNetworkMonitors", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitors() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getNetworkStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getNetworkStatusAttribute", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkStatusAttribute() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getNetworkVlans", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlans() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getNextBillingCycleBandwidthAllocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextBillingCycleBandwidthAllocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getNotesHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetNotesHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getNvRamCapacity", func() { + It("API Call Test", func() { + _, err := sl_service.GetNvRamCapacity() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getNvRamComponentModels", func() { + It("API Call Test", func() { + _, err := sl_service.GetNvRamComponentModels() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getOpenCancellationTicket", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenCancellationTicket() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getOperatingSystem", func() { + It("API Call Test", func() { + _, err := sl_service.GetOperatingSystem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getOperatingSystemReferenceCode", func() { + It("API Call Test", func() { + _, err := sl_service.GetOperatingSystemReferenceCode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getOutboundBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetOutboundBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getOutboundPrivateBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetOutboundPrivateBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getOutboundPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetOutboundPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getOverBandwidthAllocationFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetOverBandwidthAllocationFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPMInfo", func() { + It("API Call Test", func() { + _, err := sl_service.GetPMInfo() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getParentBay", func() { + It("API Call Test", func() { + _, err := sl_service.GetParentBay() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getParentHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetParentHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPartitions", func() { + It("API Call Test", func() { + _, err := sl_service.GetPartitions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPointOfPresenceLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetPointOfPresenceLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPowerComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetPowerComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPowerSupply", func() { + It("API Call Test", func() { + _, err := sl_service.GetPowerSupply() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPrimaryBackendIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryBackendIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPrimaryBackendNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryBackendNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPrimaryDriveSize", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryDriveSize() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPrimaryIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPrimaryNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPrivateBackendNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateBackendNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPrivateBandwidthData", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateBandwidthData(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPrivateBandwidthDataSummary", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateBandwidthDataSummary() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPrivateBandwidthGraphImage", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateBandwidthGraphImage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPrivateIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPrivateNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPrivateNetworkOnlyFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateNetworkOnlyFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPrivateVlan", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateVlan() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPrivateVlanByIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateVlanByIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getProcessorCoreAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetProcessorCoreAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getProcessorPhysicalCoreAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetProcessorPhysicalCoreAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getProcessors", func() { + It("API Call Test", func() { + _, err := sl_service.GetProcessors() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getProjectedOverBandwidthAllocationFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetProjectedOverBandwidthAllocationFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getProjectedPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetProjectedPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getProvisionDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetProvisionDate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPublicBandwidthData", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicBandwidthData(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPublicBandwidthDataSummary", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicBandwidthDataSummary() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPublicBandwidthGraphImage", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicBandwidthGraphImage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPublicBandwidthTotal", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicBandwidthTotal(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPublicNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPublicVlan", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicVlan() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getPublicVlanByHostname", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicVlanByHostname(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getRack", func() { + It("API Call Test", func() { + _, err := sl_service.GetRack() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getRaidControllers", func() { + It("API Call Test", func() { + _, err := sl_service.GetRaidControllers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getReadyNodeFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetReadyNodeFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getRecentEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetRecentEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getRecentRemoteManagementCommands", func() { + It("API Call Test", func() { + _, err := sl_service.GetRecentRemoteManagementCommands() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getRegionalInternetRegistry", func() { + It("API Call Test", func() { + _, err := sl_service.GetRegionalInternetRegistry() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getRemoteManagement", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemoteManagement() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getRemoteManagementAccounts", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemoteManagementAccounts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getRemoteManagementComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemoteManagementComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getRemoteManagementUsers", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemoteManagementUsers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getResourceConfigurations", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceConfigurations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getResourceGroupMemberReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceGroupMemberReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getResourceGroupRoles", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceGroupRoles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getResourceGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getReverseDomainRecords", func() { + It("API Call Test", func() { + _, err := sl_service.GetReverseDomainRecords() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getSecurityScanRequests", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecurityScanRequests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getSensorData", func() { + It("API Call Test", func() { + _, err := sl_service.GetSensorData() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getSensorDataWithGraphs", func() { + It("API Call Test", func() { + _, err := sl_service.GetSensorDataWithGraphs() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getServerDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getServerFanSpeedGraphs", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerFanSpeedGraphs() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getServerPowerState", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerPowerState() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getServerRoom", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerRoom() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getServerTemperatureGraphs", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerTemperatureGraphs() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getServiceProvider", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceProvider() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getSoftwareComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getSoftwareGuardExtensionEnabled", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareGuardExtensionEnabled() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getSparePoolBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetSparePoolBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getSshKeys", func() { + It("API Call Test", func() { + _, err := sl_service.GetSshKeys() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getStatisticsRemoteManagement", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatisticsRemoteManagement() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getStorageGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getStorageNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getTagReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetTagReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getTopLevelLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetTopLevelLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getTransactionHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetTransactionHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getUefiBootFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetUefiBootFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getUpgradeItemPrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeItemPrices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getUpgradeRequest", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeRequest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getUpgradeableActiveComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeableActiveComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getUplinkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetUplinkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getUplinkNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetUplinkNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getUserData", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserData() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getUsers", func() { + It("API Call Test", func() { + _, err := sl_service.GetUsers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getValidBlockDeviceTemplateGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetValidBlockDeviceTemplateGroups(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getVirtualChassis", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualChassis() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getVirtualChassisSiblings", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualChassisSiblings() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getVirtualHost", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualHost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getVirtualLicenses", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualLicenses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getVirtualRack", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualRack() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getVirtualRackId", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualRackId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getVirtualRackName", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualRackName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getVirtualizationPlatform", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualizationPlatform() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getWindowsUpdateAvailableUpdates", func() { + It("API Call Test", func() { + _, err := sl_service.GetWindowsUpdateAvailableUpdates() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getWindowsUpdateInstalledUpdates", func() { + It("API Call Test", func() { + _, err := sl_service.GetWindowsUpdateInstalledUpdates() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::getWindowsUpdateStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetWindowsUpdateStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::importVirtualHost", func() { + It("API Call Test", func() { + _, err := sl_service.ImportVirtualHost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::initiateIderaBareMetalRestore", func() { + It("API Call Test", func() { + _, err := sl_service.InitiateIderaBareMetalRestore() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::initiateR1SoftBareMetalRestore", func() { + It("API Call Test", func() { + _, err := sl_service.InitiateR1SoftBareMetalRestore() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::isBackendPingable", func() { + It("API Call Test", func() { + _, err := sl_service.IsBackendPingable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::isPingable", func() { + It("API Call Test", func() { + _, err := sl_service.IsPingable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::isWindowsServer", func() { + It("API Call Test", func() { + _, err := sl_service.IsWindowsServer() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::massFirmwareReflash", func() { + It("API Call Test", func() { + _, err := sl_service.MassFirmwareReflash(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::massFirmwareUpdate", func() { + It("API Call Test", func() { + _, err := sl_service.MassFirmwareUpdate(nil, nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::massHyperThreadingUpdate", func() { + It("API Call Test", func() { + _, err := sl_service.MassHyperThreadingUpdate(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::massReloadOperatingSystem", func() { + It("API Call Test", func() { + _, err := sl_service.MassReloadOperatingSystem(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::massSparePool", func() { + It("API Call Test", func() { + _, err := sl_service.MassSparePool(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::ping", func() { + It("API Call Test", func() { + _, err := sl_service.Ping() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::populateServerRam", func() { + It("API Call Test", func() { + err := sl_service.PopulateServerRam(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::powerCycle", func() { + It("API Call Test", func() { + _, err := sl_service.PowerCycle() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::powerOff", func() { + It("API Call Test", func() { + _, err := sl_service.PowerOff() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::powerOn", func() { + It("API Call Test", func() { + _, err := sl_service.PowerOn() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::rebootDefault", func() { + It("API Call Test", func() { + _, err := sl_service.RebootDefault() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::rebootHard", func() { + It("API Call Test", func() { + _, err := sl_service.RebootHard() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::rebootSoft", func() { + It("API Call Test", func() { + _, err := sl_service.RebootSoft() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::refreshDeviceStatus", func() { + It("API Call Test", func() { + _, err := sl_service.RefreshDeviceStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::reloadCurrentOperatingSystemConfiguration", func() { + It("API Call Test", func() { + _, err := sl_service.ReloadCurrentOperatingSystemConfiguration(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::reloadOperatingSystem", func() { + It("API Call Test", func() { + _, err := sl_service.ReloadOperatingSystem(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::removeAccessToNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToNetworkStorage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::removeAccessToNetworkStorageList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToNetworkStorageList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::removeTags", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveTags(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::runPassmarkCertificationBenchmark", func() { + It("API Call Test", func() { + _, err := sl_service.RunPassmarkCertificationBenchmark() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::setOperatingSystemPassword", func() { + It("API Call Test", func() { + _, err := sl_service.SetOperatingSystemPassword(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::setPrivateNetworkInterfaceSpeed", func() { + It("API Call Test", func() { + _, err := sl_service.SetPrivateNetworkInterfaceSpeed(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::setPublicNetworkInterfaceSpeed", func() { + It("API Call Test", func() { + _, err := sl_service.SetPublicNetworkInterfaceSpeed(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::setTags", func() { + It("API Call Test", func() { + _, err := sl_service.SetTags(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::setUserMetadata", func() { + It("API Call Test", func() { + _, err := sl_service.SetUserMetadata(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::shutdownPrivatePort", func() { + It("API Call Test", func() { + _, err := sl_service.ShutdownPrivatePort() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::shutdownPublicPort", func() { + It("API Call Test", func() { + _, err := sl_service.ShutdownPublicPort() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::sparePool", func() { + It("API Call Test", func() { + _, err := sl_service.SparePool(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::testRaidAlertService", func() { + It("API Call Test", func() { + _, err := sl_service.TestRaidAlertService() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::toggleManagementInterface", func() { + It("API Call Test", func() { + _, err := sl_service.ToggleManagementInterface(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::updateIpmiPassword", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateIpmiPassword(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Hardware_Server::validatePartitionsForOperatingSystem", func() { + It("API Call Test", func() { + _, err := sl_service.ValidatePartitionsForOperatingSystem(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/layout.go b/services/layout.go index 61a0b9a..14373c6 100644 --- a/services/layout.go +++ b/services/layout.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // The SoftLayer_Layout_Container contains definitions for default page layouts type Layout_Container struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetLayoutContainerService returns an instance of the Layout_Container SoftLayer service -func GetLayoutContainerService(sess *session.Session) Layout_Container { +func GetLayoutContainerService(sess session.SLSession) Layout_Container { return Layout_Container{Session: sess} } @@ -95,12 +88,12 @@ func (r Layout_Container) GetObject() (resp datatypes.Layout_Container, err erro // The SoftLayer_Layout_Item contains definitions for default layout items type Layout_Item struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetLayoutItemService returns an instance of the Layout_Item SoftLayer service -func GetLayoutItemService(sess *session.Session) Layout_Item { +func GetLayoutItemService(sess session.SLSession) Layout_Item { return Layout_Item{Session: sess} } @@ -153,12 +146,12 @@ func (r Layout_Item) GetObject() (resp datatypes.Layout_Item, err error) { // The SoftLayer_Layout_Profile contains the definition of the layout profile type Layout_Profile struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetLayoutProfileService returns an instance of the Layout_Profile SoftLayer service -func GetLayoutProfileService(sess *session.Session) Layout_Profile { +func GetLayoutProfileService(sess session.SLSession) Layout_Profile { return Layout_Profile{Session: sess} } @@ -257,12 +250,12 @@ func (r Layout_Profile) ModifyPreferences(layoutPreferenceObjects []datatypes.La // no documentation yet type Layout_Profile_Containers struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetLayoutProfileContainersService returns an instance of the Layout_Profile_Containers SoftLayer service -func GetLayoutProfileContainersService(sess *session.Session) Layout_Profile_Containers { +func GetLayoutProfileContainersService(sess session.SLSession) Layout_Profile_Containers { return Layout_Profile_Containers{Session: sess} } @@ -333,12 +326,12 @@ func (r Layout_Profile_Containers) GetObject() (resp datatypes.Layout_Profile_Co // no documentation yet type Layout_Profile_Customer struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetLayoutProfileCustomerService returns an instance of the Layout_Profile_Customer SoftLayer service -func GetLayoutProfileCustomerService(sess *session.Session) Layout_Profile_Customer { +func GetLayoutProfileCustomerService(sess session.SLSession) Layout_Profile_Customer { return Layout_Profile_Customer{Session: sess} } @@ -443,12 +436,12 @@ func (r Layout_Profile_Customer) ModifyPreferences(layoutPreferenceObjects []dat // The SoftLayer_Layout_Profile_Preference contains definitions for layout preferences type Layout_Profile_Preference struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetLayoutProfilePreferenceService returns an instance of the Layout_Profile_Preference SoftLayer service -func GetLayoutProfilePreferenceService(sess *session.Session) Layout_Profile_Preference { +func GetLayoutProfilePreferenceService(sess session.SLSession) Layout_Profile_Preference { return Layout_Profile_Preference{Session: sess} } diff --git a/services/layout_test.go b/services/layout_test.go new file mode 100644 index 0000000..bd179a8 --- /dev/null +++ b/services/layout_test.go @@ -0,0 +1,435 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Layout Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Layout_Container service", func() { + var sl_service services.Layout_Container + BeforeEach(func() { + sl_service = services.GetLayoutContainerService(slsession) + }) + Context("SoftLayer_Layout_Container Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Layout_Container Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Layout_Container::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Container::getLayoutContainerType", func() { + It("API Call Test", func() { + _, err := sl_service.GetLayoutContainerType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Container::getLayoutItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetLayoutItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Container::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Layout_Item service", func() { + var sl_service services.Layout_Item + BeforeEach(func() { + sl_service = services.GetLayoutItemService(slsession) + }) + Context("SoftLayer_Layout_Item Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Layout_Item Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Layout_Item::getLayoutItemPreferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetLayoutItemPreferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Item::getLayoutItemType", func() { + It("API Call Test", func() { + _, err := sl_service.GetLayoutItemType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Item::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Layout_Profile service", func() { + var sl_service services.Layout_Profile + BeforeEach(func() { + sl_service = services.GetLayoutProfileService(slsession) + }) + Context("SoftLayer_Layout_Profile Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Layout_Profile Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Layout_Profile::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile::getLayoutContainers", func() { + It("API Call Test", func() { + _, err := sl_service.GetLayoutContainers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile::getLayoutPreferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetLayoutPreferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile::modifyPreference", func() { + It("API Call Test", func() { + _, err := sl_service.ModifyPreference(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile::modifyPreferences", func() { + It("API Call Test", func() { + _, err := sl_service.ModifyPreferences(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Layout_Profile_Containers service", func() { + var sl_service services.Layout_Profile_Containers + BeforeEach(func() { + sl_service = services.GetLayoutProfileContainersService(slsession) + }) + Context("SoftLayer_Layout_Profile_Containers Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Layout_Profile_Containers Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Layout_Profile_Containers::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile_Containers::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile_Containers::getLayoutContainerType", func() { + It("API Call Test", func() { + _, err := sl_service.GetLayoutContainerType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile_Containers::getLayoutProfile", func() { + It("API Call Test", func() { + _, err := sl_service.GetLayoutProfile() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile_Containers::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Layout_Profile_Customer service", func() { + var sl_service services.Layout_Profile_Customer + BeforeEach(func() { + sl_service = services.GetLayoutProfileCustomerService(slsession) + }) + Context("SoftLayer_Layout_Profile_Customer Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Layout_Profile_Customer Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Layout_Profile_Customer::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile_Customer::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile_Customer::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile_Customer::getLayoutContainers", func() { + It("API Call Test", func() { + _, err := sl_service.GetLayoutContainers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile_Customer::getLayoutPreferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetLayoutPreferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile_Customer::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile_Customer::getUserRecord", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserRecord() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile_Customer::modifyPreference", func() { + It("API Call Test", func() { + _, err := sl_service.ModifyPreference(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile_Customer::modifyPreferences", func() { + It("API Call Test", func() { + _, err := sl_service.ModifyPreferences(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Layout_Profile_Preference service", func() { + var sl_service services.Layout_Profile_Preference + BeforeEach(func() { + sl_service = services.GetLayoutProfilePreferenceService(slsession) + }) + Context("SoftLayer_Layout_Profile_Preference Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Layout_Profile_Preference Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Layout_Profile_Preference::getLayoutContainer", func() { + It("API Call Test", func() { + _, err := sl_service.GetLayoutContainer() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile_Preference::getLayoutItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetLayoutItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile_Preference::getLayoutPreference", func() { + It("API Call Test", func() { + _, err := sl_service.GetLayoutPreference() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile_Preference::getLayoutProfile", func() { + It("API Call Test", func() { + _, err := sl_service.GetLayoutProfile() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Layout_Profile_Preference::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/locale.go b/services/locale.go index 438ff4c..48dfe38 100644 --- a/services/locale.go +++ b/services/locale.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // no documentation yet type Locale struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetLocaleService returns an instance of the Locale SoftLayer service -func GetLocaleService(sess *session.Session) Locale { +func GetLocaleService(sess session.SLSession) Locale { return Locale{Session: sess} } @@ -86,12 +79,12 @@ func (r Locale) GetObject() (resp datatypes.Locale, err error) { // no documentation yet type Locale_Country struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetLocaleCountryService returns an instance of the Locale_Country SoftLayer service -func GetLocaleCountryService(sess *session.Session) Locale_Country { +func GetLocaleCountryService(sess session.SLSession) Locale_Country { return Locale_Country{Session: sess} } @@ -192,12 +185,12 @@ func (r Locale_Country) IsEuropeanUnionCountry(iso2CountryCode *string) (resp bo // Each User is assigned a timezone allowing for a precise local timestamp. type Locale_Timezone struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetLocaleTimezoneService returns an instance of the Locale_Timezone SoftLayer service -func GetLocaleTimezoneService(sess *session.Session) Locale_Timezone { +func GetLocaleTimezoneService(sess session.SLSession) Locale_Timezone { return Locale_Timezone{Session: sess} } diff --git a/services/locale_test.go b/services/locale_test.go new file mode 100644 index 0000000..dcf6381 --- /dev/null +++ b/services/locale_test.go @@ -0,0 +1,205 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Locale Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Locale service", func() { + var sl_service services.Locale + BeforeEach(func() { + sl_service = services.GetLocaleService(slsession) + }) + Context("SoftLayer_Locale Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Locale Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Locale::getClosestToLanguageTag", func() { + It("API Call Test", func() { + _, err := sl_service.GetClosestToLanguageTag(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Locale::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Locale_Country service", func() { + var sl_service services.Locale_Country + BeforeEach(func() { + sl_service = services.GetLocaleCountryService(slsession) + }) + Context("SoftLayer_Locale_Country Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Locale_Country Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Locale_Country::getAllVatCountryCodesAndVatIdRegexes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllVatCountryCodesAndVatIdRegexes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Locale_Country::getAvailableCountries", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableCountries() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Locale_Country::getCountries", func() { + It("API Call Test", func() { + _, err := sl_service.GetCountries() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Locale_Country::getCountriesAndStates", func() { + It("API Call Test", func() { + _, err := sl_service.GetCountriesAndStates(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Locale_Country::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Locale_Country::getPostalCodeRequiredCountryCodes", func() { + It("API Call Test", func() { + _, err := sl_service.GetPostalCodeRequiredCountryCodes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Locale_Country::getStates", func() { + It("API Call Test", func() { + _, err := sl_service.GetStates() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Locale_Country::getVatCountries", func() { + It("API Call Test", func() { + _, err := sl_service.GetVatCountries() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Locale_Country::getVatRequiredCountryCodes", func() { + It("API Call Test", func() { + _, err := sl_service.GetVatRequiredCountryCodes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Locale_Country::isEuropeanUnionCountry", func() { + It("API Call Test", func() { + _, err := sl_service.IsEuropeanUnionCountry(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Locale_Timezone service", func() { + var sl_service services.Locale_Timezone + BeforeEach(func() { + sl_service = services.GetLocaleTimezoneService(slsession) + }) + Context("SoftLayer_Locale_Timezone Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Locale_Timezone Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Locale_Timezone::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Locale_Timezone::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/location.go b/services/location.go index 50167b5..0b48ee7 100644 --- a/services/location.go +++ b/services/location.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // Every piece of hardware and network connection owned by SoftLayer is tracked physically by location and stored in the SoftLayer_Location data type. SoftLayer locations exist in parent/child relationships, a convenient way to track equipment from it's city, datacenter, server room, rack, then slot. Network backbones are tied to datacenters only, not to a room, rack, or slot. type Location struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetLocationService returns an instance of the Location SoftLayer service -func GetLocationService(sess *session.Session) Location { +func GetLocationService(sess session.SLSession) Location { return Location{Session: sess} } @@ -221,12 +214,12 @@ func (r Location) GetpointOfPresence() (resp []datatypes.Location, err error) { // SoftLayer_Location_Datacenter extends the [[SoftLayer_Location]] data type to include datacenter-specific properties. type Location_Datacenter struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetLocationDatacenterService returns an instance of the Location_Datacenter SoftLayer service -func GetLocationDatacenterService(sess *session.Session) Location_Datacenter { +func GetLocationDatacenterService(sess session.SLSession) Location_Datacenter { return Location_Datacenter{Session: sess} } @@ -477,12 +470,12 @@ func (r Location_Datacenter) GetpointOfPresence() (resp []datatypes.Location, er // no documentation yet type Location_Group struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetLocationGroupService returns an instance of the Location_Group SoftLayer service -func GetLocationGroupService(sess *session.Session) Location_Group { +func GetLocationGroupService(sess session.SLSession) Location_Group { return Location_Group{Session: sess} } @@ -541,12 +534,12 @@ func (r Location_Group) GetObject() (resp datatypes.Location_Group, err error) { // no documentation yet type Location_Group_Pricing struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetLocationGroupPricingService returns an instance of the Location_Group_Pricing SoftLayer service -func GetLocationGroupPricingService(sess *session.Session) Location_Group_Pricing { +func GetLocationGroupPricingService(sess session.SLSession) Location_Group_Pricing { return Location_Group_Pricing{Session: sess} } @@ -611,12 +604,12 @@ func (r Location_Group_Pricing) GetPrices() (resp []datatypes.Product_Item_Price // no documentation yet type Location_Group_Regional struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetLocationGroupRegionalService returns an instance of the Location_Group_Regional SoftLayer service -func GetLocationGroupRegionalService(sess *session.Session) Location_Group_Regional { +func GetLocationGroupRegionalService(sess session.SLSession) Location_Group_Regional { return Location_Group_Regional{Session: sess} } @@ -687,12 +680,12 @@ func (r Location_Group_Regional) GetPreferredDatacenter() (resp datatypes.Locati // no documentation yet type Location_Reservation struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetLocationReservationService returns an instance of the Location_Reservation SoftLayer service -func GetLocationReservationService(sess *session.Session) Location_Reservation { +func GetLocationReservationService(sess session.SLSession) Location_Reservation { return Location_Reservation{Session: sess} } @@ -769,12 +762,12 @@ func (r Location_Reservation) GetObject() (resp datatypes.Location_Reservation, // no documentation yet type Location_Reservation_Rack struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetLocationReservationRackService returns an instance of the Location_Reservation_Rack SoftLayer service -func GetLocationReservationRackService(sess *session.Session) Location_Reservation_Rack { +func GetLocationReservationRackService(sess session.SLSession) Location_Reservation_Rack { return Location_Reservation_Rack{Session: sess} } @@ -839,12 +832,12 @@ func (r Location_Reservation_Rack) GetObject() (resp datatypes.Location_Reservat // no documentation yet type Location_Reservation_Rack_Member struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetLocationReservationRackMemberService returns an instance of the Location_Reservation_Rack_Member SoftLayer service -func GetLocationReservationRackMemberService(sess *session.Session) Location_Reservation_Rack_Member { +func GetLocationReservationRackMemberService(sess session.SLSession) Location_Reservation_Rack_Member { return Location_Reservation_Rack_Member{Session: sess} } diff --git a/services/location_test.go b/services/location_test.go new file mode 100644 index 0000000..8bae8fe --- /dev/null +++ b/services/location_test.go @@ -0,0 +1,894 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Location Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Location service", func() { + var sl_service services.Location + BeforeEach(func() { + sl_service = services.GetLocationService(slsession) + }) + Context("SoftLayer_Location Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Location Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Location::getActivePresaleEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetActivePresaleEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getAvailableObjectStorageDatacenters", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableObjectStorageDatacenters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getBackboneDependents", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackboneDependents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getBnppCompliantFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBnppCompliantFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getDatacenters", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getDatacentersWithVirtualImageStoreServiceResourceRecord", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacentersWithVirtualImageStoreServiceResourceRecord() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getEuCompliantFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetEuCompliantFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getHardwareFirewalls", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareFirewalls() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getLocationAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getLocationAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getLocationReservationMember", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationReservationMember() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getLocationStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getNetworkConfigurationAttribute", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkConfigurationAttribute() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getOnlineSslVpnUserCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetOnlineSslVpnUserCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getPathString", func() { + It("API Call Test", func() { + _, err := sl_service.GetPathString() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getPriceGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetPriceGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getRegions", func() { + It("API Call Test", func() { + _, err := sl_service.GetRegions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getTimezone", func() { + It("API Call Test", func() { + _, err := sl_service.GetTimezone() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getVdrGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetVdrGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getViewableDatacenters", func() { + It("API Call Test", func() { + _, err := sl_service.GetViewableDatacenters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getViewablePopsAndDataCenters", func() { + It("API Call Test", func() { + _, err := sl_service.GetViewablePopsAndDataCenters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getViewablepointOfPresence", func() { + It("API Call Test", func() { + _, err := sl_service.GetViewablepointOfPresence() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location::getpointOfPresence", func() { + It("API Call Test", func() { + _, err := sl_service.GetpointOfPresence() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Location_Datacenter service", func() { + var sl_service services.Location_Datacenter + BeforeEach(func() { + sl_service = services.GetLocationDatacenterService(slsession) + }) + Context("SoftLayer_Location_Datacenter Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Location_Datacenter Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Location_Datacenter::getActiveItemPresaleEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveItemPresaleEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getActivePresaleEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetActivePresaleEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getAvailableObjectStorageDatacenters", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableObjectStorageDatacenters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getBackboneDependents", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackboneDependents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getBackendHardwareRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendHardwareRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getBnppCompliantFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBnppCompliantFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getBoundSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetBoundSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getBrandCountryRestrictions", func() { + It("API Call Test", func() { + _, err := sl_service.GetBrandCountryRestrictions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getDatacenters", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getDatacentersWithVirtualImageStoreServiceResourceRecord", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacentersWithVirtualImageStoreServiceResourceRecord() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getEuCompliantFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetEuCompliantFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getFrontendHardwareRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendHardwareRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getHardwareFirewalls", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareFirewalls() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getHardwareRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getLocationAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getLocationAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getLocationReservationMember", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationReservationMember() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getLocationStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getNetworkConfigurationAttribute", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkConfigurationAttribute() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getOnlineSslVpnUserCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetOnlineSslVpnUserCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getPathString", func() { + It("API Call Test", func() { + _, err := sl_service.GetPathString() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getPresaleEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetPresaleEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getPriceGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetPriceGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getRegionalGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetRegionalGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getRegionalInternetRegistry", func() { + It("API Call Test", func() { + _, err := sl_service.GetRegionalInternetRegistry() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getRegions", func() { + It("API Call Test", func() { + _, err := sl_service.GetRegions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getRoutableBoundSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetRoutableBoundSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getStatisticsGraphImage", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatisticsGraphImage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getTimezone", func() { + It("API Call Test", func() { + _, err := sl_service.GetTimezone() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getVdrGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetVdrGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getViewableDatacenters", func() { + It("API Call Test", func() { + _, err := sl_service.GetViewableDatacenters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getViewablePopsAndDataCenters", func() { + It("API Call Test", func() { + _, err := sl_service.GetViewablePopsAndDataCenters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getViewablepointOfPresence", func() { + It("API Call Test", func() { + _, err := sl_service.GetViewablepointOfPresence() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Datacenter::getpointOfPresence", func() { + It("API Call Test", func() { + _, err := sl_service.GetpointOfPresence() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Location_Group service", func() { + var sl_service services.Location_Group + BeforeEach(func() { + sl_service = services.GetLocationGroupService(slsession) + }) + Context("SoftLayer_Location_Group Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Location_Group Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Location_Group::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Group::getLocationGroupType", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationGroupType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Group::getLocations", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Group::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Location_Group_Pricing service", func() { + var sl_service services.Location_Group_Pricing + BeforeEach(func() { + sl_service = services.GetLocationGroupPricingService(slsession) + }) + Context("SoftLayer_Location_Group_Pricing Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Location_Group_Pricing Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Location_Group_Pricing::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Group_Pricing::getLocationGroupType", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationGroupType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Group_Pricing::getLocations", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Group_Pricing::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Group_Pricing::getPrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Location_Group_Regional service", func() { + var sl_service services.Location_Group_Regional + BeforeEach(func() { + sl_service = services.GetLocationGroupRegionalService(slsession) + }) + Context("SoftLayer_Location_Group_Regional Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Location_Group_Regional Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Location_Group_Regional::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Group_Regional::getDatacenters", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Group_Regional::getLocationGroupType", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationGroupType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Group_Regional::getLocations", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Group_Regional::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Group_Regional::getPreferredDatacenter", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreferredDatacenter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Location_Reservation service", func() { + var sl_service services.Location_Reservation + BeforeEach(func() { + sl_service = services.GetLocationReservationService(slsession) + }) + Context("SoftLayer_Location_Reservation Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Location_Reservation Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Location_Reservation::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Reservation::getAccountReservations", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountReservations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Reservation::getAllotment", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllotment() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Reservation::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Reservation::getLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Reservation::getLocationReservationRack", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationReservationRack() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Reservation::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Location_Reservation_Rack service", func() { + var sl_service services.Location_Reservation_Rack + BeforeEach(func() { + sl_service = services.GetLocationReservationRackService(slsession) + }) + Context("SoftLayer_Location_Reservation_Rack Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Location_Reservation_Rack Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Location_Reservation_Rack::getAllotment", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllotment() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Reservation_Rack::getChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Reservation_Rack::getLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Reservation_Rack::getLocationReservation", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationReservation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Reservation_Rack::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Location_Reservation_Rack_Member service", func() { + var sl_service services.Location_Reservation_Rack_Member + BeforeEach(func() { + sl_service = services.GetLocationReservationRackMemberService(slsession) + }) + Context("SoftLayer_Location_Reservation_Rack_Member Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Location_Reservation_Rack_Member Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Location_Reservation_Rack_Member::getLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Reservation_Rack_Member::getLocationReservationRack", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationReservationRack() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Location_Reservation_Rack_Member::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/marketplace.go b/services/marketplace.go index 27339a5..75d98b3 100644 --- a/services/marketplace.go +++ b/services/marketplace.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // no documentation yet type Marketplace_Partner struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetMarketplacePartnerService returns an instance of the Marketplace_Partner SoftLayer service -func GetMarketplacePartnerService(sess *session.Session) Marketplace_Partner { +func GetMarketplacePartnerService(sess session.SLSession) Marketplace_Partner { return Marketplace_Partner{Session: sess} } diff --git a/services/marketplace_test.go b/services/marketplace_test.go new file mode 100644 index 0000000..bcea002 --- /dev/null +++ b/services/marketplace_test.go @@ -0,0 +1,124 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Marketplace Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Marketplace_Partner service", func() { + var sl_service services.Marketplace_Partner + BeforeEach(func() { + sl_service = services.GetMarketplacePartnerService(slsession) + }) + Context("SoftLayer_Marketplace_Partner Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Marketplace_Partner Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Marketplace_Partner::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Marketplace_Partner::getAllPublishedPartners", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllPublishedPartners(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Marketplace_Partner::getAttachments", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachments() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Marketplace_Partner::getFeaturedPartners", func() { + It("API Call Test", func() { + _, err := sl_service.GetFeaturedPartners(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Marketplace_Partner::getFile", func() { + It("API Call Test", func() { + _, err := sl_service.GetFile(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Marketplace_Partner::getLogoMedium", func() { + It("API Call Test", func() { + _, err := sl_service.GetLogoMedium() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Marketplace_Partner::getLogoMediumTemp", func() { + It("API Call Test", func() { + _, err := sl_service.GetLogoMediumTemp() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Marketplace_Partner::getLogoSmall", func() { + It("API Call Test", func() { + _, err := sl_service.GetLogoSmall() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Marketplace_Partner::getLogoSmallTemp", func() { + It("API Call Test", func() { + _, err := sl_service.GetLogoSmallTemp() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Marketplace_Partner::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Marketplace_Partner::getPartnerByUrlIdentifier", func() { + It("API Call Test", func() { + _, err := sl_service.GetPartnerByUrlIdentifier(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/metric.go b/services/metric.go index 466f640..ea5097d 100644 --- a/services/metric.go +++ b/services/metric.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // Metric tracking objects provides a common interface to all metrics provided by SoftLayer. These metrics range from network component traffic for a server to aggregated Bandwidth Pooling traffic and more. Every object within SoftLayer's range of objects that has data that can be tracked over time has an associated tracking object. Use the [[SoftLayer_Metric_Tracking_Object]] service to retrieve raw and graph data from a tracking object. type Metric_Tracking_Object struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetMetricTrackingObjectService returns an instance of the Metric_Tracking_Object SoftLayer service -func GetMetricTrackingObjectService(sess *session.Session) Metric_Tracking_Object { +func GetMetricTrackingObjectService(sess session.SLSession) Metric_Tracking_Object { return Metric_Tracking_Object{Session: sess} } @@ -171,12 +164,12 @@ func (r Metric_Tracking_Object) GetType() (resp datatypes.Metric_Tracking_Object // This data type provides commonly used bandwidth summary components for the current billing cycle. type Metric_Tracking_Object_Bandwidth_Summary struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetMetricTrackingObjectBandwidthSummaryService returns an instance of the Metric_Tracking_Object_Bandwidth_Summary SoftLayer service -func GetMetricTrackingObjectBandwidthSummaryService(sess *session.Session) Metric_Tracking_Object_Bandwidth_Summary { +func GetMetricTrackingObjectBandwidthSummaryService(sess session.SLSession) Metric_Tracking_Object_Bandwidth_Summary { return Metric_Tracking_Object_Bandwidth_Summary{Session: sess} } diff --git a/services/metric_test.go b/services/metric_test.go new file mode 100644 index 0000000..66a943e --- /dev/null +++ b/services/metric_test.go @@ -0,0 +1,154 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Metric Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Metric_Tracking_Object service", func() { + var sl_service services.Metric_Tracking_Object + BeforeEach(func() { + sl_service = services.GetMetricTrackingObjectService(slsession) + }) + Context("SoftLayer_Metric_Tracking_Object Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Metric_Tracking_Object Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Metric_Tracking_Object::getBandwidthData", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthData(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Metric_Tracking_Object::getBandwidthGraph", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthGraph(nil, nil, nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Metric_Tracking_Object::getBandwidthTotal", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthTotal(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Metric_Tracking_Object::getDetailsForDateRange", func() { + It("API Call Test", func() { + _, err := sl_service.GetDetailsForDateRange(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Metric_Tracking_Object::getGraph", func() { + It("API Call Test", func() { + _, err := sl_service.GetGraph(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Metric_Tracking_Object::getMetricDataTypes", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricDataTypes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Metric_Tracking_Object::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Metric_Tracking_Object::getSummary", func() { + It("API Call Test", func() { + _, err := sl_service.GetSummary(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Metric_Tracking_Object::getSummaryData", func() { + It("API Call Test", func() { + _, err := sl_service.GetSummaryData(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Metric_Tracking_Object::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Metric_Tracking_Object_Bandwidth_Summary service", func() { + var sl_service services.Metric_Tracking_Object_Bandwidth_Summary + BeforeEach(func() { + sl_service = services.GetMetricTrackingObjectBandwidthSummaryService(slsession) + }) + Context("SoftLayer_Metric_Tracking_Object_Bandwidth_Summary Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Metric_Tracking_Object_Bandwidth_Summary Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Metric_Tracking_Object_Bandwidth_Summary::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/monitoring.go b/services/monitoring.go index e8feec1..5ce0828 100644 --- a/services/monitoring.go +++ b/services/monitoring.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // DEPRECATED. The SoftLayer_Monitoring_Robot data type contains general information relating to a monitoring robot. type Monitoring_Robot struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetMonitoringRobotService returns an instance of the Monitoring_Robot SoftLayer service -func GetMonitoringRobotService(sess *session.Session) Monitoring_Robot { +func GetMonitoringRobotService(sess session.SLSession) Monitoring_Robot { return Monitoring_Robot{Session: sess} } diff --git a/services/monitoring_test.go b/services/monitoring_test.go new file mode 100644 index 0000000..aa78619 --- /dev/null +++ b/services/monitoring_test.go @@ -0,0 +1,61 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Monitoring Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Monitoring_Robot service", func() { + var sl_service services.Monitoring_Robot + BeforeEach(func() { + sl_service = services.GetMonitoringRobotService(slsession) + }) + Context("SoftLayer_Monitoring_Robot Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Monitoring_Robot Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Monitoring_Robot::checkConnection", func() { + It("API Call Test", func() { + _, err := sl_service.CheckConnection() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Monitoring_Robot::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/network.go b/services/network.go index b53f109..bfe239d 100644 --- a/services/network.go +++ b/services/network.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // no documentation yet type Network struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkService returns an instance of the Network SoftLayer service -func GetNetworkService(sess *session.Session) Network { +func GetNetworkService(sess session.SLSession) Network { return Network{Session: sess} } @@ -119,12 +112,12 @@ func (r Network) IsConnectedToPrivateEndpointService() (resp bool, err error) { // The SoftLayer_Network_Application_Delivery_Controller data type models a single instance of an application delivery controller. Local properties are read only, except for a ”notes” property, which can be used to describe your application delivery controller service. The type's relational properties provide more information to the service's function and login information to the controller's backend management if advanced view is enabled. type Network_Application_Delivery_Controller struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkApplicationDeliveryControllerService returns an instance of the Network_Application_Delivery_Controller SoftLayer service -func GetNetworkApplicationDeliveryControllerService(sess *session.Session) Network_Application_Delivery_Controller { +func GetNetworkApplicationDeliveryControllerService(sess session.SLSession) Network_Application_Delivery_Controller { return Network_Application_Delivery_Controller{Session: sess} } @@ -406,12 +399,12 @@ func (r Network_Application_Delivery_Controller) UpdateNetScalerLicense() (resp // The SoftLayer_Network_Application_Delivery_Controller_Configuration_History data type models a single instance of a configuration history entry for an application delivery controller. The configuration history entries are used to support creating backups of an application delivery controller's configuration state in order to restore them later if needed. type Network_Application_Delivery_Controller_Configuration_History struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkApplicationDeliveryControllerConfigurationHistoryService returns an instance of the Network_Application_Delivery_Controller_Configuration_History SoftLayer service -func GetNetworkApplicationDeliveryControllerConfigurationHistoryService(sess *session.Session) Network_Application_Delivery_Controller_Configuration_History { +func GetNetworkApplicationDeliveryControllerConfigurationHistoryService(sess session.SLSession) Network_Application_Delivery_Controller_Configuration_History { return Network_Application_Delivery_Controller_Configuration_History{Session: sess} } @@ -464,12 +457,12 @@ func (r Network_Application_Delivery_Controller_Configuration_History) GetObject // no documentation yet type Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkApplicationDeliveryControllerLoadBalancerHealthAttributeService returns an instance of the Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute SoftLayer service -func GetNetworkApplicationDeliveryControllerLoadBalancerHealthAttributeService(sess *session.Session) Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute { +func GetNetworkApplicationDeliveryControllerLoadBalancerHealthAttributeService(sess session.SLSession) Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute { return Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute{Session: sess} } @@ -522,12 +515,12 @@ func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute) G // no documentation yet type Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkApplicationDeliveryControllerLoadBalancerHealthAttributeTypeService returns an instance of the Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type SoftLayer service -func GetNetworkApplicationDeliveryControllerLoadBalancerHealthAttributeTypeService(sess *session.Session) Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type { +func GetNetworkApplicationDeliveryControllerLoadBalancerHealthAttributeTypeService(sess session.SLSession) Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type { return Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type{Session: sess} } @@ -574,12 +567,12 @@ func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Ty // no documentation yet type Network_Application_Delivery_Controller_LoadBalancer_Health_Check struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkApplicationDeliveryControllerLoadBalancerHealthCheckService returns an instance of the Network_Application_Delivery_Controller_LoadBalancer_Health_Check SoftLayer service -func GetNetworkApplicationDeliveryControllerLoadBalancerHealthCheckService(sess *session.Session) Network_Application_Delivery_Controller_LoadBalancer_Health_Check { +func GetNetworkApplicationDeliveryControllerLoadBalancerHealthCheckService(sess session.SLSession) Network_Application_Delivery_Controller_LoadBalancer_Health_Check { return Network_Application_Delivery_Controller_LoadBalancer_Health_Check{Session: sess} } @@ -638,12 +631,12 @@ func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Check) GetTy // no documentation yet type Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkApplicationDeliveryControllerLoadBalancerHealthCheckTypeService returns an instance of the Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type SoftLayer service -func GetNetworkApplicationDeliveryControllerLoadBalancerHealthCheckTypeService(sess *session.Session) Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type { +func GetNetworkApplicationDeliveryControllerLoadBalancerHealthCheckTypeService(sess session.SLSession) Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type { return Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type{Session: sess} } @@ -690,12 +683,12 @@ func (r Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type) // no documentation yet type Network_Application_Delivery_Controller_LoadBalancer_Routing_Method struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkApplicationDeliveryControllerLoadBalancerRoutingMethodService returns an instance of the Network_Application_Delivery_Controller_LoadBalancer_Routing_Method SoftLayer service -func GetNetworkApplicationDeliveryControllerLoadBalancerRoutingMethodService(sess *session.Session) Network_Application_Delivery_Controller_LoadBalancer_Routing_Method { +func GetNetworkApplicationDeliveryControllerLoadBalancerRoutingMethodService(sess session.SLSession) Network_Application_Delivery_Controller_LoadBalancer_Routing_Method { return Network_Application_Delivery_Controller_LoadBalancer_Routing_Method{Session: sess} } @@ -742,12 +735,12 @@ func (r Network_Application_Delivery_Controller_LoadBalancer_Routing_Method) Get // no documentation yet type Network_Application_Delivery_Controller_LoadBalancer_Routing_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkApplicationDeliveryControllerLoadBalancerRoutingTypeService returns an instance of the Network_Application_Delivery_Controller_LoadBalancer_Routing_Type SoftLayer service -func GetNetworkApplicationDeliveryControllerLoadBalancerRoutingTypeService(sess *session.Session) Network_Application_Delivery_Controller_LoadBalancer_Routing_Type { +func GetNetworkApplicationDeliveryControllerLoadBalancerRoutingTypeService(sess session.SLSession) Network_Application_Delivery_Controller_LoadBalancer_Routing_Type { return Network_Application_Delivery_Controller_LoadBalancer_Routing_Type{Session: sess} } @@ -794,12 +787,12 @@ func (r Network_Application_Delivery_Controller_LoadBalancer_Routing_Type) GetOb // no documentation yet type Network_Application_Delivery_Controller_LoadBalancer_Service struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkApplicationDeliveryControllerLoadBalancerServiceService returns an instance of the Network_Application_Delivery_Controller_LoadBalancer_Service SoftLayer service -func GetNetworkApplicationDeliveryControllerLoadBalancerServiceService(sess *session.Session) Network_Application_Delivery_Controller_LoadBalancer_Service { +func GetNetworkApplicationDeliveryControllerLoadBalancerServiceService(sess session.SLSession) Network_Application_Delivery_Controller_LoadBalancer_Service { return Network_Application_Delivery_Controller_LoadBalancer_Service{Session: sess} } @@ -901,12 +894,12 @@ func (r Network_Application_Delivery_Controller_LoadBalancer_Service) ToggleStat // no documentation yet type Network_Application_Delivery_Controller_LoadBalancer_Service_Group struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkApplicationDeliveryControllerLoadBalancerServiceGroupService returns an instance of the Network_Application_Delivery_Controller_LoadBalancer_Service_Group SoftLayer service -func GetNetworkApplicationDeliveryControllerLoadBalancerServiceGroupService(sess *session.Session) Network_Application_Delivery_Controller_LoadBalancer_Service_Group { +func GetNetworkApplicationDeliveryControllerLoadBalancerServiceGroupService(sess session.SLSession) Network_Application_Delivery_Controller_LoadBalancer_Service_Group { return Network_Application_Delivery_Controller_LoadBalancer_Service_Group{Session: sess} } @@ -1001,12 +994,12 @@ func (r Network_Application_Delivery_Controller_LoadBalancer_Service_Group) Kick // no documentation yet type Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkApplicationDeliveryControllerLoadBalancerVirtualIpAddressService returns an instance of the Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress SoftLayer service -func GetNetworkApplicationDeliveryControllerLoadBalancerVirtualIpAddressService(sess *session.Session) Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress { +func GetNetworkApplicationDeliveryControllerLoadBalancerVirtualIpAddressService(sess session.SLSession) Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress { return Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress{Session: sess} } @@ -1170,12 +1163,12 @@ func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress) U // no documentation yet type Network_Application_Delivery_Controller_LoadBalancer_VirtualServer struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkApplicationDeliveryControllerLoadBalancerVirtualServerService returns an instance of the Network_Application_Delivery_Controller_LoadBalancer_VirtualServer SoftLayer service -func GetNetworkApplicationDeliveryControllerLoadBalancerVirtualServerService(sess *session.Session) Network_Application_Delivery_Controller_LoadBalancer_VirtualServer { +func GetNetworkApplicationDeliveryControllerLoadBalancerVirtualServerService(sess session.SLSession) Network_Application_Delivery_Controller_LoadBalancer_VirtualServer { return Network_Application_Delivery_Controller_LoadBalancer_VirtualServer{Session: sess} } @@ -1255,12 +1248,12 @@ func (r Network_Application_Delivery_Controller_LoadBalancer_VirtualServer) Stop // A SoftLayer_Network_Backbone represents a single backbone connection from SoftLayer to the public Internet, from the Internet to the SoftLayer private network, or a link that connects the private networks between SoftLayer's datacenters. The SoftLayer_Network_Backbone data type is a collection of data associated with one of those connections. type Network_Backbone struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkBackboneService returns an instance of the Network_Backbone SoftLayer service -func GetNetworkBackboneService(sess *session.Session) Network_Backbone { +func GetNetworkBackboneService(sess session.SLSession) Network_Backbone { return Network_Backbone{Session: sess} } @@ -1334,12 +1327,12 @@ func (r Network_Backbone) GetObject() (resp datatypes.Network_Backbone, err erro // no documentation yet type Network_Backbone_Location_Dependent struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkBackboneLocationDependentService returns an instance of the Network_Backbone_Location_Dependent SoftLayer service -func GetNetworkBackboneLocationDependentService(sess *session.Session) Network_Backbone_Location_Dependent { +func GetNetworkBackboneLocationDependentService(sess session.SLSession) Network_Backbone_Location_Dependent { return Network_Backbone_Location_Dependent{Session: sess} } @@ -1407,12 +1400,12 @@ func (r Network_Backbone_Location_Dependent) GetSourceLocation() (resp datatypes // The SoftLayer_Network_Bandwidth_Version1_Allotment class provides methods and data structures necessary to work with an array of hardware objects associated with a single Bandwidth Pooling. type Network_Bandwidth_Version1_Allotment struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkBandwidthVersion1AllotmentService returns an instance of the Network_Bandwidth_Version1_Allotment SoftLayer service -func GetNetworkBandwidthVersion1AllotmentService(sess *session.Session) Network_Bandwidth_Version1_Allotment { +func GetNetworkBandwidthVersion1AllotmentService(sess session.SLSession) Network_Bandwidth_Version1_Allotment { return Network_Bandwidth_Version1_Allotment{Session: sess} } @@ -1743,12 +1736,12 @@ func (r Network_Bandwidth_Version1_Allotment) VoidPendingVdrCancellation() (resp // The SoftLayer_Network_CdnMarketplace_Account data type models an individual CDN account. CDN accounts contain the SoftLayer account ID of the customer, the vendor ID the account belongs to, the customer ID provided by the vendor, and a CDN account's status. type Network_CdnMarketplace_Account struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkCdnMarketplaceAccountService returns an instance of the Network_CdnMarketplace_Account SoftLayer service -func GetNetworkCdnMarketplaceAccountService(sess *session.Session) Network_CdnMarketplace_Account { +func GetNetworkCdnMarketplaceAccountService(sess session.SLSession) Network_CdnMarketplace_Account { return Network_CdnMarketplace_Account{Session: sess} } @@ -1810,12 +1803,12 @@ func (r Network_CdnMarketplace_Account) VerifyCdnAccountExists(vendorName *strin // no documentation yet type Network_CdnMarketplace_Configuration_Behavior_Geoblocking struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkCdnMarketplaceConfigurationBehaviorGeoblockingService returns an instance of the Network_CdnMarketplace_Configuration_Behavior_Geoblocking SoftLayer service -func GetNetworkCdnMarketplaceConfigurationBehaviorGeoblockingService(sess *session.Session) Network_CdnMarketplace_Configuration_Behavior_Geoblocking { +func GetNetworkCdnMarketplaceConfigurationBehaviorGeoblockingService(sess session.SLSession) Network_CdnMarketplace_Configuration_Behavior_Geoblocking { return Network_CdnMarketplace_Configuration_Behavior_Geoblocking{Session: sess} } @@ -1901,12 +1894,12 @@ func (r Network_CdnMarketplace_Configuration_Behavior_Geoblocking) UpdateGeobloc // no documentation yet type Network_CdnMarketplace_Configuration_Behavior_HotlinkProtection struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkCdnMarketplaceConfigurationBehaviorHotlinkProtectionService returns an instance of the Network_CdnMarketplace_Configuration_Behavior_HotlinkProtection SoftLayer service -func GetNetworkCdnMarketplaceConfigurationBehaviorHotlinkProtectionService(sess *session.Session) Network_CdnMarketplace_Configuration_Behavior_HotlinkProtection { +func GetNetworkCdnMarketplaceConfigurationBehaviorHotlinkProtectionService(sess session.SLSession) Network_CdnMarketplace_Configuration_Behavior_HotlinkProtection { return Network_CdnMarketplace_Configuration_Behavior_HotlinkProtection{Session: sess} } @@ -1983,12 +1976,12 @@ func (r Network_CdnMarketplace_Configuration_Behavior_HotlinkProtection) UpdateH // no documentation yet type Network_CdnMarketplace_Configuration_Behavior_ModifyResponseHeader struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkCdnMarketplaceConfigurationBehaviorModifyResponseHeaderService returns an instance of the Network_CdnMarketplace_Configuration_Behavior_ModifyResponseHeader SoftLayer service -func GetNetworkCdnMarketplaceConfigurationBehaviorModifyResponseHeaderService(sess *session.Session) Network_CdnMarketplace_Configuration_Behavior_ModifyResponseHeader { +func GetNetworkCdnMarketplaceConfigurationBehaviorModifyResponseHeaderService(sess session.SLSession) Network_CdnMarketplace_Configuration_Behavior_ModifyResponseHeader { return Network_CdnMarketplace_Configuration_Behavior_ModifyResponseHeader{Session: sess} } @@ -2066,12 +2059,12 @@ func (r Network_CdnMarketplace_Configuration_Behavior_ModifyResponseHeader) Upda // no documentation yet type Network_CdnMarketplace_Configuration_Behavior_TokenAuth struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkCdnMarketplaceConfigurationBehaviorTokenAuthService returns an instance of the Network_CdnMarketplace_Configuration_Behavior_TokenAuth SoftLayer service -func GetNetworkCdnMarketplaceConfigurationBehaviorTokenAuthService(sess *session.Session) Network_CdnMarketplace_Configuration_Behavior_TokenAuth { +func GetNetworkCdnMarketplaceConfigurationBehaviorTokenAuthService(sess session.SLSession) Network_CdnMarketplace_Configuration_Behavior_TokenAuth { return Network_CdnMarketplace_Configuration_Behavior_TokenAuth{Session: sess} } @@ -2149,12 +2142,12 @@ func (r Network_CdnMarketplace_Configuration_Behavior_TokenAuth) UpdateTokenAuth // This data type models a purge event that occurs in caching server. It contains a reference to a mapping configuration, the path to execute the purge on, the status of the purge, and flag that enables saving the purge information for future use. type Network_CdnMarketplace_Configuration_Cache_Purge struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkCdnMarketplaceConfigurationCachePurgeService returns an instance of the Network_CdnMarketplace_Configuration_Cache_Purge SoftLayer service -func GetNetworkCdnMarketplaceConfigurationCachePurgeService(sess *session.Session) Network_CdnMarketplace_Configuration_Cache_Purge { +func GetNetworkCdnMarketplaceConfigurationCachePurgeService(sess session.SLSession) Network_CdnMarketplace_Configuration_Cache_Purge { return Network_CdnMarketplace_Configuration_Cache_Purge{Session: sess} } @@ -2236,12 +2229,12 @@ func (r Network_CdnMarketplace_Configuration_Cache_Purge) SaveOrUnsavePurgePath( // This data type models a purge group event that occurs in caching server. It contains a reference to a mapping configuration and the path to execute the purge on. type Network_CdnMarketplace_Configuration_Cache_PurgeGroup struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkCdnMarketplaceConfigurationCachePurgeGroupService returns an instance of the Network_CdnMarketplace_Configuration_Cache_PurgeGroup SoftLayer service -func GetNetworkCdnMarketplaceConfigurationCachePurgeGroupService(sess *session.Session) Network_CdnMarketplace_Configuration_Cache_PurgeGroup { +func GetNetworkCdnMarketplaceConfigurationCachePurgeGroupService(sess session.SLSession) Network_CdnMarketplace_Configuration_Cache_PurgeGroup { return Network_CdnMarketplace_Configuration_Cache_PurgeGroup{Session: sess} } @@ -2358,12 +2351,12 @@ func (r Network_CdnMarketplace_Configuration_Cache_PurgeGroup) SavePurgeGroupAsF // This data type models a purge history event that occurs in caching server. The purge group history will be deleted after 15 days. The possible purge status of each history can be 'SUCCESS', "FAILED" or "IN_PROGRESS". type Network_CdnMarketplace_Configuration_Cache_PurgeHistory struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkCdnMarketplaceConfigurationCachePurgeHistoryService returns an instance of the Network_CdnMarketplace_Configuration_Cache_PurgeHistory SoftLayer service -func GetNetworkCdnMarketplaceConfigurationCachePurgeHistoryService(sess *session.Session) Network_CdnMarketplace_Configuration_Cache_PurgeHistory { +func GetNetworkCdnMarketplaceConfigurationCachePurgeHistoryService(sess session.SLSession) Network_CdnMarketplace_Configuration_Cache_PurgeHistory { return Network_CdnMarketplace_Configuration_Cache_PurgeHistory{Session: sess} } @@ -2413,12 +2406,12 @@ func (r Network_CdnMarketplace_Configuration_Cache_PurgeHistory) ListPurgeGroupH // This data type models a purge event that occurs repetitively and automatically in caching server after a set interval of time. A time to live instance contains a reference to a mapping configuration, the path to execute the purge on, the result of the purge, and the time interval after which the purge will be executed. type Network_CdnMarketplace_Configuration_Cache_TimeToLive struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkCdnMarketplaceConfigurationCacheTimeToLiveService returns an instance of the Network_CdnMarketplace_Configuration_Cache_TimeToLive SoftLayer service -func GetNetworkCdnMarketplaceConfigurationCacheTimeToLiveService(sess *session.Session) Network_CdnMarketplace_Configuration_Cache_TimeToLive { +func GetNetworkCdnMarketplaceConfigurationCacheTimeToLiveService(sess session.SLSession) Network_CdnMarketplace_Configuration_Cache_TimeToLive { return Network_CdnMarketplace_Configuration_Cache_TimeToLive{Session: sess} } @@ -2502,12 +2495,12 @@ func (r Network_CdnMarketplace_Configuration_Cache_TimeToLive) UpdateTimeToLive( // This data type represents the mapping Configuration settings for enabling CDN services. Each instance contains a reference to a CDN account, and CDN configuration properties such as a domain, an origin host and its port, a cname we generate, a cname the vendor generates, and a status. Other properties include the type of content to be cached (static or dynamic), the origin type (a host server or an object storage account), and the protocol to be used for caching. type Network_CdnMarketplace_Configuration_Mapping struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkCdnMarketplaceConfigurationMappingService returns an instance of the Network_CdnMarketplace_Configuration_Mapping SoftLayer service -func GetNetworkCdnMarketplaceConfigurationMappingService(sess *session.Session) Network_CdnMarketplace_Configuration_Mapping { +func GetNetworkCdnMarketplaceConfigurationMappingService(sess session.SLSession) Network_CdnMarketplace_Configuration_Mapping { return Network_CdnMarketplace_Configuration_Mapping{Session: sess} } @@ -2635,12 +2628,12 @@ func (r Network_CdnMarketplace_Configuration_Mapping) VerifyDomainMapping(unique // no documentation yet type Network_CdnMarketplace_Configuration_Mapping_Path struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkCdnMarketplaceConfigurationMappingPathService returns an instance of the Network_CdnMarketplace_Configuration_Mapping_Path SoftLayer service -func GetNetworkCdnMarketplaceConfigurationMappingPathService(sess *session.Session) Network_CdnMarketplace_Configuration_Mapping_Path { +func GetNetworkCdnMarketplaceConfigurationMappingPathService(sess session.SLSession) Network_CdnMarketplace_Configuration_Mapping_Path { return Network_CdnMarketplace_Configuration_Mapping_Path{Session: sess} } @@ -2718,12 +2711,12 @@ func (r Network_CdnMarketplace_Configuration_Mapping_Path) UpdateOriginPath(inpu // This Metrics class provides methods to get CDN metrics based on account or mapping unique id. type Network_CdnMarketplace_Metrics struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkCdnMarketplaceMetricsService returns an instance of the Network_CdnMarketplace_Metrics SoftLayer service -func GetNetworkCdnMarketplaceMetricsService(sess *session.Session) Network_CdnMarketplace_Metrics { +func GetNetworkCdnMarketplaceMetricsService(sess session.SLSession) Network_CdnMarketplace_Metrics { return Network_CdnMarketplace_Metrics{Session: sess} } @@ -2876,14 +2869,14 @@ func (r Network_CdnMarketplace_Metrics) GetMappingUsageMetrics(mappingUniqueId * return } -// The SoftLayer_Network_CdnMarketplace_Vendor contains information regarding
 a CDN Vendor. This class is associated with
 SoftLayer_Network_CdnMarketplace_Vendor_Attribute class. +// The SoftLayer_Network_CdnMarketplace_Vendor contains information regarding a CDN Vendor. This class is associated with SoftLayer_Network_CdnMarketplace_Vendor_Attribute class. type Network_CdnMarketplace_Vendor struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkCdnMarketplaceVendorService returns an instance of the Network_CdnMarketplace_Vendor SoftLayer service -func GetNetworkCdnMarketplaceVendorService(sess *session.Session) Network_CdnMarketplace_Vendor { +func GetNetworkCdnMarketplaceVendorService(sess session.SLSession) Network_CdnMarketplace_Vendor { return Network_CdnMarketplace_Vendor{Session: sess} } @@ -2930,12 +2923,12 @@ func (r Network_CdnMarketplace_Vendor) ListVendors() (resp []datatypes.Container // Every piece of hardware running in SoftLayer's datacenters connected to the public, private, or management networks (where applicable) have a corresponding network component. These network components are modeled by the SoftLayer_Network_Component data type. These data types reflect the servers' local ethernet and remote management interfaces. type Network_Component struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkComponentService returns an instance of the Network_Component SoftLayer service -func GetNetworkComponentService(sess *session.Session) Network_Component { +func GetNetworkComponentService(sess session.SLSession) Network_Component { return Network_Component{Session: sess} } @@ -3205,12 +3198,12 @@ func (r Network_Component) RemoveNetworkVlanTrunks(networkVlans []datatypes.Netw // The SoftLayer_Network_Component_Firewall data type contains general information relating to a single SoftLayer network component firewall. This is the object which ties the running rules to a specific downstream server. Use the [[SoftLayer Network Firewall Template]] service to pull SoftLayer recommended rule set templates. Use the [[SoftLayer Network Firewall Update Request]] service to submit a firewall update request. type Network_Component_Firewall struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkComponentFirewallService returns an instance of the Network_Component_Firewall SoftLayer service -func GetNetworkComponentFirewallService(sess *session.Session) Network_Component_Firewall { +func GetNetworkComponentFirewallService(sess session.SLSession) Network_Component_Firewall { return Network_Component_Firewall{Session: sess} } @@ -3299,12 +3292,12 @@ func (r Network_Component_Firewall) HasActiveTransactions() (resp bool, err erro // The SoftLayer_Network_Customer_Subnet data type contains general information relating to a single customer subnet (remote). type Network_Customer_Subnet struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkCustomerSubnetService returns an instance of the Network_Customer_Subnet SoftLayer service -func GetNetworkCustomerSubnetService(sess *session.Session) Network_Customer_Subnet { +func GetNetworkCustomerSubnetService(sess session.SLSession) Network_Customer_Subnet { return Network_Customer_Subnet{Session: sess} } @@ -3360,12 +3353,12 @@ func (r Network_Customer_Subnet) GetObject() (resp datatypes.Network_Customer_Su // The SoftLayer_Network_DirectLink_Location presents a structure containing attributes of a Direct Link location, and its related object SoftLayer location. type Network_DirectLink_Location struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkDirectLinkLocationService returns an instance of the Network_DirectLink_Location SoftLayer service -func GetNetworkDirectLinkLocationService(sess *session.Session) Network_DirectLink_Location { +func GetNetworkDirectLinkLocationService(sess session.SLSession) Network_DirectLink_Location { return Network_DirectLink_Location{Session: sess} } @@ -3430,12 +3423,12 @@ func (r Network_DirectLink_Location) GetServiceType() (resp datatypes.Network_Di // The SoftLayer_Network_DirectLink_Provider presents a structure containing attributes of a Direct Link provider. type Network_DirectLink_Provider struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkDirectLinkProviderService returns an instance of the Network_DirectLink_Provider SoftLayer service -func GetNetworkDirectLinkProviderService(sess *session.Session) Network_DirectLink_Provider { +func GetNetworkDirectLinkProviderService(sess session.SLSession) Network_DirectLink_Provider { return Network_DirectLink_Provider{Session: sess} } @@ -3476,12 +3469,12 @@ func (r Network_DirectLink_Provider) GetObject() (resp datatypes.Network_DirectL // The SoftLayer_Network_DirectLink_ServiceType presents a structure containing attributes of a Direct Link Service Type. type Network_DirectLink_ServiceType struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkDirectLinkServiceTypeService returns an instance of the Network_DirectLink_ServiceType SoftLayer service -func GetNetworkDirectLinkServiceTypeService(sess *session.Session) Network_DirectLink_ServiceType { +func GetNetworkDirectLinkServiceTypeService(sess session.SLSession) Network_DirectLink_ServiceType { return Network_DirectLink_ServiceType{Session: sess} } @@ -3522,12 +3515,12 @@ func (r Network_DirectLink_ServiceType) GetObject() (resp datatypes.Network_Dire // The SoftLayer_Network_Firewall_AccessControlList data type contains general information relating to a single SoftLayer firewall access to controll list. This is the object which ties the running rules to a specific context. Use the [[SoftLayer Network Firewall Template]] service to pull SoftLayer recommended rule set templates. Use the [[SoftLayer Network Firewall Update Request]] service to submit a firewall update request. type Network_Firewall_AccessControlList struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkFirewallAccessControlListService returns an instance of the Network_Firewall_AccessControlList SoftLayer service -func GetNetworkFirewallAccessControlListService(sess *session.Session) Network_Firewall_AccessControlList { +func GetNetworkFirewallAccessControlListService(sess session.SLSession) Network_Firewall_AccessControlList { return Network_Firewall_AccessControlList{Session: sess} } @@ -3586,12 +3579,12 @@ func (r Network_Firewall_AccessControlList) GetRules() (resp []datatypes.Network // The SoftLayer_Network_Firewall_Interface data type contains general information relating to a single SoftLayer firewall interface. This is the object which ties the firewall context access control list to a firewall. Use the [[SoftLayer Network Firewall Template]] service to pull SoftLayer recommended rule set templates. Use the [[SoftLayer Network Firewall Update Request]] service to submit a firewall update request. type Network_Firewall_Interface struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkFirewallInterfaceService returns an instance of the Network_Firewall_Interface SoftLayer service -func GetNetworkFirewallInterfaceService(sess *session.Session) Network_Firewall_Interface { +func GetNetworkFirewallInterfaceService(sess session.SLSession) Network_Firewall_Interface { return Network_Firewall_Interface{Session: sess} } @@ -3644,12 +3637,12 @@ func (r Network_Firewall_Interface) GetObject() (resp datatypes.Network_Firewall // no documentation yet type Network_Firewall_Module_Context_Interface struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkFirewallModuleContextInterfaceService returns an instance of the Network_Firewall_Module_Context_Interface SoftLayer service -func GetNetworkFirewallModuleContextInterfaceService(sess *session.Session) Network_Firewall_Module_Context_Interface { +func GetNetworkFirewallModuleContextInterfaceService(sess session.SLSession) Network_Firewall_Module_Context_Interface { return Network_Firewall_Module_Context_Interface{Session: sess} } @@ -3704,12 +3697,12 @@ func (r Network_Firewall_Module_Context_Interface) GetObject() (resp datatypes.N // // Firewall templates are recommend rule sets for use with SoftLayer Hardware Firewall (Dedicated). These optimized templates are designed to balance security restriction with application availability. The templates given may be altered to provide custom network security, or may be used as-is for basic security. At least one rule set MUST be applied for the firewall to block traffic. Use the [[SoftLayer Network Component Firewall]] service to view current rules. Use the [[SoftLayer Network Firewall Update Request]] service to submit a firewall update request. type Network_Firewall_Template struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkFirewallTemplateService returns an instance of the Network_Firewall_Template SoftLayer service -func GetNetworkFirewallTemplateService(sess *session.Session) Network_Firewall_Template { +func GetNetworkFirewallTemplateService(sess session.SLSession) Network_Firewall_Template { return Network_Firewall_Template{Session: sess} } @@ -3766,12 +3759,12 @@ func (r Network_Firewall_Template) GetRules() (resp []datatypes.Network_Firewall // The SoftLayer_Network_Firewall_Update_Request data type contains information relating to a SoftLayer network firewall update request. Use the [[SoftLayer Network Component Firewall]] service to view current rules. Use the [[SoftLayer Network Firewall Template]] service to pull SoftLayer recommended rule set templates. type Network_Firewall_Update_Request struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkFirewallUpdateRequestService returns an instance of the Network_Firewall_Update_Request SoftLayer service -func GetNetworkFirewallUpdateRequestService(sess *session.Session) Network_Firewall_Update_Request { +func GetNetworkFirewallUpdateRequestService(sess session.SLSession) Network_Firewall_Update_Request { return Network_Firewall_Update_Request{Session: sess} } @@ -3871,12 +3864,12 @@ func (r Network_Firewall_Update_Request) UpdateRuleNote(fwRule *datatypes.Networ // The SoftLayer_Network_Firewall_Update_Request_Rule type contains information relating to a SoftLayer network firewall update request rule. This rule is a member of a [[SoftLayer Network Firewall Update Request]]. Use the [[SoftLayer Network Component Firewall]] service to view current rules. Use the [[SoftLayer Network Firewall Template]] service to pull SoftLayer recommended rule set templates. type Network_Firewall_Update_Request_Rule struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkFirewallUpdateRequestRuleService returns an instance of the Network_Firewall_Update_Request_Rule SoftLayer service -func GetNetworkFirewallUpdateRequestRuleService(sess *session.Session) Network_Firewall_Update_Request_Rule { +func GetNetworkFirewallUpdateRequestRuleService(sess session.SLSession) Network_Firewall_Update_Request_Rule { return Network_Firewall_Update_Request_Rule{Session: sess} } @@ -3948,12 +3941,12 @@ func (r Network_Firewall_Update_Request_Rule) ValidateRule(rule *datatypes.Netwo // no documentation yet type Network_Gateway struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkGatewayService returns an instance of the Network_Gateway SoftLayer service -func GetNetworkGatewayService(sess *session.Session) Network_Gateway { +func GetNetworkGatewayService(sess session.SLSession) Network_Gateway { return Network_Gateway{Session: sess} } @@ -4279,12 +4272,12 @@ func (r Network_Gateway) UpdateGatewayUserPassword(record *datatypes.Network_Gat // no documentation yet type Network_Gateway_Member struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkGatewayMemberService returns an instance of the Network_Gateway_Member SoftLayer service -func GetNetworkGatewayMemberService(sess *session.Session) Network_Gateway_Member { +func GetNetworkGatewayMemberService(sess session.SLSession) Network_Gateway_Member { return Network_Gateway_Member{Session: sess} } @@ -4394,12 +4387,12 @@ func (r Network_Gateway_Member) GetPublicIpAddress() (resp datatypes.Network_Sub // no documentation yet type Network_Gateway_Member_Attribute struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkGatewayMemberAttributeService returns an instance of the Network_Gateway_Member_Attribute SoftLayer service -func GetNetworkGatewayMemberAttributeService(sess *session.Session) Network_Gateway_Member_Attribute { +func GetNetworkGatewayMemberAttributeService(sess session.SLSession) Network_Gateway_Member_Attribute { return Network_Gateway_Member_Attribute{Session: sess} } @@ -4446,12 +4439,12 @@ func (r Network_Gateway_Member_Attribute) GetObject() (resp datatypes.Network_Ga // no documentation yet type Network_Gateway_Precheck struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkGatewayPrecheckService returns an instance of the Network_Gateway_Precheck SoftLayer service -func GetNetworkGatewayPrecheckService(sess *session.Session) Network_Gateway_Precheck { +func GetNetworkGatewayPrecheckService(sess session.SLSession) Network_Gateway_Precheck { return Network_Gateway_Precheck{Session: sess} } @@ -4543,12 +4536,12 @@ func (r Network_Gateway_Precheck) UpgradePrecheck(gatewayId *int) (resp bool, er // no documentation yet type Network_Gateway_Status struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkGatewayStatusService returns an instance of the Network_Gateway_Status SoftLayer service -func GetNetworkGatewayStatusService(sess *session.Session) Network_Gateway_Status { +func GetNetworkGatewayStatusService(sess session.SLSession) Network_Gateway_Status { return Network_Gateway_Status{Session: sess} } @@ -4589,12 +4582,12 @@ func (r Network_Gateway_Status) GetObject() (resp datatypes.Network_Gateway_Stat // no documentation yet type Network_Gateway_VersionUpgrade struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkGatewayVersionUpgradeService returns an instance of the Network_Gateway_VersionUpgrade SoftLayer service -func GetNetworkGatewayVersionUpgradeService(sess *session.Session) Network_Gateway_VersionUpgrade { +func GetNetworkGatewayVersionUpgradeService(sess session.SLSession) Network_Gateway_VersionUpgrade { return Network_Gateway_VersionUpgrade{Session: sess} } @@ -4682,12 +4675,12 @@ func (r Network_Gateway_VersionUpgrade) ValidateVersionChange(gatewayId *int, ve // no documentation yet type Network_Gateway_Vlan struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkGatewayVlanService returns an instance of the Network_Gateway_Vlan SoftLayer service -func GetNetworkGatewayVlanService(sess *session.Session) Network_Gateway_Vlan { +func GetNetworkGatewayVlanService(sess session.SLSession) Network_Gateway_Vlan { return Network_Gateway_Vlan{Session: sess} } @@ -4788,12 +4781,12 @@ func (r Network_Gateway_Vlan) Unbypass() (err error) { // no documentation yet type Network_Interconnect_Tenant struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkInterconnectTenantService returns an instance of the Network_Interconnect_Tenant SoftLayer service -func GetNetworkInterconnectTenantService(sess *session.Session) Network_Interconnect_Tenant { +func GetNetworkInterconnectTenantService(sess session.SLSession) Network_Interconnect_Tenant { return Network_Interconnect_Tenant{Session: sess} } @@ -4985,12 +4978,12 @@ func (r Network_Interconnect_Tenant) UpdateConnectionStatus(tenantId *int) (resp // The SoftLayer_Network_LBaaS_HealthMonitor type presents a structure containing attributes of a health monitor object associated with load balancer instance. Note that the relationship between backend (pool) and health monitor is N-to-1, especially that the pools object associated with a health monitor must have the same pair of protocol and port. Example: frontend FA: http, 80 - backend BA: tcp, 3456 - healthmonitor HM_tcp3456 frontend FB: https, 443 - backend BB: tcp, 3456 - healthmonitor HM_tcp3456 In above example both backends BA and BB share the same healthmonitor HM_tcp3456 type Network_LBaaS_HealthMonitor struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkLBaaSHealthMonitorService returns an instance of the Network_LBaaS_HealthMonitor SoftLayer service -func GetNetworkLBaaSHealthMonitorService(sess *session.Session) Network_LBaaS_HealthMonitor { +func GetNetworkLBaaSHealthMonitorService(sess session.SLSession) Network_LBaaS_HealthMonitor { return Network_LBaaS_HealthMonitor{Session: sess} } @@ -5041,12 +5034,12 @@ func (r Network_LBaaS_HealthMonitor) UpdateLoadBalancerHealthMonitors(loadBalanc // The SoftLayer_Network_LBaaS_L7Member represents the backend member for a L7 pool. It can be either a virtual server or a bare metal machine. type Network_LBaaS_L7Member struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkLBaaSL7MemberService returns an instance of the Network_LBaaS_L7Member SoftLayer service -func GetNetworkLBaaSL7MemberService(sess *session.Session) Network_LBaaS_L7Member { +func GetNetworkLBaaSL7MemberService(sess session.SLSession) Network_LBaaS_L7Member { return Network_LBaaS_L7Member{Session: sess} } @@ -5117,12 +5110,12 @@ func (r Network_LBaaS_L7Member) UpdateL7PoolMembers(l7PoolUuid *string, members // The SoftLayer_Network_LBaaS_L7Policy represents the policy for a listener. type Network_LBaaS_L7Policy struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkLBaaSL7PolicyService returns an instance of the Network_LBaaS_L7Policy SoftLayer service -func GetNetworkLBaaSL7PolicyService(sess *session.Session) Network_LBaaS_L7Policy { +func GetNetworkLBaaSL7PolicyService(sess session.SLSession) Network_LBaaS_L7Policy { return Network_LBaaS_L7Policy{Session: sess} } @@ -5194,12 +5187,12 @@ func (r Network_LBaaS_L7Policy) GetObject() (resp datatypes.Network_LBaaS_L7Poli // The SoftLayer_Network_LBaaS_L7Pool type presents a structure containing attributes of a load balancer's L7 pool such as the protocol, and the load balancing algorithm used. L7 pool is used for redirect_pool action of the L7 policy and is different from the default pool type Network_LBaaS_L7Pool struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkLBaaSL7PoolService returns an instance of the Network_LBaaS_L7Pool SoftLayer service -func GetNetworkLBaaSL7PoolService(sess *session.Session) Network_LBaaS_L7Pool { +func GetNetworkLBaaSL7PoolService(sess session.SLSession) Network_LBaaS_L7Pool { return Network_LBaaS_L7Pool{Session: sess} } @@ -5304,12 +5297,12 @@ func (r Network_LBaaS_L7Pool) UpdateL7Pool(l7PoolUuid *string, l7Pool *datatypes // The SoftLayer_Network_LBaaS_L7Rule represents the Rules that can be attached to a a L7 policy. type Network_LBaaS_L7Rule struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkLBaaSL7RuleService returns an instance of the Network_LBaaS_L7Rule SoftLayer service -func GetNetworkLBaaSL7RuleService(sess *session.Session) Network_LBaaS_L7Rule { +func GetNetworkLBaaSL7RuleService(sess session.SLSession) Network_LBaaS_L7Rule { return Network_LBaaS_L7Rule{Session: sess} } @@ -5380,12 +5373,12 @@ func (r Network_LBaaS_L7Rule) UpdateL7Rules(policyUuid *string, rules []datatype // The SoftLayer_Network_LBaaS_Listener type presents a data structure for a load balancers listener, also called frontend. type Network_LBaaS_Listener struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkLBaaSListenerService returns an instance of the Network_LBaaS_Listener SoftLayer service -func GetNetworkLBaaSListenerService(sess *session.Session) Network_LBaaS_Listener { +func GetNetworkLBaaSListenerService(sess session.SLSession) Network_LBaaS_Listener { return Network_LBaaS_Listener{Session: sess} } @@ -5458,12 +5451,12 @@ func (r Network_LBaaS_Listener) UpdateLoadBalancerProtocols(loadBalancerUuid *st // The SoftLayer_Network_LBaaS_LoadBalancer type presents a structure containing attributes of a load balancer, and its related objects including listeners, pools and members. type Network_LBaaS_LoadBalancer struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkLBaaSLoadBalancerService returns an instance of the Network_LBaaS_LoadBalancer SoftLayer service -func GetNetworkLBaaSLoadBalancerService(sess *session.Session) Network_LBaaS_LoadBalancer { +func GetNetworkLBaaSLoadBalancerService(sess session.SLSession) Network_LBaaS_LoadBalancer { return Network_LBaaS_LoadBalancer{Session: sess} } @@ -5661,12 +5654,12 @@ func (r Network_LBaaS_LoadBalancer) UpdateSslCiphers(loadBalancerUuid *string, c // This class represents the load balancers appliances, ie virtual servers, on which the actual load balancer service is running. The relationship between load balancer and appliance is 1-to-N with N=2 for beta and very likely N=3 for post beta. Note that this class is for internal use only. type Network_LBaaS_LoadBalancerAppliance struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkLBaaSLoadBalancerApplianceService returns an instance of the Network_LBaaS_LoadBalancerAppliance SoftLayer service -func GetNetworkLBaaSLoadBalancerApplianceService(sess *session.Session) Network_LBaaS_LoadBalancerAppliance { +func GetNetworkLBaaSLoadBalancerApplianceService(sess session.SLSession) Network_LBaaS_LoadBalancerAppliance { return Network_LBaaS_LoadBalancerAppliance{Session: sess} } @@ -5707,12 +5700,12 @@ func (r Network_LBaaS_LoadBalancerAppliance) GetObject() (resp datatypes.Network // The SoftLayer_Network_LBaaS_Member represents the backend member for a load balancer. It can be either a virtual server or a bare metal machine. type Network_LBaaS_Member struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkLBaaSMemberService returns an instance of the Network_LBaaS_Member SoftLayer service -func GetNetworkLBaaSMemberService(sess *session.Session) Network_LBaaS_Member { +func GetNetworkLBaaSMemberService(sess session.SLSession) Network_LBaaS_Member { return Network_LBaaS_Member{Session: sess} } @@ -5783,12 +5776,12 @@ func (r Network_LBaaS_Member) UpdateLoadBalancerMembers(loadBalancerUuid *string // The SoftLayer_Network_LBaaS_SSLCipher type presents a structure that contains attributes of load balancer cipher suites. type Network_LBaaS_SSLCipher struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkLBaaSSSLCipherService returns an instance of the Network_LBaaS_SSLCipher SoftLayer service -func GetNetworkLBaaSSSLCipherService(sess *session.Session) Network_LBaaS_SSLCipher { +func GetNetworkLBaaSSSLCipherService(sess session.SLSession) Network_LBaaS_SSLCipher { return Network_LBaaS_SSLCipher{Session: sess} } @@ -5836,12 +5829,12 @@ func (r Network_LBaaS_SSLCipher) GetObject() (resp datatypes.Network_LBaaS_SSLCi // The global load balancer service has been deprecated and is no longer available. // Deprecated: This function has been marked as deprecated. type Network_LoadBalancer_Global_Account struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkLoadBalancerGlobalAccountService returns an instance of the Network_LoadBalancer_Global_Account SoftLayer service -func GetNetworkLoadBalancerGlobalAccountService(sess *session.Session) Network_LoadBalancer_Global_Account { +func GetNetworkLoadBalancerGlobalAccountService(sess session.SLSession) Network_LoadBalancer_Global_Account { return Network_LoadBalancer_Global_Account{Session: sess} } @@ -5943,12 +5936,12 @@ func (r Network_LoadBalancer_Global_Account) RemoveNsRecord() (resp bool, err er // The global load balancer service has been deprecated and is no longer available. // Deprecated: This function has been marked as deprecated. type Network_LoadBalancer_Global_Host struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkLoadBalancerGlobalHostService returns an instance of the Network_LoadBalancer_Global_Host SoftLayer service -func GetNetworkLoadBalancerGlobalHostService(sess *session.Session) Network_LoadBalancer_Global_Host { +func GetNetworkLoadBalancerGlobalHostService(sess session.SLSession) Network_LoadBalancer_Global_Host { return Network_LoadBalancer_Global_Host{Session: sess} } @@ -6006,12 +5999,12 @@ func (r Network_LoadBalancer_Global_Host) GetObject() (resp datatypes.Network_Lo // // Information retained on the object itself is the the source and destination of the service, routing type, weight, and whether or not the service is currently enabled. type Network_LoadBalancer_Service struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkLoadBalancerServiceService returns an instance of the Network_LoadBalancer_Service SoftLayer service -func GetNetworkLoadBalancerServiceService(sess *session.Session) Network_LoadBalancer_Service { +func GetNetworkLoadBalancerServiceService(sess session.SLSession) Network_LoadBalancer_Service { return Network_LoadBalancer_Service{Session: sess} } @@ -6103,12 +6096,12 @@ func (r Network_LoadBalancer_Service) ResetPeakConnections() (resp bool, err err // // Information retained on the object itself is the virtual IP address, load balancing method, and any notes that are related to the load balancer. There is also an array of SoftLayer_Network_LoadBalancer_Service objects, which represent the load balancer services, explained more fully in the SoftLayer_Network_LoadBalancer_Service documentation. type Network_LoadBalancer_VirtualIpAddress struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkLoadBalancerVirtualIpAddressService returns an instance of the Network_LoadBalancer_VirtualIpAddress SoftLayer service -func GetNetworkLoadBalancerVirtualIpAddressService(sess *session.Session) Network_LoadBalancer_VirtualIpAddress { +func GetNetworkLoadBalancerVirtualIpAddressService(sess session.SLSession) Network_LoadBalancer_VirtualIpAddress { return Network_LoadBalancer_VirtualIpAddress{Session: sess} } @@ -6212,12 +6205,12 @@ func (r Network_LoadBalancer_VirtualIpAddress) UpgradeConnectionLimit() (resp bo // no documentation yet type Network_Message_Delivery struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkMessageDeliveryService returns an instance of the Network_Message_Delivery SoftLayer service -func GetNetworkMessageDeliveryService(sess *session.Session) Network_Message_Delivery { +func GetNetworkMessageDeliveryService(sess session.SLSession) Network_Message_Delivery { return Network_Message_Delivery{Session: sess} } @@ -6297,12 +6290,12 @@ func (r Network_Message_Delivery) GetVendor() (resp datatypes.Network_Message_De // no documentation yet type Network_Message_Delivery_Email_Sendgrid struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkMessageDeliveryEmailSendgridService returns an instance of the Network_Message_Delivery_Email_Sendgrid SoftLayer service -func GetNetworkMessageDeliveryEmailSendgridService(sess *session.Session) Network_Message_Delivery_Email_Sendgrid { +func GetNetworkMessageDeliveryEmailSendgridService(sess session.SLSession) Network_Message_Delivery_Email_Sendgrid { return Network_Message_Delivery_Email_Sendgrid{Session: sess} } @@ -6485,12 +6478,12 @@ func (r Network_Message_Delivery_Email_Sendgrid) UpdateEmailAddress(emailAddress // no documentation yet type Network_Monitor struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkMonitorService returns an instance of the Network_Monitor SoftLayer service -func GetNetworkMonitorService(sess *session.Session) Network_Monitor { +func GetNetworkMonitorService(sess session.SLSession) Network_Monitor { return Network_Monitor{Session: sess} } @@ -6545,12 +6538,12 @@ func (r Network_Monitor) GetIpAddressesByVirtualGuest(guest *datatypes.Virtual_G // The Monitoring_Query_Host type represents a monitoring instance. It consists of a hardware ID to monitor, an IP address attached to that hardware ID, a method of monitoring, and what to do in the instance that the monitor ever fails. type Network_Monitor_Version1_Query_Host struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkMonitorVersion1QueryHostService returns an instance of the Network_Monitor_Version1_Query_Host SoftLayer service -func GetNetworkMonitorVersion1QueryHostService(sess *session.Session) Network_Monitor_Version1_Query_Host { +func GetNetworkMonitorVersion1QueryHostService(sess session.SLSession) Network_Monitor_Version1_Query_Host { return Network_Monitor_Version1_Query_Host{Session: sess} } @@ -6683,12 +6676,12 @@ func (r Network_Monitor_Version1_Query_Host) GetResponseAction() (resp datatypes // // Also note that the query type and response types are available through getAllQueryTypes and getAllResponseTypes, respectively. type Network_Monitor_Version1_Query_Host_Stratum struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkMonitorVersion1QueryHostStratumService returns an instance of the Network_Monitor_Version1_Query_Host_Stratum SoftLayer service -func GetNetworkMonitorVersion1QueryHostStratumService(sess *session.Session) Network_Monitor_Version1_Query_Host_Stratum { +func GetNetworkMonitorVersion1QueryHostStratumService(sess session.SLSession) Network_Monitor_Version1_Query_Host_Stratum { return Network_Monitor_Version1_Query_Host_Stratum{Session: sess} } @@ -6747,12 +6740,12 @@ func (r Network_Monitor_Version1_Query_Host_Stratum) GetObject() (resp datatypes // no documentation yet type Network_Pod struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkPodService returns an instance of the Network_Pod SoftLayer service -func GetNetworkPodService(sess *session.Session) Network_Pod { +func GetNetworkPodService(sess session.SLSession) Network_Pod { return Network_Pod{Session: sess} } @@ -6819,12 +6812,12 @@ func (r Network_Pod) ListCapabilities() (resp []string, err error) { // The SoftLayer_Network_SecurityGroup data type contains general information for a single security group. A security group contains a set of IP filter [[SoftLayer_Network_SecurityGroup_Rule (type)|rules]] that define how to handle incoming (ingress) and outgoing (egress) traffic to both the public and private interfaces of a virtual server instance and a set of [[SoftLayer_Virtual_Network_SecurityGroup_NetworkComponentBinding (type)|bindings]] to associate virtual guest network components with the security group. type Network_SecurityGroup struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkSecurityGroupService returns an instance of the Network_SecurityGroup SoftLayer service -func GetNetworkSecurityGroupService(sess *session.Session) Network_SecurityGroup { +func GetNetworkSecurityGroupService(sess session.SLSession) Network_SecurityGroup { return Network_SecurityGroup{Session: sess} } @@ -7008,12 +7001,12 @@ func (r Network_SecurityGroup) RemoveRules(ruleIds []int) (resp datatypes.Networ // *Scan Cancelled // *Generating Report. type Network_Security_Scanner_Request struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkSecurityScannerRequestService returns an instance of the Network_Security_Scanner_Request SoftLayer service -func GetNetworkSecurityScannerRequestService(sess *session.Session) Network_Security_Scanner_Request { +func GetNetworkSecurityScannerRequestService(sess session.SLSession) Network_Security_Scanner_Request { return Network_Security_Scanner_Request{Session: sess} } @@ -7099,12 +7092,12 @@ func (r Network_Security_Scanner_Request) GetStatus() (resp datatypes.Network_Se // The SoftLayer_Network_Service_Vpn_Overrides data type contains information relating user ids to subnet ids when VPN access is manually configured. It is essentially an entry in a 'white list' of subnets a SoftLayer portal VPN user may access. type Network_Service_Vpn_Overrides struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkServiceVpnOverridesService returns an instance of the Network_Service_Vpn_Overrides SoftLayer service -func GetNetworkServiceVpnOverridesService(sess *session.Session) Network_Service_Vpn_Overrides { +func GetNetworkServiceVpnOverridesService(sess session.SLSession) Network_Service_Vpn_Overrides { return Network_Service_Vpn_Overrides{Session: sess} } @@ -7181,12 +7174,12 @@ func (r Network_Service_Vpn_Overrides) GetUser() (resp datatypes.User_Customer, // The SoftLayer_Network_Storage data type contains general information regarding a Storage product such as account id, access username and password, the Storage product type, and the server the Storage service is associated with. Currently, only EVault backup storage has an associated server. type Network_Storage struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageService returns an instance of the Network_Storage SoftLayer service -func GetNetworkStorageService(sess *session.Session) Network_Storage { +func GetNetworkStorageService(sess session.SLSession) Network_Storage { return Network_Storage{Session: sess} } @@ -8701,12 +8694,12 @@ func (r Network_Storage) ValidateHostsAccess(hostObjectTemplates []datatypes.Con // no documentation yet type Network_Storage_Allowed_Host struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageAllowedHostService returns an instance of the Network_Storage_Allowed_Host SoftLayer service -func GetNetworkStorageAllowedHostService(sess *session.Session) Network_Storage_Allowed_Host { +func GetNetworkStorageAllowedHostService(sess session.SLSession) Network_Storage_Allowed_Host { return Network_Storage_Allowed_Host{Session: sess} } @@ -8837,12 +8830,12 @@ func (r Network_Storage_Allowed_Host) SetCredentialPassword(password *string) (r // no documentation yet type Network_Storage_Allowed_Host_Hardware struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageAllowedHostHardwareService returns an instance of the Network_Storage_Allowed_Host_Hardware SoftLayer service -func GetNetworkStorageAllowedHostHardwareService(sess *session.Session) Network_Storage_Allowed_Host_Hardware { +func GetNetworkStorageAllowedHostHardwareService(sess session.SLSession) Network_Storage_Allowed_Host_Hardware { return Network_Storage_Allowed_Host_Hardware{Session: sess} } @@ -8985,12 +8978,12 @@ func (r Network_Storage_Allowed_Host_Hardware) SetCredentialPassword(password *s // no documentation yet type Network_Storage_Allowed_Host_IpAddress struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageAllowedHostIpAddressService returns an instance of the Network_Storage_Allowed_Host_IpAddress SoftLayer service -func GetNetworkStorageAllowedHostIpAddressService(sess *session.Session) Network_Storage_Allowed_Host_IpAddress { +func GetNetworkStorageAllowedHostIpAddressService(sess session.SLSession) Network_Storage_Allowed_Host_IpAddress { return Network_Storage_Allowed_Host_IpAddress{Session: sess} } @@ -9133,12 +9126,12 @@ func (r Network_Storage_Allowed_Host_IpAddress) SetCredentialPassword(password * // no documentation yet type Network_Storage_Allowed_Host_Subnet struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageAllowedHostSubnetService returns an instance of the Network_Storage_Allowed_Host_Subnet SoftLayer service -func GetNetworkStorageAllowedHostSubnetService(sess *session.Session) Network_Storage_Allowed_Host_Subnet { +func GetNetworkStorageAllowedHostSubnetService(sess session.SLSession) Network_Storage_Allowed_Host_Subnet { return Network_Storage_Allowed_Host_Subnet{Session: sess} } @@ -9281,12 +9274,12 @@ func (r Network_Storage_Allowed_Host_Subnet) SetCredentialPassword(password *str // no documentation yet type Network_Storage_Allowed_Host_VirtualGuest struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageAllowedHostVirtualGuestService returns an instance of the Network_Storage_Allowed_Host_VirtualGuest SoftLayer service -func GetNetworkStorageAllowedHostVirtualGuestService(sess *session.Session) Network_Storage_Allowed_Host_VirtualGuest { +func GetNetworkStorageAllowedHostVirtualGuestService(sess session.SLSession) Network_Storage_Allowed_Host_VirtualGuest { return Network_Storage_Allowed_Host_VirtualGuest{Session: sess} } @@ -9429,12 +9422,12 @@ func (r Network_Storage_Allowed_Host_VirtualGuest) SetCredentialPassword(passwor // The SoftLayer_Network_Storage_Backup_Evault contains general information regarding an EVault Storage service such as account id, username, maximum capacity, password, Storage's product type and the server id. type Network_Storage_Backup_Evault struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageBackupEvaultService returns an instance of the Network_Storage_Backup_Evault SoftLayer service -func GetNetworkStorageBackupEvaultService(sess *session.Session) Network_Storage_Backup_Evault { +func GetNetworkStorageBackupEvaultService(sess session.SLSession) Network_Storage_Backup_Evault { return Network_Storage_Backup_Evault{Session: sess} } @@ -10995,12 +10988,12 @@ func (r Network_Storage_Backup_Evault) ValidateHostsAccess(hostObjectTemplates [ // no documentation yet type Network_Storage_DedicatedCluster struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageDedicatedClusterService returns an instance of the Network_Storage_DedicatedCluster SoftLayer service -func GetNetworkStorageDedicatedClusterService(sess *session.Session) Network_Storage_DedicatedCluster { +func GetNetworkStorageDedicatedClusterService(sess session.SLSession) Network_Storage_DedicatedCluster { return Network_Storage_DedicatedCluster{Session: sess} } @@ -11059,12 +11052,12 @@ func (r Network_Storage_DedicatedCluster) GetServiceResource() (resp datatypes.N // no documentation yet type Network_Storage_Group struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageGroupService returns an instance of the Network_Storage_Group SoftLayer service -func GetNetworkStorageGroupService(sess *session.Session) Network_Storage_Group { +func GetNetworkStorageGroupService(sess session.SLSession) Network_Storage_Group { return Network_Storage_Group{Session: sess} } @@ -11213,12 +11206,12 @@ func (r Network_Storage_Group) RemoveFromVolume(volume *datatypes.Network_Storag // no documentation yet type Network_Storage_Group_Iscsi struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageGroupIscsiService returns an instance of the Network_Storage_Group_Iscsi SoftLayer service -func GetNetworkStorageGroupIscsiService(sess *session.Session) Network_Storage_Group_Iscsi { +func GetNetworkStorageGroupIscsiService(sess session.SLSession) Network_Storage_Group_Iscsi { return Network_Storage_Group_Iscsi{Session: sess} } @@ -11367,12 +11360,12 @@ func (r Network_Storage_Group_Iscsi) RemoveFromVolume(volume *datatypes.Network_ // no documentation yet type Network_Storage_Group_Nfs struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageGroupNfsService returns an instance of the Network_Storage_Group_Nfs SoftLayer service -func GetNetworkStorageGroupNfsService(sess *session.Session) Network_Storage_Group_Nfs { +func GetNetworkStorageGroupNfsService(sess session.SLSession) Network_Storage_Group_Nfs { return Network_Storage_Group_Nfs{Session: sess} } @@ -11521,12 +11514,12 @@ func (r Network_Storage_Group_Nfs) RemoveFromVolume(volume *datatypes.Network_St // no documentation yet type Network_Storage_Group_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageGroupTypeService returns an instance of the Network_Storage_Group_Type SoftLayer service -func GetNetworkStorageGroupTypeService(sess *session.Session) Network_Storage_Group_Type { +func GetNetworkStorageGroupTypeService(sess session.SLSession) Network_Storage_Group_Type { return Network_Storage_Group_Type{Session: sess} } @@ -11573,12 +11566,12 @@ func (r Network_Storage_Group_Type) GetObject() (resp datatypes.Network_Storage_ // no documentation yet type Network_Storage_Hub_Cleversafe_Account struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageHubCleversafeAccountService returns an instance of the Network_Storage_Hub_Cleversafe_Account SoftLayer service -func GetNetworkStorageHubCleversafeAccountService(sess *session.Session) Network_Storage_Hub_Cleversafe_Account { +func GetNetworkStorageHubCleversafeAccountService(sess session.SLSession) Network_Storage_Hub_Cleversafe_Account { return Network_Storage_Hub_Cleversafe_Account{Session: sess} } @@ -11738,12 +11731,12 @@ func (r Network_Storage_Hub_Cleversafe_Account) GetUuid() (resp string, err erro // no documentation yet type Network_Storage_Hub_Swift_Metrics struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageHubSwiftMetricsService returns an instance of the Network_Storage_Hub_Swift_Metrics SoftLayer service -func GetNetworkStorageHubSwiftMetricsService(sess *session.Session) Network_Storage_Hub_Swift_Metrics { +func GetNetworkStorageHubSwiftMetricsService(sess session.SLSession) Network_Storage_Hub_Swift_Metrics { return Network_Storage_Hub_Swift_Metrics{Session: sess} } @@ -11802,12 +11795,12 @@ func (r Network_Storage_Hub_Swift_Metrics) GetSummaryData(startDateTime *datatyp // no documentation yet type Network_Storage_Hub_Swift_Share struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageHubSwiftShareService returns an instance of the Network_Storage_Hub_Swift_Share SoftLayer service -func GetNetworkStorageHubSwiftShareService(sess *session.Session) Network_Storage_Hub_Swift_Share { +func GetNetworkStorageHubSwiftShareService(sess session.SLSession) Network_Storage_Hub_Swift_Share { return Network_Storage_Hub_Swift_Share{Session: sess} } @@ -11868,12 +11861,12 @@ func (r Network_Storage_Hub_Swift_Share) GetFileList(container *string, path *st // The iscsi data type provides access to additional information about an iscsi volume such as the snapshot capacity limit and replication partners. type Network_Storage_Iscsi struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageIscsiService returns an instance of the Network_Storage_Iscsi SoftLayer service -func GetNetworkStorageIscsiService(sess *session.Session) Network_Storage_Iscsi { +func GetNetworkStorageIscsiService(sess session.SLSession) Network_Storage_Iscsi { return Network_Storage_Iscsi{Session: sess} } @@ -13386,12 +13379,12 @@ func (r Network_Storage_Iscsi) ValidateHostsAccess(hostObjectTemplates []datatyp // no documentation yet type Network_Storage_Iscsi_OS_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageIscsiOSTypeService returns an instance of the Network_Storage_Iscsi_OS_Type SoftLayer service -func GetNetworkStorageIscsiOSTypeService(sess *session.Session) Network_Storage_Iscsi_OS_Type { +func GetNetworkStorageIscsiOSTypeService(sess session.SLSession) Network_Storage_Iscsi_OS_Type { return Network_Storage_Iscsi_OS_Type{Session: sess} } @@ -13438,12 +13431,12 @@ func (r Network_Storage_Iscsi_OS_Type) GetObject() (resp datatypes.Network_Stora // no documentation yet type Network_Storage_MassDataMigration_CrossRegion_Country_Xref struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageMassDataMigrationCrossRegionCountryXrefService returns an instance of the Network_Storage_MassDataMigration_CrossRegion_Country_Xref SoftLayer service -func GetNetworkStorageMassDataMigrationCrossRegionCountryXrefService(sess *session.Session) Network_Storage_MassDataMigration_CrossRegion_Country_Xref { +func GetNetworkStorageMassDataMigrationCrossRegionCountryXrefService(sess session.SLSession) Network_Storage_MassDataMigration_CrossRegion_Country_Xref { return Network_Storage_MassDataMigration_CrossRegion_Country_Xref{Session: sess} } @@ -13511,12 +13504,12 @@ func (r Network_Storage_MassDataMigration_CrossRegion_Country_Xref) GetValidCoun // The SoftLayer_Network_Storage_MassDataMigration_Request data type contains information on a single Mass Data Migration request. Creation of these requests is limited to SoftLayer customers through the SoftLayer Customer Portal. type Network_Storage_MassDataMigration_Request struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageMassDataMigrationRequestService returns an instance of the Network_Storage_MassDataMigration_Request SoftLayer service -func GetNetworkStorageMassDataMigrationRequestService(sess *session.Session) Network_Storage_MassDataMigration_Request { +func GetNetworkStorageMassDataMigrationRequestService(sess session.SLSession) Network_Storage_MassDataMigration_Request { return Network_Storage_MassDataMigration_Request{Session: sess} } @@ -13665,12 +13658,12 @@ func (r Network_Storage_MassDataMigration_Request) GetTickets() (resp []datatype // The SoftLayer_Network_Storage_MassDataMigration_Request_KeyContact data type contains name, email, and phone for key contact at customer location who will handle Mass Data Migration. type Network_Storage_MassDataMigration_Request_KeyContact struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageMassDataMigrationRequestKeyContactService returns an instance of the Network_Storage_MassDataMigration_Request_KeyContact SoftLayer service -func GetNetworkStorageMassDataMigrationRequestKeyContactService(sess *session.Session) Network_Storage_MassDataMigration_Request_KeyContact { +func GetNetworkStorageMassDataMigrationRequestKeyContactService(sess session.SLSession) Network_Storage_MassDataMigration_Request_KeyContact { return Network_Storage_MassDataMigration_Request_KeyContact{Session: sess} } @@ -13723,12 +13716,12 @@ func (r Network_Storage_MassDataMigration_Request_KeyContact) GetRequest() (resp // The SoftLayer_Network_Storage_MassDataMigration_Request_Status data type contains general information relating to the statuses to which a Mass Data Migration Request may be set. type Network_Storage_MassDataMigration_Request_Status struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageMassDataMigrationRequestStatusService returns an instance of the Network_Storage_MassDataMigration_Request_Status SoftLayer service -func GetNetworkStorageMassDataMigrationRequestStatusService(sess *session.Session) Network_Storage_MassDataMigration_Request_Status { +func GetNetworkStorageMassDataMigrationRequestStatusService(sess session.SLSession) Network_Storage_MassDataMigration_Request_Status { return Network_Storage_MassDataMigration_Request_Status{Session: sess} } @@ -13769,12 +13762,12 @@ func (r Network_Storage_MassDataMigration_Request_Status) GetObject() (resp data // Schedules can be created for select Storage services, such as iscsi. These schedules are used to perform various tasks such as scheduling snapshots or synchronizing replicants. type Network_Storage_Schedule struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageScheduleService returns an instance of the Network_Storage_Schedule SoftLayer service -func GetNetworkStorageScheduleService(sess *session.Session) Network_Storage_Schedule { +func GetNetworkStorageScheduleService(sess session.SLSession) Network_Storage_Schedule { return Network_Storage_Schedule{Session: sess} } @@ -13929,12 +13922,12 @@ func (r Network_Storage_Schedule) GetVolume() (resp datatypes.Network_Storage, e // A schedule property type is used to allow for a standardized method of defining network storage schedules. type Network_Storage_Schedule_Property_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkStorageSchedulePropertyTypeService returns an instance of the Network_Storage_Schedule_Property_Type SoftLayer service -func GetNetworkStorageSchedulePropertyTypeService(sess *session.Session) Network_Storage_Schedule_Property_Type { +func GetNetworkStorageSchedulePropertyTypeService(sess session.SLSession) Network_Storage_Schedule_Property_Type { return Network_Storage_Schedule_Property_Type{Session: sess} } @@ -13989,12 +13982,12 @@ func (r Network_Storage_Schedule_Property_Type) GetObject() (resp datatypes.Netw // // [RFC950:Internet Standard Subnetting Procedure](http://datatracker.ietf.org/doc/html/rfc950) type Network_Subnet struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkSubnetService returns an instance of the Network_Subnet SoftLayer service -func GetNetworkSubnetService(sess *session.Session) Network_Subnet { +func GetNetworkSubnetService(sess session.SLSession) Network_Subnet { return Network_Subnet{Session: sess} } @@ -14444,12 +14437,12 @@ func (r Network_Subnet) SetTags(tags *string) (resp bool, err error) { // The SoftLayer_Network_Subnet_IpAddress data type contains general information relating to a single SoftLayer IPv4 address. type Network_Subnet_IpAddress struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkSubnetIpAddressService returns an instance of the Network_Subnet_IpAddress SoftLayer service -func GetNetworkSubnetIpAddressService(sess *session.Session) Network_Subnet_IpAddress { +func GetNetworkSubnetIpAddressService(sess session.SLSession) Network_Subnet_IpAddress { return Network_Subnet_IpAddress{Session: sess} } @@ -14743,12 +14736,12 @@ func (r Network_Subnet_IpAddress) RemoveAccessToNetworkStorageList(networkStorag // no documentation yet type Network_Subnet_IpAddress_Global struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkSubnetIpAddressGlobalService returns an instance of the Network_Subnet_IpAddress_Global SoftLayer service -func GetNetworkSubnetIpAddressGlobalService(sess *session.Session) Network_Subnet_IpAddress_Global { +func GetNetworkSubnetIpAddressGlobalService(sess session.SLSession) Network_Subnet_IpAddress_Global { return Network_Subnet_IpAddress_Global{Session: sess} } @@ -14838,14 +14831,17 @@ func (r Network_Subnet_IpAddress_Global) Unroute() (resp bool, err error) { return } +// The subnet registration service has been deprecated. +// // The subnet registration data type contains general information relating to a single subnet registration instance. These registration instances can be updated to reflect changes, and will record the changes in the [[SoftLayer_Network_Subnet_Registration_Event|events]]. +// Deprecated: This function has been marked as deprecated. type Network_Subnet_Registration struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkSubnetRegistrationService returns an instance of the Network_Subnet_Registration SoftLayer service -func GetNetworkSubnetRegistrationService(sess *session.Session) Network_Subnet_Registration { +func GetNetworkSubnetRegistrationService(sess session.SLSession) Network_Subnet_Registration { return Network_Subnet_Registration{Session: sess} } @@ -14878,12 +14874,17 @@ func (r Network_Subnet_Registration) Offset(offset int) Network_Subnet_Registrat return r } +// The subnet registration service has been deprecated. +// // This method will initiate the removal of a subnet registration. +// Deprecated: This function has been marked as deprecated. func (r Network_Subnet_Registration) ClearRegistration() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration", "clearRegistration", nil, &r.Options, &resp) return } +// The subnet registration service has been deprecated. +// // Create registration with a global registrar to associate an assigned subnet with the provided contact details. // // Contact information is provided in the form of a [[SoftLayer_Account_Regional_Registry_Detail|person detail record]], which reference can be provided when the registration is created or afterwards. Registrations without an associated person detail will remain in the “OPEN“ status. To specify a person detail when creating a registration, the “detailReferences“ property should be populated with a list item providing a “detailId“ value referencing the [[SoftLayer_Account_Regional_Registry_Detail|person detail record]]. @@ -14897,6 +14898,7 @@ func (r Network_Subnet_Registration) ClearRegistration() (resp bool, err error) // * detailReferences // // “networkIdentifier“ is the base address of the public, SoftLayer owned subnet which is being registered. “cidr“ must be an integer representing the CIDR of the subnet to be registered. The “networkIdentifier“/“cidr“ must represent an assigned subnet. “detailReferences“ tie the registration to SoftLayer_Account_Regional_Registry_Detail objects. +// Deprecated: This function has been marked as deprecated. func (r Network_Subnet_Registration) CreateObject(templateObject *datatypes.Network_Subnet_Registration) (resp datatypes.Network_Subnet_Registration, err error) { params := []interface{}{ templateObject, @@ -14905,7 +14907,10 @@ func (r Network_Subnet_Registration) CreateObject(templateObject *datatypes.Netw return } +// The subnet registration service has been deprecated. +// // Create registrations with respective registrars to associate multiple assigned subnets with the provided contact details. +// Deprecated: This function has been marked as deprecated. func (r Network_Subnet_Registration) CreateObjects(templateObjects []datatypes.Network_Subnet_Registration) (resp []datatypes.Network_Subnet_Registration, err error) { params := []interface{}{ templateObjects, @@ -14914,7 +14919,10 @@ func (r Network_Subnet_Registration) CreateObjects(templateObjects []datatypes.N return } +// The subnet registration service has been deprecated. +// // This method will edit an existing SoftLayer_Network_Subnet_Registration object. For more detail, see [[SoftLayer_Network_Subnet_Registration::createObject|createObject]]. +// Deprecated: This function has been marked as deprecated. func (r Network_Subnet_Registration) EditObject(templateObject *datatypes.Network_Subnet_Registration) (resp bool, err error) { params := []interface{}{ templateObject, @@ -14923,7 +14931,10 @@ func (r Network_Subnet_Registration) EditObject(templateObject *datatypes.Networ return } +// The subnet registration service has been deprecated. +// // This method modifies a single registration by modifying the current [[SoftLayer_Network_Subnet_Registration_Details]] objects that are linked to that registration. +// Deprecated: This function has been marked as deprecated. func (r Network_Subnet_Registration) EditRegistrationAttachedDetails(personObjectSkeleton *datatypes.Network_Subnet_Registration_Details, networkObjectSkeleton *datatypes.Network_Subnet_Registration_Details) (resp bool, err error) { params := []interface{}{ personObjectSkeleton, @@ -14933,25 +14944,25 @@ func (r Network_Subnet_Registration) EditRegistrationAttachedDetails(personObjec return } -// Retrieve The account that this registration belongs to. +// Retrieve [Deprecated] The account that this registration belongs to. func (r Network_Subnet_Registration) GetAccount() (resp datatypes.Account, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration", "getAccount", nil, &r.Options, &resp) return } -// Retrieve The cross-reference records that tie the [[SoftLayer_Account_Regional_Registry_Detail]] objects to the registration object. +// Retrieve [Deprecated] The cross-reference records that tie the [[SoftLayer_Account_Regional_Registry_Detail]] objects to the registration object. func (r Network_Subnet_Registration) GetDetailReferences() (resp []datatypes.Network_Subnet_Registration_Details, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration", "getDetailReferences", nil, &r.Options, &resp) return } -// Retrieve The related registration events. +// Retrieve [Deprecated] The related registration events. func (r Network_Subnet_Registration) GetEvents() (resp []datatypes.Network_Subnet_Registration_Event, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration", "getEvents", nil, &r.Options, &resp) return } -// Retrieve The "network" detail object. +// Retrieve [Deprecated] The "network" detail object. func (r Network_Subnet_Registration) GetNetworkDetail() (resp datatypes.Account_Regional_Registry_Detail, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration", "getNetworkDetail", nil, &r.Options, &resp) return @@ -14963,44 +14974,47 @@ func (r Network_Subnet_Registration) GetObject() (resp datatypes.Network_Subnet_ return } -// Retrieve The "person" detail object. +// Retrieve [Deprecated] The "person" detail object. func (r Network_Subnet_Registration) GetPersonDetail() (resp datatypes.Account_Regional_Registry_Detail, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration", "getPersonDetail", nil, &r.Options, &resp) return } -// Retrieve The related Regional Internet Registry. +// Retrieve [Deprecated] The related Regional Internet Registry. func (r Network_Subnet_Registration) GetRegionalInternetRegistry() (resp datatypes.Network_Regional_Internet_Registry, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration", "getRegionalInternetRegistry", nil, &r.Options, &resp) return } -// Retrieve The RIR handle that this registration object belongs to. This field may not be populated until the registration is complete. +// Retrieve [Deprecated] The RIR handle that this registration object belongs to. This field may not be populated until the registration is complete. func (r Network_Subnet_Registration) GetRegionalInternetRegistryHandle() (resp datatypes.Account_Rwhois_Handle, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration", "getRegionalInternetRegistryHandle", nil, &r.Options, &resp) return } -// Retrieve The status of this registration. +// Retrieve [Deprecated] The status of this registration. func (r Network_Subnet_Registration) GetStatus() (resp datatypes.Network_Subnet_Registration_Status, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration", "getStatus", nil, &r.Options, &resp) return } -// Retrieve The subnet that this registration pertains to. +// Retrieve [Deprecated] The subnet that this registration pertains to. func (r Network_Subnet_Registration) GetSubnet() (resp datatypes.Network_Subnet, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration", "getSubnet", nil, &r.Options, &resp) return } +// The subnet registration details type has been deprecated. +// // The SoftLayer_Network_Subnet_Registration_Details objects are used to relate [[SoftLayer_Account_Regional_Registry_Detail]] objects to a [[SoftLayer_Network_Subnet_Registration]] object. This allows for easy reuse of registration details. It is important to note that only one detail object per type may be associated to a registration object. +// Deprecated: This function has been marked as deprecated. type Network_Subnet_Registration_Details struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkSubnetRegistrationDetailsService returns an instance of the Network_Subnet_Registration_Details SoftLayer service -func GetNetworkSubnetRegistrationDetailsService(sess *session.Session) Network_Subnet_Registration_Details { +func GetNetworkSubnetRegistrationDetailsService(sess session.SLSession) Network_Subnet_Registration_Details { return Network_Subnet_Registration_Details{Session: sess} } @@ -15033,9 +15047,12 @@ func (r Network_Subnet_Registration_Details) Offset(offset int) Network_Subnet_R return r } +// The subnet registration details service has been deprecated. +// // This method will create a new SoftLayer_Network_Subnet_Registration_Details object. // // Input - [[SoftLayer_Network_Subnet_Registration_Details (type)|SoftLayer_Network_Subnet_Registration_Details]] +// Deprecated: This function has been marked as deprecated. func (r Network_Subnet_Registration_Details) CreateObject(templateObject *datatypes.Network_Subnet_Registration_Details) (resp datatypes.Network_Subnet_Registration_Details, err error) { params := []interface{}{ templateObject, @@ -15044,13 +15061,16 @@ func (r Network_Subnet_Registration_Details) CreateObject(templateObject *dataty return } +// The subnet registration details service has been deprecated. +// // This method will delete an existing SoftLayer_Account_Regional_Registry_Detail object. +// Deprecated: This function has been marked as deprecated. func (r Network_Subnet_Registration_Details) DeleteObject() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration_Details", "deleteObject", nil, &r.Options, &resp) return } -// Retrieve The related [[SoftLayer_Account_Regional_Registry_Detail|detail object]]. +// Retrieve [Deprecated] The related [[SoftLayer_Account_Regional_Registry_Detail|detail object]]. func (r Network_Subnet_Registration_Details) GetDetail() (resp datatypes.Account_Regional_Registry_Detail, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration_Details", "getDetail", nil, &r.Options, &resp) return @@ -15062,22 +15082,25 @@ func (r Network_Subnet_Registration_Details) GetObject() (resp datatypes.Network return } -// Retrieve The related [[SoftLayer_Network_Subnet_Registration|registration object]]. +// Retrieve [Deprecated] The related [[SoftLayer_Network_Subnet_Registration|registration object]]. func (r Network_Subnet_Registration_Details) GetRegistration() (resp datatypes.Network_Subnet_Registration, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration_Details", "getRegistration", nil, &r.Options, &resp) return } +// The subnet registration status type has been deprecated. +// // Subnet Registration Status objects describe the current status of a subnet registration. // // The standard values for these objects are as follows: +// Deprecated: This function has been marked as deprecated. type Network_Subnet_Registration_Status struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkSubnetRegistrationStatusService returns an instance of the Network_Subnet_Registration_Status SoftLayer service -func GetNetworkSubnetRegistrationStatusService(sess *session.Session) Network_Subnet_Registration_Status { +func GetNetworkSubnetRegistrationStatusService(sess session.SLSession) Network_Subnet_Registration_Status { return Network_Subnet_Registration_Status{Session: sess} } @@ -15111,6 +15134,7 @@ func (r Network_Subnet_Registration_Status) Offset(offset int) Network_Subnet_Re } // no documentation yet +// Deprecated: This function has been marked as deprecated. func (r Network_Subnet_Registration_Status) GetAllObjects() (resp []datatypes.Network_Subnet_Registration_Status, err error) { err = r.Session.DoRequest("SoftLayer_Network_Subnet_Registration_Status", "getAllObjects", nil, &r.Options, &resp) return @@ -15127,12 +15151,12 @@ func (r Network_Subnet_Registration_Status) GetObject() (resp datatypes.Network_ // A SoftLayer customer's RWHOIS data may not necessarily match their account or portal users' contact information. // Deprecated: This function has been marked as deprecated. type Network_Subnet_Rwhois_Data struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkSubnetRwhoisDataService returns an instance of the Network_Subnet_Rwhois_Data SoftLayer service -func GetNetworkSubnetRwhoisDataService(sess *session.Session) Network_Subnet_Rwhois_Data { +func GetNetworkSubnetRwhoisDataService(sess session.SLSession) Network_Subnet_Rwhois_Data { return Network_Subnet_Rwhois_Data{Session: sess} } @@ -15203,12 +15227,12 @@ func (r Network_Subnet_Rwhois_Data) GetObject() (resp datatypes.Network_Subnet_R // * SOFTLAYER MANUALLY PROCESSING: Sometimes a request doesn't go through correctly and has to be manually processed by SoftLayer. This may take some time. // Deprecated: This function has been marked as deprecated. type Network_Subnet_Swip_Transaction struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkSubnetSwipTransactionService returns an instance of the Network_Subnet_Swip_Transaction SoftLayer service -func GetNetworkSubnetSwipTransactionService(sess *session.Session) Network_Subnet_Swip_Transaction { +func GetNetworkSubnetSwipTransactionService(sess session.SLSession) Network_Subnet_Swip_Transaction { return Network_Subnet_Swip_Transaction{Session: sess} } @@ -15310,12 +15334,12 @@ func (r Network_Subnet_Swip_Transaction) UpdateAllSubnetSwips() (resp int, err e // The SoftLayer_Network_Tunnel_Module_Context data type contains general information relating to a single SoftLayer network tunnel. The SoftLayer_Network_Tunnel_Module_Context is useful to gather information such as related customer subnets (remote) and internal subnets (local) associated with the network tunnel as well as other information needed to manage the network tunnel. Account and billing information related to the network tunnel can also be retrieved. type Network_Tunnel_Module_Context struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkTunnelModuleContextService returns an instance of the Network_Tunnel_Module_Context SoftLayer service -func GetNetworkTunnelModuleContextService(sess *session.Session) Network_Tunnel_Module_Context { +func GetNetworkTunnelModuleContextService(sess session.SLSession) Network_Tunnel_Module_Context { return Network_Tunnel_Module_Context{Session: sess} } @@ -15718,12 +15742,12 @@ func (r Network_Tunnel_Module_Context) RemoveServiceSubnetFromNetworkTunnel(subn // // [VLAN at Wikipedia](https://en.wikipedia.org/wiki/VLAN) type Network_Vlan struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkVlanService returns an instance of the Network_Vlan SoftLayer service -func GetNetworkVlanService(sess *session.Session) Network_Vlan { +func GetNetworkVlanService(sess session.SLSession) Network_Vlan { return Network_Vlan{Session: sess} } @@ -16111,12 +16135,12 @@ func (r Network_Vlan) Upgrade() (resp datatypes.Container_Product_Order_Network_ // The SoftLayer_Network_Vlan_Firewall data type contains general information relating to a single SoftLayer VLAN firewall. This is the object which ties the running rules to a specific downstream server. Use the [[SoftLayer Network Firewall Template]] service to pull SoftLayer recommended rule set templates. Use the [[SoftLayer Network Firewall Update Request]] service to submit a firewall update request. type Network_Vlan_Firewall struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkVlanFirewallService returns an instance of the Network_Vlan_Firewall SoftLayer service -func GetNetworkVlanFirewallService(sess *session.Session) Network_Vlan_Firewall { +func GetNetworkVlanFirewallService(sess session.SLSession) Network_Vlan_Firewall { return Network_Vlan_Firewall{Session: sess} } @@ -16339,12 +16363,12 @@ func (r Network_Vlan_Firewall) UpdateRouteBypass(bypass *bool) (resp datatypes.P // no documentation yet type Network_Vlan_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNetworkVlanTypeService returns an instance of the Network_Vlan_Type SoftLayer service -func GetNetworkVlanTypeService(sess *session.Session) Network_Vlan_Type { +func GetNetworkVlanTypeService(sess session.SLSession) Network_Vlan_Type { return Network_Vlan_Type{Session: sess} } diff --git a/services/network_test.go b/services/network_test.go new file mode 100644 index 0000000..65d1685 --- /dev/null +++ b/services/network_test.go @@ -0,0 +1,14651 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Network Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Network service", func() { + var sl_service services.Network + BeforeEach(func() { + sl_service = services.GetNetworkService(slsession) + }) + Context("SoftLayer_Network Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network::connectPrivateEndpointService", func() { + It("API Call Test", func() { + _, err := sl_service.ConnectPrivateEndpointService() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network::disconnectPrivateEndpointService", func() { + It("API Call Test", func() { + _, err := sl_service.DisconnectPrivateEndpointService() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network::isConnectedToPrivateEndpointService", func() { + It("API Call Test", func() { + _, err := sl_service.IsConnectedToPrivateEndpointService() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Application_Delivery_Controller service", func() { + var sl_service services.Network_Application_Delivery_Controller + BeforeEach(func() { + sl_service = services.GetNetworkApplicationDeliveryControllerService(slsession) + }) + Context("SoftLayer_Network_Application_Delivery_Controller Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::createLiveLoadBalancer", func() { + It("API Call Test", func() { + _, err := sl_service.CreateLiveLoadBalancer(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::deleteLiveLoadBalancer", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteLiveLoadBalancer(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::deleteLiveLoadBalancerService", func() { + It("API Call Test", func() { + err := sl_service.DeleteLiveLoadBalancerService(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getAverageDailyPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageDailyPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getBandwidthDataByDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthDataByDate(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getBandwidthImageByDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthImageByDate(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getConfigurationHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetConfigurationHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getDatacenter", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getDescription", func() { + It("API Call Test", func() { + _, err := sl_service.GetDescription() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getInboundPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetInboundPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getLicenseExpirationDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetLicenseExpirationDate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getLiveLoadBalancerServiceGraphImage", func() { + It("API Call Test", func() { + _, err := sl_service.GetLiveLoadBalancerServiceGraphImage(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getLoadBalancers", func() { + It("API Call Test", func() { + _, err := sl_service.GetLoadBalancers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getManagedResourceFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetManagedResourceFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getManagementIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetManagementIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getNetworkVlan", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlan() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getNetworkVlans", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlans() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getOutboundPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetOutboundPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getPassword", func() { + It("API Call Test", func() { + _, err := sl_service.GetPassword() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getPrimaryIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getProjectedPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetProjectedPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getTagReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetTagReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::getVirtualIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::restoreBaseConfiguration", func() { + It("API Call Test", func() { + _, err := sl_service.RestoreBaseConfiguration() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::restoreConfiguration", func() { + It("API Call Test", func() { + _, err := sl_service.RestoreConfiguration(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::saveCurrentConfiguration", func() { + It("API Call Test", func() { + _, err := sl_service.SaveCurrentConfiguration(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::updateLiveLoadBalancer", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateLiveLoadBalancer(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller::updateNetScalerLicense", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateNetScalerLicense() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Application_Delivery_Controller_Configuration_History service", func() { + var sl_service services.Network_Application_Delivery_Controller_Configuration_History + BeforeEach(func() { + sl_service = services.GetNetworkApplicationDeliveryControllerConfigurationHistoryService(slsession) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_Configuration_History Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_Configuration_History Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_Configuration_History::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_Configuration_History::getController", func() { + It("API Call Test", func() { + _, err := sl_service.GetController() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_Configuration_History::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute service", func() { + var sl_service services.Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute + BeforeEach(func() { + sl_service = services.GetNetworkApplicationDeliveryControllerLoadBalancerHealthAttributeService(slsession) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute::getHealthCheck", func() { + It("API Call Test", func() { + _, err := sl_service.GetHealthCheck() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type service", func() { + var sl_service services.Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type + BeforeEach(func() { + sl_service = services.GetNetworkApplicationDeliveryControllerLoadBalancerHealthAttributeTypeService(slsession) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Attribute_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Check service", func() { + var sl_service services.Network_Application_Delivery_Controller_LoadBalancer_Health_Check + BeforeEach(func() { + sl_service = services.GetNetworkApplicationDeliveryControllerLoadBalancerHealthCheckService(slsession) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Check Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Check Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Check::getAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Check::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Check::getServices", func() { + It("API Call Test", func() { + _, err := sl_service.GetServices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Check::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type service", func() { + var sl_service services.Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type + BeforeEach(func() { + sl_service = services.GetNetworkApplicationDeliveryControllerLoadBalancerHealthCheckTypeService(slsession) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Health_Check_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Routing_Method service", func() { + var sl_service services.Network_Application_Delivery_Controller_LoadBalancer_Routing_Method + BeforeEach(func() { + sl_service = services.GetNetworkApplicationDeliveryControllerLoadBalancerRoutingMethodService(slsession) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Routing_Method Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Routing_Method Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Routing_Method::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Routing_Method::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Routing_Type service", func() { + var sl_service services.Network_Application_Delivery_Controller_LoadBalancer_Routing_Type + BeforeEach(func() { + sl_service = services.GetNetworkApplicationDeliveryControllerLoadBalancerRoutingTypeService(slsession) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Routing_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Routing_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Routing_Type::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Routing_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service service", func() { + var sl_service services.Network_Application_Delivery_Controller_LoadBalancer_Service + BeforeEach(func() { + sl_service = services.GetNetworkApplicationDeliveryControllerLoadBalancerServiceService(slsession) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service::deleteObject", func() { + It("API Call Test", func() { + err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service::getGraphImage", func() { + It("API Call Test", func() { + _, err := sl_service.GetGraphImage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service::getGroupReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetGroupReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service::getGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service::getHealthCheck", func() { + It("API Call Test", func() { + _, err := sl_service.GetHealthCheck() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service::getHealthChecks", func() { + It("API Call Test", func() { + _, err := sl_service.GetHealthChecks() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service::getIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service::getServiceGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service::toggleStatus", func() { + It("API Call Test", func() { + _, err := sl_service.ToggleStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service_Group service", func() { + var sl_service services.Network_Application_Delivery_Controller_LoadBalancer_Service_Group + BeforeEach(func() { + sl_service = services.GetNetworkApplicationDeliveryControllerLoadBalancerServiceGroupService(slsession) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service_Group Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service_Group Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service_Group::getGraphImage", func() { + It("API Call Test", func() { + _, err := sl_service.GetGraphImage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service_Group::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service_Group::getRoutingMethod", func() { + It("API Call Test", func() { + _, err := sl_service.GetRoutingMethod() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service_Group::getRoutingType", func() { + It("API Call Test", func() { + _, err := sl_service.GetRoutingType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service_Group::getServiceReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service_Group::getServices", func() { + It("API Call Test", func() { + _, err := sl_service.GetServices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service_Group::getVirtualServer", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualServer() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service_Group::getVirtualServers", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualServers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service_Group::kickAllConnections", func() { + It("API Call Test", func() { + _, err := sl_service.KickAllConnections() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress service", func() { + var sl_service services.Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress + BeforeEach(func() { + sl_service = services.GetNetworkApplicationDeliveryControllerLoadBalancerVirtualIpAddressService(slsession) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress::getApplicationDeliveryController", func() { + It("API Call Test", func() { + _, err := sl_service.GetApplicationDeliveryController() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress::getApplicationDeliveryControllers", func() { + It("API Call Test", func() { + _, err := sl_service.GetApplicationDeliveryControllers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress::getAvailableSecureTransportCiphers", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableSecureTransportCiphers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress::getAvailableSecureTransportProtocols", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableSecureTransportProtocols() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress::getDedicatedBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetDedicatedBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress::getHighAvailabilityFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHighAvailabilityFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress::getIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress::getLoadBalancerHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetLoadBalancerHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress::getManagedResourceFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetManagedResourceFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress::getSecureTransportCiphers", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecureTransportCiphers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress::getSecureTransportProtocols", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecureTransportProtocols() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress::getSecurityCertificate", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecurityCertificate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress::getSecurityCertificateEntry", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecurityCertificateEntry() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress::getVirtualServers", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualServers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress::startSsl", func() { + It("API Call Test", func() { + _, err := sl_service.StartSsl() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress::stopSsl", func() { + It("API Call Test", func() { + _, err := sl_service.StopSsl() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualIpAddress::upgradeConnectionLimit", func() { + It("API Call Test", func() { + _, err := sl_service.UpgradeConnectionLimit() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualServer service", func() { + var sl_service services.Network_Application_Delivery_Controller_LoadBalancer_VirtualServer + BeforeEach(func() { + sl_service = services.GetNetworkApplicationDeliveryControllerLoadBalancerVirtualServerService(slsession) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualServer Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualServer Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualServer::deleteObject", func() { + It("API Call Test", func() { + err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualServer::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualServer::getRoutingMethod", func() { + It("API Call Test", func() { + _, err := sl_service.GetRoutingMethod() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualServer::getServiceGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualServer::getVirtualIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualServer::startSsl", func() { + It("API Call Test", func() { + _, err := sl_service.StartSsl() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualServer::stopSsl", func() { + It("API Call Test", func() { + _, err := sl_service.StopSsl() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Backbone service", func() { + var sl_service services.Network_Backbone + BeforeEach(func() { + sl_service = services.GetNetworkBackboneService(slsession) + }) + Context("SoftLayer_Network_Backbone Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Backbone Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Backbone::getAllBackbones", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllBackbones() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Backbone::getBackbonesForLocationName", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackbonesForLocationName(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Backbone::getHealth", func() { + It("API Call Test", func() { + _, err := sl_service.GetHealth() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Backbone::getLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Backbone::getNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Backbone::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Backbone_Location_Dependent service", func() { + var sl_service services.Network_Backbone_Location_Dependent + BeforeEach(func() { + sl_service = services.GetNetworkBackboneLocationDependentService(slsession) + }) + Context("SoftLayer_Network_Backbone_Location_Dependent Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Backbone_Location_Dependent Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Backbone_Location_Dependent::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Backbone_Location_Dependent::getDependentLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetDependentLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Backbone_Location_Dependent::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Backbone_Location_Dependent::getSourceDependentsByName", func() { + It("API Call Test", func() { + _, err := sl_service.GetSourceDependentsByName(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Backbone_Location_Dependent::getSourceLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetSourceLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Bandwidth_Version1_Allotment service", func() { + var sl_service services.Network_Bandwidth_Version1_Allotment + BeforeEach(func() { + sl_service = services.GetNetworkBandwidthVersion1AllotmentService(slsession) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getActiveDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getApplicationDeliveryControllers", func() { + It("API Call Test", func() { + _, err := sl_service.GetApplicationDeliveryControllers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getAverageDailyPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageDailyPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getBandwidthAllotmentType", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthAllotmentType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getBandwidthForDateRange", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthForDateRange(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getBandwidthImage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthImage(nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getBareMetalInstances", func() { + It("API Call Test", func() { + _, err := sl_service.GetBareMetalInstances() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getBillingCycleBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingCycleBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getBillingCyclePrivateBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingCyclePrivateBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getBillingCyclePublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingCyclePublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getBillingCyclePublicUsageTotal", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingCyclePublicUsageTotal() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getCurrentBandwidthSummary", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBandwidthSummary() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getInboundPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetInboundPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getLocationGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getManagedBareMetalInstances", func() { + It("API Call Test", func() { + _, err := sl_service.GetManagedBareMetalInstances() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getManagedHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetManagedHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getManagedVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetManagedVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getMetricTrackingObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getMetricTrackingObjectId", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObjectId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getOutboundPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetOutboundPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getOverBandwidthAllocationFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetOverBandwidthAllocationFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getPrivateNetworkOnlyHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateNetworkOnlyHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getProjectedOverBandwidthAllocationFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetProjectedOverBandwidthAllocationFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getProjectedPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetProjectedPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getServiceProvider", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceProvider() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getTotalBandwidthAllocated", func() { + It("API Call Test", func() { + _, err := sl_service.GetTotalBandwidthAllocated() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getVdrMemberRecurringFee", func() { + It("API Call Test", func() { + _, err := sl_service.GetVdrMemberRecurringFee() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::getVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::reassignServers", func() { + It("API Call Test", func() { + _, err := sl_service.ReassignServers(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::requestVdrCancellation", func() { + It("API Call Test", func() { + _, err := sl_service.RequestVdrCancellation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::requestVdrContentUpdates", func() { + It("API Call Test", func() { + _, err := sl_service.RequestVdrContentUpdates(nil, nil, nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::setVdrContent", func() { + It("API Call Test", func() { + _, err := sl_service.SetVdrContent(nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::unassignServers", func() { + It("API Call Test", func() { + _, err := sl_service.UnassignServers(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::voidPendingServerMove", func() { + It("API Call Test", func() { + _, err := sl_service.VoidPendingServerMove(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Bandwidth_Version1_Allotment::voidPendingVdrCancellation", func() { + It("API Call Test", func() { + _, err := sl_service.VoidPendingVdrCancellation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_CdnMarketplace_Account service", func() { + var sl_service services.Network_CdnMarketplace_Account + BeforeEach(func() { + sl_service = services.GetNetworkCdnMarketplaceAccountService(slsession) + }) + Context("SoftLayer_Network_CdnMarketplace_Account Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Account Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Account::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Account::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Account::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Account::verifyCdnAccountExists", func() { + It("API Call Test", func() { + _, err := sl_service.VerifyCdnAccountExists(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_CdnMarketplace_Configuration_Behavior_Geoblocking service", func() { + var sl_service services.Network_CdnMarketplace_Configuration_Behavior_Geoblocking + BeforeEach(func() { + sl_service = services.GetNetworkCdnMarketplaceConfigurationBehaviorGeoblockingService(slsession) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_Geoblocking Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_Geoblocking Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_Geoblocking::createGeoblocking", func() { + It("API Call Test", func() { + _, err := sl_service.CreateGeoblocking(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_Geoblocking::deleteGeoblocking", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteGeoblocking(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_Geoblocking::getGeoblocking", func() { + It("API Call Test", func() { + _, err := sl_service.GetGeoblocking(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_Geoblocking::getGeoblockingAllowedTypesAndRegions", func() { + It("API Call Test", func() { + _, err := sl_service.GetGeoblockingAllowedTypesAndRegions(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_Geoblocking::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_Geoblocking::updateGeoblocking", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateGeoblocking(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_CdnMarketplace_Configuration_Behavior_HotlinkProtection service", func() { + var sl_service services.Network_CdnMarketplace_Configuration_Behavior_HotlinkProtection + BeforeEach(func() { + sl_service = services.GetNetworkCdnMarketplaceConfigurationBehaviorHotlinkProtectionService(slsession) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_HotlinkProtection Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_HotlinkProtection Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_HotlinkProtection::createHotlinkProtection", func() { + It("API Call Test", func() { + _, err := sl_service.CreateHotlinkProtection(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_HotlinkProtection::deleteHotlinkProtection", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteHotlinkProtection(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_HotlinkProtection::getHotlinkProtection", func() { + It("API Call Test", func() { + _, err := sl_service.GetHotlinkProtection(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_HotlinkProtection::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_HotlinkProtection::updateHotlinkProtection", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateHotlinkProtection(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_CdnMarketplace_Configuration_Behavior_ModifyResponseHeader service", func() { + var sl_service services.Network_CdnMarketplace_Configuration_Behavior_ModifyResponseHeader + BeforeEach(func() { + sl_service = services.GetNetworkCdnMarketplaceConfigurationBehaviorModifyResponseHeaderService(slsession) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_ModifyResponseHeader Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_ModifyResponseHeader Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_ModifyResponseHeader::createModifyResponseHeader", func() { + It("API Call Test", func() { + _, err := sl_service.CreateModifyResponseHeader(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_ModifyResponseHeader::deleteModifyResponseHeader", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteModifyResponseHeader(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_ModifyResponseHeader::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_ModifyResponseHeader::listModifyResponseHeader", func() { + It("API Call Test", func() { + _, err := sl_service.ListModifyResponseHeader(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_ModifyResponseHeader::updateModifyResponseHeader", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateModifyResponseHeader(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_CdnMarketplace_Configuration_Behavior_TokenAuth service", func() { + var sl_service services.Network_CdnMarketplace_Configuration_Behavior_TokenAuth + BeforeEach(func() { + sl_service = services.GetNetworkCdnMarketplaceConfigurationBehaviorTokenAuthService(slsession) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_TokenAuth Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_TokenAuth Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_TokenAuth::createTokenAuthPath", func() { + It("API Call Test", func() { + _, err := sl_service.CreateTokenAuthPath(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_TokenAuth::deleteTokenAuthPath", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteTokenAuthPath(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_TokenAuth::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_TokenAuth::listTokenAuthPath", func() { + It("API Call Test", func() { + _, err := sl_service.ListTokenAuthPath(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Behavior_TokenAuth::updateTokenAuthPath", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateTokenAuthPath(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_CdnMarketplace_Configuration_Cache_Purge service", func() { + var sl_service services.Network_CdnMarketplace_Configuration_Cache_Purge + BeforeEach(func() { + sl_service = services.GetNetworkCdnMarketplaceConfigurationCachePurgeService(slsession) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_Purge Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_Purge Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_Purge::createPurge", func() { + It("API Call Test", func() { + _, err := sl_service.CreatePurge(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_Purge::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_Purge::getPurgeHistoryPerMapping", func() { + It("API Call Test", func() { + _, err := sl_service.GetPurgeHistoryPerMapping(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_Purge::getPurgeStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetPurgeStatus(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_Purge::saveOrUnsavePurgePath", func() { + It("API Call Test", func() { + _, err := sl_service.SaveOrUnsavePurgePath(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_CdnMarketplace_Configuration_Cache_PurgeGroup service", func() { + var sl_service services.Network_CdnMarketplace_Configuration_Cache_PurgeGroup + BeforeEach(func() { + sl_service = services.GetNetworkCdnMarketplaceConfigurationCachePurgeGroupService(slsession) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_PurgeGroup Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_PurgeGroup Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_PurgeGroup::createPurgeGroup", func() { + It("API Call Test", func() { + _, err := sl_service.CreatePurgeGroup(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_PurgeGroup::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_PurgeGroup::getPurgeGroupByGroupId", func() { + It("API Call Test", func() { + _, err := sl_service.GetPurgeGroupByGroupId(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_PurgeGroup::getPurgeGroupQuota", func() { + It("API Call Test", func() { + _, err := sl_service.GetPurgeGroupQuota() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_PurgeGroup::listFavoriteGroup", func() { + It("API Call Test", func() { + _, err := sl_service.ListFavoriteGroup(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_PurgeGroup::listUnfavoriteGroup", func() { + It("API Call Test", func() { + _, err := sl_service.ListUnfavoriteGroup(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_PurgeGroup::purgeByGroupIds", func() { + It("API Call Test", func() { + _, err := sl_service.PurgeByGroupIds(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_PurgeGroup::removePurgeGroupFromFavorite", func() { + It("API Call Test", func() { + _, err := sl_service.RemovePurgeGroupFromFavorite(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_PurgeGroup::savePurgeGroupAsFavorite", func() { + It("API Call Test", func() { + _, err := sl_service.SavePurgeGroupAsFavorite(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_CdnMarketplace_Configuration_Cache_PurgeHistory service", func() { + var sl_service services.Network_CdnMarketplace_Configuration_Cache_PurgeHistory + BeforeEach(func() { + sl_service = services.GetNetworkCdnMarketplaceConfigurationCachePurgeHistoryService(slsession) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_PurgeHistory Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_PurgeHistory Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_PurgeHistory::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_PurgeHistory::listPurgeGroupHistory", func() { + It("API Call Test", func() { + _, err := sl_service.ListPurgeGroupHistory(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_CdnMarketplace_Configuration_Cache_TimeToLive service", func() { + var sl_service services.Network_CdnMarketplace_Configuration_Cache_TimeToLive + BeforeEach(func() { + sl_service = services.GetNetworkCdnMarketplaceConfigurationCacheTimeToLiveService(slsession) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_TimeToLive Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_TimeToLive Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_TimeToLive::createTimeToLive", func() { + It("API Call Test", func() { + _, err := sl_service.CreateTimeToLive(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_TimeToLive::deleteTimeToLive", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteTimeToLive(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_TimeToLive::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_TimeToLive::listTimeToLive", func() { + It("API Call Test", func() { + _, err := sl_service.ListTimeToLive(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Cache_TimeToLive::updateTimeToLive", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateTimeToLive(nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_CdnMarketplace_Configuration_Mapping service", func() { + var sl_service services.Network_CdnMarketplace_Configuration_Mapping + BeforeEach(func() { + sl_service = services.GetNetworkCdnMarketplaceConfigurationMappingService(slsession) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Mapping Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Mapping Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Mapping::createDomainMapping", func() { + It("API Call Test", func() { + _, err := sl_service.CreateDomainMapping(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Mapping::deleteDomainMapping", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteDomainMapping(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Mapping::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Mapping::listDomainMappingByUniqueId", func() { + It("API Call Test", func() { + _, err := sl_service.ListDomainMappingByUniqueId(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Mapping::listDomainMappings", func() { + It("API Call Test", func() { + _, err := sl_service.ListDomainMappings() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Mapping::retryHttpsActionRequest", func() { + It("API Call Test", func() { + _, err := sl_service.RetryHttpsActionRequest(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Mapping::startDomainMapping", func() { + It("API Call Test", func() { + _, err := sl_service.StartDomainMapping(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Mapping::stopDomainMapping", func() { + It("API Call Test", func() { + _, err := sl_service.StopDomainMapping(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Mapping::updateDomainMapping", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateDomainMapping(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Mapping::verifyCname", func() { + It("API Call Test", func() { + _, err := sl_service.VerifyCname(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Mapping::verifyDomainMapping", func() { + It("API Call Test", func() { + _, err := sl_service.VerifyDomainMapping(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_CdnMarketplace_Configuration_Mapping_Path service", func() { + var sl_service services.Network_CdnMarketplace_Configuration_Mapping_Path + BeforeEach(func() { + sl_service = services.GetNetworkCdnMarketplaceConfigurationMappingPathService(slsession) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Mapping_Path Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Mapping_Path Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Mapping_Path::createOriginPath", func() { + It("API Call Test", func() { + _, err := sl_service.CreateOriginPath(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Mapping_Path::deleteOriginPath", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteOriginPath(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Mapping_Path::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Mapping_Path::listOriginPath", func() { + It("API Call Test", func() { + _, err := sl_service.ListOriginPath(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Configuration_Mapping_Path::updateOriginPath", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateOriginPath(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_CdnMarketplace_Metrics service", func() { + var sl_service services.Network_CdnMarketplace_Metrics + BeforeEach(func() { + sl_service = services.GetNetworkCdnMarketplaceMetricsService(slsession) + }) + Context("SoftLayer_Network_CdnMarketplace_Metrics Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Metrics Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Metrics::getCustomerInvoicingMetrics", func() { + It("API Call Test", func() { + _, err := sl_service.GetCustomerInvoicingMetrics(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Metrics::getCustomerRealTimeMetrics", func() { + It("API Call Test", func() { + _, err := sl_service.GetCustomerRealTimeMetrics(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Metrics::getCustomerUsageMetrics", func() { + It("API Call Test", func() { + _, err := sl_service.GetCustomerUsageMetrics(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Metrics::getMappingBandwidthByRegionMetrics", func() { + It("API Call Test", func() { + _, err := sl_service.GetMappingBandwidthByRegionMetrics(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Metrics::getMappingBandwidthMetrics", func() { + It("API Call Test", func() { + _, err := sl_service.GetMappingBandwidthMetrics(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Metrics::getMappingHitsByTypeMetrics", func() { + It("API Call Test", func() { + _, err := sl_service.GetMappingHitsByTypeMetrics(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Metrics::getMappingHitsMetrics", func() { + It("API Call Test", func() { + _, err := sl_service.GetMappingHitsMetrics(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Metrics::getMappingIntegratedMetrics", func() { + It("API Call Test", func() { + _, err := sl_service.GetMappingIntegratedMetrics(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Metrics::getMappingRealTimeMetrics", func() { + It("API Call Test", func() { + _, err := sl_service.GetMappingRealTimeMetrics(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Metrics::getMappingUsageMetrics", func() { + It("API Call Test", func() { + _, err := sl_service.GetMappingUsageMetrics(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_CdnMarketplace_Vendor service", func() { + var sl_service services.Network_CdnMarketplace_Vendor + BeforeEach(func() { + sl_service = services.GetNetworkCdnMarketplaceVendorService(slsession) + }) + Context("SoftLayer_Network_CdnMarketplace_Vendor Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Vendor Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Vendor::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_CdnMarketplace_Vendor::listVendors", func() { + It("API Call Test", func() { + _, err := sl_service.ListVendors() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Component service", func() { + var sl_service services.Network_Component + BeforeEach(func() { + sl_service = services.GetNetworkComponentService(slsession) + }) + Context("SoftLayer_Network_Component Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Component Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Component::addNetworkVlanTrunks", func() { + It("API Call Test", func() { + _, err := sl_service.AddNetworkVlanTrunks(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::clearNetworkVlanTrunks", func() { + It("API Call Test", func() { + _, err := sl_service.ClearNetworkVlanTrunks() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getActiveCommand", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveCommand() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getDownlinkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetDownlinkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getDuplexMode", func() { + It("API Call Test", func() { + _, err := sl_service.GetDuplexMode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getHighAvailabilityFirewallFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHighAvailabilityFirewallFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getIpAddressBindings", func() { + It("API Call Test", func() { + _, err := sl_service.GetIpAddressBindings() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getLastCommand", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastCommand() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getMetricTrackingObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getNetworkComponentFirewall", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponentFirewall() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getNetworkComponentGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponentGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getNetworkHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getNetworkVlan", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlan() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getNetworkVlanTrunks", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlanTrunks() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getNetworkVlansTrunkable", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlansTrunkable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getPortStatistics", func() { + It("API Call Test", func() { + _, err := sl_service.GetPortStatistics() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getPrimaryIpAddressRecord", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryIpAddressRecord() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getPrimarySubnet", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimarySubnet() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getPrimaryVersion6IpAddressRecord", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryVersion6IpAddressRecord() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getRecentCommands", func() { + It("API Call Test", func() { + _, err := sl_service.GetRecentCommands() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getRedundancyCapableFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetRedundancyCapableFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getRedundancyEnabledFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetRedundancyEnabledFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getRemoteManagementUsers", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemoteManagementUsers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getRouter", func() { + It("API Call Test", func() { + _, err := sl_service.GetRouter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getStorageNetworkFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageNetworkFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getUplinkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetUplinkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::getUplinkDuplexMode", func() { + It("API Call Test", func() { + _, err := sl_service.GetUplinkDuplexMode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component::removeNetworkVlanTrunks", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveNetworkVlanTrunks(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Component_Firewall service", func() { + var sl_service services.Network_Component_Firewall + BeforeEach(func() { + sl_service = services.GetNetworkComponentFirewallService(slsession) + }) + Context("SoftLayer_Network_Component_Firewall Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Component_Firewall Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Component_Firewall::getApplyServerRuleSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetApplyServerRuleSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component_Firewall::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component_Firewall::getGuestNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetGuestNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component_Firewall::getNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component_Firewall::getNetworkFirewallUpdateRequest", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkFirewallUpdateRequest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component_Firewall::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component_Firewall::getRules", func() { + It("API Call Test", func() { + _, err := sl_service.GetRules() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component_Firewall::getSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Component_Firewall::hasActiveTransactions", func() { + It("API Call Test", func() { + _, err := sl_service.HasActiveTransactions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Customer_Subnet service", func() { + var sl_service services.Network_Customer_Subnet + BeforeEach(func() { + sl_service = services.GetNetworkCustomerSubnetService(slsession) + }) + Context("SoftLayer_Network_Customer_Subnet Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Customer_Subnet Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Customer_Subnet::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Customer_Subnet::getIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Customer_Subnet::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_DirectLink_Location service", func() { + var sl_service services.Network_DirectLink_Location + BeforeEach(func() { + sl_service = services.GetNetworkDirectLinkLocationService(slsession) + }) + Context("SoftLayer_Network_DirectLink_Location Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_DirectLink_Location Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_DirectLink_Location::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_DirectLink_Location::getLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_DirectLink_Location::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_DirectLink_Location::getProvider", func() { + It("API Call Test", func() { + _, err := sl_service.GetProvider() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_DirectLink_Location::getServiceType", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_DirectLink_Provider service", func() { + var sl_service services.Network_DirectLink_Provider + BeforeEach(func() { + sl_service = services.GetNetworkDirectLinkProviderService(slsession) + }) + Context("SoftLayer_Network_DirectLink_Provider Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_DirectLink_Provider Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_DirectLink_Provider::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_DirectLink_ServiceType service", func() { + var sl_service services.Network_DirectLink_ServiceType + BeforeEach(func() { + sl_service = services.GetNetworkDirectLinkServiceTypeService(slsession) + }) + Context("SoftLayer_Network_DirectLink_ServiceType Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_DirectLink_ServiceType Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_DirectLink_ServiceType::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Firewall_AccessControlList service", func() { + var sl_service services.Network_Firewall_AccessControlList + BeforeEach(func() { + sl_service = services.GetNetworkFirewallAccessControlListService(slsession) + }) + Context("SoftLayer_Network_Firewall_AccessControlList Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Firewall_AccessControlList Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Firewall_AccessControlList::getNetworkFirewallUpdateRequests", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkFirewallUpdateRequests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Firewall_AccessControlList::getNetworkVlan", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlan() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Firewall_AccessControlList::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Firewall_AccessControlList::getRules", func() { + It("API Call Test", func() { + _, err := sl_service.GetRules() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Firewall_Interface service", func() { + var sl_service services.Network_Firewall_Interface + BeforeEach(func() { + sl_service = services.GetNetworkFirewallInterfaceService(slsession) + }) + Context("SoftLayer_Network_Firewall_Interface Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Firewall_Interface Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Firewall_Interface::getFirewallContextAccessControlLists", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallContextAccessControlLists() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Firewall_Interface::getNetworkVlan", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlan() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Firewall_Interface::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Firewall_Module_Context_Interface service", func() { + var sl_service services.Network_Firewall_Module_Context_Interface + BeforeEach(func() { + sl_service = services.GetNetworkFirewallModuleContextInterfaceService(slsession) + }) + Context("SoftLayer_Network_Firewall_Module_Context_Interface Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Firewall_Module_Context_Interface Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Firewall_Module_Context_Interface::getFirewallContextAccessControlLists", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallContextAccessControlLists() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Firewall_Module_Context_Interface::getNetworkVlan", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlan() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Firewall_Module_Context_Interface::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Firewall_Template service", func() { + var sl_service services.Network_Firewall_Template + BeforeEach(func() { + sl_service = services.GetNetworkFirewallTemplateService(slsession) + }) + Context("SoftLayer_Network_Firewall_Template Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Firewall_Template Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Firewall_Template::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Firewall_Template::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Firewall_Template::getRules", func() { + It("API Call Test", func() { + _, err := sl_service.GetRules() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Firewall_Update_Request service", func() { + var sl_service services.Network_Firewall_Update_Request + BeforeEach(func() { + sl_service = services.GetNetworkFirewallUpdateRequestService(slsession) + }) + Context("SoftLayer_Network_Firewall_Update_Request Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Firewall_Update_Request Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Firewall_Update_Request::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Firewall_Update_Request::getAuthorizingUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetAuthorizingUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Firewall_Update_Request::getFirewallUpdateRequestRuleAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallUpdateRequestRuleAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Firewall_Update_Request::getGuest", func() { + It("API Call Test", func() { + _, err := sl_service.GetGuest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Firewall_Update_Request::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Firewall_Update_Request::getNetworkComponentFirewall", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponentFirewall() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Firewall_Update_Request::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Firewall_Update_Request::getRules", func() { + It("API Call Test", func() { + _, err := sl_service.GetRules() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Firewall_Update_Request::updateRuleNote", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateRuleNote(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Firewall_Update_Request_Rule service", func() { + var sl_service services.Network_Firewall_Update_Request_Rule + BeforeEach(func() { + sl_service = services.GetNetworkFirewallUpdateRequestRuleService(slsession) + }) + Context("SoftLayer_Network_Firewall_Update_Request_Rule Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Firewall_Update_Request_Rule Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Firewall_Update_Request_Rule::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Firewall_Update_Request_Rule::getFirewallUpdateRequest", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallUpdateRequest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Firewall_Update_Request_Rule::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Firewall_Update_Request_Rule::validateRule", func() { + It("API Call Test", func() { + err := sl_service.ValidateRule(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Gateway service", func() { + var sl_service services.Network_Gateway + BeforeEach(func() { + sl_service = services.GetNetworkGatewayService(slsession) + }) + Context("SoftLayer_Network_Gateway Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Gateway Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Gateway::bypassAllVlans", func() { + It("API Call Test", func() { + err := sl_service.BypassAllVlans() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::bypassVlans", func() { + It("API Call Test", func() { + err := sl_service.BypassVlans(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::changeGatewayVersion", func() { + It("API Call Test", func() { + _, err := sl_service.ChangeGatewayVersion(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::checkAccountWhiteList", func() { + It("API Call Test", func() { + _, err := sl_service.CheckAccountWhiteList(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::forceRebuildCluster", func() { + It("API Call Test", func() { + _, err := sl_service.ForceRebuildCluster(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::getAllowedOsPriceIds", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedOsPriceIds(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::getCapacity", func() { + It("API Call Test", func() { + _, err := sl_service.GetCapacity() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::getInsideVlans", func() { + It("API Call Test", func() { + _, err := sl_service.GetInsideVlans() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::getManufacturer", func() { + It("API Call Test", func() { + _, err := sl_service.GetManufacturer(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::getMemberGatewayImagesMatch", func() { + It("API Call Test", func() { + _, err := sl_service.GetMemberGatewayImagesMatch() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::getMembers", func() { + It("API Call Test", func() { + _, err := sl_service.GetMembers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::getNetworkFirewall", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkFirewall() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::getNetworkFirewallFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkFirewallFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::getPossibleInsideVlans", func() { + It("API Call Test", func() { + _, err := sl_service.GetPossibleInsideVlans() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::getPrivateIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::getPrivateVlan", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateVlan() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::getPublicIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::getPublicIpv6Address", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicIpv6Address() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::getPublicVlan", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicVlan() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::getRollbackSupport", func() { + It("API Call Test", func() { + _, err := sl_service.GetRollbackSupport() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::getStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::getUpgradeItemPrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeItemPrices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::isAccountWhiteListed", func() { + It("API Call Test", func() { + _, err := sl_service.IsAccountWhiteListed(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::isLicenseServerAllowed", func() { + It("API Call Test", func() { + _, err := sl_service.IsLicenseServerAllowed(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::isRollbackAllowed", func() { + It("API Call Test", func() { + _, err := sl_service.IsRollbackAllowed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::manageLicenses", func() { + It("API Call Test", func() { + _, err := sl_service.ManageLicenses(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::rebuildHACluster", func() { + It("API Call Test", func() { + _, err := sl_service.RebuildHACluster() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::rebuildvSRXHACluster", func() { + It("API Call Test", func() { + _, err := sl_service.RebuildvSRXHACluster() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::refreshGatewayLicense", func() { + It("API Call Test", func() { + _, err := sl_service.RefreshGatewayLicense() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::rename", func() { + It("API Call Test", func() { + _, err := sl_service.Rename(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::setGatewayPassword", func() { + It("API Call Test", func() { + _, err := sl_service.SetGatewayPassword(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::unbypassAllVlans", func() { + It("API Call Test", func() { + err := sl_service.UnbypassAllVlans() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::unbypassVlans", func() { + It("API Call Test", func() { + err := sl_service.UnbypassVlans(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway::updateGatewayUserPassword", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateGatewayUserPassword(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Gateway_Member service", func() { + var sl_service services.Network_Gateway_Member + BeforeEach(func() { + sl_service = services.GetNetworkGatewayMemberService(slsession) + }) + Context("SoftLayer_Network_Gateway_Member Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Gateway_Member Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Gateway_Member::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Member::createObjects", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Member::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Member::getAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Member::getGatewaySoftwareDescription", func() { + It("API Call Test", func() { + _, err := sl_service.GetGatewaySoftwareDescription() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Member::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Member::getLicenses", func() { + It("API Call Test", func() { + _, err := sl_service.GetLicenses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Member::getNetworkGateway", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkGateway() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Member::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Member::getPasswords", func() { + It("API Call Test", func() { + _, err := sl_service.GetPasswords() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Member::getPublicIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Gateway_Member_Attribute service", func() { + var sl_service services.Network_Gateway_Member_Attribute + BeforeEach(func() { + sl_service = services.GetNetworkGatewayMemberAttributeService(slsession) + }) + Context("SoftLayer_Network_Gateway_Member_Attribute Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Gateway_Member_Attribute Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Gateway_Member_Attribute::getGatewayMember", func() { + It("API Call Test", func() { + _, err := sl_service.GetGatewayMember() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Member_Attribute::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Gateway_Precheck service", func() { + var sl_service services.Network_Gateway_Precheck + BeforeEach(func() { + sl_service = services.GetNetworkGatewayPrecheckService(slsession) + }) + Context("SoftLayer_Network_Gateway_Precheck Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Gateway_Precheck Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Gateway_Precheck::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Precheck::getPrecheckStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrecheckStatus(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Precheck::licenseManagementPrecheck", func() { + It("API Call Test", func() { + _, err := sl_service.LicenseManagementPrecheck(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Precheck::osReloadPrecheck", func() { + It("API Call Test", func() { + _, err := sl_service.OsReloadPrecheck(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Precheck::upgradePrecheck", func() { + It("API Call Test", func() { + _, err := sl_service.UpgradePrecheck(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Gateway_Status service", func() { + var sl_service services.Network_Gateway_Status + BeforeEach(func() { + sl_service = services.GetNetworkGatewayStatusService(slsession) + }) + Context("SoftLayer_Network_Gateway_Status Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Gateway_Status Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Gateway_Status::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Gateway_VersionUpgrade service", func() { + var sl_service services.Network_Gateway_VersionUpgrade + BeforeEach(func() { + sl_service = services.GetNetworkGatewayVersionUpgradeService(slsession) + }) + Context("SoftLayer_Network_Gateway_VersionUpgrade Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Gateway_VersionUpgrade Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Gateway_VersionUpgrade::getAllByUpgradePkgUrlId", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllByUpgradePkgUrlId(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_VersionUpgrade::getAllUpgradesByGatewayId", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllUpgradesByGatewayId(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_VersionUpgrade::getGwOrdersAllowedLicenses", func() { + It("API Call Test", func() { + _, err := sl_service.GetGwOrdersAllowedLicenses(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_VersionUpgrade::getGwOrdersAllowedOS", func() { + It("API Call Test", func() { + _, err := sl_service.GetGwOrdersAllowedOS(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_VersionUpgrade::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_VersionUpgrade::validateVersionChange", func() { + It("API Call Test", func() { + _, err := sl_service.ValidateVersionChange(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Gateway_Vlan service", func() { + var sl_service services.Network_Gateway_Vlan + BeforeEach(func() { + sl_service = services.GetNetworkGatewayVlanService(slsession) + }) + Context("SoftLayer_Network_Gateway_Vlan Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Gateway_Vlan Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Gateway_Vlan::bypass", func() { + It("API Call Test", func() { + err := sl_service.Bypass() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Vlan::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Vlan::createObjects", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Vlan::deleteObject", func() { + It("API Call Test", func() { + err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Vlan::deleteObjects", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Vlan::getNetworkGateway", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkGateway() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Vlan::getNetworkVlan", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlan() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Vlan::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Gateway_Vlan::unbypass", func() { + It("API Call Test", func() { + err := sl_service.Unbypass() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Interconnect_Tenant service", func() { + var sl_service services.Network_Interconnect_Tenant + BeforeEach(func() { + sl_service = services.GetNetworkInterconnectTenantService(slsession) + }) + Context("SoftLayer_Network_Interconnect_Tenant Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant::allowDeleteConnection", func() { + It("API Call Test", func() { + _, err := sl_service.AllowDeleteConnection(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant::createConnection", func() { + It("API Call Test", func() { + _, err := sl_service.CreateConnection(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant::deleteConnection", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteConnection(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant::editConnection", func() { + It("API Call Test", func() { + _, err := sl_service.EditConnection(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant::getAllConnections", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllConnections() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant::getAllPortLabelsWithCurrentUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllPortLabelsWithCurrentUsage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant::getBgpIpRange", func() { + It("API Call Test", func() { + _, err := sl_service.GetBgpIpRange() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant::getConnection", func() { + It("API Call Test", func() { + _, err := sl_service.GetConnection(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant::getDatacenterName", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenterName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant::getDirectLinkSpeeds", func() { + It("API Call Test", func() { + _, err := sl_service.GetDirectLinkSpeeds(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant::getNetworkZones", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkZones() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant::getPortLabel", func() { + It("API Call Test", func() { + _, err := sl_service.GetPortLabel() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant::getPorts", func() { + It("API Call Test", func() { + _, err := sl_service.GetPorts(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant::getServiceType", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant::getVendorName", func() { + It("API Call Test", func() { + _, err := sl_service.GetVendorName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant::getZoneName", func() { + It("API Call Test", func() { + _, err := sl_service.GetZoneName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant::rejectApprovalRequests", func() { + It("API Call Test", func() { + _, err := sl_service.RejectApprovalRequests(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Interconnect_Tenant::updateConnectionStatus", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateConnectionStatus(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_LBaaS_HealthMonitor service", func() { + var sl_service services.Network_LBaaS_HealthMonitor + BeforeEach(func() { + sl_service = services.GetNetworkLBaaSHealthMonitorService(slsession) + }) + Context("SoftLayer_Network_LBaaS_HealthMonitor Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_LBaaS_HealthMonitor Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_LBaaS_HealthMonitor::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_HealthMonitor::updateLoadBalancerHealthMonitors", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateLoadBalancerHealthMonitors(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_LBaaS_L7Member service", func() { + var sl_service services.Network_LBaaS_L7Member + BeforeEach(func() { + sl_service = services.GetNetworkLBaaSL7MemberService(slsession) + }) + Context("SoftLayer_Network_LBaaS_L7Member Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Member Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Member::addL7PoolMembers", func() { + It("API Call Test", func() { + _, err := sl_service.AddL7PoolMembers(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Member::deleteL7PoolMembers", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteL7PoolMembers(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Member::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Member::updateL7PoolMembers", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateL7PoolMembers(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_LBaaS_L7Policy service", func() { + var sl_service services.Network_LBaaS_L7Policy + BeforeEach(func() { + sl_service = services.GetNetworkLBaaSL7PolicyService(slsession) + }) + Context("SoftLayer_Network_LBaaS_L7Policy Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Policy Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Policy::addL7Policies", func() { + It("API Call Test", func() { + _, err := sl_service.AddL7Policies(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Policy::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Policy::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Policy::getL7Rules", func() { + It("API Call Test", func() { + _, err := sl_service.GetL7Rules() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Policy::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_LBaaS_L7Pool service", func() { + var sl_service services.Network_LBaaS_L7Pool + BeforeEach(func() { + sl_service = services.GetNetworkLBaaSL7PoolService(slsession) + }) + Context("SoftLayer_Network_LBaaS_L7Pool Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Pool Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Pool::createL7Pool", func() { + It("API Call Test", func() { + _, err := sl_service.CreateL7Pool(nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Pool::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Pool::getL7HealthMonitor", func() { + It("API Call Test", func() { + _, err := sl_service.GetL7HealthMonitor() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Pool::getL7Members", func() { + It("API Call Test", func() { + _, err := sl_service.GetL7Members() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Pool::getL7Policies", func() { + It("API Call Test", func() { + _, err := sl_service.GetL7Policies() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Pool::getL7PoolMemberHealth", func() { + It("API Call Test", func() { + _, err := sl_service.GetL7PoolMemberHealth(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Pool::getL7SessionAffinity", func() { + It("API Call Test", func() { + _, err := sl_service.GetL7SessionAffinity() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Pool::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Pool::updateL7Pool", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateL7Pool(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_LBaaS_L7Rule service", func() { + var sl_service services.Network_LBaaS_L7Rule + BeforeEach(func() { + sl_service = services.GetNetworkLBaaSL7RuleService(slsession) + }) + Context("SoftLayer_Network_LBaaS_L7Rule Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Rule Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Rule::addL7Rules", func() { + It("API Call Test", func() { + _, err := sl_service.AddL7Rules(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Rule::deleteL7Rules", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteL7Rules(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Rule::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_L7Rule::updateL7Rules", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateL7Rules(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_LBaaS_Listener service", func() { + var sl_service services.Network_LBaaS_Listener + BeforeEach(func() { + sl_service = services.GetNetworkLBaaSListenerService(slsession) + }) + Context("SoftLayer_Network_LBaaS_Listener Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_LBaaS_Listener Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_LBaaS_Listener::deleteLoadBalancerProtocols", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteLoadBalancerProtocols(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_Listener::getDefaultPool", func() { + It("API Call Test", func() { + _, err := sl_service.GetDefaultPool() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_Listener::getL7Policies", func() { + It("API Call Test", func() { + _, err := sl_service.GetL7Policies() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_Listener::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_Listener::updateLoadBalancerProtocols", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateLoadBalancerProtocols(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_LBaaS_LoadBalancer service", func() { + var sl_service services.Network_LBaaS_LoadBalancer + BeforeEach(func() { + sl_service = services.GetNetworkLBaaSLoadBalancerService(slsession) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer::cancelLoadBalancer", func() { + It("API Call Test", func() { + _, err := sl_service.CancelLoadBalancer(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer::enableOrDisableDataLogs", func() { + It("API Call Test", func() { + _, err := sl_service.EnableOrDisableDataLogs(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer::getAppliances", func() { + It("API Call Test", func() { + _, err := sl_service.GetAppliances(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer::getDatacenter", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer::getHealthMonitors", func() { + It("API Call Test", func() { + _, err := sl_service.GetHealthMonitors() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer::getL7Pools", func() { + It("API Call Test", func() { + _, err := sl_service.GetL7Pools() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer::getListenerTimeSeriesData", func() { + It("API Call Test", func() { + _, err := sl_service.GetListenerTimeSeriesData(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer::getListeners", func() { + It("API Call Test", func() { + _, err := sl_service.GetListeners() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer::getLoadBalancer", func() { + It("API Call Test", func() { + _, err := sl_service.GetLoadBalancer(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer::getLoadBalancerMemberHealth", func() { + It("API Call Test", func() { + _, err := sl_service.GetLoadBalancerMemberHealth(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer::getLoadBalancerStatistics", func() { + It("API Call Test", func() { + _, err := sl_service.GetLoadBalancerStatistics(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer::getLoadBalancers", func() { + It("API Call Test", func() { + _, err := sl_service.GetLoadBalancers(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer::getMembers", func() { + It("API Call Test", func() { + _, err := sl_service.GetMembers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer::getSslCiphers", func() { + It("API Call Test", func() { + _, err := sl_service.GetSslCiphers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer::serviceDNS", func() { + It("API Call Test", func() { + err := sl_service.ServiceDNS(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer::serviceLoadBalancer", func() { + It("API Call Test", func() { + _, err := sl_service.ServiceLoadBalancer(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer::updateLoadBalancer", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateLoadBalancer(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancer::updateSslCiphers", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateSslCiphers(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_LBaaS_LoadBalancerAppliance service", func() { + var sl_service services.Network_LBaaS_LoadBalancerAppliance + BeforeEach(func() { + sl_service = services.GetNetworkLBaaSLoadBalancerApplianceService(slsession) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancerAppliance Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancerAppliance Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_LBaaS_LoadBalancerAppliance::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_LBaaS_Member service", func() { + var sl_service services.Network_LBaaS_Member + BeforeEach(func() { + sl_service = services.GetNetworkLBaaSMemberService(slsession) + }) + Context("SoftLayer_Network_LBaaS_Member Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_LBaaS_Member Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_LBaaS_Member::addLoadBalancerMembers", func() { + It("API Call Test", func() { + _, err := sl_service.AddLoadBalancerMembers(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_Member::deleteLoadBalancerMembers", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteLoadBalancerMembers(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_Member::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_Member::updateLoadBalancerMembers", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateLoadBalancerMembers(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_LBaaS_SSLCipher service", func() { + var sl_service services.Network_LBaaS_SSLCipher + BeforeEach(func() { + sl_service = services.GetNetworkLBaaSSSLCipherService(slsession) + }) + Context("SoftLayer_Network_LBaaS_SSLCipher Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_LBaaS_SSLCipher Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_LBaaS_SSLCipher::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LBaaS_SSLCipher::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_LoadBalancer_Global_Account service", func() { + var sl_service services.Network_LoadBalancer_Global_Account + BeforeEach(func() { + sl_service = services.GetNetworkLoadBalancerGlobalAccountService(slsession) + }) + Context("SoftLayer_Network_LoadBalancer_Global_Account Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_LoadBalancer_Global_Account Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_LoadBalancer_Global_Account::addNsRecord", func() { + It("API Call Test", func() { + _, err := sl_service.AddNsRecord() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_Global_Account::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_Global_Account::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_Global_Account::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_Global_Account::getHosts", func() { + It("API Call Test", func() { + _, err := sl_service.GetHosts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_Global_Account::getLoadBalanceType", func() { + It("API Call Test", func() { + _, err := sl_service.GetLoadBalanceType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_Global_Account::getManagedResourceFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetManagedResourceFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_Global_Account::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_Global_Account::removeNsRecord", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveNsRecord() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_LoadBalancer_Global_Host service", func() { + var sl_service services.Network_LoadBalancer_Global_Host + BeforeEach(func() { + sl_service = services.GetNetworkLoadBalancerGlobalHostService(slsession) + }) + Context("SoftLayer_Network_LoadBalancer_Global_Host Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_LoadBalancer_Global_Host Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_LoadBalancer_Global_Host::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_Global_Host::getLoadBalancerAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetLoadBalancerAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_Global_Host::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_LoadBalancer_Service service", func() { + var sl_service services.Network_LoadBalancer_Service + BeforeEach(func() { + sl_service = services.GetNetworkLoadBalancerServiceService(slsession) + }) + Context("SoftLayer_Network_LoadBalancer_Service Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_LoadBalancer_Service Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_LoadBalancer_Service::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_Service::getGraphImage", func() { + It("API Call Test", func() { + _, err := sl_service.GetGraphImage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_Service::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_Service::getStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_Service::getVip", func() { + It("API Call Test", func() { + _, err := sl_service.GetVip() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_Service::resetPeakConnections", func() { + It("API Call Test", func() { + _, err := sl_service.ResetPeakConnections() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_LoadBalancer_VirtualIpAddress service", func() { + var sl_service services.Network_LoadBalancer_VirtualIpAddress + BeforeEach(func() { + sl_service = services.GetNetworkLoadBalancerVirtualIpAddressService(slsession) + }) + Context("SoftLayer_Network_LoadBalancer_VirtualIpAddress Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_LoadBalancer_VirtualIpAddress Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_LoadBalancer_VirtualIpAddress::disable", func() { + It("API Call Test", func() { + _, err := sl_service.Disable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_VirtualIpAddress::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_VirtualIpAddress::enable", func() { + It("API Call Test", func() { + _, err := sl_service.Enable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_VirtualIpAddress::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_VirtualIpAddress::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_VirtualIpAddress::getCustomerManagedFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetCustomerManagedFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_VirtualIpAddress::getManagedResourceFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetManagedResourceFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_VirtualIpAddress::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_VirtualIpAddress::getServices", func() { + It("API Call Test", func() { + _, err := sl_service.GetServices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_VirtualIpAddress::kickAllConnections", func() { + It("API Call Test", func() { + _, err := sl_service.KickAllConnections() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_LoadBalancer_VirtualIpAddress::upgradeConnectionLimit", func() { + It("API Call Test", func() { + _, err := sl_service.UpgradeConnectionLimit() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Message_Delivery service", func() { + var sl_service services.Network_Message_Delivery + BeforeEach(func() { + sl_service = services.GetNetworkMessageDeliveryService(slsession) + }) + Context("SoftLayer_Network_Message_Delivery Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Message_Delivery Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Message_Delivery::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery::getUpgradeItemPrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeItemPrices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery::getVendor", func() { + It("API Call Test", func() { + _, err := sl_service.GetVendor() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Message_Delivery_Email_Sendgrid service", func() { + var sl_service services.Network_Message_Delivery_Email_Sendgrid + BeforeEach(func() { + sl_service = services.GetNetworkMessageDeliveryEmailSendgridService(slsession) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid::addUnsubscribeEmailAddress", func() { + It("API Call Test", func() { + _, err := sl_service.AddUnsubscribeEmailAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid::deleteEmailListEntries", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteEmailListEntries(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid::disableSmtpAccess", func() { + It("API Call Test", func() { + _, err := sl_service.DisableSmtpAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid::enableSmtpAccess", func() { + It("API Call Test", func() { + _, err := sl_service.EnableSmtpAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid::getAccountOverview", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountOverview() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid::getEmailAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetEmailAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid::getEmailList", func() { + It("API Call Test", func() { + _, err := sl_service.GetEmailList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid::getOfferingsList", func() { + It("API Call Test", func() { + _, err := sl_service.GetOfferingsList() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid::getSmtpAccess", func() { + It("API Call Test", func() { + _, err := sl_service.GetSmtpAccess() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid::getStatistics", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatistics(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid::getStatisticsGraph", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatisticsGraph(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid::getUpgradeItemPrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeItemPrices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid::getVendor", func() { + It("API Call Test", func() { + _, err := sl_service.GetVendor() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid::singleSignOn", func() { + It("API Call Test", func() { + _, err := sl_service.SingleSignOn() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Message_Delivery_Email_Sendgrid::updateEmailAddress", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateEmailAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Monitor service", func() { + var sl_service services.Network_Monitor + BeforeEach(func() { + sl_service = services.GetNetworkMonitorService(slsession) + }) + Context("SoftLayer_Network_Monitor Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Monitor Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Monitor::getIpAddressesByHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetIpAddressesByHardware(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Monitor::getIpAddressesByVirtualGuest", func() { + It("API Call Test", func() { + _, err := sl_service.GetIpAddressesByVirtualGuest(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Monitor_Version1_Query_Host service", func() { + var sl_service services.Network_Monitor_Version1_Query_Host + BeforeEach(func() { + sl_service = services.GetNetworkMonitorVersion1QueryHostService(slsession) + }) + Context("SoftLayer_Network_Monitor_Version1_Query_Host Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Monitor_Version1_Query_Host Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Monitor_Version1_Query_Host::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Monitor_Version1_Query_Host::createObjects", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Monitor_Version1_Query_Host::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Monitor_Version1_Query_Host::deleteObjects", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Monitor_Version1_Query_Host::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Monitor_Version1_Query_Host::editObjects", func() { + It("API Call Test", func() { + _, err := sl_service.EditObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Monitor_Version1_Query_Host::findByHardwareId", func() { + It("API Call Test", func() { + _, err := sl_service.FindByHardwareId(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Monitor_Version1_Query_Host::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Monitor_Version1_Query_Host::getLastResult", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastResult() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Monitor_Version1_Query_Host::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Monitor_Version1_Query_Host::getQueryType", func() { + It("API Call Test", func() { + _, err := sl_service.GetQueryType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Monitor_Version1_Query_Host::getResponseAction", func() { + It("API Call Test", func() { + _, err := sl_service.GetResponseAction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Monitor_Version1_Query_Host_Stratum service", func() { + var sl_service services.Network_Monitor_Version1_Query_Host_Stratum + BeforeEach(func() { + sl_service = services.GetNetworkMonitorVersion1QueryHostStratumService(slsession) + }) + Context("SoftLayer_Network_Monitor_Version1_Query_Host_Stratum Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Monitor_Version1_Query_Host_Stratum Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Monitor_Version1_Query_Host_Stratum::getAllQueryTypes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllQueryTypes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Monitor_Version1_Query_Host_Stratum::getAllResponseTypes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllResponseTypes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Monitor_Version1_Query_Host_Stratum::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Monitor_Version1_Query_Host_Stratum::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Pod service", func() { + var sl_service services.Network_Pod + BeforeEach(func() { + sl_service = services.GetNetworkPodService(slsession) + }) + Context("SoftLayer_Network_Pod Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Pod Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Pod::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Pod::getCapabilities", func() { + It("API Call Test", func() { + _, err := sl_service.GetCapabilities() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Pod::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Pod::listCapabilities", func() { + It("API Call Test", func() { + _, err := sl_service.ListCapabilities() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_SecurityGroup service", func() { + var sl_service services.Network_SecurityGroup + BeforeEach(func() { + sl_service = services.GetNetworkSecurityGroupService(slsession) + }) + Context("SoftLayer_Network_SecurityGroup Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_SecurityGroup Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_SecurityGroup::addRules", func() { + It("API Call Test", func() { + _, err := sl_service.AddRules(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_SecurityGroup::attachNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.AttachNetworkComponents(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_SecurityGroup::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_SecurityGroup::createObjects", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_SecurityGroup::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_SecurityGroup::deleteObjects", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_SecurityGroup::detachNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.DetachNetworkComponents(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_SecurityGroup::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_SecurityGroup::editObjects", func() { + It("API Call Test", func() { + _, err := sl_service.EditObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_SecurityGroup::editRules", func() { + It("API Call Test", func() { + _, err := sl_service.EditRules(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_SecurityGroup::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_SecurityGroup::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_SecurityGroup::getLimits", func() { + It("API Call Test", func() { + _, err := sl_service.GetLimits() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_SecurityGroup::getNetworkComponentBindings", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponentBindings() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_SecurityGroup::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_SecurityGroup::getOrderBindings", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderBindings() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_SecurityGroup::getRules", func() { + It("API Call Test", func() { + _, err := sl_service.GetRules() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_SecurityGroup::getSupportedDataCenters", func() { + It("API Call Test", func() { + _, err := sl_service.GetSupportedDataCenters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_SecurityGroup::removeRules", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveRules(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Security_Scanner_Request service", func() { + var sl_service services.Network_Security_Scanner_Request + BeforeEach(func() { + sl_service = services.GetNetworkSecurityScannerRequestService(slsession) + }) + Context("SoftLayer_Network_Security_Scanner_Request Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Security_Scanner_Request Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Security_Scanner_Request::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Security_Scanner_Request::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Security_Scanner_Request::getGuest", func() { + It("API Call Test", func() { + _, err := sl_service.GetGuest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Security_Scanner_Request::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Security_Scanner_Request::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Security_Scanner_Request::getReport", func() { + It("API Call Test", func() { + _, err := sl_service.GetReport() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Security_Scanner_Request::getRequestorOwnedFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetRequestorOwnedFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Security_Scanner_Request::getStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Service_Vpn_Overrides service", func() { + var sl_service services.Network_Service_Vpn_Overrides + BeforeEach(func() { + sl_service = services.GetNetworkServiceVpnOverridesService(slsession) + }) + Context("SoftLayer_Network_Service_Vpn_Overrides Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Service_Vpn_Overrides Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Service_Vpn_Overrides::createObjects", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Service_Vpn_Overrides::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Service_Vpn_Overrides::deleteObjects", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Service_Vpn_Overrides::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Service_Vpn_Overrides::getSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubnet() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Service_Vpn_Overrides::getUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage service", func() { + var sl_service services.Network_Storage + BeforeEach(func() { + sl_service = services.GetNetworkStorageService(slsession) + }) + Context("SoftLayer_Network_Storage Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage::allowAccessFromHardware", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromHardware(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::allowAccessFromHardwareList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromHardwareList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::allowAccessFromHost", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromHost(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::allowAccessFromHostList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromHostList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::allowAccessFromIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::allowAccessFromIpAddressList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromIpAddressList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::allowAccessFromSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromSubnet(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::allowAccessFromSubnetList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromSubnetList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::allowAccessFromVirtualGuest", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromVirtualGuest(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::allowAccessFromVirtualGuestList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromVirtualGuestList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::allowAccessToReplicantFromHardware", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromHardware(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::allowAccessToReplicantFromHardwareList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromHardwareList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::allowAccessToReplicantFromIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::allowAccessToReplicantFromIpAddressList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromIpAddressList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::allowAccessToReplicantFromSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromSubnet(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::allowAccessToReplicantFromSubnetList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromSubnetList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::allowAccessToReplicantFromVirtualGuest", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromVirtualGuest(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::allowAccessToReplicantFromVirtualGuestList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromVirtualGuestList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::assignCredential", func() { + It("API Call Test", func() { + _, err := sl_service.AssignCredential(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::assignNewCredential", func() { + It("API Call Test", func() { + _, err := sl_service.AssignNewCredential(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::changePassword", func() { + It("API Call Test", func() { + _, err := sl_service.ChangePassword(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::collectBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.CollectBandwidth(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::collectBytesUsed", func() { + It("API Call Test", func() { + _, err := sl_service.CollectBytesUsed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::convertCloneDependentToIndependent", func() { + It("API Call Test", func() { + _, err := sl_service.ConvertCloneDependentToIndependent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::createFolder", func() { + It("API Call Test", func() { + _, err := sl_service.CreateFolder(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::createOrUpdateLunId", func() { + It("API Call Test", func() { + _, err := sl_service.CreateOrUpdateLunId(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::createSnapshot", func() { + It("API Call Test", func() { + _, err := sl_service.CreateSnapshot(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::deleteAllFiles", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteAllFiles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::deleteFile", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteFile(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::deleteFiles", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteFiles(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::deleteFolder", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteFolder(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::disableSnapshots", func() { + It("API Call Test", func() { + _, err := sl_service.DisableSnapshots(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::disasterRecoveryFailoverToReplicant", func() { + It("API Call Test", func() { + _, err := sl_service.DisasterRecoveryFailoverToReplicant(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::downloadFile", func() { + It("API Call Test", func() { + _, err := sl_service.DownloadFile(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::editCredential", func() { + It("API Call Test", func() { + _, err := sl_service.EditCredential(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::enableSnapshots", func() { + It("API Call Test", func() { + _, err := sl_service.EnableSnapshots(nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::failbackFromReplicant", func() { + It("API Call Test", func() { + _, err := sl_service.FailbackFromReplicant() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::failoverToReplicant", func() { + It("API Call Test", func() { + _, err := sl_service.FailoverToReplicant(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getAccountPassword", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountPassword() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getActiveTransactions", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveTransactions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getAllFiles", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllFiles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getAllFilesByFilter", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllFilesByFilter(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getAllowDisasterRecoveryFailback", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowDisasterRecoveryFailback() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getAllowDisasterRecoveryFailover", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowDisasterRecoveryFailover() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getAllowableHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowableHardware(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getAllowableIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowableIpAddresses(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getAllowableSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowableSubnets(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getAllowableVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowableVirtualGuests(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getAllowedHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getAllowedHostsLimit", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedHostsLimit() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getAllowedIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getAllowedReplicationHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedReplicationHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getAllowedReplicationIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedReplicationIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getAllowedReplicationSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedReplicationSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getAllowedReplicationVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedReplicationVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getAllowedSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getAllowedVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getBillingItemCategory", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItemCategory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getByUsername", func() { + It("API Call Test", func() { + _, err := sl_service.GetByUsername(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getBytesUsed", func() { + It("API Call Test", func() { + _, err := sl_service.GetBytesUsed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getCdnUrls", func() { + It("API Call Test", func() { + _, err := sl_service.GetCdnUrls() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getClusterResource", func() { + It("API Call Test", func() { + _, err := sl_service.GetClusterResource() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getCreationScheduleId", func() { + It("API Call Test", func() { + _, err := sl_service.GetCreationScheduleId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getCredentials", func() { + It("API Call Test", func() { + _, err := sl_service.GetCredentials() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getDailySchedule", func() { + It("API Call Test", func() { + _, err := sl_service.GetDailySchedule() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getDependentDuplicate", func() { + It("API Call Test", func() { + _, err := sl_service.GetDependentDuplicate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getDependentDuplicates", func() { + It("API Call Test", func() { + _, err := sl_service.GetDependentDuplicates() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getDuplicateConversionStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetDuplicateConversionStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getFailbackNotAllowed", func() { + It("API Call Test", func() { + _, err := sl_service.GetFailbackNotAllowed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getFailoverNotAllowed", func() { + It("API Call Test", func() { + _, err := sl_service.GetFailoverNotAllowed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getFileBlockEncryptedLocations", func() { + It("API Call Test", func() { + _, err := sl_service.GetFileBlockEncryptedLocations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getFileByIdentifier", func() { + It("API Call Test", func() { + _, err := sl_service.GetFileByIdentifier(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getFileCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetFileCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getFileList", func() { + It("API Call Test", func() { + _, err := sl_service.GetFileList(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getFileNetworkMountAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetFileNetworkMountAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getFilePendingDeleteCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetFilePendingDeleteCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getFilesPendingDelete", func() { + It("API Call Test", func() { + _, err := sl_service.GetFilesPendingDelete() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getFixReplicationCurrentStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetFixReplicationCurrentStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getFolderList", func() { + It("API Call Test", func() { + _, err := sl_service.GetFolderList() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getGraph", func() { + It("API Call Test", func() { + _, err := sl_service.GetGraph(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getHasEncryptionAtRest", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasEncryptionAtRest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getHourlySchedule", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlySchedule() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getIntervalSchedule", func() { + It("API Call Test", func() { + _, err := sl_service.GetIntervalSchedule() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getIops", func() { + It("API Call Test", func() { + _, err := sl_service.GetIops() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getIsConvertToIndependentTransactionInProgress", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsConvertToIndependentTransactionInProgress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getIsDependentDuplicateProvisionCompleted", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsDependentDuplicateProvisionCompleted() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getIsInDedicatedServiceResource", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsInDedicatedServiceResource() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getIsMagneticStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsMagneticStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getIsProvisionInProgress", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsProvisionInProgress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getIsReadyForSnapshot", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsReadyForSnapshot() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getIsReadyToMount", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsReadyToMount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getIscsiLuns", func() { + It("API Call Test", func() { + _, err := sl_service.GetIscsiLuns() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getIscsiReplicatingVolume", func() { + It("API Call Test", func() { + _, err := sl_service.GetIscsiReplicatingVolume() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getIscsiTargetIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetIscsiTargetIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getLunId", func() { + It("API Call Test", func() { + _, err := sl_service.GetLunId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getManualSnapshots", func() { + It("API Call Test", func() { + _, err := sl_service.GetManualSnapshots() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getMaximumExpansionSize", func() { + It("API Call Test", func() { + _, err := sl_service.GetMaximumExpansionSize() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getMetricTrackingObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getMountPath", func() { + It("API Call Test", func() { + _, err := sl_service.GetMountPath() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getMountableFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetMountableFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getMoveAndSplitStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetMoveAndSplitStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getNetworkConnectionDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkConnectionDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getNetworkMountAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMountAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getNetworkMountPath", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMountPath() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getNotificationSubscribers", func() { + It("API Call Test", func() { + _, err := sl_service.GetNotificationSubscribers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getObjectStorageConnectionInformation", func() { + It("API Call Test", func() { + _, err := sl_service.GetObjectStorageConnectionInformation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getObjectsByCredential", func() { + It("API Call Test", func() { + _, err := sl_service.GetObjectsByCredential(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getOriginalSnapshotName", func() { + It("API Call Test", func() { + _, err := sl_service.GetOriginalSnapshotName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getOriginalVolumeId", func() { + It("API Call Test", func() { + _, err := sl_service.GetOriginalVolumeId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getOriginalVolumeName", func() { + It("API Call Test", func() { + _, err := sl_service.GetOriginalVolumeName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getOriginalVolumeSize", func() { + It("API Call Test", func() { + _, err := sl_service.GetOriginalVolumeSize() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getOsType", func() { + It("API Call Test", func() { + _, err := sl_service.GetOsType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getOsTypeId", func() { + It("API Call Test", func() { + _, err := sl_service.GetOsTypeId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getParentPartnerships", func() { + It("API Call Test", func() { + _, err := sl_service.GetParentPartnerships() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getParentVolume", func() { + It("API Call Test", func() { + _, err := sl_service.GetParentVolume() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getPartnerships", func() { + It("API Call Test", func() { + _, err := sl_service.GetPartnerships() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getPermissionsGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetPermissionsGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getProperties", func() { + It("API Call Test", func() { + _, err := sl_service.GetProperties() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getProvisionedIops", func() { + It("API Call Test", func() { + _, err := sl_service.GetProvisionedIops() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getRecycleBinFileByIdentifier", func() { + It("API Call Test", func() { + _, err := sl_service.GetRecycleBinFileByIdentifier(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getRemainingAllowedHosts", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemainingAllowedHosts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getRemainingAllowedHostsForReplicant", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemainingAllowedHostsForReplicant() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getReplicatingLuns", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicatingLuns() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getReplicatingVolume", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicatingVolume() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getReplicationEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicationEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getReplicationPartners", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicationPartners() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getReplicationSchedule", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicationSchedule() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getReplicationStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicationStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getReplicationTimestamp", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicationTimestamp() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getSchedules", func() { + It("API Call Test", func() { + _, err := sl_service.GetSchedules() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getServiceResource", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceResource() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getServiceResourceBackendIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceResourceBackendIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getServiceResourceName", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceResourceName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getSnapshotCapacityGb", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshotCapacityGb() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getSnapshotCreationTimestamp", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshotCreationTimestamp() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getSnapshotDeletionThresholdPercentage", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshotDeletionThresholdPercentage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getSnapshotNotificationStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshotNotificationStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getSnapshotSizeBytes", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshotSizeBytes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getSnapshotSpaceAvailable", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshotSpaceAvailable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getSnapshots", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshots() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getSnapshotsForVolume", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshotsForVolume() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getStaasVersion", func() { + It("API Call Test", func() { + _, err := sl_service.GetStaasVersion() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getStorageGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getStorageGroupsNetworkConnectionDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageGroupsNetworkConnectionDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getStorageTierLevel", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageTierLevel() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getStorageType", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getTargetIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetTargetIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getTotalBytesUsed", func() { + It("API Call Test", func() { + _, err := sl_service.GetTotalBytesUsed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getTotalScheduleSnapshotRetentionCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetTotalScheduleSnapshotRetentionCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getUsageNotification", func() { + It("API Call Test", func() { + _, err := sl_service.GetUsageNotification() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getValidReplicationTargetDatacenterLocations", func() { + It("API Call Test", func() { + _, err := sl_service.GetValidReplicationTargetDatacenterLocations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getVendorName", func() { + It("API Call Test", func() { + _, err := sl_service.GetVendorName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getVirtualGuest", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getVolumeCountLimits", func() { + It("API Call Test", func() { + _, err := sl_service.GetVolumeCountLimits() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getVolumeDuplicateParameters", func() { + It("API Call Test", func() { + _, err := sl_service.GetVolumeDuplicateParameters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getVolumeHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetVolumeHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getVolumeStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetVolumeStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getWebccAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetWebccAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::getWeeklySchedule", func() { + It("API Call Test", func() { + _, err := sl_service.GetWeeklySchedule() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::immediateFailoverToReplicant", func() { + It("API Call Test", func() { + _, err := sl_service.ImmediateFailoverToReplicant(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::initiateOriginVolumeReclaim", func() { + It("API Call Test", func() { + _, err := sl_service.InitiateOriginVolumeReclaim() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::initiateVolumeCutover", func() { + It("API Call Test", func() { + _, err := sl_service.InitiateVolumeCutover() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::isBlockingOperationInProgress", func() { + It("API Call Test", func() { + _, err := sl_service.IsBlockingOperationInProgress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::isDuplicateReadyForSnapshot", func() { + It("API Call Test", func() { + _, err := sl_service.IsDuplicateReadyForSnapshot() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::isDuplicateReadyToMount", func() { + It("API Call Test", func() { + _, err := sl_service.IsDuplicateReadyToMount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::isVolumeActive", func() { + It("API Call Test", func() { + _, err := sl_service.IsVolumeActive() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::refreshDependentDuplicate", func() { + It("API Call Test", func() { + _, err := sl_service.RefreshDependentDuplicate(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::refreshDuplicate", func() { + It("API Call Test", func() { + _, err := sl_service.RefreshDuplicate(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::removeAccessFromHardware", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromHardware(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::removeAccessFromHardwareList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromHardwareList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::removeAccessFromHost", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromHost(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::removeAccessFromHostList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromHostList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::removeAccessFromIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::removeAccessFromIpAddressList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromIpAddressList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::removeAccessFromSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromSubnet(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::removeAccessFromSubnetList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromSubnetList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::removeAccessFromVirtualGuest", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromVirtualGuest(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::removeAccessFromVirtualGuestList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromVirtualGuestList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::removeAccessToReplicantFromHardwareList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToReplicantFromHardwareList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::removeAccessToReplicantFromIpAddressList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToReplicantFromIpAddressList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::removeAccessToReplicantFromSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToReplicantFromSubnet(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::removeAccessToReplicantFromSubnetList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToReplicantFromSubnetList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::removeAccessToReplicantFromVirtualGuestList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToReplicantFromVirtualGuestList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::removeCredential", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveCredential(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::restoreFile", func() { + It("API Call Test", func() { + _, err := sl_service.RestoreFile(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::restoreFromSnapshot", func() { + It("API Call Test", func() { + _, err := sl_service.RestoreFromSnapshot(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::sendPasswordReminderEmail", func() { + It("API Call Test", func() { + _, err := sl_service.SendPasswordReminderEmail(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::setMountable", func() { + It("API Call Test", func() { + _, err := sl_service.SetMountable(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::setSnapshotAllocation", func() { + It("API Call Test", func() { + err := sl_service.SetSnapshotAllocation(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::setSnapshotNotification", func() { + It("API Call Test", func() { + err := sl_service.SetSnapshotNotification(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::upgradeVolumeCapacity", func() { + It("API Call Test", func() { + _, err := sl_service.UpgradeVolumeCapacity(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::uploadFile", func() { + It("API Call Test", func() { + _, err := sl_service.UploadFile(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage::validateHostsAccess", func() { + It("API Call Test", func() { + _, err := sl_service.ValidateHostsAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_Allowed_Host service", func() { + var sl_service services.Network_Storage_Allowed_Host + BeforeEach(func() { + sl_service = services.GetNetworkStorageAllowedHostService(slsession) + }) + Context("SoftLayer_Network_Storage_Allowed_Host Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host::assignSubnetsToAcl", func() { + It("API Call Test", func() { + _, err := sl_service.AssignSubnetsToAcl(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host::getAssignedGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host::getAssignedIscsiVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedIscsiVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host::getAssignedNfsVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedNfsVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host::getAssignedReplicationVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedReplicationVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host::getAssignedVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host::getCredential", func() { + It("API Call Test", func() { + _, err := sl_service.GetCredential() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host::getSourceSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.GetSourceSubnet() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host::getSubnetsInAcl", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubnetsInAcl() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host::removeSubnetsFromAcl", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveSubnetsFromAcl(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host::setCredentialPassword", func() { + It("API Call Test", func() { + _, err := sl_service.SetCredentialPassword(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_Allowed_Host_Hardware service", func() { + var sl_service services.Network_Storage_Allowed_Host_Hardware + BeforeEach(func() { + sl_service = services.GetNetworkStorageAllowedHostHardwareService(slsession) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Hardware Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Hardware Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Hardware::assignSubnetsToAcl", func() { + It("API Call Test", func() { + _, err := sl_service.AssignSubnetsToAcl(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Hardware::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Hardware::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Hardware::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Hardware::getAssignedGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Hardware::getAssignedIscsiVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedIscsiVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Hardware::getAssignedNfsVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedNfsVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Hardware::getAssignedReplicationVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedReplicationVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Hardware::getAssignedVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Hardware::getCredential", func() { + It("API Call Test", func() { + _, err := sl_service.GetCredential() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Hardware::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Hardware::getResource", func() { + It("API Call Test", func() { + _, err := sl_service.GetResource() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Hardware::getSourceSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.GetSourceSubnet() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Hardware::getSubnetsInAcl", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubnetsInAcl() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Hardware::removeSubnetsFromAcl", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveSubnetsFromAcl(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Hardware::setCredentialPassword", func() { + It("API Call Test", func() { + _, err := sl_service.SetCredentialPassword(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_Allowed_Host_IpAddress service", func() { + var sl_service services.Network_Storage_Allowed_Host_IpAddress + BeforeEach(func() { + sl_service = services.GetNetworkStorageAllowedHostIpAddressService(slsession) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_IpAddress Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_IpAddress Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_IpAddress::assignSubnetsToAcl", func() { + It("API Call Test", func() { + _, err := sl_service.AssignSubnetsToAcl(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_IpAddress::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_IpAddress::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_IpAddress::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_IpAddress::getAssignedGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_IpAddress::getAssignedIscsiVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedIscsiVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_IpAddress::getAssignedNfsVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedNfsVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_IpAddress::getAssignedReplicationVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedReplicationVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_IpAddress::getAssignedVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_IpAddress::getCredential", func() { + It("API Call Test", func() { + _, err := sl_service.GetCredential() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_IpAddress::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_IpAddress::getResource", func() { + It("API Call Test", func() { + _, err := sl_service.GetResource() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_IpAddress::getSourceSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.GetSourceSubnet() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_IpAddress::getSubnetsInAcl", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubnetsInAcl() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_IpAddress::removeSubnetsFromAcl", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveSubnetsFromAcl(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_IpAddress::setCredentialPassword", func() { + It("API Call Test", func() { + _, err := sl_service.SetCredentialPassword(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_Allowed_Host_Subnet service", func() { + var sl_service services.Network_Storage_Allowed_Host_Subnet + BeforeEach(func() { + sl_service = services.GetNetworkStorageAllowedHostSubnetService(slsession) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Subnet Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Subnet Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Subnet::assignSubnetsToAcl", func() { + It("API Call Test", func() { + _, err := sl_service.AssignSubnetsToAcl(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Subnet::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Subnet::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Subnet::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Subnet::getAssignedGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Subnet::getAssignedIscsiVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedIscsiVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Subnet::getAssignedNfsVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedNfsVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Subnet::getAssignedReplicationVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedReplicationVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Subnet::getAssignedVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Subnet::getCredential", func() { + It("API Call Test", func() { + _, err := sl_service.GetCredential() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Subnet::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Subnet::getResource", func() { + It("API Call Test", func() { + _, err := sl_service.GetResource() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Subnet::getSourceSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.GetSourceSubnet() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Subnet::getSubnetsInAcl", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubnetsInAcl() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Subnet::removeSubnetsFromAcl", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveSubnetsFromAcl(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_Subnet::setCredentialPassword", func() { + It("API Call Test", func() { + _, err := sl_service.SetCredentialPassword(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_Allowed_Host_VirtualGuest service", func() { + var sl_service services.Network_Storage_Allowed_Host_VirtualGuest + BeforeEach(func() { + sl_service = services.GetNetworkStorageAllowedHostVirtualGuestService(slsession) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest::assignSubnetsToAcl", func() { + It("API Call Test", func() { + _, err := sl_service.AssignSubnetsToAcl(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest::getAssignedGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest::getAssignedIscsiVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedIscsiVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest::getAssignedNfsVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedNfsVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest::getAssignedReplicationVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedReplicationVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest::getAssignedVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest::getCredential", func() { + It("API Call Test", func() { + _, err := sl_service.GetCredential() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest::getResource", func() { + It("API Call Test", func() { + _, err := sl_service.GetResource() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest::getSourceSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.GetSourceSubnet() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest::getSubnetsInAcl", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubnetsInAcl() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest::removeSubnetsFromAcl", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveSubnetsFromAcl(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Allowed_Host_VirtualGuest::setCredentialPassword", func() { + It("API Call Test", func() { + _, err := sl_service.SetCredentialPassword(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_Backup_Evault service", func() { + var sl_service services.Network_Storage_Backup_Evault + BeforeEach(func() { + sl_service = services.GetNetworkStorageBackupEvaultService(slsession) + }) + Context("SoftLayer_Network_Storage_Backup_Evault Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::allowAccessFromHardware", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromHardware(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::allowAccessFromHardwareList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromHardwareList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::allowAccessFromHost", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromHost(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::allowAccessFromHostList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromHostList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::allowAccessFromIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::allowAccessFromIpAddressList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromIpAddressList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::allowAccessFromSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromSubnet(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::allowAccessFromSubnetList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromSubnetList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::allowAccessFromVirtualGuest", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromVirtualGuest(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::allowAccessFromVirtualGuestList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromVirtualGuestList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::allowAccessToReplicantFromHardware", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromHardware(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::allowAccessToReplicantFromHardwareList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromHardwareList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::allowAccessToReplicantFromIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::allowAccessToReplicantFromIpAddressList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromIpAddressList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::allowAccessToReplicantFromSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromSubnet(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::allowAccessToReplicantFromSubnetList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromSubnetList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::allowAccessToReplicantFromVirtualGuest", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromVirtualGuest(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::allowAccessToReplicantFromVirtualGuestList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromVirtualGuestList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::assignCredential", func() { + It("API Call Test", func() { + _, err := sl_service.AssignCredential(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::assignNewCredential", func() { + It("API Call Test", func() { + _, err := sl_service.AssignNewCredential(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::changePassword", func() { + It("API Call Test", func() { + _, err := sl_service.ChangePassword(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::collectBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.CollectBandwidth(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::collectBytesUsed", func() { + It("API Call Test", func() { + _, err := sl_service.CollectBytesUsed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::convertCloneDependentToIndependent", func() { + It("API Call Test", func() { + _, err := sl_service.ConvertCloneDependentToIndependent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::createFolder", func() { + It("API Call Test", func() { + _, err := sl_service.CreateFolder(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::createOrUpdateLunId", func() { + It("API Call Test", func() { + _, err := sl_service.CreateOrUpdateLunId(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::createSnapshot", func() { + It("API Call Test", func() { + _, err := sl_service.CreateSnapshot(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::deleteAllFiles", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteAllFiles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::deleteFile", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteFile(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::deleteFiles", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteFiles(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::deleteFolder", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteFolder(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::deleteTasks", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteTasks(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::disableSnapshots", func() { + It("API Call Test", func() { + _, err := sl_service.DisableSnapshots(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::disasterRecoveryFailoverToReplicant", func() { + It("API Call Test", func() { + _, err := sl_service.DisasterRecoveryFailoverToReplicant(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::downloadFile", func() { + It("API Call Test", func() { + _, err := sl_service.DownloadFile(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::editCredential", func() { + It("API Call Test", func() { + _, err := sl_service.EditCredential(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::enableSnapshots", func() { + It("API Call Test", func() { + _, err := sl_service.EnableSnapshots(nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::failbackFromReplicant", func() { + It("API Call Test", func() { + _, err := sl_service.FailbackFromReplicant() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::failoverToReplicant", func() { + It("API Call Test", func() { + _, err := sl_service.FailoverToReplicant(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getAccountPassword", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountPassword() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getActiveTransactions", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveTransactions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getAllFiles", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllFiles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getAllFilesByFilter", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllFilesByFilter(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getAllowDisasterRecoveryFailback", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowDisasterRecoveryFailback() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getAllowDisasterRecoveryFailover", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowDisasterRecoveryFailover() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getAllowableHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowableHardware(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getAllowableIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowableIpAddresses(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getAllowableSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowableSubnets(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getAllowableVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowableVirtualGuests(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getAllowedHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getAllowedHostsLimit", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedHostsLimit() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getAllowedIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getAllowedReplicationHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedReplicationHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getAllowedReplicationIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedReplicationIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getAllowedReplicationSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedReplicationSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getAllowedReplicationVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedReplicationVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getAllowedSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getAllowedVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getBillingItemCategory", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItemCategory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getByUsername", func() { + It("API Call Test", func() { + _, err := sl_service.GetByUsername(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getBytesUsed", func() { + It("API Call Test", func() { + _, err := sl_service.GetBytesUsed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getCdnUrls", func() { + It("API Call Test", func() { + _, err := sl_service.GetCdnUrls() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getClusterResource", func() { + It("API Call Test", func() { + _, err := sl_service.GetClusterResource() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getCreationScheduleId", func() { + It("API Call Test", func() { + _, err := sl_service.GetCreationScheduleId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getCredentials", func() { + It("API Call Test", func() { + _, err := sl_service.GetCredentials() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getDailySchedule", func() { + It("API Call Test", func() { + _, err := sl_service.GetDailySchedule() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getDependentDuplicate", func() { + It("API Call Test", func() { + _, err := sl_service.GetDependentDuplicate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getDependentDuplicates", func() { + It("API Call Test", func() { + _, err := sl_service.GetDependentDuplicates() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getDuplicateConversionStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetDuplicateConversionStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getFailbackNotAllowed", func() { + It("API Call Test", func() { + _, err := sl_service.GetFailbackNotAllowed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getFailoverNotAllowed", func() { + It("API Call Test", func() { + _, err := sl_service.GetFailoverNotAllowed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getFileBlockEncryptedLocations", func() { + It("API Call Test", func() { + _, err := sl_service.GetFileBlockEncryptedLocations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getFileByIdentifier", func() { + It("API Call Test", func() { + _, err := sl_service.GetFileByIdentifier(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getFileCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetFileCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getFileList", func() { + It("API Call Test", func() { + _, err := sl_service.GetFileList(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getFileNetworkMountAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetFileNetworkMountAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getFilePendingDeleteCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetFilePendingDeleteCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getFilesPendingDelete", func() { + It("API Call Test", func() { + _, err := sl_service.GetFilesPendingDelete() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getFixReplicationCurrentStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetFixReplicationCurrentStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getFolderList", func() { + It("API Call Test", func() { + _, err := sl_service.GetFolderList() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getGraph", func() { + It("API Call Test", func() { + _, err := sl_service.GetGraph(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getHardwareWithEvaultFirst", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareWithEvaultFirst(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getHasEncryptionAtRest", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasEncryptionAtRest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getHourlySchedule", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlySchedule() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getIntervalSchedule", func() { + It("API Call Test", func() { + _, err := sl_service.GetIntervalSchedule() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getIops", func() { + It("API Call Test", func() { + _, err := sl_service.GetIops() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getIsConvertToIndependentTransactionInProgress", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsConvertToIndependentTransactionInProgress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getIsDependentDuplicateProvisionCompleted", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsDependentDuplicateProvisionCompleted() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getIsInDedicatedServiceResource", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsInDedicatedServiceResource() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getIsMagneticStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsMagneticStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getIsProvisionInProgress", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsProvisionInProgress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getIsReadyForSnapshot", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsReadyForSnapshot() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getIsReadyToMount", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsReadyToMount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getIscsiLuns", func() { + It("API Call Test", func() { + _, err := sl_service.GetIscsiLuns() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getIscsiReplicatingVolume", func() { + It("API Call Test", func() { + _, err := sl_service.GetIscsiReplicatingVolume() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getIscsiTargetIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetIscsiTargetIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getLunId", func() { + It("API Call Test", func() { + _, err := sl_service.GetLunId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getManualSnapshots", func() { + It("API Call Test", func() { + _, err := sl_service.GetManualSnapshots() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getMaximumExpansionSize", func() { + It("API Call Test", func() { + _, err := sl_service.GetMaximumExpansionSize() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getMetricTrackingObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getMountPath", func() { + It("API Call Test", func() { + _, err := sl_service.GetMountPath() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getMountableFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetMountableFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getMoveAndSplitStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetMoveAndSplitStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getNetworkConnectionDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkConnectionDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getNetworkMountAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMountAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getNetworkMountPath", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMountPath() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getNotificationSubscribers", func() { + It("API Call Test", func() { + _, err := sl_service.GetNotificationSubscribers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getObjectStorageConnectionInformation", func() { + It("API Call Test", func() { + _, err := sl_service.GetObjectStorageConnectionInformation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getObjectsByCredential", func() { + It("API Call Test", func() { + _, err := sl_service.GetObjectsByCredential(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getOriginalSnapshotName", func() { + It("API Call Test", func() { + _, err := sl_service.GetOriginalSnapshotName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getOriginalVolumeId", func() { + It("API Call Test", func() { + _, err := sl_service.GetOriginalVolumeId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getOriginalVolumeName", func() { + It("API Call Test", func() { + _, err := sl_service.GetOriginalVolumeName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getOriginalVolumeSize", func() { + It("API Call Test", func() { + _, err := sl_service.GetOriginalVolumeSize() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getOsType", func() { + It("API Call Test", func() { + _, err := sl_service.GetOsType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getOsTypeId", func() { + It("API Call Test", func() { + _, err := sl_service.GetOsTypeId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getParentPartnerships", func() { + It("API Call Test", func() { + _, err := sl_service.GetParentPartnerships() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getParentVolume", func() { + It("API Call Test", func() { + _, err := sl_service.GetParentVolume() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getPartnerships", func() { + It("API Call Test", func() { + _, err := sl_service.GetPartnerships() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getPermissionsGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetPermissionsGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getProperties", func() { + It("API Call Test", func() { + _, err := sl_service.GetProperties() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getProvisionedIops", func() { + It("API Call Test", func() { + _, err := sl_service.GetProvisionedIops() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getRecycleBinFileByIdentifier", func() { + It("API Call Test", func() { + _, err := sl_service.GetRecycleBinFileByIdentifier(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getRemainingAllowedHosts", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemainingAllowedHosts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getRemainingAllowedHostsForReplicant", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemainingAllowedHostsForReplicant() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getReplicatingLuns", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicatingLuns() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getReplicatingVolume", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicatingVolume() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getReplicationEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicationEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getReplicationPartners", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicationPartners() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getReplicationSchedule", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicationSchedule() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getReplicationStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicationStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getReplicationTimestamp", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicationTimestamp() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getSchedules", func() { + It("API Call Test", func() { + _, err := sl_service.GetSchedules() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getServiceResource", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceResource() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getServiceResourceBackendIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceResourceBackendIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getServiceResourceName", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceResourceName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getSnapshotCapacityGb", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshotCapacityGb() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getSnapshotCreationTimestamp", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshotCreationTimestamp() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getSnapshotDeletionThresholdPercentage", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshotDeletionThresholdPercentage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getSnapshotNotificationStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshotNotificationStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getSnapshotSizeBytes", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshotSizeBytes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getSnapshotSpaceAvailable", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshotSpaceAvailable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getSnapshots", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshots() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getSnapshotsForVolume", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshotsForVolume() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getStaasVersion", func() { + It("API Call Test", func() { + _, err := sl_service.GetStaasVersion() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getStorageGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getStorageGroupsNetworkConnectionDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageGroupsNetworkConnectionDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getStorageTierLevel", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageTierLevel() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getStorageType", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getTargetIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetTargetIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getTotalBytesUsed", func() { + It("API Call Test", func() { + _, err := sl_service.GetTotalBytesUsed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getTotalScheduleSnapshotRetentionCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetTotalScheduleSnapshotRetentionCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getUsageNotification", func() { + It("API Call Test", func() { + _, err := sl_service.GetUsageNotification() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getValidReplicationTargetDatacenterLocations", func() { + It("API Call Test", func() { + _, err := sl_service.GetValidReplicationTargetDatacenterLocations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getVendorName", func() { + It("API Call Test", func() { + _, err := sl_service.GetVendorName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getVirtualGuest", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getVolumeCountLimits", func() { + It("API Call Test", func() { + _, err := sl_service.GetVolumeCountLimits() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getVolumeDuplicateParameters", func() { + It("API Call Test", func() { + _, err := sl_service.GetVolumeDuplicateParameters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getVolumeHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetVolumeHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getVolumeStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetVolumeStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getWebCCAuthenticationDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetWebCCAuthenticationDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getWebccAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetWebccAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::getWeeklySchedule", func() { + It("API Call Test", func() { + _, err := sl_service.GetWeeklySchedule() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::immediateFailoverToReplicant", func() { + It("API Call Test", func() { + _, err := sl_service.ImmediateFailoverToReplicant(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::initiateBareMetalRestore", func() { + It("API Call Test", func() { + _, err := sl_service.InitiateBareMetalRestore() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::initiateBareMetalRestoreForServer", func() { + It("API Call Test", func() { + _, err := sl_service.InitiateBareMetalRestoreForServer(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::initiateOriginVolumeReclaim", func() { + It("API Call Test", func() { + _, err := sl_service.InitiateOriginVolumeReclaim() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::initiateVolumeCutover", func() { + It("API Call Test", func() { + _, err := sl_service.InitiateVolumeCutover() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::isBlockingOperationInProgress", func() { + It("API Call Test", func() { + _, err := sl_service.IsBlockingOperationInProgress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::isDuplicateReadyForSnapshot", func() { + It("API Call Test", func() { + _, err := sl_service.IsDuplicateReadyForSnapshot() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::isDuplicateReadyToMount", func() { + It("API Call Test", func() { + _, err := sl_service.IsDuplicateReadyToMount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::isVolumeActive", func() { + It("API Call Test", func() { + _, err := sl_service.IsVolumeActive() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::refreshDependentDuplicate", func() { + It("API Call Test", func() { + _, err := sl_service.RefreshDependentDuplicate(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::refreshDuplicate", func() { + It("API Call Test", func() { + _, err := sl_service.RefreshDuplicate(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::removeAccessFromHardware", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromHardware(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::removeAccessFromHardwareList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromHardwareList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::removeAccessFromHost", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromHost(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::removeAccessFromHostList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromHostList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::removeAccessFromIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::removeAccessFromIpAddressList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromIpAddressList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::removeAccessFromSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromSubnet(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::removeAccessFromSubnetList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromSubnetList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::removeAccessFromVirtualGuest", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromVirtualGuest(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::removeAccessFromVirtualGuestList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromVirtualGuestList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::removeAccessToReplicantFromHardwareList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToReplicantFromHardwareList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::removeAccessToReplicantFromIpAddressList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToReplicantFromIpAddressList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::removeAccessToReplicantFromSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToReplicantFromSubnet(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::removeAccessToReplicantFromSubnetList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToReplicantFromSubnetList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::removeAccessToReplicantFromVirtualGuestList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToReplicantFromVirtualGuestList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::removeCredential", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveCredential(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::restoreFile", func() { + It("API Call Test", func() { + _, err := sl_service.RestoreFile(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::restoreFromSnapshot", func() { + It("API Call Test", func() { + _, err := sl_service.RestoreFromSnapshot(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::sendPasswordReminderEmail", func() { + It("API Call Test", func() { + _, err := sl_service.SendPasswordReminderEmail(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::setMountable", func() { + It("API Call Test", func() { + _, err := sl_service.SetMountable(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::setSnapshotAllocation", func() { + It("API Call Test", func() { + err := sl_service.SetSnapshotAllocation(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::setSnapshotNotification", func() { + It("API Call Test", func() { + err := sl_service.SetSnapshotNotification(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::upgradeVolumeCapacity", func() { + It("API Call Test", func() { + _, err := sl_service.UpgradeVolumeCapacity(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::uploadFile", func() { + It("API Call Test", func() { + _, err := sl_service.UploadFile(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Backup_Evault::validateHostsAccess", func() { + It("API Call Test", func() { + _, err := sl_service.ValidateHostsAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_DedicatedCluster service", func() { + var sl_service services.Network_Storage_DedicatedCluster + BeforeEach(func() { + sl_service = services.GetNetworkStorageDedicatedClusterService(slsession) + }) + Context("SoftLayer_Network_Storage_DedicatedCluster Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_DedicatedCluster Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_DedicatedCluster::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_DedicatedCluster::getDedicatedClusterList", func() { + It("API Call Test", func() { + _, err := sl_service.GetDedicatedClusterList() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_DedicatedCluster::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_DedicatedCluster::getServiceResource", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceResource() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_Group service", func() { + var sl_service services.Network_Storage_Group + BeforeEach(func() { + sl_service = services.GetNetworkStorageGroupService(slsession) + }) + Context("SoftLayer_Network_Storage_Group Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_Group Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_Group::addAllowedHost", func() { + It("API Call Test", func() { + _, err := sl_service.AddAllowedHost(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group::attachToVolume", func() { + It("API Call Test", func() { + _, err := sl_service.AttachToVolume(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group::getAllowedHosts", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedHosts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group::getAttachedVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group::getGroupType", func() { + It("API Call Test", func() { + _, err := sl_service.GetGroupType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group::getNetworkConnectionDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkConnectionDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group::getOsType", func() { + It("API Call Test", func() { + _, err := sl_service.GetOsType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group::getServiceResource", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceResource() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group::removeAllowedHost", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAllowedHost(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group::removeFromVolume", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveFromVolume(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_Group_Iscsi service", func() { + var sl_service services.Network_Storage_Group_Iscsi + BeforeEach(func() { + sl_service = services.GetNetworkStorageGroupIscsiService(slsession) + }) + Context("SoftLayer_Network_Storage_Group_Iscsi Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_Group_Iscsi Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_Group_Iscsi::addAllowedHost", func() { + It("API Call Test", func() { + _, err := sl_service.AddAllowedHost(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Iscsi::attachToVolume", func() { + It("API Call Test", func() { + _, err := sl_service.AttachToVolume(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Iscsi::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Iscsi::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Iscsi::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Iscsi::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Iscsi::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Iscsi::getAllowedHosts", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedHosts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Iscsi::getAttachedVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Iscsi::getGroupType", func() { + It("API Call Test", func() { + _, err := sl_service.GetGroupType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Iscsi::getNetworkConnectionDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkConnectionDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Iscsi::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Iscsi::getOsType", func() { + It("API Call Test", func() { + _, err := sl_service.GetOsType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Iscsi::getServiceResource", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceResource() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Iscsi::removeAllowedHost", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAllowedHost(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Iscsi::removeFromVolume", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveFromVolume(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_Group_Nfs service", func() { + var sl_service services.Network_Storage_Group_Nfs + BeforeEach(func() { + sl_service = services.GetNetworkStorageGroupNfsService(slsession) + }) + Context("SoftLayer_Network_Storage_Group_Nfs Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_Group_Nfs Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_Group_Nfs::addAllowedHost", func() { + It("API Call Test", func() { + _, err := sl_service.AddAllowedHost(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Nfs::attachToVolume", func() { + It("API Call Test", func() { + _, err := sl_service.AttachToVolume(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Nfs::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Nfs::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Nfs::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Nfs::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Nfs::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Nfs::getAllowedHosts", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedHosts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Nfs::getAttachedVolumes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedVolumes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Nfs::getGroupType", func() { + It("API Call Test", func() { + _, err := sl_service.GetGroupType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Nfs::getNetworkConnectionDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkConnectionDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Nfs::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Nfs::getOsType", func() { + It("API Call Test", func() { + _, err := sl_service.GetOsType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Nfs::getServiceResource", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceResource() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Nfs::removeAllowedHost", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAllowedHost(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Nfs::removeFromVolume", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveFromVolume(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_Group_Type service", func() { + var sl_service services.Network_Storage_Group_Type + BeforeEach(func() { + sl_service = services.GetNetworkStorageGroupTypeService(slsession) + }) + Context("SoftLayer_Network_Storage_Group_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_Group_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_Group_Type::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Group_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_Hub_Cleversafe_Account service", func() { + var sl_service services.Network_Storage_Hub_Cleversafe_Account + BeforeEach(func() { + sl_service = services.GetNetworkStorageHubCleversafeAccountService(slsession) + }) + Context("SoftLayer_Network_Storage_Hub_Cleversafe_Account Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Cleversafe_Account Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Cleversafe_Account::credentialCreate", func() { + It("API Call Test", func() { + _, err := sl_service.CredentialCreate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Cleversafe_Account::credentialDelete", func() { + It("API Call Test", func() { + _, err := sl_service.CredentialDelete(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Cleversafe_Account::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Cleversafe_Account::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Cleversafe_Account::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Cleversafe_Account::getBuckets", func() { + It("API Call Test", func() { + _, err := sl_service.GetBuckets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Cleversafe_Account::getCancelledBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetCancelledBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Cleversafe_Account::getCapacityUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetCapacityUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Cleversafe_Account::getCloudObjectStorageMetrics", func() { + It("API Call Test", func() { + _, err := sl_service.GetCloudObjectStorageMetrics(nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Cleversafe_Account::getCredentialLimit", func() { + It("API Call Test", func() { + _, err := sl_service.GetCredentialLimit() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Cleversafe_Account::getCredentials", func() { + It("API Call Test", func() { + _, err := sl_service.GetCredentials() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Cleversafe_Account::getEndpoints", func() { + It("API Call Test", func() { + _, err := sl_service.GetEndpoints(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Cleversafe_Account::getEndpointsWithRefetch", func() { + It("API Call Test", func() { + _, err := sl_service.GetEndpointsWithRefetch(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Cleversafe_Account::getMetricTrackingObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Cleversafe_Account::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Cleversafe_Account::getUuid", func() { + It("API Call Test", func() { + _, err := sl_service.GetUuid() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_Hub_Swift_Metrics service", func() { + var sl_service services.Network_Storage_Hub_Swift_Metrics + BeforeEach(func() { + sl_service = services.GetNetworkStorageHubSwiftMetricsService(slsession) + }) + Context("SoftLayer_Network_Storage_Hub_Swift_Metrics Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Swift_Metrics Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Swift_Metrics::getMetricData", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricData(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Swift_Metrics::getSummaryData", func() { + It("API Call Test", func() { + _, err := sl_service.GetSummaryData(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_Hub_Swift_Share service", func() { + var sl_service services.Network_Storage_Hub_Swift_Share + BeforeEach(func() { + sl_service = services.GetNetworkStorageHubSwiftShareService(slsession) + }) + Context("SoftLayer_Network_Storage_Hub_Swift_Share Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Swift_Share Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Swift_Share::getContainerList", func() { + It("API Call Test", func() { + _, err := sl_service.GetContainerList() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Swift_Share::getFile", func() { + It("API Call Test", func() { + _, err := sl_service.GetFile(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Hub_Swift_Share::getFileList", func() { + It("API Call Test", func() { + _, err := sl_service.GetFileList(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_Iscsi service", func() { + var sl_service services.Network_Storage_Iscsi + BeforeEach(func() { + sl_service = services.GetNetworkStorageIscsiService(slsession) + }) + Context("SoftLayer_Network_Storage_Iscsi Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::allowAccessFromHardware", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromHardware(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::allowAccessFromHardwareList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromHardwareList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::allowAccessFromHost", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromHost(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::allowAccessFromHostList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromHostList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::allowAccessFromIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::allowAccessFromIpAddressList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromIpAddressList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::allowAccessFromSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromSubnet(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::allowAccessFromSubnetList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromSubnetList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::allowAccessFromVirtualGuest", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromVirtualGuest(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::allowAccessFromVirtualGuestList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessFromVirtualGuestList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::allowAccessToReplicantFromHardware", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromHardware(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::allowAccessToReplicantFromHardwareList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromHardwareList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::allowAccessToReplicantFromIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::allowAccessToReplicantFromIpAddressList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromIpAddressList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::allowAccessToReplicantFromSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromSubnet(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::allowAccessToReplicantFromSubnetList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromSubnetList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::allowAccessToReplicantFromVirtualGuest", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromVirtualGuest(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::allowAccessToReplicantFromVirtualGuestList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToReplicantFromVirtualGuestList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::assignCredential", func() { + It("API Call Test", func() { + _, err := sl_service.AssignCredential(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::assignNewCredential", func() { + It("API Call Test", func() { + _, err := sl_service.AssignNewCredential(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::changePassword", func() { + It("API Call Test", func() { + _, err := sl_service.ChangePassword(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::collectBandwidth", func() { + It("API Call Test", func() { + _, err := sl_service.CollectBandwidth(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::collectBytesUsed", func() { + It("API Call Test", func() { + _, err := sl_service.CollectBytesUsed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::convertCloneDependentToIndependent", func() { + It("API Call Test", func() { + _, err := sl_service.ConvertCloneDependentToIndependent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::createFolder", func() { + It("API Call Test", func() { + _, err := sl_service.CreateFolder(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::createOrUpdateLunId", func() { + It("API Call Test", func() { + _, err := sl_service.CreateOrUpdateLunId(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::createSnapshot", func() { + It("API Call Test", func() { + _, err := sl_service.CreateSnapshot(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::deleteAllFiles", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteAllFiles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::deleteFile", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteFile(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::deleteFiles", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteFiles(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::deleteFolder", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteFolder(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::disableSnapshots", func() { + It("API Call Test", func() { + _, err := sl_service.DisableSnapshots(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::disasterRecoveryFailoverToReplicant", func() { + It("API Call Test", func() { + _, err := sl_service.DisasterRecoveryFailoverToReplicant(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::downloadFile", func() { + It("API Call Test", func() { + _, err := sl_service.DownloadFile(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::editCredential", func() { + It("API Call Test", func() { + _, err := sl_service.EditCredential(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::enableSnapshots", func() { + It("API Call Test", func() { + _, err := sl_service.EnableSnapshots(nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::failbackFromReplicant", func() { + It("API Call Test", func() { + _, err := sl_service.FailbackFromReplicant() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::failoverToReplicant", func() { + It("API Call Test", func() { + _, err := sl_service.FailoverToReplicant(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getAccountPassword", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountPassword() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getActiveTransactions", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveTransactions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getAllFiles", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllFiles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getAllFilesByFilter", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllFilesByFilter(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getAllowDisasterRecoveryFailback", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowDisasterRecoveryFailback() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getAllowDisasterRecoveryFailover", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowDisasterRecoveryFailover() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getAllowableHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowableHardware(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getAllowableIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowableIpAddresses(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getAllowableSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowableSubnets(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getAllowableVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowableVirtualGuests(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getAllowedHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getAllowedHostsLimit", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedHostsLimit() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getAllowedIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getAllowedReplicationHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedReplicationHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getAllowedReplicationIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedReplicationIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getAllowedReplicationSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedReplicationSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getAllowedReplicationVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedReplicationVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getAllowedSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getAllowedVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getBillingItemCategory", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItemCategory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getByUsername", func() { + It("API Call Test", func() { + _, err := sl_service.GetByUsername(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getBytesUsed", func() { + It("API Call Test", func() { + _, err := sl_service.GetBytesUsed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getCdnUrls", func() { + It("API Call Test", func() { + _, err := sl_service.GetCdnUrls() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getClusterResource", func() { + It("API Call Test", func() { + _, err := sl_service.GetClusterResource() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getCreationScheduleId", func() { + It("API Call Test", func() { + _, err := sl_service.GetCreationScheduleId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getCredentials", func() { + It("API Call Test", func() { + _, err := sl_service.GetCredentials() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getDailySchedule", func() { + It("API Call Test", func() { + _, err := sl_service.GetDailySchedule() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getDependentDuplicate", func() { + It("API Call Test", func() { + _, err := sl_service.GetDependentDuplicate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getDependentDuplicates", func() { + It("API Call Test", func() { + _, err := sl_service.GetDependentDuplicates() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getDuplicateConversionStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetDuplicateConversionStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getFailbackNotAllowed", func() { + It("API Call Test", func() { + _, err := sl_service.GetFailbackNotAllowed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getFailoverNotAllowed", func() { + It("API Call Test", func() { + _, err := sl_service.GetFailoverNotAllowed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getFileBlockEncryptedLocations", func() { + It("API Call Test", func() { + _, err := sl_service.GetFileBlockEncryptedLocations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getFileByIdentifier", func() { + It("API Call Test", func() { + _, err := sl_service.GetFileByIdentifier(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getFileCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetFileCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getFileList", func() { + It("API Call Test", func() { + _, err := sl_service.GetFileList(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getFileNetworkMountAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetFileNetworkMountAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getFilePendingDeleteCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetFilePendingDeleteCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getFilesPendingDelete", func() { + It("API Call Test", func() { + _, err := sl_service.GetFilesPendingDelete() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getFixReplicationCurrentStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetFixReplicationCurrentStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getFolderList", func() { + It("API Call Test", func() { + _, err := sl_service.GetFolderList() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getGraph", func() { + It("API Call Test", func() { + _, err := sl_service.GetGraph(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getHasEncryptionAtRest", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasEncryptionAtRest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getHourlySchedule", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlySchedule() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getIntervalSchedule", func() { + It("API Call Test", func() { + _, err := sl_service.GetIntervalSchedule() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getIops", func() { + It("API Call Test", func() { + _, err := sl_service.GetIops() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getIsConvertToIndependentTransactionInProgress", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsConvertToIndependentTransactionInProgress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getIsDependentDuplicateProvisionCompleted", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsDependentDuplicateProvisionCompleted() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getIsInDedicatedServiceResource", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsInDedicatedServiceResource() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getIsMagneticStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsMagneticStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getIsProvisionInProgress", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsProvisionInProgress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getIsReadyForSnapshot", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsReadyForSnapshot() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getIsReadyToMount", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsReadyToMount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getIscsiLuns", func() { + It("API Call Test", func() { + _, err := sl_service.GetIscsiLuns() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getIscsiReplicatingVolume", func() { + It("API Call Test", func() { + _, err := sl_service.GetIscsiReplicatingVolume() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getIscsiTargetIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetIscsiTargetIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getLunId", func() { + It("API Call Test", func() { + _, err := sl_service.GetLunId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getManualSnapshots", func() { + It("API Call Test", func() { + _, err := sl_service.GetManualSnapshots() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getMaximumExpansionSize", func() { + It("API Call Test", func() { + _, err := sl_service.GetMaximumExpansionSize() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getMetricTrackingObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getMountPath", func() { + It("API Call Test", func() { + _, err := sl_service.GetMountPath() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getMountableFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetMountableFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getMoveAndSplitStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetMoveAndSplitStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getNetworkConnectionDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkConnectionDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getNetworkMountAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMountAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getNetworkMountPath", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMountPath() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getNotificationSubscribers", func() { + It("API Call Test", func() { + _, err := sl_service.GetNotificationSubscribers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getObjectStorageConnectionInformation", func() { + It("API Call Test", func() { + _, err := sl_service.GetObjectStorageConnectionInformation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getObjectsByCredential", func() { + It("API Call Test", func() { + _, err := sl_service.GetObjectsByCredential(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getOriginalSnapshotName", func() { + It("API Call Test", func() { + _, err := sl_service.GetOriginalSnapshotName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getOriginalVolumeId", func() { + It("API Call Test", func() { + _, err := sl_service.GetOriginalVolumeId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getOriginalVolumeName", func() { + It("API Call Test", func() { + _, err := sl_service.GetOriginalVolumeName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getOriginalVolumeSize", func() { + It("API Call Test", func() { + _, err := sl_service.GetOriginalVolumeSize() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getOsType", func() { + It("API Call Test", func() { + _, err := sl_service.GetOsType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getOsTypeId", func() { + It("API Call Test", func() { + _, err := sl_service.GetOsTypeId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getParentPartnerships", func() { + It("API Call Test", func() { + _, err := sl_service.GetParentPartnerships() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getParentVolume", func() { + It("API Call Test", func() { + _, err := sl_service.GetParentVolume() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getPartnerships", func() { + It("API Call Test", func() { + _, err := sl_service.GetPartnerships() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getPermissionsGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetPermissionsGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getProperties", func() { + It("API Call Test", func() { + _, err := sl_service.GetProperties() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getProvisionedIops", func() { + It("API Call Test", func() { + _, err := sl_service.GetProvisionedIops() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getRecycleBinFileByIdentifier", func() { + It("API Call Test", func() { + _, err := sl_service.GetRecycleBinFileByIdentifier(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getRemainingAllowedHosts", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemainingAllowedHosts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getRemainingAllowedHostsForReplicant", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemainingAllowedHostsForReplicant() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getReplicatingLuns", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicatingLuns() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getReplicatingVolume", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicatingVolume() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getReplicationEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicationEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getReplicationPartners", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicationPartners() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getReplicationSchedule", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicationSchedule() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getReplicationStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicationStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getReplicationTimestamp", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicationTimestamp() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getSchedules", func() { + It("API Call Test", func() { + _, err := sl_service.GetSchedules() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getServiceResource", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceResource() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getServiceResourceBackendIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceResourceBackendIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getServiceResourceName", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceResourceName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getSnapshotCapacityGb", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshotCapacityGb() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getSnapshotCreationTimestamp", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshotCreationTimestamp() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getSnapshotDeletionThresholdPercentage", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshotDeletionThresholdPercentage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getSnapshotNotificationStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshotNotificationStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getSnapshotSizeBytes", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshotSizeBytes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getSnapshotSpaceAvailable", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshotSpaceAvailable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getSnapshots", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshots() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getSnapshotsForVolume", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshotsForVolume() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getStaasVersion", func() { + It("API Call Test", func() { + _, err := sl_service.GetStaasVersion() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getStorageGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getStorageGroupsNetworkConnectionDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageGroupsNetworkConnectionDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getStorageTierLevel", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageTierLevel() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getStorageType", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getTargetIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetTargetIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getTotalBytesUsed", func() { + It("API Call Test", func() { + _, err := sl_service.GetTotalBytesUsed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getTotalScheduleSnapshotRetentionCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetTotalScheduleSnapshotRetentionCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getUsageNotification", func() { + It("API Call Test", func() { + _, err := sl_service.GetUsageNotification() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getValidReplicationTargetDatacenterLocations", func() { + It("API Call Test", func() { + _, err := sl_service.GetValidReplicationTargetDatacenterLocations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getVendorName", func() { + It("API Call Test", func() { + _, err := sl_service.GetVendorName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getVirtualGuest", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getVolumeCountLimits", func() { + It("API Call Test", func() { + _, err := sl_service.GetVolumeCountLimits() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getVolumeDuplicateParameters", func() { + It("API Call Test", func() { + _, err := sl_service.GetVolumeDuplicateParameters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getVolumeHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetVolumeHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getVolumeStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetVolumeStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getWebccAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetWebccAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::getWeeklySchedule", func() { + It("API Call Test", func() { + _, err := sl_service.GetWeeklySchedule() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::immediateFailoverToReplicant", func() { + It("API Call Test", func() { + _, err := sl_service.ImmediateFailoverToReplicant(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::initiateOriginVolumeReclaim", func() { + It("API Call Test", func() { + _, err := sl_service.InitiateOriginVolumeReclaim() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::initiateVolumeCutover", func() { + It("API Call Test", func() { + _, err := sl_service.InitiateVolumeCutover() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::isBlockingOperationInProgress", func() { + It("API Call Test", func() { + _, err := sl_service.IsBlockingOperationInProgress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::isDuplicateReadyForSnapshot", func() { + It("API Call Test", func() { + _, err := sl_service.IsDuplicateReadyForSnapshot() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::isDuplicateReadyToMount", func() { + It("API Call Test", func() { + _, err := sl_service.IsDuplicateReadyToMount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::isVolumeActive", func() { + It("API Call Test", func() { + _, err := sl_service.IsVolumeActive() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::refreshDependentDuplicate", func() { + It("API Call Test", func() { + _, err := sl_service.RefreshDependentDuplicate(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::refreshDuplicate", func() { + It("API Call Test", func() { + _, err := sl_service.RefreshDuplicate(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::removeAccessFromHardware", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromHardware(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::removeAccessFromHardwareList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromHardwareList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::removeAccessFromHost", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromHost(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::removeAccessFromHostList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromHostList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::removeAccessFromIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::removeAccessFromIpAddressList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromIpAddressList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::removeAccessFromSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromSubnet(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::removeAccessFromSubnetList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromSubnetList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::removeAccessFromVirtualGuest", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromVirtualGuest(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::removeAccessFromVirtualGuestList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessFromVirtualGuestList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::removeAccessToReplicantFromHardwareList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToReplicantFromHardwareList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::removeAccessToReplicantFromIpAddressList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToReplicantFromIpAddressList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::removeAccessToReplicantFromSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToReplicantFromSubnet(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::removeAccessToReplicantFromSubnetList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToReplicantFromSubnetList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::removeAccessToReplicantFromVirtualGuestList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToReplicantFromVirtualGuestList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::removeCredential", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveCredential(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::restoreFile", func() { + It("API Call Test", func() { + _, err := sl_service.RestoreFile(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::restoreFromSnapshot", func() { + It("API Call Test", func() { + _, err := sl_service.RestoreFromSnapshot(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::sendPasswordReminderEmail", func() { + It("API Call Test", func() { + _, err := sl_service.SendPasswordReminderEmail(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::setMountable", func() { + It("API Call Test", func() { + _, err := sl_service.SetMountable(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::setSnapshotAllocation", func() { + It("API Call Test", func() { + err := sl_service.SetSnapshotAllocation(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::setSnapshotNotification", func() { + It("API Call Test", func() { + err := sl_service.SetSnapshotNotification(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::upgradeVolumeCapacity", func() { + It("API Call Test", func() { + _, err := sl_service.UpgradeVolumeCapacity(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::uploadFile", func() { + It("API Call Test", func() { + _, err := sl_service.UploadFile(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi::validateHostsAccess", func() { + It("API Call Test", func() { + _, err := sl_service.ValidateHostsAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_Iscsi_OS_Type service", func() { + var sl_service services.Network_Storage_Iscsi_OS_Type + BeforeEach(func() { + sl_service = services.GetNetworkStorageIscsiOSTypeService(slsession) + }) + Context("SoftLayer_Network_Storage_Iscsi_OS_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi_OS_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi_OS_Type::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Iscsi_OS_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_MassDataMigration_CrossRegion_Country_Xref service", func() { + var sl_service services.Network_Storage_MassDataMigration_CrossRegion_Country_Xref + BeforeEach(func() { + sl_service = services.GetNetworkStorageMassDataMigrationCrossRegionCountryXrefService(slsession) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_CrossRegion_Country_Xref Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_CrossRegion_Country_Xref Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_CrossRegion_Country_Xref::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_CrossRegion_Country_Xref::getCountry", func() { + It("API Call Test", func() { + _, err := sl_service.GetCountry() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_CrossRegion_Country_Xref::getLocationGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_CrossRegion_Country_Xref::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_CrossRegion_Country_Xref::getValidCountriesForRegion", func() { + It("API Call Test", func() { + _, err := sl_service.GetValidCountriesForRegion(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_MassDataMigration_Request service", func() { + var sl_service services.Network_Storage_MassDataMigration_Request + BeforeEach(func() { + sl_service = services.GetNetworkStorageMassDataMigrationRequestService(slsession) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request::getActiveTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request::getAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request::getAllRequestStatuses", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllRequestStatuses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request::getCreateEmployee", func() { + It("API Call Test", func() { + _, err := sl_service.GetCreateEmployee() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request::getCreateUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetCreateUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request::getDeviceConfiguration", func() { + It("API Call Test", func() { + _, err := sl_service.GetDeviceConfiguration() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request::getDeviceModel", func() { + It("API Call Test", func() { + _, err := sl_service.GetDeviceModel() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request::getKeyContacts", func() { + It("API Call Test", func() { + _, err := sl_service.GetKeyContacts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request::getModifyEmployee", func() { + It("API Call Test", func() { + _, err := sl_service.GetModifyEmployee() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request::getModifyUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetModifyUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request::getPendingRequests", func() { + It("API Call Test", func() { + _, err := sl_service.GetPendingRequests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request::getShipments", func() { + It("API Call Test", func() { + _, err := sl_service.GetShipments() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request::getStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request::getTicket", func() { + It("API Call Test", func() { + _, err := sl_service.GetTicket() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request::getTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_MassDataMigration_Request_KeyContact service", func() { + var sl_service services.Network_Storage_MassDataMigration_Request_KeyContact + BeforeEach(func() { + sl_service = services.GetNetworkStorageMassDataMigrationRequestKeyContactService(slsession) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request_KeyContact Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request_KeyContact Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request_KeyContact::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request_KeyContact::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request_KeyContact::getRequest", func() { + It("API Call Test", func() { + _, err := sl_service.GetRequest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_MassDataMigration_Request_Status service", func() { + var sl_service services.Network_Storage_MassDataMigration_Request_Status + BeforeEach(func() { + sl_service = services.GetNetworkStorageMassDataMigrationRequestStatusService(slsession) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request_Status Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request_Status Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_MassDataMigration_Request_Status::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_Schedule service", func() { + var sl_service services.Network_Storage_Schedule + BeforeEach(func() { + sl_service = services.GetNetworkStorageScheduleService(slsession) + }) + Context("SoftLayer_Network_Storage_Schedule Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_Schedule Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_Schedule::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Schedule::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Schedule::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Schedule::getDay", func() { + It("API Call Test", func() { + _, err := sl_service.GetDay() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Schedule::getDayOfMonth", func() { + It("API Call Test", func() { + _, err := sl_service.GetDayOfMonth() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Schedule::getDayOfWeek", func() { + It("API Call Test", func() { + _, err := sl_service.GetDayOfWeek() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Schedule::getEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Schedule::getHour", func() { + It("API Call Test", func() { + _, err := sl_service.GetHour() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Schedule::getMinute", func() { + It("API Call Test", func() { + _, err := sl_service.GetMinute() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Schedule::getMonthOfYear", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonthOfYear() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Schedule::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Schedule::getPartnership", func() { + It("API Call Test", func() { + _, err := sl_service.GetPartnership() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Schedule::getProperties", func() { + It("API Call Test", func() { + _, err := sl_service.GetProperties() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Schedule::getReplicaSnapshots", func() { + It("API Call Test", func() { + _, err := sl_service.GetReplicaSnapshots() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Schedule::getRetentionCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetRetentionCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Schedule::getSecond", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecond() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Schedule::getSnapshots", func() { + It("API Call Test", func() { + _, err := sl_service.GetSnapshots() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Schedule::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Schedule::getVolume", func() { + It("API Call Test", func() { + _, err := sl_service.GetVolume() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Storage_Schedule_Property_Type service", func() { + var sl_service services.Network_Storage_Schedule_Property_Type + BeforeEach(func() { + sl_service = services.GetNetworkStorageSchedulePropertyTypeService(slsession) + }) + Context("SoftLayer_Network_Storage_Schedule_Property_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Storage_Schedule_Property_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Storage_Schedule_Property_Type::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Storage_Schedule_Property_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Subnet service", func() { + var sl_service services.Network_Subnet + BeforeEach(func() { + sl_service = services.GetNetworkSubnetService(slsession) + }) + Context("SoftLayer_Network_Subnet Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Subnet Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Subnet::allowAccessToNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToNetworkStorage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::allowAccessToNetworkStorageList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToNetworkStorageList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::clearRoute", func() { + It("API Call Test", func() { + _, err := sl_service.ClearRoute() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::createReverseDomainRecords", func() { + It("API Call Test", func() { + _, err := sl_service.CreateReverseDomainRecords() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::createSubnetRouteUpdateTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.CreateSubnetRouteUpdateTransaction(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::createSwipTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.CreateSwipTransaction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::editNote", func() { + It("API Call Test", func() { + _, err := sl_service.EditNote(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::findAllSubnetsAndActiveSwipTransactionStatus", func() { + It("API Call Test", func() { + _, err := sl_service.FindAllSubnetsAndActiveSwipTransactionStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getActiveRegistration", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveRegistration() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getActiveSwipTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveSwipTransaction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getActiveTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveTransaction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getAddressSpace", func() { + It("API Call Test", func() { + _, err := sl_service.GetAddressSpace() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getAllowedHost", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedHost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getAllowedNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getAllowedNetworkStorageReplicas", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedNetworkStorageReplicas() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getAttachedNetworkStorages", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedNetworkStorages(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getAvailableNetworkStorages", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableNetworkStorages(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getBoundDescendants", func() { + It("API Call Test", func() { + _, err := sl_service.GetBoundDescendants() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getBoundRouterFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBoundRouterFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getBoundRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetBoundRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getDatacenter", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getDescendants", func() { + It("API Call Test", func() { + _, err := sl_service.GetDescendants() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getDisplayLabel", func() { + It("API Call Test", func() { + _, err := sl_service.GetDisplayLabel() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getEndPointIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetEndPointIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getGlobalIpRecord", func() { + It("API Call Test", func() { + _, err := sl_service.GetGlobalIpRecord() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getIpAddressUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetIpAddressUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getNetworkComponentFirewall", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponentFirewall() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getNetworkProtectionAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkProtectionAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getNetworkTunnelContexts", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkTunnelContexts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getNetworkVlan", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlan() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getPodName", func() { + It("API Call Test", func() { + _, err := sl_service.GetPodName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getProtectedIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetProtectedIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getRegionalInternetRegistry", func() { + It("API Call Test", func() { + _, err := sl_service.GetRegionalInternetRegistry() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getRegistrations", func() { + It("API Call Test", func() { + _, err := sl_service.GetRegistrations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getReverseDomain", func() { + It("API Call Test", func() { + _, err := sl_service.GetReverseDomain() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getReverseDomainRecords", func() { + It("API Call Test", func() { + _, err := sl_service.GetReverseDomainRecords() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getRoleKeyName", func() { + It("API Call Test", func() { + _, err := sl_service.GetRoleKeyName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getRoleName", func() { + It("API Call Test", func() { + _, err := sl_service.GetRoleName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getRoutableEndpointIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetRoutableEndpointIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getRoutingTypeKeyName", func() { + It("API Call Test", func() { + _, err := sl_service.GetRoutingTypeKeyName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getRoutingTypeName", func() { + It("API Call Test", func() { + _, err := sl_service.GetRoutingTypeName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getSubnetForIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubnetForIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getSwipTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.GetSwipTransaction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getTagReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetTagReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getUnboundDescendants", func() { + It("API Call Test", func() { + _, err := sl_service.GetUnboundDescendants() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getUtilizedIpAddressCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetUtilizedIpAddressCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::getVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::removeAccessToNetworkStorageList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToNetworkStorageList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::route", func() { + It("API Call Test", func() { + _, err := sl_service.Route(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet::setTags", func() { + It("API Call Test", func() { + _, err := sl_service.SetTags(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Subnet_IpAddress service", func() { + var sl_service services.Network_Subnet_IpAddress + BeforeEach(func() { + sl_service = services.GetNetworkSubnetIpAddressService(slsession) + }) + Context("SoftLayer_Network_Subnet_IpAddress Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::allowAccessToNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToNetworkStorage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::allowAccessToNetworkStorageList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToNetworkStorageList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::editObjects", func() { + It("API Call Test", func() { + _, err := sl_service.EditObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::findByIpv4Address", func() { + It("API Call Test", func() { + _, err := sl_service.FindByIpv4Address(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::findUsage", func() { + It("API Call Test", func() { + _, err := sl_service.FindUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getAllowedHost", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedHost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getAllowedNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getAllowedNetworkStorageReplicas", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedNetworkStorageReplicas() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getApplicationDeliveryController", func() { + It("API Call Test", func() { + _, err := sl_service.GetApplicationDeliveryController() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getAttachedNetworkStorages", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedNetworkStorages(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getAvailableNetworkStorages", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableNetworkStorages(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getByIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetByIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getContextTunnelTranslations", func() { + It("API Call Test", func() { + _, err := sl_service.GetContextTunnelTranslations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getEndpointSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetEndpointSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getGuestNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetGuestNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getGuestNetworkComponentBinding", func() { + It("API Call Test", func() { + _, err := sl_service.GetGuestNetworkComponentBinding() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getPrivateNetworkGateway", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateNetworkGateway() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getProtectionAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetProtectionAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getPublicNetworkGateway", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicNetworkGateway() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getRemoteManagementNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetRemoteManagementNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubnet() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getSyslogEventsOneDay", func() { + It("API Call Test", func() { + _, err := sl_service.GetSyslogEventsOneDay() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getSyslogEventsSevenDays", func() { + It("API Call Test", func() { + _, err := sl_service.GetSyslogEventsSevenDays() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getTopTenSyslogEventsByDestinationPortOneDay", func() { + It("API Call Test", func() { + _, err := sl_service.GetTopTenSyslogEventsByDestinationPortOneDay() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getTopTenSyslogEventsByDestinationPortSevenDays", func() { + It("API Call Test", func() { + _, err := sl_service.GetTopTenSyslogEventsByDestinationPortSevenDays() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getTopTenSyslogEventsByProtocolsOneDay", func() { + It("API Call Test", func() { + _, err := sl_service.GetTopTenSyslogEventsByProtocolsOneDay() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getTopTenSyslogEventsByProtocolsSevenDays", func() { + It("API Call Test", func() { + _, err := sl_service.GetTopTenSyslogEventsByProtocolsSevenDays() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getTopTenSyslogEventsBySourceIpOneDay", func() { + It("API Call Test", func() { + _, err := sl_service.GetTopTenSyslogEventsBySourceIpOneDay() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getTopTenSyslogEventsBySourceIpSevenDays", func() { + It("API Call Test", func() { + _, err := sl_service.GetTopTenSyslogEventsBySourceIpSevenDays() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getTopTenSyslogEventsBySourcePortOneDay", func() { + It("API Call Test", func() { + _, err := sl_service.GetTopTenSyslogEventsBySourcePortOneDay() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getTopTenSyslogEventsBySourcePortSevenDays", func() { + It("API Call Test", func() { + _, err := sl_service.GetTopTenSyslogEventsBySourcePortSevenDays() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getVirtualGuest", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::getVirtualLicenses", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualLicenses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress::removeAccessToNetworkStorageList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToNetworkStorageList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Subnet_IpAddress_Global service", func() { + var sl_service services.Network_Subnet_IpAddress_Global + BeforeEach(func() { + sl_service = services.GetNetworkSubnetIpAddressGlobalService(slsession) + }) + Context("SoftLayer_Network_Subnet_IpAddress_Global Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress_Global Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress_Global::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress_Global::getActiveTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveTransaction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress_Global::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress_Global::getDestinationIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetDestinationIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress_Global::getIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress_Global::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress_Global::route", func() { + It("API Call Test", func() { + _, err := sl_service.Route(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_IpAddress_Global::unroute", func() { + It("API Call Test", func() { + _, err := sl_service.Unroute() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Subnet_Registration service", func() { + var sl_service services.Network_Subnet_Registration + BeforeEach(func() { + sl_service = services.GetNetworkSubnetRegistrationService(slsession) + }) + Context("SoftLayer_Network_Subnet_Registration Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Subnet_Registration Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Subnet_Registration::clearRegistration", func() { + It("API Call Test", func() { + _, err := sl_service.ClearRegistration() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Registration::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Registration::createObjects", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Registration::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Registration::editRegistrationAttachedDetails", func() { + It("API Call Test", func() { + _, err := sl_service.EditRegistrationAttachedDetails(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Registration::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Registration::getDetailReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetDetailReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Registration::getEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Registration::getNetworkDetail", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkDetail() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Registration::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Registration::getPersonDetail", func() { + It("API Call Test", func() { + _, err := sl_service.GetPersonDetail() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Registration::getRegionalInternetRegistry", func() { + It("API Call Test", func() { + _, err := sl_service.GetRegionalInternetRegistry() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Registration::getRegionalInternetRegistryHandle", func() { + It("API Call Test", func() { + _, err := sl_service.GetRegionalInternetRegistryHandle() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Registration::getStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Registration::getSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubnet() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Subnet_Registration_Details service", func() { + var sl_service services.Network_Subnet_Registration_Details + BeforeEach(func() { + sl_service = services.GetNetworkSubnetRegistrationDetailsService(slsession) + }) + Context("SoftLayer_Network_Subnet_Registration_Details Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Subnet_Registration_Details Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Subnet_Registration_Details::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Registration_Details::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Registration_Details::getDetail", func() { + It("API Call Test", func() { + _, err := sl_service.GetDetail() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Registration_Details::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Registration_Details::getRegistration", func() { + It("API Call Test", func() { + _, err := sl_service.GetRegistration() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Subnet_Registration_Status service", func() { + var sl_service services.Network_Subnet_Registration_Status + BeforeEach(func() { + sl_service = services.GetNetworkSubnetRegistrationStatusService(slsession) + }) + Context("SoftLayer_Network_Subnet_Registration_Status Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Subnet_Registration_Status Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Subnet_Registration_Status::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Registration_Status::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Subnet_Rwhois_Data service", func() { + var sl_service services.Network_Subnet_Rwhois_Data + BeforeEach(func() { + sl_service = services.GetNetworkSubnetRwhoisDataService(slsession) + }) + Context("SoftLayer_Network_Subnet_Rwhois_Data Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Subnet_Rwhois_Data Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Subnet_Rwhois_Data::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Rwhois_Data::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Rwhois_Data::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Subnet_Swip_Transaction service", func() { + var sl_service services.Network_Subnet_Swip_Transaction + BeforeEach(func() { + sl_service = services.GetNetworkSubnetSwipTransactionService(slsession) + }) + Context("SoftLayer_Network_Subnet_Swip_Transaction Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Subnet_Swip_Transaction Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Subnet_Swip_Transaction::findMyTransactions", func() { + It("API Call Test", func() { + _, err := sl_service.FindMyTransactions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Swip_Transaction::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Swip_Transaction::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Swip_Transaction::getSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubnet() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Swip_Transaction::removeAllSubnetSwips", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAllSubnetSwips() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Swip_Transaction::removeSwipData", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveSwipData() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Swip_Transaction::resendSwipData", func() { + It("API Call Test", func() { + _, err := sl_service.ResendSwipData() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Swip_Transaction::swipAllSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.SwipAllSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Subnet_Swip_Transaction::updateAllSubnetSwips", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateAllSubnetSwips() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Tunnel_Module_Context service", func() { + var sl_service services.Network_Tunnel_Module_Context + BeforeEach(func() { + sl_service = services.GetNetworkTunnelModuleContextService(slsession) + }) + Context("SoftLayer_Network_Tunnel_Module_Context Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::addCustomerSubnetToNetworkTunnel", func() { + It("API Call Test", func() { + _, err := sl_service.AddCustomerSubnetToNetworkTunnel(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::addPrivateSubnetToNetworkTunnel", func() { + It("API Call Test", func() { + _, err := sl_service.AddPrivateSubnetToNetworkTunnel(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::addServiceSubnetToNetworkTunnel", func() { + It("API Call Test", func() { + _, err := sl_service.AddServiceSubnetToNetworkTunnel(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::applyConfigurationsToDevice", func() { + It("API Call Test", func() { + _, err := sl_service.ApplyConfigurationsToDevice() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::createAddressTranslation", func() { + It("API Call Test", func() { + _, err := sl_service.CreateAddressTranslation(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::createAddressTranslations", func() { + It("API Call Test", func() { + _, err := sl_service.CreateAddressTranslations(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::deleteAddressTranslation", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteAddressTranslation(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::downloadAddressTranslationConfigurations", func() { + It("API Call Test", func() { + _, err := sl_service.DownloadAddressTranslationConfigurations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::downloadParameterConfigurations", func() { + It("API Call Test", func() { + _, err := sl_service.DownloadParameterConfigurations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::editAddressTranslation", func() { + It("API Call Test", func() { + _, err := sl_service.EditAddressTranslation(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::editAddressTranslations", func() { + It("API Call Test", func() { + _, err := sl_service.EditAddressTranslations(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getActiveTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveTransaction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getAddressTranslationConfigurations", func() { + It("API Call Test", func() { + _, err := sl_service.GetAddressTranslationConfigurations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getAddressTranslations", func() { + It("API Call Test", func() { + _, err := sl_service.GetAddressTranslations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getAllAvailableServiceSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllAvailableServiceSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getAuthenticationDefault", func() { + It("API Call Test", func() { + _, err := sl_service.GetAuthenticationDefault() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getAuthenticationOptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetAuthenticationOptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getCustomerSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetCustomerSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getDatacenter", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getDiffieHellmanGroupDefault", func() { + It("API Call Test", func() { + _, err := sl_service.GetDiffieHellmanGroupDefault() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getDiffieHellmanGroupOptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetDiffieHellmanGroupOptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getEncryptionDefault", func() { + It("API Call Test", func() { + _, err := sl_service.GetEncryptionDefault() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getEncryptionOptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetEncryptionOptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getInternalSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetInternalSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getKeylifeLimits", func() { + It("API Call Test", func() { + _, err := sl_service.GetKeylifeLimits() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getParameterConfigurationsForCustomerView", func() { + It("API Call Test", func() { + _, err := sl_service.GetParameterConfigurationsForCustomerView() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getPhaseOneKeylifeDefault", func() { + It("API Call Test", func() { + _, err := sl_service.GetPhaseOneKeylifeDefault() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getPhaseTwoKeylifeDefault", func() { + It("API Call Test", func() { + _, err := sl_service.GetPhaseTwoKeylifeDefault() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getServiceSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getStaticRouteSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetStaticRouteSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::getTransactionHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetTransactionHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::removeCustomerSubnetFromNetworkTunnel", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveCustomerSubnetFromNetworkTunnel(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::removePrivateSubnetFromNetworkTunnel", func() { + It("API Call Test", func() { + _, err := sl_service.RemovePrivateSubnetFromNetworkTunnel(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Tunnel_Module_Context::removeServiceSubnetFromNetworkTunnel", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveServiceSubnetFromNetworkTunnel(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Vlan service", func() { + var sl_service services.Network_Vlan + BeforeEach(func() { + sl_service = services.GetNetworkVlanService(slsession) + }) + Context("SoftLayer_Network_Vlan Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Vlan Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Vlan::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getAdditionalPrimarySubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetAdditionalPrimarySubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getAttachedNetworkGateway", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedNetworkGateway() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getAttachedNetworkGatewayFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedNetworkGatewayFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getAttachedNetworkGatewayVlan", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedNetworkGatewayVlan() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getCancelFailureReasons", func() { + It("API Call Test", func() { + _, err := sl_service.GetCancelFailureReasons() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getDatacenter", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getDedicatedFirewallFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetDedicatedFirewallFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getExtensionRouter", func() { + It("API Call Test", func() { + _, err := sl_service.GetExtensionRouter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getFirewallGuestNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallGuestNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getFirewallInterfaces", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallInterfaces() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getFirewallNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getFirewallProtectableIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallProtectableIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getFirewallProtectableSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallProtectableSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getFirewallRules", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallRules() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getGuestNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetGuestNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getHighAvailabilityFirewallFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHighAvailabilityFirewallFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getIpAddressUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetIpAddressUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getLocalDiskStorageCapabilityFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocalDiskStorageCapabilityFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getNetworkComponentTrunks", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponentTrunks() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getNetworkComponentsTrunkable", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponentsTrunkable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getNetworkSpace", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkSpace() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getNetworkVlanFirewall", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlanFirewall() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getPodName", func() { + It("API Call Test", func() { + _, err := sl_service.GetPodName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getPrimaryRouter", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryRouter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getPrimarySubnet", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimarySubnet() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getPrimarySubnetVersion6", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimarySubnetVersion6() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getPrimarySubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimarySubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getPrivateNetworkGateways", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateNetworkGateways() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getPrivateVlan", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateVlan() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getPrivateVlanByIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateVlanByIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getProtectedIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetProtectedIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getPublicNetworkGateways", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicNetworkGateways() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getPublicVlanByFqdn", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicVlanByFqdn(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getReverseDomainRecords", func() { + It("API Call Test", func() { + _, err := sl_service.GetReverseDomainRecords() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getSanStorageCapabilityFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetSanStorageCapabilityFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getSecondaryRouter", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecondaryRouter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getSecondarySubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecondarySubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getTagReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetTagReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getTotalPrimaryIpAddressCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetTotalPrimaryIpAddressCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::getVlanForIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetVlanForIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::setTags", func() { + It("API Call Test", func() { + _, err := sl_service.SetTags(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::updateFirewallIntraVlanCommunication", func() { + It("API Call Test", func() { + err := sl_service.UpdateFirewallIntraVlanCommunication(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan::upgrade", func() { + It("API Call Test", func() { + _, err := sl_service.Upgrade() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Vlan_Firewall service", func() { + var sl_service services.Network_Vlan_Firewall + BeforeEach(func() { + sl_service = services.GetNetworkVlanFirewallService(slsession) + }) + Context("SoftLayer_Network_Vlan_Firewall Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::approveBypassRequest", func() { + It("API Call Test", func() { + err := sl_service.ApproveBypassRequest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getAccountId", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getBandwidthAllocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthAllocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getBillingCycleBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingCycleBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getBillingCyclePrivateBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingCyclePrivateBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getBillingCyclePublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingCyclePublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getBypassRequestStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetBypassRequestStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getDatacenter", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getFirewallFirmwareVersion", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallFirmwareVersion() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getFirewallType", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getFullyQualifiedDomainName", func() { + It("API Call Test", func() { + _, err := sl_service.GetFullyQualifiedDomainName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getManagementCredentials", func() { + It("API Call Test", func() { + _, err := sl_service.GetManagementCredentials() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getMetricTrackingObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getMetricTrackingObjectId", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObjectId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getNetworkFirewallUpdateRequests", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkFirewallUpdateRequests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getNetworkGateway", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkGateway() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getNetworkVlan", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlan() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getNetworkVlans", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlans() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getRules", func() { + It("API Call Test", func() { + _, err := sl_service.GetRules() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getTagReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetTagReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::getUpgradeRequest", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeRequest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::hasActiveTransactions", func() { + It("API Call Test", func() { + _, err := sl_service.HasActiveTransactions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::isAccountAllowed", func() { + It("API Call Test", func() { + _, err := sl_service.IsAccountAllowed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::isHighAvailabilityUpgradeAvailable", func() { + It("API Call Test", func() { + _, err := sl_service.IsHighAvailabilityUpgradeAvailable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::rejectBypassRequest", func() { + It("API Call Test", func() { + err := sl_service.RejectBypassRequest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::restoreDefaults", func() { + It("API Call Test", func() { + _, err := sl_service.RestoreDefaults() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::setTags", func() { + It("API Call Test", func() { + _, err := sl_service.SetTags(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Network_Vlan_Firewall::updateRouteBypass", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateRouteBypass(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Network_Vlan_Type service", func() { + var sl_service services.Network_Vlan_Type + BeforeEach(func() { + sl_service = services.GetNetworkVlanTypeService(slsession) + }) + Context("SoftLayer_Network_Vlan_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Network_Vlan_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Network_Vlan_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/notification.go b/services/notification.go index 79eb965..67dec55 100644 --- a/services/notification.go +++ b/services/notification.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // Details provided for the notification are basic. Details such as the related preferences, name and keyname for the notification can be retrieved. The keyname property for the notification can be used to refer to a notification when integrating into the SoftLayer Notification system. The name property can used more for display purposes. type Notification struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNotificationService returns an instance of the Notification SoftLayer service -func GetNotificationService(sess *session.Session) Notification { +func GetNotificationService(sess session.SLSession) Notification { return Notification{Session: sess} } @@ -95,12 +88,12 @@ func (r Notification) GetRequiredPreferences() (resp []datatypes.Notification_Pr // This is an extension of the SoftLayer_Notification class. These are implementation details specific to those notifications which can be subscribed to and received on a mobile device. type Notification_Mobile struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNotificationMobileService returns an instance of the Notification_Mobile SoftLayer service -func GetNotificationMobileService(sess *session.Session) Notification_Mobile { +func GetNotificationMobileService(sess session.SLSession) Notification_Mobile { return Notification_Mobile{Session: sess} } @@ -170,12 +163,12 @@ func (r Notification_Mobile) GetRequiredPreferences() (resp []datatypes.Notifica // no documentation yet type Notification_Occurrence_Event struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNotificationOccurrenceEventService returns an instance of the Notification_Occurrence_Event SoftLayer service -func GetNotificationOccurrenceEventService(sess *session.Session) Notification_Occurrence_Event { +func GetNotificationOccurrenceEventService(sess session.SLSession) Notification_Occurrence_Event { return Notification_Occurrence_Event{Session: sess} } @@ -315,12 +308,12 @@ func (r Notification_Occurrence_Event) GetUpdates() (resp []datatypes.Notificati // This type contains general information relating to a user that may be impacted by a [[SoftLayer_Notification_Occurrence_Event]]. type Notification_Occurrence_User struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNotificationOccurrenceUserService returns an instance of the Notification_Occurrence_User SoftLayer service -func GetNotificationOccurrenceUserService(sess *session.Session) Notification_Occurrence_User { +func GetNotificationOccurrenceUserService(sess session.SLSession) Notification_Occurrence_User { return Notification_Occurrence_User{Session: sess} } @@ -399,12 +392,12 @@ func (r Notification_Occurrence_User) GetUser() (resp datatypes.User_Customer, e // // NOTE: There are preferences and delivery methods that cannot be modified. Also, there are some subscriptions that are required. type Notification_User_Subscriber struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNotificationUserSubscriberService returns an instance of the Notification_User_Subscriber SoftLayer service -func GetNotificationUserSubscriberService(sess *session.Session) Notification_User_Subscriber { +func GetNotificationUserSubscriberService(sess session.SLSession) Notification_User_Subscriber { return Notification_User_Subscriber{Session: sess} } @@ -529,12 +522,12 @@ func (r Notification_User_Subscriber) GetUserRecord() (resp datatypes.User_Custo // // NOTE: There are preferences and delivery methods that cannot be modified. Also, there are some subscriptions that are required. type Notification_User_Subscriber_Billing struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNotificationUserSubscriberBillingService returns an instance of the Notification_User_Subscriber_Billing SoftLayer service -func GetNotificationUserSubscriberBillingService(sess *session.Session) Notification_User_Subscriber_Billing { +func GetNotificationUserSubscriberBillingService(sess session.SLSession) Notification_User_Subscriber_Billing { return Notification_User_Subscriber_Billing{Session: sess} } @@ -659,12 +652,12 @@ func (r Notification_User_Subscriber_Billing) GetUserRecord() (resp datatypes.Us // // NOTE: There are preferences and delivery methods that cannot be modified. Also, there are some subscriptions that are required. type Notification_User_Subscriber_Mobile struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNotificationUserSubscriberMobileService returns an instance of the Notification_User_Subscriber_Mobile SoftLayer service -func GetNotificationUserSubscriberMobileService(sess *session.Session) Notification_User_Subscriber_Mobile { +func GetNotificationUserSubscriberMobileService(sess session.SLSession) Notification_User_Subscriber_Mobile { return Notification_User_Subscriber_Mobile{Session: sess} } @@ -805,12 +798,12 @@ func (r Notification_User_Subscriber_Mobile) SetSnoozeTimer(start *int, end *int // // NOTE: Some preferences have certain restrictions on values that can be set. type Notification_User_Subscriber_Preference struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetNotificationUserSubscriberPreferenceService returns an instance of the Notification_User_Subscriber_Preference SoftLayer service -func GetNotificationUserSubscriberPreferenceService(sess *session.Session) Notification_User_Subscriber_Preference { +func GetNotificationUserSubscriberPreferenceService(sess session.SLSession) Notification_User_Subscriber_Preference { return Notification_User_Subscriber_Preference{Session: sess} } diff --git a/services/notification_test.go b/services/notification_test.go new file mode 100644 index 0000000..822954d --- /dev/null +++ b/services/notification_test.go @@ -0,0 +1,726 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Notification Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Notification service", func() { + var sl_service services.Notification + BeforeEach(func() { + sl_service = services.GetNotificationService(slsession) + }) + Context("SoftLayer_Notification Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Notification Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Notification::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification::getPreferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification::getRequiredPreferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetRequiredPreferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Notification_Mobile service", func() { + var sl_service services.Notification_Mobile + BeforeEach(func() { + sl_service = services.GetNotificationMobileService(slsession) + }) + Context("SoftLayer_Notification_Mobile Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Notification_Mobile Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Notification_Mobile::createSubscriberForMobileDevice", func() { + It("API Call Test", func() { + _, err := sl_service.CreateSubscriberForMobileDevice(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Mobile::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Mobile::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Mobile::getPreferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Mobile::getRequiredPreferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetRequiredPreferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Notification_Occurrence_Event service", func() { + var sl_service services.Notification_Occurrence_Event + BeforeEach(func() { + sl_service = services.GetNotificationOccurrenceEventService(slsession) + }) + Context("SoftLayer_Notification_Occurrence_Event Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Notification_Occurrence_Event Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Notification_Occurrence_Event::acknowledgeNotification", func() { + It("API Call Test", func() { + _, err := sl_service.AcknowledgeNotification() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_Event::getAcknowledgedFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetAcknowledgedFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_Event::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_Event::getAttachedFile", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedFile(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_Event::getAttachments", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachments() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_Event::getFirstUpdate", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirstUpdate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_Event::getImpactedAccountCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetImpactedAccountCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_Event::getImpactedAccounts", func() { + It("API Call Test", func() { + _, err := sl_service.GetImpactedAccounts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_Event::getImpactedDeviceCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetImpactedDeviceCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_Event::getImpactedDevices", func() { + It("API Call Test", func() { + _, err := sl_service.GetImpactedDevices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_Event::getImpactedResources", func() { + It("API Call Test", func() { + _, err := sl_service.GetImpactedResources() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_Event::getImpactedUsers", func() { + It("API Call Test", func() { + _, err := sl_service.GetImpactedUsers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_Event::getLastUpdate", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastUpdate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_Event::getNotificationOccurrenceEventType", func() { + It("API Call Test", func() { + _, err := sl_service.GetNotificationOccurrenceEventType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_Event::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_Event::getStatusCode", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatusCode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_Event::getUpdates", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpdates() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Notification_Occurrence_User service", func() { + var sl_service services.Notification_Occurrence_User + BeforeEach(func() { + sl_service = services.GetNotificationOccurrenceUserService(slsession) + }) + Context("SoftLayer_Notification_Occurrence_User Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Notification_Occurrence_User Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Notification_Occurrence_User::acknowledge", func() { + It("API Call Test", func() { + _, err := sl_service.Acknowledge() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_User::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_User::getImpactedDeviceCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetImpactedDeviceCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_User::getImpactedResources", func() { + It("API Call Test", func() { + _, err := sl_service.GetImpactedResources() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_User::getNotificationOccurrenceEvent", func() { + It("API Call Test", func() { + _, err := sl_service.GetNotificationOccurrenceEvent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_User::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_Occurrence_User::getUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Notification_User_Subscriber service", func() { + var sl_service services.Notification_User_Subscriber + BeforeEach(func() { + sl_service = services.GetNotificationUserSubscriberService(slsession) + }) + Context("SoftLayer_Notification_User_Subscriber Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Notification_User_Subscriber Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Notification_User_Subscriber::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber::getDeliveryMethods", func() { + It("API Call Test", func() { + _, err := sl_service.GetDeliveryMethods() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber::getNotification", func() { + It("API Call Test", func() { + _, err := sl_service.GetNotification() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber::getPreferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber::getPreferencesDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreferencesDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber::getResourceRecord", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceRecord() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber::getUserRecord", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserRecord() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Notification_User_Subscriber_Billing service", func() { + var sl_service services.Notification_User_Subscriber_Billing + BeforeEach(func() { + sl_service = services.GetNotificationUserSubscriberBillingService(slsession) + }) + Context("SoftLayer_Notification_User_Subscriber_Billing Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Billing Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Billing::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Billing::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Billing::getDeliveryMethods", func() { + It("API Call Test", func() { + _, err := sl_service.GetDeliveryMethods() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Billing::getNotification", func() { + It("API Call Test", func() { + _, err := sl_service.GetNotification() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Billing::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Billing::getPreferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Billing::getPreferencesDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreferencesDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Billing::getResourceRecord", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceRecord() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Billing::getUserRecord", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserRecord() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Notification_User_Subscriber_Mobile service", func() { + var sl_service services.Notification_User_Subscriber_Mobile + BeforeEach(func() { + sl_service = services.GetNotificationUserSubscriberMobileService(slsession) + }) + Context("SoftLayer_Notification_User_Subscriber_Mobile Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Mobile Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Mobile::clearSnoozeTimer", func() { + It("API Call Test", func() { + _, err := sl_service.ClearSnoozeTimer() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Mobile::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Mobile::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Mobile::getDeliveryMethods", func() { + It("API Call Test", func() { + _, err := sl_service.GetDeliveryMethods() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Mobile::getNotification", func() { + It("API Call Test", func() { + _, err := sl_service.GetNotification() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Mobile::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Mobile::getPreferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Mobile::getPreferencesDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreferencesDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Mobile::getResourceRecord", func() { + It("API Call Test", func() { + _, err := sl_service.GetResourceRecord() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Mobile::getUserRecord", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserRecord() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Mobile::setSnoozeTimer", func() { + It("API Call Test", func() { + _, err := sl_service.SetSnoozeTimer(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Notification_User_Subscriber_Preference service", func() { + var sl_service services.Notification_User_Subscriber_Preference + BeforeEach(func() { + sl_service = services.GetNotificationUserSubscriberPreferenceService(slsession) + }) + Context("SoftLayer_Notification_User_Subscriber_Preference Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Preference Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Preference::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Preference::editObjects", func() { + It("API Call Test", func() { + _, err := sl_service.EditObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Preference::getDefaultPreference", func() { + It("API Call Test", func() { + _, err := sl_service.GetDefaultPreference() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Preference::getNotificationUserSubscriber", func() { + It("API Call Test", func() { + _, err := sl_service.GetNotificationUserSubscriber() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Notification_User_Subscriber_Preference::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/product.go b/services/product.go index c986c3c..006bbd0 100644 --- a/services/product.go +++ b/services/product.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // The SoftLayer_Product_Item data type contains general information relating to a single SoftLayer product. type Product_Item struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProductItemService returns an instance of the Product_Item SoftLayer service -func GetProductItemService(sess *session.Session) Product_Item { +func GetProductItemService(sess session.SLSession) Product_Item { return Product_Item{Session: sess} } @@ -377,12 +370,12 @@ func (r Product_Item) GetUpgradeItems() (resp []datatypes.Product_Item, err erro // The SoftLayer_Product_Item_Category data type contains general category information for prices. type Product_Item_Category struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProductItemCategoryService returns an instance of the Product_Item_Category SoftLayer service -func GetProductItemCategoryService(sess *session.Session) Product_Item_Category { +func GetProductItemCategoryService(sess session.SLSession) Product_Item_Category { return Product_Item_Category{Session: sess} } @@ -549,12 +542,12 @@ func (r Product_Item_Category) GetVlanCategories() (resp []datatypes.Product_Ite // The SoftLayer_Product_Item_Category_Group data type contains general category group information. type Product_Item_Category_Group struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProductItemCategoryGroupService returns an instance of the Product_Item_Category_Group SoftLayer service -func GetProductItemCategoryGroupService(sess *session.Session) Product_Item_Category_Group { +func GetProductItemCategoryGroupService(sess session.SLSession) Product_Item_Category_Group { return Product_Item_Category_Group{Session: sess} } @@ -595,12 +588,12 @@ func (r Product_Item_Category_Group) GetObject() (resp datatypes.Product_Item_Ca // Represents the assignment of a policy to a product. The existence of a record means that the associated product is subject to the terms defined in the document content of the policy. type Product_Item_Policy_Assignment struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProductItemPolicyAssignmentService returns an instance of the Product_Item_Policy_Assignment SoftLayer service -func GetProductItemPolicyAssignmentService(sess *session.Session) Product_Item_Policy_Assignment { +func GetProductItemPolicyAssignmentService(sess session.SLSession) Product_Item_Policy_Assignment { return Product_Item_Policy_Assignment{Session: sess} } @@ -668,12 +661,12 @@ func (r Product_Item_Policy_Assignment) GetProduct() (resp datatypes.Product_Ite // The SoftLayer_Product_Item_Price data type contains general information relating to a single SoftLayer product item price. You can find out what packages each price is in as well as which category under which this price is sold. All prices are returned in floating point values measured in US Dollars ($USD). type Product_Item_Price struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProductItemPriceService returns an instance of the Product_Item_Price SoftLayer service -func GetProductItemPriceService(sess *session.Session) Product_Item_Price { +func GetProductItemPriceService(sess session.SLSession) Product_Item_Price { return Product_Item_Price{Session: sess} } @@ -850,12 +843,12 @@ func (r Product_Item_Price) GetUsageRatePrices(location *datatypes.Location, ite // no documentation yet type Product_Item_Price_Premium struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProductItemPricePremiumService returns an instance of the Product_Item_Price_Premium SoftLayer service -func GetProductItemPricePremiumService(sess *session.Session) Product_Item_Price_Premium { +func GetProductItemPricePremiumService(sess session.SLSession) Product_Item_Price_Premium { return Product_Item_Price_Premium{Session: sess} } @@ -914,12 +907,12 @@ func (r Product_Item_Price_Premium) GetPackage() (resp datatypes.Product_Package // no documentation yet type Product_Order struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProductOrderService returns an instance of the Product_Order SoftLayer service -func GetProductOrderService(sess *session.Session) Product_Order { +func GetProductOrderService(sess session.SLSession) Product_Order { return Product_Order{Session: sess} } @@ -1089,7 +1082,6 @@ func (r Product_Order) GetVlans(locationId *int, packageId *int, selectedItems * // | Bare metal server by CPU | [[SoftLayer_Container_Product_Order_Hardware_Server]] | BARE_METAL_CPU | // | Bare metal server by core | [[SoftLayer_Container_Product_Order_Hardware_Server]] | BARE_METAL_CORE | // | Virtual server | [[SoftLayer_Container_Product_Order_Virtual_Guest]] | VIRTUAL_SERVER_INSTANCE | -// | DNS domain registration | [[SoftLayer_Container_Product_Order_Dns_Domain_Registrationn]] | ADDITIONAL_SERVICES | // | Local & dedicated load balancers | [[SoftLayer_Container_Product_Order_Network_LoadBalancer]] | ADDITIONAL_SERVICES_LOAD_BALANCER | // | Content delivery network | [[SoftLayer_Container_Product_Order_Network_ContentDelivery_Account]] | ADDITIONAL_SERVICES_CDN | // | Content delivery network Addon | [[SoftLayer_Container_Product_Order_Network_ContentDelivery_Account_Addon]] | ADDITIONAL_SERVICES_CDN_ADDON | @@ -1451,12 +1443,12 @@ func (r Product_Order) VerifyOrder(orderData interface{}) (resp datatypes.Contai // The SoftLayer_Product_Package data type contains information about packages from which orders can be generated. Packages contain general information regarding what is in them, where they are currently sold, availability, and pricing. type Product_Package struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProductPackageService returns an instance of the Product_Package SoftLayer service -func GetProductPackageService(sess *session.Session) Product_Package { +func GetProductPackageService(sess session.SLSession) Product_Package { return Product_Package{Session: sess} } @@ -1926,12 +1918,12 @@ func (r Product_Package) GetType() (resp datatypes.Product_Package_Type, err err // // Orders submitted with a preset id defined will use the prices included in the package preset. Prices submitted on an order with a preset id will replace the prices included in the package preset for that prices category. If the package preset has a fixed configuration flag (fixedConfigurationFlag) set then the prices included in the preset configuration cannot be replaced by prices submitted on the order. The only exception to the fixed configuration flag would be if a price submitted on the order is an account-restricted price for the same product item. type Product_Package_Preset struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProductPackagePresetService returns an instance of the Product_Package_Preset SoftLayer service -func GetProductPackagePresetService(sess *session.Session) Product_Package_Preset { +func GetProductPackagePresetService(sess session.SLSession) Product_Package_Preset { return Product_Package_Preset{Session: sess} } @@ -2068,12 +2060,12 @@ func (r Product_Package_Preset) GetTotalMinimumRecurringFee() (resp datatypes.Fl // The SoftLayer_Product_Package_Server data type contains summarized information for bare metal servers regarding pricing, processor stats, and feature sets. type Product_Package_Server struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProductPackageServerService returns an instance of the Product_Package_Server SoftLayer service -func GetProductPackageServerService(sess *session.Session) Product_Package_Server { +func GetProductPackageServerService(sess session.SLSession) Product_Package_Server { return Product_Package_Server{Session: sess} } @@ -2150,12 +2142,12 @@ func (r Product_Package_Server) GetPreset() (resp datatypes.Product_Package_Pres // The [[SoftLayer_Product_Package_Server_Option]] data type contains various data points associated with package servers that can be used in selection criteria. type Product_Package_Server_Option struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProductPackageServerOptionService returns an instance of the Product_Package_Server_Option SoftLayer service -func GetProductPackageServerOptionService(sess *session.Session) Product_Package_Server_Option { +func GetProductPackageServerOptionService(sess session.SLSession) Product_Package_Server_Option { return Product_Package_Server_Option{Session: sess} } @@ -2211,12 +2203,12 @@ func (r Product_Package_Server_Option) GetOptions(typ *string) (resp []datatypes // The [[SoftLayer_Product_Package_Type]] object indicates the type for a service offering (package). The type can be used to filter packages. For example, if you are looking for the package representing virtual servers, you can filter on the type's key name of ”'VIRTUAL_SERVER_INSTANCE”'. For bare metal servers by core or CPU, filter on ”'BARE_METAL_CORE”' or ”'BARE_METAL_CPU”', respectively. type Product_Package_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProductPackageTypeService returns an instance of the Product_Package_Type SoftLayer service -func GetProductPackageTypeService(sess *session.Session) Product_Package_Type { +func GetProductPackageTypeService(sess session.SLSession) Product_Package_Type { return Product_Package_Type{Session: sess} } @@ -2269,12 +2261,12 @@ func (r Product_Package_Type) GetPackages() (resp []datatypes.Product_Package, e // no documentation yet type Product_Promotion struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProductPromotionService returns an instance of the Product_Promotion SoftLayer service -func GetProductPromotionService(sess *session.Session) Product_Promotion { +func GetProductPromotionService(sess session.SLSession) Product_Promotion { return Product_Promotion{Session: sess} } @@ -2324,12 +2316,12 @@ func (r Product_Promotion) GetObject() (resp datatypes.Product_Promotion, err er // The SoftLayer_Product_Upgrade_Request data type contains general information relating to a hardware, virtual server, or service upgrade. It also relates a [[SoftLayer_Billing_Order]] to a [[SoftLayer_Ticket]]. type Product_Upgrade_Request struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProductUpgradeRequestService returns an instance of the Product_Upgrade_Request SoftLayer service -func GetProductUpgradeRequestService(sess *session.Session) Product_Upgrade_Request { +func GetProductUpgradeRequestService(sess session.SLSession) Product_Upgrade_Request { return Product_Upgrade_Request{Session: sess} } diff --git a/services/product_test.go b/services/product_test.go new file mode 100644 index 0000000..ccc0841 --- /dev/null +++ b/services/product_test.go @@ -0,0 +1,2040 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Product Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Product_Item service", func() { + var sl_service services.Product_Item + BeforeEach(func() { + sl_service = services.GetProductItemService(slsession) + }) + Context("SoftLayer_Product_Item Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Product_Item Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Product_Item::getActivePresaleEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetActivePresaleEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getActiveUsagePrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveUsagePrices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getAvailabilityAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailabilityAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getBillingType", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getBundle", func() { + It("API Call Test", func() { + _, err := sl_service.GetBundle() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getBundleItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetBundleItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getCapacityMaximum", func() { + It("API Call Test", func() { + _, err := sl_service.GetCapacityMaximum() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getCapacityMinimum", func() { + It("API Call Test", func() { + _, err := sl_service.GetCapacityMinimum() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getCapacityRestrictedProductFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetCapacityRestrictedProductFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getCategories", func() { + It("API Call Test", func() { + _, err := sl_service.GetCategories() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getConfigurationTemplates", func() { + It("API Call Test", func() { + _, err := sl_service.GetConfigurationTemplates() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getConflicts", func() { + It("API Call Test", func() { + _, err := sl_service.GetConflicts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getCoreRestrictedItemFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetCoreRestrictedItemFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getDowngradeItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetDowngradeItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getDowngradeItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetDowngradeItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getGlobalCategoryConflicts", func() { + It("API Call Test", func() { + _, err := sl_service.GetGlobalCategoryConflicts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getHardwareGenericComponentModel", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareGenericComponentModel() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getHideFromPortalFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHideFromPortalFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getIneligibleForAccountDiscountFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetIneligibleForAccountDiscountFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getInventory", func() { + It("API Call Test", func() { + _, err := sl_service.GetInventory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getIsEngineeredServerProduct", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsEngineeredServerProduct() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getItemCategory", func() { + It("API Call Test", func() { + _, err := sl_service.GetItemCategory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getLocalDiskFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocalDiskFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getLocationConflicts", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocationConflicts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getM2ControllerFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetM2ControllerFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getM2DriveFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetM2DriveFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getMinimumNvmeBays", func() { + It("API Call Test", func() { + _, err := sl_service.GetMinimumNvmeBays() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getNvmeDiskFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetNvmeDiskFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getObjectStorageClusterGeolocationType", func() { + It("API Call Test", func() { + _, err := sl_service.GetObjectStorageClusterGeolocationType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getObjectStorageItemFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetObjectStorageItemFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getObjectStorageServiceClass", func() { + It("API Call Test", func() { + _, err := sl_service.GetObjectStorageServiceClass() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getPackages", func() { + It("API Call Test", func() { + _, err := sl_service.GetPackages() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getPcieDriveFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetPcieDriveFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getPhysicalCoreCapacity", func() { + It("API Call Test", func() { + _, err := sl_service.GetPhysicalCoreCapacity() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getPresaleEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetPresaleEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getPrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getRequirements", func() { + It("API Call Test", func() { + _, err := sl_service.GetRequirements() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getRules", func() { + It("API Call Test", func() { + _, err := sl_service.GetRules() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getSoftwareDescription", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareDescription() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getSpeedSelectServerCoreCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetSpeedSelectServerCoreCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getSpeedSelectServerFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetSpeedSelectServerFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getTaxCategory", func() { + It("API Call Test", func() { + _, err := sl_service.GetTaxCategory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getThirdPartyPolicyAssignments", func() { + It("API Call Test", func() { + _, err := sl_service.GetThirdPartyPolicyAssignments() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getThirdPartySupportVendor", func() { + It("API Call Test", func() { + _, err := sl_service.GetThirdPartySupportVendor() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getTotalPhysicalCoreCapacity", func() { + It("API Call Test", func() { + _, err := sl_service.GetTotalPhysicalCoreCapacity() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getTotalPhysicalCoreCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetTotalPhysicalCoreCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getTotalProcessorCapacity", func() { + It("API Call Test", func() { + _, err := sl_service.GetTotalProcessorCapacity() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getUpgradeItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item::getUpgradeItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Product_Item_Category service", func() { + var sl_service services.Product_Item_Category + BeforeEach(func() { + sl_service = services.GetProductItemCategoryService(slsession) + }) + Context("SoftLayer_Product_Item_Category Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Product_Item_Category Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Product_Item_Category::getAdditionalProductsForCategory", func() { + It("API Call Test", func() { + _, err := sl_service.GetAdditionalProductsForCategory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Category::getBandwidthCategories", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthCategories() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Category::getBillingItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Category::getComputingCategories", func() { + It("API Call Test", func() { + _, err := sl_service.GetComputingCategories(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Category::getCustomUsageRatesCategories", func() { + It("API Call Test", func() { + _, err := sl_service.GetCustomUsageRatesCategories(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Category::getExternalResourceCategories", func() { + It("API Call Test", func() { + _, err := sl_service.GetExternalResourceCategories() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Category::getGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Category::getGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Category::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Category::getObjectStorageCategories", func() { + It("API Call Test", func() { + _, err := sl_service.GetObjectStorageCategories(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Category::getOrderOptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderOptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Category::getPackageConfigurations", func() { + It("API Call Test", func() { + _, err := sl_service.GetPackageConfigurations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Category::getPresetConfigurations", func() { + It("API Call Test", func() { + _, err := sl_service.GetPresetConfigurations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Category::getQuestionReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetQuestionReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Category::getQuestions", func() { + It("API Call Test", func() { + _, err := sl_service.GetQuestions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Category::getSoftwareCategories", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareCategories() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Category::getSubnetCategories", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubnetCategories() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Category::getTopLevelCategories", func() { + It("API Call Test", func() { + _, err := sl_service.GetTopLevelCategories(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Category::getValidCancelableServiceItemCategories", func() { + It("API Call Test", func() { + _, err := sl_service.GetValidCancelableServiceItemCategories() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Category::getVlanCategories", func() { + It("API Call Test", func() { + _, err := sl_service.GetVlanCategories() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Product_Item_Category_Group service", func() { + var sl_service services.Product_Item_Category_Group + BeforeEach(func() { + sl_service = services.GetProductItemCategoryGroupService(slsession) + }) + Context("SoftLayer_Product_Item_Category_Group Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Product_Item_Category_Group Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Product_Item_Category_Group::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Product_Item_Policy_Assignment service", func() { + var sl_service services.Product_Item_Policy_Assignment + BeforeEach(func() { + sl_service = services.GetProductItemPolicyAssignmentService(slsession) + }) + Context("SoftLayer_Product_Item_Policy_Assignment Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Product_Item_Policy_Assignment Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Product_Item_Policy_Assignment::acceptFromTicket", func() { + It("API Call Test", func() { + _, err := sl_service.AcceptFromTicket(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Policy_Assignment::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Policy_Assignment::getPolicyDocumentContents", func() { + It("API Call Test", func() { + _, err := sl_service.GetPolicyDocumentContents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Policy_Assignment::getPolicyName", func() { + It("API Call Test", func() { + _, err := sl_service.GetPolicyName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Policy_Assignment::getProduct", func() { + It("API Call Test", func() { + _, err := sl_service.GetProduct() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Product_Item_Price service", func() { + var sl_service services.Product_Item_Price + BeforeEach(func() { + sl_service = services.GetProductItemPriceService(slsession) + }) + Context("SoftLayer_Product_Item_Price Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Product_Item_Price Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Product_Item_Price::getAccountRestrictions", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountRestrictions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getBareMetalReservedCapacityFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBareMetalReservedCapacityFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getBigDataOsJournalDiskFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBigDataOsJournalDiskFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getBundleReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetBundleReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getCapacityRestrictionMaximum", func() { + It("API Call Test", func() { + _, err := sl_service.GetCapacityRestrictionMaximum() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getCapacityRestrictionMinimum", func() { + It("API Call Test", func() { + _, err := sl_service.GetCapacityRestrictionMinimum() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getCapacityRestrictionType", func() { + It("API Call Test", func() { + _, err := sl_service.GetCapacityRestrictionType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getCategories", func() { + It("API Call Test", func() { + _, err := sl_service.GetCategories() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getDedicatedHostInstanceFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetDedicatedHostInstanceFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getDefinedSoftwareLicenseFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetDefinedSoftwareLicenseFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getEligibilityStrategy", func() { + It("API Call Test", func() { + _, err := sl_service.GetEligibilityStrategy() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getOrderPremiums", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderPremiums() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getPackageReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetPackageReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getPackages", func() { + It("API Call Test", func() { + _, err := sl_service.GetPackages() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getPresetConfigurations", func() { + It("API Call Test", func() { + _, err := sl_service.GetPresetConfigurations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getPriceType", func() { + It("API Call Test", func() { + _, err := sl_service.GetPriceType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getPricingLocationGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetPricingLocationGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getRequiredCoreCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetRequiredCoreCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getReservedCapacityInstanceFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetReservedCapacityInstanceFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price::getUsageRatePrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetUsageRatePrices(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Product_Item_Price_Premium service", func() { + var sl_service services.Product_Item_Price_Premium + BeforeEach(func() { + sl_service = services.GetProductItemPricePremiumService(slsession) + }) + Context("SoftLayer_Product_Item_Price_Premium Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Product_Item_Price_Premium Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Product_Item_Price_Premium::getItemPrice", func() { + It("API Call Test", func() { + _, err := sl_service.GetItemPrice() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price_Premium::getLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price_Premium::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Item_Price_Premium::getPackage", func() { + It("API Call Test", func() { + _, err := sl_service.GetPackage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Product_Order service", func() { + var sl_service services.Product_Order + BeforeEach(func() { + sl_service = services.GetProductOrderService(slsession) + }) + Context("SoftLayer_Product_Order Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Product_Order Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Product_Order::checkItemAvailability", func() { + It("API Call Test", func() { + _, err := sl_service.CheckItemAvailability(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Order::checkItemAvailabilityForImageTemplate", func() { + It("API Call Test", func() { + _, err := sl_service.CheckItemAvailabilityForImageTemplate(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Order::checkItemConflicts", func() { + It("API Call Test", func() { + _, err := sl_service.CheckItemConflicts(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Order::getExternalPaymentAuthorizationReceipt", func() { + It("API Call Test", func() { + _, err := sl_service.GetExternalPaymentAuthorizationReceipt(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Order::getNetworks", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworks(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Order::getResellerOrder", func() { + It("API Call Test", func() { + _, err := sl_service.GetResellerOrder(GetOrderContainer()) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Order::getTaxCalculationResult", func() { + It("API Call Test", func() { + _, err := sl_service.GetTaxCalculationResult(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Order::getVlans", func() { + It("API Call Test", func() { + _, err := sl_service.GetVlans(nil, nil, nil, nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Order::placeOrder", func() { + It("API Call Test", func() { + _, err := sl_service.PlaceOrder(GetOrderContainer(), nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Order::placeQuote", func() { + It("API Call Test", func() { + _, err := sl_service.PlaceQuote(GetOrderContainer()) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Order::processExternalPaymentAuthorization", func() { + It("API Call Test", func() { + _, err := sl_service.ProcessExternalPaymentAuthorization(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Order::requiredItems", func() { + It("API Call Test", func() { + _, err := sl_service.RequiredItems(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Order::verifyOrder", func() { + It("API Call Test", func() { + _, err := sl_service.VerifyOrder(GetOrderContainer()) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Product_Package service", func() { + var sl_service services.Product_Package + BeforeEach(func() { + sl_service = services.GetProductPackageService(slsession) + }) + Context("SoftLayer_Product_Package Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Product_Package Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Product_Package::getAccountRestrictedActivePresets", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountRestrictedActivePresets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getAccountRestrictedCategories", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountRestrictedCategories() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getAccountRestrictedPricesFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountRestrictedPricesFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getActiveItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getActivePackagesByAttribute", func() { + It("API Call Test", func() { + _, err := sl_service.GetActivePackagesByAttribute(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getActivePresets", func() { + It("API Call Test", func() { + _, err := sl_service.GetActivePresets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getActivePrivateHostedCloudPackages", func() { + It("API Call Test", func() { + _, err := sl_service.GetActivePrivateHostedCloudPackages() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getActiveRamItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveRamItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getActiveServerItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveServerItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getActiveSoftwareItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveSoftwareItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getActiveUsagePrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveUsagePrices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getActiveUsageRatePrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveUsageRatePrices(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getAdditionalServiceFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetAdditionalServiceFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getAvailableLocations", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableLocations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getAvailablePackagesForImageTemplate", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailablePackagesForImageTemplate(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getAvailableStorageUnits", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableStorageUnits() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getCategories", func() { + It("API Call Test", func() { + _, err := sl_service.GetCategories() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getCdnItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetCdnItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getCloudStorageItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetCloudStorageItems(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getConfiguration", func() { + It("API Call Test", func() { + _, err := sl_service.GetConfiguration() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getDefaultBootCategoryCode", func() { + It("API Call Test", func() { + _, err := sl_service.GetDefaultBootCategoryCode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getDefaultRamItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetDefaultRamItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getDeploymentNodeType", func() { + It("API Call Test", func() { + _, err := sl_service.GetDeploymentNodeType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getDeploymentPackages", func() { + It("API Call Test", func() { + _, err := sl_service.GetDeploymentPackages() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getDeploymentType", func() { + It("API Call Test", func() { + _, err := sl_service.GetDeploymentType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getDeployments", func() { + It("API Call Test", func() { + _, err := sl_service.GetDeployments() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getDisallowCustomDiskPartitions", func() { + It("API Call Test", func() { + _, err := sl_service.GetDisallowCustomDiskPartitions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getFirstOrderStep", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirstOrderStep() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getGatewayApplianceFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetGatewayApplianceFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getGpuFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetGpuFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getHourlyBillingAvailableFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlyBillingAvailableFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getHourlyOnlyOrders", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlyOnlyOrders() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getItemAvailabilityTypes", func() { + It("API Call Test", func() { + _, err := sl_service.GetItemAvailabilityTypes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getItemConflicts", func() { + It("API Call Test", func() { + _, err := sl_service.GetItemConflicts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getItemLocationConflicts", func() { + It("API Call Test", func() { + _, err := sl_service.GetItemLocationConflicts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getItemPriceReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetItemPriceReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getItemPrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetItemPrices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getItemPricesFromSoftwareDescriptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetItemPricesFromSoftwareDescriptions(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getItemsFromImageTemplate", func() { + It("API Call Test", func() { + _, err := sl_service.GetItemsFromImageTemplate(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getLocations", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getLowestServerPrice", func() { + It("API Call Test", func() { + _, err := sl_service.GetLowestServerPrice() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getMaximumPortSpeed", func() { + It("API Call Test", func() { + _, err := sl_service.GetMaximumPortSpeed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getMessageQueueItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetMessageQueueItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getMinimumPortSpeed", func() { + It("API Call Test", func() { + _, err := sl_service.GetMinimumPortSpeed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getMongoDbEngineeredFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetMongoDbEngineeredFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getNoUpgradesFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetNoUpgradesFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getNonEuCompliantFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetNonEuCompliantFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getObjectStorageDatacenters", func() { + It("API Call Test", func() { + _, err := sl_service.GetObjectStorageDatacenters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getObjectStorageLocationGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetObjectStorageLocationGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getOrderPremiums", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderPremiums() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getPopLocationAvailabilityFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetPopLocationAvailabilityFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getPreconfiguredFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreconfiguredFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getPresetConfigurationRequiredFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetPresetConfigurationRequiredFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getPreventVlanSelectionFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreventVlanSelectionFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getPrivateHostedCloudPackageFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateHostedCloudPackageFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getPrivateHostedCloudPackageType", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateHostedCloudPackageType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getPrivateNetworkOnlyFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateNetworkOnlyFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getQuantaStorPackageFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetQuantaStorPackageFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getRaidDiskRestrictionFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetRaidDiskRestrictionFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getRedundantPowerFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetRedundantPowerFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getRegions", func() { + It("API Call Test", func() { + _, err := sl_service.GetRegions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getStandardCategories", func() { + It("API Call Test", func() { + _, err := sl_service.GetStandardCategories() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getTopLevelItemCategoryCode", func() { + It("API Call Test", func() { + _, err := sl_service.GetTopLevelItemCategoryCode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Product_Package_Preset service", func() { + var sl_service services.Product_Package_Preset + BeforeEach(func() { + sl_service = services.GetProductPackagePresetService(slsession) + }) + Context("SoftLayer_Product_Package_Preset Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Product_Package_Preset Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Product_Package_Preset::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Preset::getAvailableStorageUnits", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableStorageUnits() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Preset::getBareMetalReservedFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBareMetalReservedFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Preset::getCategories", func() { + It("API Call Test", func() { + _, err := sl_service.GetCategories() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Preset::getComputeGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetComputeGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Preset::getConfiguration", func() { + It("API Call Test", func() { + _, err := sl_service.GetConfiguration() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Preset::getDisallowedComputeGroupUpgradeFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetDisallowedComputeGroupUpgradeFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Preset::getFixedConfigurationFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetFixedConfigurationFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Preset::getLocations", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Preset::getLowestPresetServerPrice", func() { + It("API Call Test", func() { + _, err := sl_service.GetLowestPresetServerPrice() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Preset::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Preset::getPackage", func() { + It("API Call Test", func() { + _, err := sl_service.GetPackage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Preset::getPackageConfiguration", func() { + It("API Call Test", func() { + _, err := sl_service.GetPackageConfiguration() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Preset::getPrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Preset::getStorageGroupTemplateArrays", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageGroupTemplateArrays() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Preset::getTotalMinimumHourlyFee", func() { + It("API Call Test", func() { + _, err := sl_service.GetTotalMinimumHourlyFee() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Preset::getTotalMinimumRecurringFee", func() { + It("API Call Test", func() { + _, err := sl_service.GetTotalMinimumRecurringFee() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Product_Package_Server service", func() { + var sl_service services.Product_Package_Server + BeforeEach(func() { + sl_service = services.GetProductPackageServerService(slsession) + }) + Context("SoftLayer_Product_Package_Server Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Product_Package_Server Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Product_Package_Server::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Server::getCatalog", func() { + It("API Call Test", func() { + _, err := sl_service.GetCatalog() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Server::getItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Server::getItemPrice", func() { + It("API Call Test", func() { + _, err := sl_service.GetItemPrice() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Server::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Server::getPackage", func() { + It("API Call Test", func() { + _, err := sl_service.GetPackage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Server::getPreset", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreset() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Product_Package_Server_Option service", func() { + var sl_service services.Product_Package_Server_Option + BeforeEach(func() { + sl_service = services.GetProductPackageServerOptionService(slsession) + }) + Context("SoftLayer_Product_Package_Server_Option Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Product_Package_Server_Option Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Product_Package_Server_Option::getAllOptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllOptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Server_Option::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Server_Option::getOptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetOptions(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Product_Package_Type service", func() { + var sl_service services.Product_Package_Type + BeforeEach(func() { + sl_service = services.GetProductPackageTypeService(slsession) + }) + Context("SoftLayer_Product_Package_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Product_Package_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Product_Package_Type::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Package_Type::getPackages", func() { + It("API Call Test", func() { + _, err := sl_service.GetPackages() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Product_Promotion service", func() { + var sl_service services.Product_Promotion + BeforeEach(func() { + sl_service = services.GetProductPromotionService(slsession) + }) + Context("SoftLayer_Product_Promotion Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Product_Promotion Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Product_Promotion::findByPromoCode", func() { + It("API Call Test", func() { + _, err := sl_service.FindByPromoCode(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Promotion::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Product_Upgrade_Request service", func() { + var sl_service services.Product_Upgrade_Request + BeforeEach(func() { + sl_service = services.GetProductUpgradeRequestService(slsession) + }) + Context("SoftLayer_Product_Upgrade_Request Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Product_Upgrade_Request Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Product_Upgrade_Request::approveChanges", func() { + It("API Call Test", func() { + _, err := sl_service.ApproveChanges() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Upgrade_Request::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Upgrade_Request::getCompletedFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetCompletedFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Upgrade_Request::getInvoice", func() { + It("API Call Test", func() { + _, err := sl_service.GetInvoice() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Upgrade_Request::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Upgrade_Request::getOrder", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrder() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Upgrade_Request::getServer", func() { + It("API Call Test", func() { + _, err := sl_service.GetServer() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Upgrade_Request::getStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Upgrade_Request::getTicket", func() { + It("API Call Test", func() { + _, err := sl_service.GetTicket() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Upgrade_Request::getUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Upgrade_Request::getVirtualGuest", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Product_Upgrade_Request::updateMaintenanceWindow", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateMaintenanceWindow(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/provisioning.go b/services/provisioning.go index 85f41e3..d0861ba 100644 --- a/services/provisioning.go +++ b/services/provisioning.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // The SoftLayer_Provisioning_Hook contains all the information needed to add a hook into a server/Virtual provision and os reload. type Provisioning_Hook struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProvisioningHookService returns an instance of the Provisioning_Hook SoftLayer service -func GetProvisioningHookService(sess *session.Session) Provisioning_Hook { +func GetProvisioningHookService(sess session.SLSession) Provisioning_Hook { return Provisioning_Hook{Session: sess} } @@ -113,12 +106,12 @@ func (r Provisioning_Hook) GetObject() (resp datatypes.Provisioning_Hook, err er // no documentation yet type Provisioning_Hook_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProvisioningHookTypeService returns an instance of the Provisioning_Hook_Type SoftLayer service -func GetProvisioningHookTypeService(sess *session.Session) Provisioning_Hook_Type { +func GetProvisioningHookTypeService(sess session.SLSession) Provisioning_Hook_Type { return Provisioning_Hook_Type{Session: sess} } @@ -165,12 +158,12 @@ func (r Provisioning_Hook_Type) GetObject() (resp datatypes.Provisioning_Hook_Ty // The SoftLayer_Provisioning_Maintenance_Classification represent a maintenance type for the specific hardware maintenance desired. type Provisioning_Maintenance_Classification struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProvisioningMaintenanceClassificationService returns an instance of the Provisioning_Maintenance_Classification SoftLayer service -func GetProvisioningMaintenanceClassificationService(sess *session.Session) Provisioning_Maintenance_Classification { +func GetProvisioningMaintenanceClassificationService(sess session.SLSession) Provisioning_Maintenance_Classification { return Provisioning_Maintenance_Classification{Session: sess} } @@ -232,12 +225,12 @@ func (r Provisioning_Maintenance_Classification) GetObject() (resp datatypes.Pro // no documentation yet type Provisioning_Maintenance_Classification_Item_Category struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProvisioningMaintenanceClassificationItemCategoryService returns an instance of the Provisioning_Maintenance_Classification_Item_Category SoftLayer service -func GetProvisioningMaintenanceClassificationItemCategoryService(sess *session.Session) Provisioning_Maintenance_Classification_Item_Category { +func GetProvisioningMaintenanceClassificationItemCategoryService(sess session.SLSession) Provisioning_Maintenance_Classification_Item_Category { return Provisioning_Maintenance_Classification_Item_Category{Session: sess} } @@ -284,12 +277,12 @@ func (r Provisioning_Maintenance_Classification_Item_Category) GetObject() (resp // The SoftLayer_Provisioning_Maintenance_Slots represent the available slots for a given maintenance window at a SoftLayer data center. type Provisioning_Maintenance_Slots struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProvisioningMaintenanceSlotsService returns an instance of the Provisioning_Maintenance_Slots SoftLayer service -func GetProvisioningMaintenanceSlotsService(sess *session.Session) Provisioning_Maintenance_Slots { +func GetProvisioningMaintenanceSlotsService(sess session.SLSession) Provisioning_Maintenance_Slots { return Provisioning_Maintenance_Slots{Session: sess} } @@ -330,12 +323,12 @@ func (r Provisioning_Maintenance_Slots) GetObject() (resp datatypes.Provisioning // no documentation yet type Provisioning_Maintenance_Ticket struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProvisioningMaintenanceTicketService returns an instance of the Provisioning_Maintenance_Ticket SoftLayer service -func GetProvisioningMaintenanceTicketService(sess *session.Session) Provisioning_Maintenance_Ticket { +func GetProvisioningMaintenanceTicketService(sess session.SLSession) Provisioning_Maintenance_Ticket { return Provisioning_Maintenance_Ticket{Session: sess} } @@ -394,12 +387,12 @@ func (r Provisioning_Maintenance_Ticket) GetTicket() (resp datatypes.Ticket, err // The SoftLayer_Provisioning_Maintenance_Window represent a time window that SoftLayer performs a hardware or software maintenance and upgrades. type Provisioning_Maintenance_Window struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProvisioningMaintenanceWindowService returns an instance of the Provisioning_Maintenance_Window SoftLayer service -func GetProvisioningMaintenanceWindowService(sess *session.Session) Provisioning_Maintenance_Window { +func GetProvisioningMaintenanceWindowService(sess session.SLSession) Provisioning_Maintenance_Window { return Provisioning_Maintenance_Window{Session: sess} } @@ -503,12 +496,12 @@ func (r Provisioning_Maintenance_Window) GetMaintenceWindows(beginDate *datatype // // SoftLayer customers are unable to change their hardware transactions or the hardware transaction group. type Provisioning_Version1_Transaction_Group struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProvisioningVersion1TransactionGroupService returns an instance of the Provisioning_Version1_Transaction_Group SoftLayer service -func GetProvisioningVersion1TransactionGroupService(sess *session.Session) Provisioning_Version1_Transaction_Group { +func GetProvisioningVersion1TransactionGroupService(sess session.SLSession) Provisioning_Version1_Transaction_Group { return Provisioning_Version1_Transaction_Group{Session: sess} } @@ -555,12 +548,12 @@ func (r Provisioning_Version1_Transaction_Group) GetObject() (resp datatypes.Pro // no documentation yet type Provisioning_Version1_Transaction_OrderTracking struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProvisioningVersion1TransactionOrderTrackingService returns an instance of the Provisioning_Version1_Transaction_OrderTracking SoftLayer service -func GetProvisioningVersion1TransactionOrderTrackingService(sess *session.Session) Provisioning_Version1_Transaction_OrderTracking { +func GetProvisioningVersion1TransactionOrderTrackingService(sess session.SLSession) Provisioning_Version1_Transaction_OrderTracking { return Provisioning_Version1_Transaction_OrderTracking{Session: sess} } @@ -619,12 +612,12 @@ func (r Provisioning_Version1_Transaction_OrderTracking) GetTransaction() (resp // no documentation yet type Provisioning_Version1_Transaction_OrderTrackingState struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetProvisioningVersion1TransactionOrderTrackingStateService returns an instance of the Provisioning_Version1_Transaction_OrderTrackingState SoftLayer service -func GetProvisioningVersion1TransactionOrderTrackingStateService(sess *session.Session) Provisioning_Version1_Transaction_OrderTrackingState { +func GetProvisioningVersion1TransactionOrderTrackingStateService(sess session.SLSession) Provisioning_Version1_Transaction_OrderTrackingState { return Provisioning_Version1_Transaction_OrderTrackingState{Session: sess} } diff --git a/services/provisioning_test.go b/services/provisioning_test.go new file mode 100644 index 0000000..2d2c7df --- /dev/null +++ b/services/provisioning_test.go @@ -0,0 +1,548 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Provisioning Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Provisioning_Hook service", func() { + var sl_service services.Provisioning_Hook + BeforeEach(func() { + sl_service = services.GetProvisioningHookService(slsession) + }) + Context("SoftLayer_Provisioning_Hook Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Provisioning_Hook Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Provisioning_Hook::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Hook::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Hook::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Hook::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Hook::getHookType", func() { + It("API Call Test", func() { + _, err := sl_service.GetHookType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Hook::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Provisioning_Hook_Type service", func() { + var sl_service services.Provisioning_Hook_Type + BeforeEach(func() { + sl_service = services.GetProvisioningHookTypeService(slsession) + }) + Context("SoftLayer_Provisioning_Hook_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Provisioning_Hook_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Provisioning_Hook_Type::getAllHookTypes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllHookTypes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Hook_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Provisioning_Maintenance_Classification service", func() { + var sl_service services.Provisioning_Maintenance_Classification + BeforeEach(func() { + sl_service = services.GetProvisioningMaintenanceClassificationService(slsession) + }) + Context("SoftLayer_Provisioning_Maintenance_Classification Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Classification Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Classification::getItemCategories", func() { + It("API Call Test", func() { + _, err := sl_service.GetItemCategories() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Classification::getMaintenanceClassification", func() { + It("API Call Test", func() { + _, err := sl_service.GetMaintenanceClassification(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Classification::getMaintenanceClassificationsByItemCategory", func() { + It("API Call Test", func() { + _, err := sl_service.GetMaintenanceClassificationsByItemCategory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Classification::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Provisioning_Maintenance_Classification_Item_Category service", func() { + var sl_service services.Provisioning_Maintenance_Classification_Item_Category + BeforeEach(func() { + sl_service = services.GetProvisioningMaintenanceClassificationItemCategoryService(slsession) + }) + Context("SoftLayer_Provisioning_Maintenance_Classification_Item_Category Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Classification_Item_Category Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Classification_Item_Category::getMaintenanceClassification", func() { + It("API Call Test", func() { + _, err := sl_service.GetMaintenanceClassification() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Classification_Item_Category::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Provisioning_Maintenance_Slots service", func() { + var sl_service services.Provisioning_Maintenance_Slots + BeforeEach(func() { + sl_service = services.GetProvisioningMaintenanceSlotsService(slsession) + }) + Context("SoftLayer_Provisioning_Maintenance_Slots Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Slots Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Slots::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Provisioning_Maintenance_Ticket service", func() { + var sl_service services.Provisioning_Maintenance_Ticket + BeforeEach(func() { + sl_service = services.GetProvisioningMaintenanceTicketService(slsession) + }) + Context("SoftLayer_Provisioning_Maintenance_Ticket Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Ticket Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Ticket::getAvailableSlots", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableSlots() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Ticket::getMaintenanceClass", func() { + It("API Call Test", func() { + _, err := sl_service.GetMaintenanceClass() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Ticket::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Ticket::getTicket", func() { + It("API Call Test", func() { + _, err := sl_service.GetTicket() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Provisioning_Maintenance_Window service", func() { + var sl_service services.Provisioning_Maintenance_Window + BeforeEach(func() { + sl_service = services.GetProvisioningMaintenanceWindowService(slsession) + }) + Context("SoftLayer_Provisioning_Maintenance_Window Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Window Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Window::addCustomerUpgradeWindow", func() { + It("API Call Test", func() { + _, err := sl_service.AddCustomerUpgradeWindow(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Window::getMaintenanceClassifications", func() { + It("API Call Test", func() { + _, err := sl_service.GetMaintenanceClassifications() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Window::getMaintenanceStartEndTime", func() { + It("API Call Test", func() { + _, err := sl_service.GetMaintenanceStartEndTime(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Window::getMaintenanceWindowForTicket", func() { + It("API Call Test", func() { + _, err := sl_service.GetMaintenanceWindowForTicket(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Window::getMaintenanceWindowTicketsByTicketId", func() { + It("API Call Test", func() { + _, err := sl_service.GetMaintenanceWindowTicketsByTicketId(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Window::getMaintenanceWindows", func() { + It("API Call Test", func() { + _, err := sl_service.GetMaintenanceWindows(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Maintenance_Window::getMaintenceWindows", func() { + It("API Call Test", func() { + _, err := sl_service.GetMaintenceWindows(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Provisioning_Version1_Transaction_Group service", func() { + var sl_service services.Provisioning_Version1_Transaction_Group + BeforeEach(func() { + sl_service = services.GetProvisioningVersion1TransactionGroupService(slsession) + }) + Context("SoftLayer_Provisioning_Version1_Transaction_Group Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Provisioning_Version1_Transaction_Group Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Provisioning_Version1_Transaction_Group::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Version1_Transaction_Group::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Provisioning_Version1_Transaction_OrderTracking service", func() { + var sl_service services.Provisioning_Version1_Transaction_OrderTracking + BeforeEach(func() { + sl_service = services.GetProvisioningVersion1TransactionOrderTrackingService(slsession) + }) + Context("SoftLayer_Provisioning_Version1_Transaction_OrderTracking Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Provisioning_Version1_Transaction_OrderTracking Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Provisioning_Version1_Transaction_OrderTracking::getInvoiceId", func() { + It("API Call Test", func() { + _, err := sl_service.GetInvoiceId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Version1_Transaction_OrderTracking::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Version1_Transaction_OrderTracking::getOrderTrackingState", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderTrackingState() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Provisioning_Version1_Transaction_OrderTracking::getTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.GetTransaction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Provisioning_Version1_Transaction_OrderTrackingState service", func() { + var sl_service services.Provisioning_Version1_Transaction_OrderTrackingState + BeforeEach(func() { + sl_service = services.GetProvisioningVersion1TransactionOrderTrackingStateService(slsession) + }) + Context("SoftLayer_Provisioning_Version1_Transaction_OrderTrackingState Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Provisioning_Version1_Transaction_OrderTrackingState Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Provisioning_Version1_Transaction_OrderTrackingState::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/resource.go b/services/resource.go index 61d63b2..c4de181 100644 --- a/services/resource.go +++ b/services/resource.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // no documentation yet type Resource_Configuration struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetResourceConfigurationService returns an instance of the Resource_Configuration SoftLayer service -func GetResourceConfigurationService(sess *session.Session) Resource_Configuration { +func GetResourceConfigurationService(sess session.SLSession) Resource_Configuration { return Resource_Configuration{Session: sess} } @@ -80,12 +73,12 @@ func (r Resource_Configuration) SetOsPasswordFromEncrypted(encryptedPassword *st // no documentation yet type Resource_Group struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetResourceGroupService returns an instance of the Resource_Group SoftLayer service -func GetResourceGroupService(sess *session.Session) Resource_Group { +func GetResourceGroupService(sess session.SLSession) Resource_Group { return Resource_Group{Session: sess} } @@ -183,12 +176,12 @@ func (r Resource_Group) GetVlanMembers() (resp []datatypes.Resource_Group_Member // no documentation yet type Resource_Group_Template struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetResourceGroupTemplateService returns an instance of the Resource_Group_Template SoftLayer service -func GetResourceGroupTemplateService(sess *session.Session) Resource_Group_Template { +func GetResourceGroupTemplateService(sess session.SLSession) Resource_Group_Template { return Resource_Group_Template{Session: sess} } @@ -247,12 +240,12 @@ func (r Resource_Group_Template) GetObject() (resp datatypes.Resource_Group_Temp // no documentation yet type Resource_Metadata struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetResourceMetadataService returns an instance of the Resource_Metadata SoftLayer service -func GetResourceMetadataService(sess *session.Session) Resource_Metadata { +func GetResourceMetadataService(sess session.SLSession) Resource_Metadata { return Resource_Metadata{Session: sess} } diff --git a/services/resource_test.go b/services/resource_test.go new file mode 100644 index 0000000..55505e2 --- /dev/null +++ b/services/resource_test.go @@ -0,0 +1,382 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Resource Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Resource_Configuration service", func() { + var sl_service services.Resource_Configuration + BeforeEach(func() { + sl_service = services.GetResourceConfigurationService(slsession) + }) + Context("SoftLayer_Resource_Configuration Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Resource_Configuration Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Resource_Configuration::setOsPasswordFromEncrypted", func() { + It("API Call Test", func() { + _, err := sl_service.SetOsPasswordFromEncrypted(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Resource_Group service", func() { + var sl_service services.Resource_Group + BeforeEach(func() { + sl_service = services.GetResourceGroupService(slsession) + }) + Context("SoftLayer_Resource_Group Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Resource_Group Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Resource_Group::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Group::getAncestorGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetAncestorGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Group::getAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Group::getHardwareMembers", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareMembers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Group::getMembers", func() { + It("API Call Test", func() { + _, err := sl_service.GetMembers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Group::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Group::getRootResourceGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetRootResourceGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Group::getSubnetMembers", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubnetMembers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Group::getTemplate", func() { + It("API Call Test", func() { + _, err := sl_service.GetTemplate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Group::getVlanMembers", func() { + It("API Call Test", func() { + _, err := sl_service.GetVlanMembers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Resource_Group_Template service", func() { + var sl_service services.Resource_Group_Template + BeforeEach(func() { + sl_service = services.GetResourceGroupTemplateService(slsession) + }) + Context("SoftLayer_Resource_Group_Template Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Resource_Group_Template Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Resource_Group_Template::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Group_Template::getChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Group_Template::getMembers", func() { + It("API Call Test", func() { + _, err := sl_service.GetMembers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Group_Template::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Resource_Metadata service", func() { + var sl_service services.Resource_Metadata + BeforeEach(func() { + sl_service = services.GetResourceMetadataService(slsession) + }) + Context("SoftLayer_Resource_Metadata Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Resource_Metadata Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Resource_Metadata::getAccountId", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Metadata::getBackendMacAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendMacAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Metadata::getDatacenter", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Metadata::getDatacenterId", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenterId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Metadata::getDomain", func() { + It("API Call Test", func() { + _, err := sl_service.GetDomain() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Metadata::getFrontendMacAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendMacAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Metadata::getFullyQualifiedDomainName", func() { + It("API Call Test", func() { + _, err := sl_service.GetFullyQualifiedDomainName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Metadata::getGlobalIdentifier", func() { + It("API Call Test", func() { + _, err := sl_service.GetGlobalIdentifier() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Metadata::getHostname", func() { + It("API Call Test", func() { + _, err := sl_service.GetHostname() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Metadata::getId", func() { + It("API Call Test", func() { + _, err := sl_service.GetId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Metadata::getPrimaryBackendIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryBackendIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Metadata::getPrimaryIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Metadata::getProvisionState", func() { + It("API Call Test", func() { + _, err := sl_service.GetProvisionState() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Metadata::getRouter", func() { + It("API Call Test", func() { + _, err := sl_service.GetRouter(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Metadata::getServiceResource", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceResource(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Metadata::getServiceResources", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceResources() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Metadata::getTags", func() { + It("API Call Test", func() { + _, err := sl_service.GetTags() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Metadata::getUserMetadata", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserMetadata() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Metadata::getVlanIds", func() { + It("API Call Test", func() { + _, err := sl_service.GetVlanIds(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Resource_Metadata::getVlans", func() { + It("API Call Test", func() { + _, err := sl_service.GetVlans(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/sales.go b/services/sales.go index 1c5d416..fc3a899 100644 --- a/services/sales.go +++ b/services/sales.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // The presale event data types indicate the information regarding an individual presale event. The ”'locationId”' will indicate the datacenter associated with the presale event. The ”'itemId”' will indicate the product item associated with a particular presale event - however these are more rare. The ”'startDate”' and ”'endDate”' will provide information regarding when the presale event is available for use. At the end of the presale event, the server or services purchased will be available once approved and provisioned. type Sales_Presale_Event struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetSalesPresaleEventService returns an instance of the Sales_Presale_Event SoftLayer service -func GetSalesPresaleEventService(sess *session.Session) Sales_Presale_Event { +func GetSalesPresaleEventService(sess session.SLSession) Sales_Presale_Event { return Sales_Presale_Event{Session: sess} } diff --git a/services/sales_test.go b/services/sales_test.go new file mode 100644 index 0000000..e97df56 --- /dev/null +++ b/services/sales_test.go @@ -0,0 +1,96 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Sales Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Sales_Presale_Event service", func() { + var sl_service services.Sales_Presale_Event + BeforeEach(func() { + sl_service = services.GetSalesPresaleEventService(slsession) + }) + Context("SoftLayer_Sales_Presale_Event Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Sales_Presale_Event Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Sales_Presale_Event::getActiveFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Sales_Presale_Event::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Sales_Presale_Event::getExpiredFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetExpiredFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Sales_Presale_Event::getItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Sales_Presale_Event::getLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Sales_Presale_Event::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Sales_Presale_Event::getOrders", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrders() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/scale.go b/services/scale.go deleted file mode 100644 index a71b19f..0000000 --- a/services/scale.go +++ /dev/null @@ -1,349 +0,0 @@ -/** - * Copyright 2016 IBM Corp. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ - -package services - -import ( - "fmt" - "strings" - - "github.com/softlayer/softlayer-go/session" - "github.com/softlayer/softlayer-go/sl" -) - -// no documentation yet -type Scale_Asset struct { - Session *session.Session - Options sl.Options -} - -// GetScaleAssetService returns an instance of the Scale_Asset SoftLayer service -func GetScaleAssetService(sess *session.Session) Scale_Asset { - return Scale_Asset{Session: sess} -} - -func (r Scale_Asset) Id(id int) Scale_Asset { - r.Options.Id = &id - return r -} - -func (r Scale_Asset) Mask(mask string) Scale_Asset { - if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { - mask = fmt.Sprintf("mask[%s]", mask) - } - - r.Options.Mask = mask - return r -} - -func (r Scale_Asset) Filter(filter string) Scale_Asset { - r.Options.Filter = filter - return r -} - -func (r Scale_Asset) Limit(limit int) Scale_Asset { - r.Options.Limit = &limit - return r -} - -func (r Scale_Asset) Offset(offset int) Scale_Asset { - r.Options.Offset = &offset - return r -} - -// no documentation yet -type Scale_Asset_Hardware struct { - Session *session.Session - Options sl.Options -} - -// GetScaleAssetHardwareService returns an instance of the Scale_Asset_Hardware SoftLayer service -func GetScaleAssetHardwareService(sess *session.Session) Scale_Asset_Hardware { - return Scale_Asset_Hardware{Session: sess} -} - -func (r Scale_Asset_Hardware) Id(id int) Scale_Asset_Hardware { - r.Options.Id = &id - return r -} - -func (r Scale_Asset_Hardware) Mask(mask string) Scale_Asset_Hardware { - if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { - mask = fmt.Sprintf("mask[%s]", mask) - } - - r.Options.Mask = mask - return r -} - -func (r Scale_Asset_Hardware) Filter(filter string) Scale_Asset_Hardware { - r.Options.Filter = filter - return r -} - -func (r Scale_Asset_Hardware) Limit(limit int) Scale_Asset_Hardware { - r.Options.Limit = &limit - return r -} - -func (r Scale_Asset_Hardware) Offset(offset int) Scale_Asset_Hardware { - r.Options.Offset = &offset - return r -} - -// no documentation yet -type Scale_Asset_Virtual_Guest struct { - Session *session.Session - Options sl.Options -} - -// GetScaleAssetVirtualGuestService returns an instance of the Scale_Asset_Virtual_Guest SoftLayer service -func GetScaleAssetVirtualGuestService(sess *session.Session) Scale_Asset_Virtual_Guest { - return Scale_Asset_Virtual_Guest{Session: sess} -} - -func (r Scale_Asset_Virtual_Guest) Id(id int) Scale_Asset_Virtual_Guest { - r.Options.Id = &id - return r -} - -func (r Scale_Asset_Virtual_Guest) Mask(mask string) Scale_Asset_Virtual_Guest { - if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { - mask = fmt.Sprintf("mask[%s]", mask) - } - - r.Options.Mask = mask - return r -} - -func (r Scale_Asset_Virtual_Guest) Filter(filter string) Scale_Asset_Virtual_Guest { - r.Options.Filter = filter - return r -} - -func (r Scale_Asset_Virtual_Guest) Limit(limit int) Scale_Asset_Virtual_Guest { - r.Options.Limit = &limit - return r -} - -func (r Scale_Asset_Virtual_Guest) Offset(offset int) Scale_Asset_Virtual_Guest { - r.Options.Offset = &offset - return r -} - -// no documentation yet -type Scale_Group struct { - Session *session.Session - Options sl.Options -} - -// GetScaleGroupService returns an instance of the Scale_Group SoftLayer service -func GetScaleGroupService(sess *session.Session) Scale_Group { - return Scale_Group{Session: sess} -} - -func (r Scale_Group) Id(id int) Scale_Group { - r.Options.Id = &id - return r -} - -func (r Scale_Group) Mask(mask string) Scale_Group { - if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { - mask = fmt.Sprintf("mask[%s]", mask) - } - - r.Options.Mask = mask - return r -} - -func (r Scale_Group) Filter(filter string) Scale_Group { - r.Options.Filter = filter - return r -} - -func (r Scale_Group) Limit(limit int) Scale_Group { - r.Options.Limit = &limit - return r -} - -func (r Scale_Group) Offset(offset int) Scale_Group { - r.Options.Offset = &offset - return r -} - -// no documentation yet -type Scale_LoadBalancer struct { - Session *session.Session - Options sl.Options -} - -// GetScaleLoadBalancerService returns an instance of the Scale_LoadBalancer SoftLayer service -func GetScaleLoadBalancerService(sess *session.Session) Scale_LoadBalancer { - return Scale_LoadBalancer{Session: sess} -} - -func (r Scale_LoadBalancer) Id(id int) Scale_LoadBalancer { - r.Options.Id = &id - return r -} - -func (r Scale_LoadBalancer) Mask(mask string) Scale_LoadBalancer { - if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { - mask = fmt.Sprintf("mask[%s]", mask) - } - - r.Options.Mask = mask - return r -} - -func (r Scale_LoadBalancer) Filter(filter string) Scale_LoadBalancer { - r.Options.Filter = filter - return r -} - -func (r Scale_LoadBalancer) Limit(limit int) Scale_LoadBalancer { - r.Options.Limit = &limit - return r -} - -func (r Scale_LoadBalancer) Offset(offset int) Scale_LoadBalancer { - r.Options.Offset = &offset - return r -} - -// no documentation yet -type Scale_Member struct { - Session *session.Session - Options sl.Options -} - -// GetScaleMemberService returns an instance of the Scale_Member SoftLayer service -func GetScaleMemberService(sess *session.Session) Scale_Member { - return Scale_Member{Session: sess} -} - -func (r Scale_Member) Id(id int) Scale_Member { - r.Options.Id = &id - return r -} - -func (r Scale_Member) Mask(mask string) Scale_Member { - if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { - mask = fmt.Sprintf("mask[%s]", mask) - } - - r.Options.Mask = mask - return r -} - -func (r Scale_Member) Filter(filter string) Scale_Member { - r.Options.Filter = filter - return r -} - -func (r Scale_Member) Limit(limit int) Scale_Member { - r.Options.Limit = &limit - return r -} - -func (r Scale_Member) Offset(offset int) Scale_Member { - r.Options.Offset = &offset - return r -} - -// no documentation yet -type Scale_Member_Virtual_Guest struct { - Session *session.Session - Options sl.Options -} - -// GetScaleMemberVirtualGuestService returns an instance of the Scale_Member_Virtual_Guest SoftLayer service -func GetScaleMemberVirtualGuestService(sess *session.Session) Scale_Member_Virtual_Guest { - return Scale_Member_Virtual_Guest{Session: sess} -} - -func (r Scale_Member_Virtual_Guest) Id(id int) Scale_Member_Virtual_Guest { - r.Options.Id = &id - return r -} - -func (r Scale_Member_Virtual_Guest) Mask(mask string) Scale_Member_Virtual_Guest { - if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { - mask = fmt.Sprintf("mask[%s]", mask) - } - - r.Options.Mask = mask - return r -} - -func (r Scale_Member_Virtual_Guest) Filter(filter string) Scale_Member_Virtual_Guest { - r.Options.Filter = filter - return r -} - -func (r Scale_Member_Virtual_Guest) Limit(limit int) Scale_Member_Virtual_Guest { - r.Options.Limit = &limit - return r -} - -func (r Scale_Member_Virtual_Guest) Offset(offset int) Scale_Member_Virtual_Guest { - r.Options.Offset = &offset - return r -} - -// no documentation yet -type Scale_Network_Vlan struct { - Session *session.Session - Options sl.Options -} - -// GetScaleNetworkVlanService returns an instance of the Scale_Network_Vlan SoftLayer service -func GetScaleNetworkVlanService(sess *session.Session) Scale_Network_Vlan { - return Scale_Network_Vlan{Session: sess} -} - -func (r Scale_Network_Vlan) Id(id int) Scale_Network_Vlan { - r.Options.Id = &id - return r -} - -func (r Scale_Network_Vlan) Mask(mask string) Scale_Network_Vlan { - if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { - mask = fmt.Sprintf("mask[%s]", mask) - } - - r.Options.Mask = mask - return r -} - -func (r Scale_Network_Vlan) Filter(filter string) Scale_Network_Vlan { - r.Options.Filter = filter - return r -} - -func (r Scale_Network_Vlan) Limit(limit int) Scale_Network_Vlan { - r.Options.Limit = &limit - return r -} - -func (r Scale_Network_Vlan) Offset(offset int) Scale_Network_Vlan { - r.Options.Offset = &offset - return r -} diff --git a/services/search.go b/services/search.go index a39eef0..91fc982 100644 --- a/services/search.go +++ b/services/search.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // no documentation yet type Search struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetSearchService returns an instance of the Search SoftLayer service -func GetSearchService(sess *session.Session) Search { +func GetSearchService(sess session.SLSession) Search { return Search{Session: sess} } diff --git a/services/search_test.go b/services/search_test.go new file mode 100644 index 0000000..e041585 --- /dev/null +++ b/services/search_test.go @@ -0,0 +1,68 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Search Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Search service", func() { + var sl_service services.Search + BeforeEach(func() { + sl_service = services.GetSearchService(slsession) + }) + Context("SoftLayer_Search Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Search Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Search::advancedSearch", func() { + It("API Call Test", func() { + _, err := sl_service.AdvancedSearch(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Search::getObjectTypes", func() { + It("API Call Test", func() { + _, err := sl_service.GetObjectTypes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Search::search", func() { + It("API Call Test", func() { + _, err := sl_service.Search(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/security.go b/services/security.go index 821b1d1..0ffca50 100644 --- a/services/security.go +++ b/services/security.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // no documentation yet type Security_Certificate struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetSecurityCertificateService returns an instance of the Security_Certificate SoftLayer service -func GetSecurityCertificateService(sess *session.Session) Security_Certificate { +func GetSecurityCertificateService(sess session.SLSession) Security_Certificate { return Security_Certificate{Session: sess} } @@ -136,12 +129,12 @@ func (r Security_Certificate) GetPemFormat() (resp string, err error) { // The SoftLayer_Security_Certificate_Request data type is used to view details about your SSL certificate order. This contains data that is required by a Certificate Authority to place an SSL certificate order. type Security_Certificate_Request struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetSecurityCertificateRequestService returns an instance of the Security_Certificate_Request SoftLayer service -func GetSecurityCertificateRequestService(sess *session.Session) Security_Certificate_Request { +func GetSecurityCertificateRequestService(sess session.SLSession) Security_Certificate_Request { return Security_Certificate_Request{Session: sess} } @@ -265,12 +258,12 @@ func (r Security_Certificate_Request) ValidateCsr(csr *string, validityMonths *i // Represents a server type that can be specified when ordering an SSL certificate. type Security_Certificate_Request_ServerType struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetSecurityCertificateRequestServerTypeService returns an instance of the Security_Certificate_Request_ServerType SoftLayer service -func GetSecurityCertificateRequestServerTypeService(sess *session.Session) Security_Certificate_Request_ServerType { +func GetSecurityCertificateRequestServerTypeService(sess session.SLSession) Security_Certificate_Request_ServerType { return Security_Certificate_Request_ServerType{Session: sess} } @@ -317,12 +310,12 @@ func (r Security_Certificate_Request_ServerType) GetObject() (resp datatypes.Sec // Represents the status of an SSL certificate request. type Security_Certificate_Request_Status struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetSecurityCertificateRequestStatusService returns an instance of the Security_Certificate_Request_Status SoftLayer service -func GetSecurityCertificateRequestStatusService(sess *session.Session) Security_Certificate_Request_Status { +func GetSecurityCertificateRequestStatusService(sess session.SLSession) Security_Certificate_Request_Status { return Security_Certificate_Request_Status{Session: sess} } @@ -369,12 +362,12 @@ func (r Security_Certificate_Request_Status) GetSslRequestStatuses() (resp []dat // no documentation yet type Security_Ssh_Key struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetSecuritySshKeyService returns an instance of the Security_Ssh_Key SoftLayer service -func GetSecuritySshKeyService(sess *session.Session) Security_Ssh_Key { +func GetSecuritySshKeyService(sess session.SLSession) Security_Ssh_Key { return Security_Ssh_Key{Session: sess} } diff --git a/services/security_test.go b/services/security_test.go new file mode 100644 index 0000000..5b4b7cd --- /dev/null +++ b/services/security_test.go @@ -0,0 +1,391 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Security Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Security_Certificate service", func() { + var sl_service services.Security_Certificate + BeforeEach(func() { + sl_service = services.GetSecurityCertificateService(slsession) + }) + Context("SoftLayer_Security_Certificate Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Security_Certificate Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Security_Certificate::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Certificate::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Certificate::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Certificate::findByCommonName", func() { + It("API Call Test", func() { + _, err := sl_service.FindByCommonName(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Certificate::getAssociatedServiceCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssociatedServiceCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Certificate::getLbaasListeners", func() { + It("API Call Test", func() { + _, err := sl_service.GetLbaasListeners() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Certificate::getLoadBalancerVirtualIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetLoadBalancerVirtualIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Certificate::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Certificate::getPemFormat", func() { + It("API Call Test", func() { + _, err := sl_service.GetPemFormat() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Security_Certificate_Request service", func() { + var sl_service services.Security_Certificate_Request + BeforeEach(func() { + sl_service = services.GetSecurityCertificateRequestService(slsession) + }) + Context("SoftLayer_Security_Certificate_Request Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Security_Certificate_Request Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Security_Certificate_Request::cancelSslOrder", func() { + It("API Call Test", func() { + _, err := sl_service.CancelSslOrder() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Certificate_Request::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Certificate_Request::getAdministratorEmailDomains", func() { + It("API Call Test", func() { + _, err := sl_service.GetAdministratorEmailDomains(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Certificate_Request::getAdministratorEmailPrefixes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAdministratorEmailPrefixes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Certificate_Request::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Certificate_Request::getOrder", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrder() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Certificate_Request::getOrderItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Certificate_Request::getPreviousOrderData", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreviousOrderData() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Certificate_Request::getSslCertificateRequests", func() { + It("API Call Test", func() { + _, err := sl_service.GetSslCertificateRequests(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Certificate_Request::getStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Certificate_Request::resendEmail", func() { + It("API Call Test", func() { + _, err := sl_service.ResendEmail(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Certificate_Request::validateCsr", func() { + It("API Call Test", func() { + _, err := sl_service.ValidateCsr(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Security_Certificate_Request_ServerType service", func() { + var sl_service services.Security_Certificate_Request_ServerType + BeforeEach(func() { + sl_service = services.GetSecurityCertificateRequestServerTypeService(slsession) + }) + Context("SoftLayer_Security_Certificate_Request_ServerType Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Security_Certificate_Request_ServerType Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Security_Certificate_Request_ServerType::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Certificate_Request_ServerType::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Security_Certificate_Request_Status service", func() { + var sl_service services.Security_Certificate_Request_Status + BeforeEach(func() { + sl_service = services.GetSecurityCertificateRequestStatusService(slsession) + }) + Context("SoftLayer_Security_Certificate_Request_Status Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Security_Certificate_Request_Status Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Security_Certificate_Request_Status::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Certificate_Request_Status::getSslRequestStatuses", func() { + It("API Call Test", func() { + _, err := sl_service.GetSslRequestStatuses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Security_Ssh_Key service", func() { + var sl_service services.Security_Ssh_Key + BeforeEach(func() { + sl_service = services.GetSecuritySshKeyService(slsession) + }) + Context("SoftLayer_Security_Ssh_Key Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Security_Ssh_Key Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Security_Ssh_Key::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Ssh_Key::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Ssh_Key::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Ssh_Key::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Ssh_Key::getBlockDeviceTemplateGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetBlockDeviceTemplateGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Ssh_Key::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Security_Ssh_Key::getSoftwarePasswords", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwarePasswords() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/services_test.go b/services/services_test.go new file mode 100644 index 0000000..24bfdca --- /dev/null +++ b/services/services_test.go @@ -0,0 +1,20 @@ +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/datatypes" + "testing" +) + +func TestServices(t *testing.T) { + RegisterFailHandler(Fail) + RunSpecs(t, "Services Tests") +} + +// This is required for a few of the Place order API methods that take in an interface +func GetOrderContainer() *datatypes.Container_Product_Order { + ComplexType := "Test_Complex_Type" + OrderContainer := &datatypes.Container_Product_Order{ComplexType: &ComplexType} + return OrderContainer +} diff --git a/services/software.go b/services/software.go index db78cc7..9a3e3d2 100644 --- a/services/software.go +++ b/services/software.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // SoftLayer_Software_AccountLicense is a class that represents software licenses that are tied only to a customer's account and not to any particular hardware, IP address, etc. type Software_AccountLicense struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetSoftwareAccountLicenseService returns an instance of the Software_AccountLicense SoftLayer service -func GetSoftwareAccountLicenseService(sess *session.Session) Software_AccountLicense { +func GetSoftwareAccountLicenseService(sess session.SLSession) Software_AccountLicense { return Software_AccountLicense{Session: sess} } @@ -105,12 +98,12 @@ func (r Software_AccountLicense) GetSoftwareDescription() (resp datatypes.Softwa // // type Software_Component struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetSoftwareComponentService returns an instance of the Software_Component SoftLayer service -func GetSoftwareComponentService(sess *session.Session) Software_Component { +func GetSoftwareComponentService(sess session.SLSession) Software_Component { return Software_Component{Session: sess} } @@ -213,12 +206,12 @@ func (r Software_Component) GetVirtualGuest() (resp datatypes.Virtual_Guest, err // This object specifies a specific type of Software Component: An Anti-virus/spyware instance. Anti-virus/spyware installations have specific properties and methods such as SoftLayer_Software_Component_AntivirusSpyware::updateAntivirusSpywarePolicy. Defaults are initiated by this object. type Software_Component_AntivirusSpyware struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetSoftwareComponentAntivirusSpywareService returns an instance of the Software_Component_AntivirusSpyware SoftLayer service -func GetSoftwareComponentAntivirusSpywareService(sess *session.Session) Software_Component_AntivirusSpyware { +func GetSoftwareComponentAntivirusSpywareService(sess session.SLSession) Software_Component_AntivirusSpyware { return Software_Component_AntivirusSpyware{Session: sess} } @@ -334,12 +327,12 @@ func (r Software_Component_AntivirusSpyware) UpdateAntivirusSpywarePolicy(newPol // This object specifies a specific type of Software Component: A Host Intrusion Protection System instance. type Software_Component_HostIps struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetSoftwareComponentHostIpsService returns an instance of the Software_Component_HostIps SoftLayer service -func GetSoftwareComponentHostIpsService(sess *session.Session) Software_Component_HostIps { +func GetSoftwareComponentHostIpsService(sess session.SLSession) Software_Component_HostIps { return Software_Component_HostIps{Session: sess} } @@ -461,12 +454,12 @@ func (r Software_Component_HostIps) UpdateHipsPolicies(newIpsMode *string, newIp // This SoftLayer_Software_Component_Password data type contains a password for a specific software component instance. type Software_Component_Password struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetSoftwareComponentPasswordService returns an instance of the Software_Component_Password SoftLayer service -func GetSoftwareComponentPasswordService(sess *session.Session) Software_Component_Password { +func GetSoftwareComponentPasswordService(sess session.SLSession) Software_Component_Password { return Software_Component_Password{Session: sess} } @@ -570,12 +563,12 @@ func (r Software_Component_Password) GetSshKeys() (resp []datatypes.Security_Ssh // This object specifies a specific type of Software Component: An Trellix instance. Trellix installations have specific properties and methods such as SoftLayer_Software_Component_Trellix::updateTrellixPolicy. Defaults are initiated by this object. type Software_Component_Trellix struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetSoftwareComponentTrellixService returns an instance of the Software_Component_Trellix SoftLayer service -func GetSoftwareComponentTrellixService(sess *session.Session) Software_Component_Trellix { +func GetSoftwareComponentTrellixService(sess session.SLSession) Software_Component_Trellix { return Software_Component_Trellix{Session: sess} } @@ -716,12 +709,12 @@ func (r Software_Component_Trellix) UpdateHipsPolicies(newIpsMode *string, newIp // // The "Manufacturer" and "Name" properties of a SoftLayer_Software_Description are used by the framework to factory specific objects, objects that may have special methods for that specific piece of software, or objects that contain application specific data, such as default ports. For example, if you create a SoftLayer_Software_Component who's SoftLayer_Software_License points to the SoftLayer_Software_Description for "Swsoft" "Plesk", you'll actually get a SoftLayer_Software_Component_Swsoft_Plesk object. type Software_Description struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetSoftwareDescriptionService returns an instance of the Software_Description SoftLayer service -func GetSoftwareDescriptionService(sess *session.Session) Software_Description { +func GetSoftwareDescriptionService(sess session.SLSession) Software_Description { return Software_Description{Session: sess} } @@ -852,12 +845,12 @@ func (r Software_Description) GetValidFilesystemTypes() (resp []datatypes.Config // SoftLayer_Software_VirtualLicense is the application class that handles a special type of Software License. Most software licenses are licensed to a specific hardware ID; virtual licenses are designed for virtual machines and therefore are assigned to an IP Address. Not all software packages can be "virtual licensed". type Software_VirtualLicense struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetSoftwareVirtualLicenseService returns an instance of the Software_VirtualLicense SoftLayer service -func GetSoftwareVirtualLicenseService(sess *session.Session) Software_VirtualLicense { +func GetSoftwareVirtualLicenseService(sess session.SLSession) Software_VirtualLicense { return Software_VirtualLicense{Session: sess} } diff --git a/services/software_test.go b/services/software_test.go new file mode 100644 index 0000000..55589bd --- /dev/null +++ b/services/software_test.go @@ -0,0 +1,873 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Software Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Software_AccountLicense service", func() { + var sl_service services.Software_AccountLicense + BeforeEach(func() { + sl_service = services.GetSoftwareAccountLicenseService(slsession) + }) + Context("SoftLayer_Software_AccountLicense Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Software_AccountLicense Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Software_AccountLicense::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_AccountLicense::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_AccountLicense::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_AccountLicense::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_AccountLicense::getSoftwareDescription", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareDescription() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Software_Component service", func() { + var sl_service services.Software_Component + BeforeEach(func() { + sl_service = services.GetSoftwareComponentService(slsession) + }) + Context("SoftLayer_Software_Component Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Software_Component Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Software_Component::getAverageInstallationDuration", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageInstallationDuration() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component::getLicenseFile", func() { + It("API Call Test", func() { + _, err := sl_service.GetLicenseFile() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component::getPasswordHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetPasswordHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component::getPasswords", func() { + It("API Call Test", func() { + _, err := sl_service.GetPasswords() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component::getSoftwareDescription", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareDescription() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component::getSoftwareLicense", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareLicense() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component::getVendorSetUpConfiguration", func() { + It("API Call Test", func() { + _, err := sl_service.GetVendorSetUpConfiguration() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component::getVirtualGuest", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Software_Component_AntivirusSpyware service", func() { + var sl_service services.Software_Component_AntivirusSpyware + BeforeEach(func() { + sl_service = services.GetSoftwareComponentAntivirusSpywareService(slsession) + }) + Context("SoftLayer_Software_Component_AntivirusSpyware Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Software_Component_AntivirusSpyware Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Software_Component_AntivirusSpyware::getAverageInstallationDuration", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageInstallationDuration() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_AntivirusSpyware::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_AntivirusSpyware::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_AntivirusSpyware::getLicenseFile", func() { + It("API Call Test", func() { + _, err := sl_service.GetLicenseFile() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_AntivirusSpyware::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_AntivirusSpyware::getPasswordHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetPasswordHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_AntivirusSpyware::getPasswords", func() { + It("API Call Test", func() { + _, err := sl_service.GetPasswords() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_AntivirusSpyware::getSoftwareDescription", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareDescription() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_AntivirusSpyware::getSoftwareLicense", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareLicense() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_AntivirusSpyware::getVendorSetUpConfiguration", func() { + It("API Call Test", func() { + _, err := sl_service.GetVendorSetUpConfiguration() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_AntivirusSpyware::getVirtualGuest", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_AntivirusSpyware::updateAntivirusSpywarePolicy", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateAntivirusSpywarePolicy(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Software_Component_HostIps service", func() { + var sl_service services.Software_Component_HostIps + BeforeEach(func() { + sl_service = services.GetSoftwareComponentHostIpsService(slsession) + }) + Context("SoftLayer_Software_Component_HostIps Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Software_Component_HostIps Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Software_Component_HostIps::getAverageInstallationDuration", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageInstallationDuration() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_HostIps::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_HostIps::getCurrentHostIpsPolicies", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentHostIpsPolicies() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_HostIps::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_HostIps::getLicenseFile", func() { + It("API Call Test", func() { + _, err := sl_service.GetLicenseFile() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_HostIps::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_HostIps::getPasswordHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetPasswordHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_HostIps::getPasswords", func() { + It("API Call Test", func() { + _, err := sl_service.GetPasswords() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_HostIps::getSoftwareDescription", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareDescription() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_HostIps::getSoftwareLicense", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareLicense() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_HostIps::getVendorSetUpConfiguration", func() { + It("API Call Test", func() { + _, err := sl_service.GetVendorSetUpConfiguration() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_HostIps::getVirtualGuest", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_HostIps::updateHipsPolicies", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateHipsPolicies(nil, nil, nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Software_Component_Password service", func() { + var sl_service services.Software_Component_Password + BeforeEach(func() { + sl_service = services.GetSoftwareComponentPasswordService(slsession) + }) + Context("SoftLayer_Software_Component_Password Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Software_Component_Password Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Software_Component_Password::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_Password::createObjects", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_Password::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_Password::deleteObjects", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_Password::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_Password::editObjects", func() { + It("API Call Test", func() { + _, err := sl_service.EditObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_Password::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_Password::getSoftware", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_Password::getSshKeys", func() { + It("API Call Test", func() { + _, err := sl_service.GetSshKeys() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Software_Component_Trellix service", func() { + var sl_service services.Software_Component_Trellix + BeforeEach(func() { + sl_service = services.GetSoftwareComponentTrellixService(slsession) + }) + Context("SoftLayer_Software_Component_Trellix Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Software_Component_Trellix Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Software_Component_Trellix::getAverageInstallationDuration", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageInstallationDuration() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_Trellix::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_Trellix::getCurrentHostIpsPolicies", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentHostIpsPolicies() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_Trellix::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_Trellix::getLicenseFile", func() { + It("API Call Test", func() { + _, err := sl_service.GetLicenseFile() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_Trellix::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_Trellix::getPasswordHistory", func() { + It("API Call Test", func() { + _, err := sl_service.GetPasswordHistory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_Trellix::getPasswords", func() { + It("API Call Test", func() { + _, err := sl_service.GetPasswords() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_Trellix::getSoftwareDescription", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareDescription() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_Trellix::getSoftwareLicense", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareLicense() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_Trellix::getVendorSetUpConfiguration", func() { + It("API Call Test", func() { + _, err := sl_service.GetVendorSetUpConfiguration() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_Trellix::getVirtualGuest", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_Trellix::updateAntivirusSpywarePolicy", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateAntivirusSpywarePolicy(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Component_Trellix::updateHipsPolicies", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateHipsPolicies(nil, nil, nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Software_Description service", func() { + var sl_service services.Software_Description + BeforeEach(func() { + sl_service = services.GetSoftwareDescriptionService(slsession) + }) + Context("SoftLayer_Software_Description Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Software_Description Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Software_Description::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Description::getAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Description::getAverageInstallationDuration", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageInstallationDuration() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Description::getCompatibleSoftwareDescriptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetCompatibleSoftwareDescriptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Description::getCustomerOwnedLicenseDescriptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetCustomerOwnedLicenseDescriptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Description::getFeatures", func() { + It("API Call Test", func() { + _, err := sl_service.GetFeatures() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Description::getLatestVersion", func() { + It("API Call Test", func() { + _, err := sl_service.GetLatestVersion() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Description::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Description::getProductItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetProductItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Description::getProvisionTransactionGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetProvisionTransactionGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Description::getReloadTransactionGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetReloadTransactionGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Description::getRequiredUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetRequiredUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Description::getSoftwareLicenses", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareLicenses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Description::getUpgradeSoftwareDescription", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeSoftwareDescription() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Description::getUpgradeSwDesc", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeSwDesc() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_Description::getValidFilesystemTypes", func() { + It("API Call Test", func() { + _, err := sl_service.GetValidFilesystemTypes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Software_VirtualLicense service", func() { + var sl_service services.Software_VirtualLicense + BeforeEach(func() { + sl_service = services.GetSoftwareVirtualLicenseService(slsession) + }) + Context("SoftLayer_Software_VirtualLicense Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Software_VirtualLicense Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Software_VirtualLicense::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_VirtualLicense::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_VirtualLicense::getHostHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHostHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_VirtualLicense::getIpAddressRecord", func() { + It("API Call Test", func() { + _, err := sl_service.GetIpAddressRecord() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_VirtualLicense::getLicenseFile", func() { + It("API Call Test", func() { + _, err := sl_service.GetLicenseFile() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_VirtualLicense::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_VirtualLicense::getSoftwareDescription", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareDescription() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Software_VirtualLicense::getSubnet", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubnet() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/survey.go b/services/survey.go index aa956c8..faea144 100644 --- a/services/survey.go +++ b/services/survey.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // The SoftLayer_Survey data type contains general information relating to a single SoftLayer survey. type Survey struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetSurveyService returns an instance of the Survey SoftLayer service -func GetSurveyService(sess *session.Session) Survey { +func GetSurveyService(sess session.SLSession) Survey { return Survey{Session: sess} } diff --git a/services/survey_test.go b/services/survey_test.go new file mode 100644 index 0000000..f9620a6 --- /dev/null +++ b/services/survey_test.go @@ -0,0 +1,89 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Survey Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Survey service", func() { + var sl_service services.Survey + BeforeEach(func() { + sl_service = services.GetSurveyService(slsession) + }) + Context("SoftLayer_Survey Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Survey Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Survey::getActiveSurveyByType", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveSurveyByType(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Survey::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Survey::getQuestions", func() { + It("API Call Test", func() { + _, err := sl_service.GetQuestions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Survey::getStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Survey::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Survey::takeSurvey", func() { + It("API Call Test", func() { + _, err := sl_service.TakeSurvey(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/tag.go b/services/tag.go index 256f847..bccad6f 100644 --- a/services/tag.go +++ b/services/tag.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // The SoftLayer_Tag data type is an optional type associated with hardware. The account ID that the tag is tied to, and the tag itself are stored in this data type. There is also a flag to denote whether the tag is internal or not. type Tag struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetTagService returns an instance of the Tag SoftLayer service -func GetTagService(sess *session.Session) Tag { +func GetTagService(sess session.SLSession) Tag { return Tag{Session: sess} } diff --git a/services/tag_test.go b/services/tag_test.go new file mode 100644 index 0000000..4190a3f --- /dev/null +++ b/services/tag_test.go @@ -0,0 +1,117 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Tag Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Tag service", func() { + var sl_service services.Tag + BeforeEach(func() { + sl_service = services.GetTagService(slsession) + }) + Context("SoftLayer_Tag Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Tag Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Tag::autoComplete", func() { + It("API Call Test", func() { + _, err := sl_service.AutoComplete(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Tag::deleteTag", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteTag(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Tag::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Tag::getAllTagTypes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllTagTypes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Tag::getAttachedTagsForCurrentUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedTagsForCurrentUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Tag::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Tag::getReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Tag::getTagByTagName", func() { + It("API Call Test", func() { + _, err := sl_service.GetTagByTagName(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Tag::getUnattachedTagsForCurrentUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetUnattachedTagsForCurrentUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Tag::setTags", func() { + It("API Call Test", func() { + _, err := sl_service.SetTags(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/ticket.go b/services/ticket.go index dba85ec..8d5254c 100644 --- a/services/ticket.go +++ b/services/ticket.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -33,12 +26,12 @@ import ( // // To create a support ticket execute the [[SoftLayer_Ticket::createStandardTicket|createStandardTicket]] or [[SoftLayer_Ticket::createAdministrativeTicket|createAdministrativeTicket]] methods in the SoftLayer_Ticket service. To create an upgrade ticket for the SoftLayer sales group execute the [[SoftLayer_Ticket::createUpgradeTicket|createUpgradeTicket]]. type Ticket struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetTicketService returns an instance of the Ticket SoftLayer service -func GetTicketService(sess *session.Session) Ticket { +func GetTicketService(sess session.SLSession) Ticket { return Ticket{Session: sess} } @@ -621,12 +614,12 @@ func (r Ticket) UpdateAttachedAdditionalEmails(emails []string) (resp bool, err // SoftLayer tickets can have have files attached to them. Attaching a file to a ticket is a good way to report issues, provide documentation, and give examples of an issue. Both SoftLayer customers and employees have the ability to attach files to a ticket. The SoftLayer_Ticket_Attachment_File data type models a single file attached to a ticket. type Ticket_Attachment_File struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetTicketAttachmentFileService returns an instance of the Ticket_Attachment_File SoftLayer service -func GetTicketAttachmentFileService(sess *session.Session) Ticket_Attachment_File { +func GetTicketAttachmentFileService(sess session.SLSession) Ticket_Attachment_File { return Ticket_Attachment_File{Session: sess} } @@ -685,12 +678,12 @@ func (r Ticket_Attachment_File) GetUpdate() (resp datatypes.Ticket_Update, err e // no documentation yet type Ticket_Attachment_File_ServiceNow struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetTicketAttachmentFileServiceNowService returns an instance of the Ticket_Attachment_File_ServiceNow SoftLayer service -func GetTicketAttachmentFileServiceNowService(sess *session.Session) Ticket_Attachment_File_ServiceNow { +func GetTicketAttachmentFileServiceNowService(sess session.SLSession) Ticket_Attachment_File_ServiceNow { return Ticket_Attachment_File_ServiceNow{Session: sess} } @@ -749,12 +742,12 @@ func (r Ticket_Attachment_File_ServiceNow) GetUpdate() (resp datatypes.Ticket_Up // no documentation yet type Ticket_Priority struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetTicketPriorityService returns an instance of the Ticket_Priority SoftLayer service -func GetTicketPriorityService(sess *session.Session) Ticket_Priority { +func GetTicketPriorityService(sess session.SLSession) Ticket_Priority { return Ticket_Priority{Session: sess} } @@ -795,12 +788,12 @@ func (r Ticket_Priority) GetPriorities() (resp []datatypes.Container_Ticket_Prio // The SoftLayer_Ticket_Subject data type models one of the possible subjects that a standard support ticket may belong to. A basic support ticket's title matches it's corresponding subject's name. type Ticket_Subject struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetTicketSubjectService returns an instance of the Ticket_Subject SoftLayer service -func GetTicketSubjectService(sess *session.Session) Ticket_Subject { +func GetTicketSubjectService(sess session.SLSession) Ticket_Subject { return Ticket_Subject{Session: sess} } @@ -877,12 +870,12 @@ func (r Ticket_Subject) GetTopFiveKnowledgeLayerQuestions() (resp []datatypes.Co // SoftLayer_Ticket_Subject_Category groups ticket subjects into logical group. type Ticket_Subject_Category struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetTicketSubjectCategoryService returns an instance of the Ticket_Subject_Category SoftLayer service -func GetTicketSubjectCategoryService(sess *session.Session) Ticket_Subject_Category { +func GetTicketSubjectCategoryService(sess session.SLSession) Ticket_Subject_Category { return Ticket_Subject_Category{Session: sess} } @@ -935,12 +928,12 @@ func (r Ticket_Subject_Category) GetSubjects() (resp []datatypes.Ticket_Subject, // no documentation yet type Ticket_Survey struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetTicketSurveyService returns an instance of the Ticket_Survey SoftLayer service -func GetTicketSurveyService(sess *session.Session) Ticket_Survey { +func GetTicketSurveyService(sess session.SLSession) Ticket_Survey { return Ticket_Survey{Session: sess} } @@ -999,12 +992,12 @@ func (r Ticket_Survey) OptOut() (err error) { // The SoftLayer_Ticket_Update_Employee data type models an update to a ticket made by a SoftLayer employee. type Ticket_Update_Employee struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetTicketUpdateEmployeeService returns an instance of the Ticket_Update_Employee SoftLayer service -func GetTicketUpdateEmployeeService(sess *session.Session) Ticket_Update_Employee { +func GetTicketUpdateEmployeeService(sess session.SLSession) Ticket_Update_Employee { return Ticket_Update_Employee{Session: sess} } diff --git a/services/ticket_test.go b/services/ticket_test.go new file mode 100644 index 0000000..16865b4 --- /dev/null +++ b/services/ticket_test.go @@ -0,0 +1,887 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Ticket Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Ticket service", func() { + var sl_service services.Ticket + BeforeEach(func() { + sl_service = services.GetTicketService(slsession) + }) + Context("SoftLayer_Ticket Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Ticket Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Ticket::addAssignedAgent", func() { + It("API Call Test", func() { + err := sl_service.AddAssignedAgent(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::addAttachedAdditionalEmails", func() { + It("API Call Test", func() { + _, err := sl_service.AddAttachedAdditionalEmails(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::addAttachedDedicatedHost", func() { + It("API Call Test", func() { + _, err := sl_service.AddAttachedDedicatedHost(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::addAttachedFile", func() { + It("API Call Test", func() { + _, err := sl_service.AddAttachedFile(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::addAttachedHardware", func() { + It("API Call Test", func() { + _, err := sl_service.AddAttachedHardware(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::addAttachedVirtualGuest", func() { + It("API Call Test", func() { + _, err := sl_service.AddAttachedVirtualGuest(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::addFinalComments", func() { + It("API Call Test", func() { + _, err := sl_service.AddFinalComments(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::addScheduledAlert", func() { + It("API Call Test", func() { + err := sl_service.AddScheduledAlert(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::addScheduledAutoClose", func() { + It("API Call Test", func() { + err := sl_service.AddScheduledAutoClose(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::addUpdate", func() { + It("API Call Test", func() { + _, err := sl_service.AddUpdate(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::createAdministrativeTicket", func() { + It("API Call Test", func() { + _, err := sl_service.CreateAdministrativeTicket(nil, nil, nil, nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::createCancelServerTicket", func() { + It("API Call Test", func() { + _, err := sl_service.CreateCancelServerTicket(nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::createCancelServiceTicket", func() { + It("API Call Test", func() { + _, err := sl_service.CreateCancelServiceTicket(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::createStandardTicket", func() { + It("API Call Test", func() { + _, err := sl_service.CreateStandardTicket(nil, nil, nil, nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::createUpgradeTicket", func() { + It("API Call Test", func() { + _, err := sl_service.CreateUpgradeTicket(nil, nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::edit", func() { + It("API Call Test", func() { + _, err := sl_service.Edit(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getAllTicketGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllTicketGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getAllTicketStatuses", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllTicketStatuses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getAssignedAgents", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedAgents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getAssignedUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetAssignedUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getAttachedAdditionalEmails", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedAdditionalEmails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getAttachedDedicatedHosts", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedDedicatedHosts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getAttachedFile", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedFile(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getAttachedFiles", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedFiles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getAttachedHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getAttachedHardwareCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedHardwareCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getAttachedResources", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedResources() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getAttachedVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getAwaitingUserResponseFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetAwaitingUserResponseFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getBnppSupportedFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBnppSupportedFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getCancellationRequest", func() { + It("API Call Test", func() { + _, err := sl_service.GetCancellationRequest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getEmployeeAttachments", func() { + It("API Call Test", func() { + _, err := sl_service.GetEmployeeAttachments() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getEuSupportedFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetEuSupportedFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getFirstAttachedResource", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirstAttachedResource() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getFirstUpdate", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirstUpdate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getFsboaSupportedFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetFsboaSupportedFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getInvoiceItems", func() { + It("API Call Test", func() { + _, err := sl_service.GetInvoiceItems() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getLastActivity", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastActivity() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getLastEditor", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastEditor() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getLastUpdate", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastUpdate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getNewUpdatesFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetNewUpdatesFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getScheduledActions", func() { + It("API Call Test", func() { + _, err := sl_service.GetScheduledActions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getServerAdministrationBillingInvoice", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerAdministrationBillingInvoice() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getServerAdministrationRefundInvoice", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerAdministrationRefundInvoice() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getServiceProvider", func() { + It("API Call Test", func() { + _, err := sl_service.GetServiceProvider() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getState", func() { + It("API Call Test", func() { + _, err := sl_service.GetState() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getSubject", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getTagReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetTagReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getTicketsClosedSinceDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetTicketsClosedSinceDate(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getUpdateRatingFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpdateRatingFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::getUpdates", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpdates() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::markAsViewed", func() { + It("API Call Test", func() { + err := sl_service.MarkAsViewed() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::removeAssignedAgent", func() { + It("API Call Test", func() { + err := sl_service.RemoveAssignedAgent(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::removeAttachedAdditionalEmails", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAttachedAdditionalEmails(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::removeAttachedHardware", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAttachedHardware(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::removeAttachedVirtualGuest", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAttachedVirtualGuest(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::removeScheduledAlert", func() { + It("API Call Test", func() { + err := sl_service.RemoveScheduledAlert() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::removeScheduledAutoClose", func() { + It("API Call Test", func() { + err := sl_service.RemoveScheduledAutoClose() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::setTags", func() { + It("API Call Test", func() { + _, err := sl_service.SetTags(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::surveyEligible", func() { + It("API Call Test", func() { + _, err := sl_service.SurveyEligible() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket::updateAttachedAdditionalEmails", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateAttachedAdditionalEmails(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Ticket_Attachment_File service", func() { + var sl_service services.Ticket_Attachment_File + BeforeEach(func() { + sl_service = services.GetTicketAttachmentFileService(slsession) + }) + Context("SoftLayer_Ticket_Attachment_File Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Ticket_Attachment_File Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Ticket_Attachment_File::getExtensionWhitelist", func() { + It("API Call Test", func() { + _, err := sl_service.GetExtensionWhitelist() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket_Attachment_File::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket_Attachment_File::getTicket", func() { + It("API Call Test", func() { + _, err := sl_service.GetTicket() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket_Attachment_File::getUpdate", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpdate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Ticket_Attachment_File_ServiceNow service", func() { + var sl_service services.Ticket_Attachment_File_ServiceNow + BeforeEach(func() { + sl_service = services.GetTicketAttachmentFileServiceNowService(slsession) + }) + Context("SoftLayer_Ticket_Attachment_File_ServiceNow Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Ticket_Attachment_File_ServiceNow Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Ticket_Attachment_File_ServiceNow::getExtensionWhitelist", func() { + It("API Call Test", func() { + _, err := sl_service.GetExtensionWhitelist() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket_Attachment_File_ServiceNow::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket_Attachment_File_ServiceNow::getTicket", func() { + It("API Call Test", func() { + _, err := sl_service.GetTicket() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket_Attachment_File_ServiceNow::getUpdate", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpdate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Ticket_Priority service", func() { + var sl_service services.Ticket_Priority + BeforeEach(func() { + sl_service = services.GetTicketPriorityService(slsession) + }) + Context("SoftLayer_Ticket_Priority Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Ticket_Priority Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Ticket_Priority::getPriorities", func() { + It("API Call Test", func() { + _, err := sl_service.GetPriorities() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Ticket_Subject service", func() { + var sl_service services.Ticket_Subject + BeforeEach(func() { + sl_service = services.GetTicketSubjectService(slsession) + }) + Context("SoftLayer_Ticket_Subject Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Ticket_Subject Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Ticket_Subject::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket_Subject::getCategory", func() { + It("API Call Test", func() { + _, err := sl_service.GetCategory() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket_Subject::getChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket_Subject::getGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket_Subject::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket_Subject::getParent", func() { + It("API Call Test", func() { + _, err := sl_service.GetParent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket_Subject::getTopFiveKnowledgeLayerQuestions", func() { + It("API Call Test", func() { + _, err := sl_service.GetTopFiveKnowledgeLayerQuestions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Ticket_Subject_Category service", func() { + var sl_service services.Ticket_Subject_Category + BeforeEach(func() { + sl_service = services.GetTicketSubjectCategoryService(slsession) + }) + Context("SoftLayer_Ticket_Subject_Category Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Ticket_Subject_Category Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Ticket_Subject_Category::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket_Subject_Category::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket_Subject_Category::getSubjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Ticket_Survey service", func() { + var sl_service services.Ticket_Survey + BeforeEach(func() { + sl_service = services.GetTicketSurveyService(slsession) + }) + Context("SoftLayer_Ticket_Survey Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Ticket_Survey Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Ticket_Survey::getPreference", func() { + It("API Call Test", func() { + err := sl_service.GetPreference() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket_Survey::optIn", func() { + It("API Call Test", func() { + err := sl_service.OptIn() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket_Survey::optOut", func() { + It("API Call Test", func() { + err := sl_service.OptOut() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Ticket_Update_Employee service", func() { + var sl_service services.Ticket_Update_Employee + BeforeEach(func() { + sl_service = services.GetTicketUpdateEmployeeService(slsession) + }) + Context("SoftLayer_Ticket_Update_Employee Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Ticket_Update_Employee Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Ticket_Update_Employee::addResponseRating", func() { + It("API Call Test", func() { + _, err := sl_service.AddResponseRating(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Ticket_Update_Employee::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/user.go b/services/user.go index d2d5360..a411f49 100644 --- a/services/user.go +++ b/services/user.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // The SoftLayer_User_Customer data type contains general information relating to a single SoftLayer customer portal user. Personal information in this type such as names, addresses, and phone numbers are not necessarily associated with the customer account the user is assigned to. type User_Customer struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserCustomerService returns an instance of the User_Customer SoftLayer service -func GetUserCustomerService(sess *session.Session) User_Customer { +func GetUserCustomerService(sess session.SLSession) User_Customer { return User_Customer{Session: sess} } @@ -1168,12 +1161,12 @@ func (r User_Customer) ValidateAuthenticationToken(authenticationToken *datatype // The SoftLayer_User_Customer_ApiAuthentication type contains user's authentication key(s). type User_Customer_ApiAuthentication struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserCustomerApiAuthenticationService returns an instance of the User_Customer_ApiAuthentication SoftLayer service -func GetUserCustomerApiAuthenticationService(sess *session.Session) User_Customer_ApiAuthentication { +func GetUserCustomerApiAuthenticationService(sess session.SLSession) User_Customer_ApiAuthentication { return User_Customer_ApiAuthentication{Session: sess} } @@ -1229,12 +1222,12 @@ func (r User_Customer_ApiAuthentication) GetUser() (resp datatypes.User_Customer // Each SoftLayer portal account is assigned a series of permissions that determine what access the user has to functions within the SoftLayer customer portal. This status is reflected in the SoftLayer_User_Customer_Status data type. Permissions differ from user status in that user status applies globally to the portal while user permissions are applied to specific portal functions. type User_Customer_CustomerPermission_Permission struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserCustomerCustomerPermissionPermissionService returns an instance of the User_Customer_CustomerPermission_Permission SoftLayer service -func GetUserCustomerCustomerPermissionPermissionService(sess *session.Session) User_Customer_CustomerPermission_Permission { +func GetUserCustomerCustomerPermissionPermissionService(sess session.SLSession) User_Customer_CustomerPermission_Permission { return User_Customer_CustomerPermission_Permission{Session: sess} } @@ -1282,12 +1275,12 @@ func (r User_Customer_CustomerPermission_Permission) GetObject() (resp datatypes // The SoftLayer_User_Customer_External_Binding data type contains general information for a single external binding. This includes the 3rd party vendor, type of binding, and a unique identifier and password that is used to authenticate against the 3rd party service. type User_Customer_External_Binding struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserCustomerExternalBindingService returns an instance of the User_Customer_External_Binding SoftLayer service -func GetUserCustomerExternalBindingService(sess *session.Session) User_Customer_External_Binding { +func GetUserCustomerExternalBindingService(sess session.SLSession) User_Customer_External_Binding { return User_Customer_External_Binding{Session: sess} } @@ -1410,12 +1403,12 @@ func (r User_Customer_External_Binding) UpdateNote(text *string) (resp bool, err // // SoftLayer users with an active external binding will be prohibited from using the API for security reasons. type User_Customer_External_Binding_Totp struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserCustomerExternalBindingTotpService returns an instance of the User_Customer_External_Binding_Totp SoftLayer service -func GetUserCustomerExternalBindingTotpService(sess *session.Session) User_Customer_External_Binding_Totp { +func GetUserCustomerExternalBindingTotpService(sess session.SLSession) User_Customer_External_Binding_Totp { return User_Customer_External_Binding_Totp{Session: sess} } @@ -1548,12 +1541,12 @@ func (r User_Customer_External_Binding_Totp) UpdateNote(text *string) (resp bool // The SoftLayer_User_Customer_External_Binding_Vendor data type contains information for a single external binding vendor. This information includes a user friendly vendor name, a unique version of the vendor name, and a unique internal identifier that can be used when creating a new external binding. type User_Customer_External_Binding_Vendor struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserCustomerExternalBindingVendorService returns an instance of the User_Customer_External_Binding_Vendor SoftLayer service -func GetUserCustomerExternalBindingVendorService(sess *session.Session) User_Customer_External_Binding_Vendor { +func GetUserCustomerExternalBindingVendorService(sess session.SLSession) User_Customer_External_Binding_Vendor { return User_Customer_External_Binding_Vendor{Session: sess} } @@ -1611,12 +1604,12 @@ func (r User_Customer_External_Binding_Vendor) GetObject() (resp datatypes.User_ // // SoftLayer users with an active external binding will be prohibited from using the API for security reasons. type User_Customer_External_Binding_Verisign struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserCustomerExternalBindingVerisignService returns an instance of the User_Customer_External_Binding_Verisign SoftLayer service -func GetUserCustomerExternalBindingVerisignService(sess *session.Session) User_Customer_External_Binding_Verisign { +func GetUserCustomerExternalBindingVerisignService(sess session.SLSession) User_Customer_External_Binding_Verisign { return User_Customer_External_Binding_Verisign{Session: sess} } @@ -1782,12 +1775,12 @@ func (r User_Customer_External_Binding_Verisign) ValidateCredentialId(userId *in // no documentation yet type User_Customer_Invitation struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserCustomerInvitationService returns an instance of the User_Customer_Invitation SoftLayer service -func GetUserCustomerInvitationService(sess *session.Session) User_Customer_Invitation { +func GetUserCustomerInvitationService(sess session.SLSession) User_Customer_Invitation { return User_Customer_Invitation{Session: sess} } @@ -1834,12 +1827,12 @@ func (r User_Customer_Invitation) GetUser() (resp datatypes.User_Customer, err e // The Customer_Notification_Hardware object stores links between customers and the hardware devices they wish to monitor. This link is not enough, the user must be sure to also create SoftLayer_Network_Monitor_Version1_Query_Host instance with the response action set to "notify users" in order for the users linked to that hardware object to be notified on failure. type User_Customer_Notification_Hardware struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserCustomerNotificationHardwareService returns an instance of the User_Customer_Notification_Hardware SoftLayer service -func GetUserCustomerNotificationHardwareService(sess *session.Session) User_Customer_Notification_Hardware { +func GetUserCustomerNotificationHardwareService(sess session.SLSession) User_Customer_Notification_Hardware { return User_Customer_Notification_Hardware{Session: sess} } @@ -1930,12 +1923,12 @@ func (r User_Customer_Notification_Hardware) GetUser() (resp datatypes.User_Cust // The SoftLayer_User_Customer_Notification_Virtual_Guest object stores links between customers and the virtual guests they wish to monitor. This link is not enough, the user must be sure to also create SoftLayer_Network_Monitor_Version1_Query_Host instance with the response action set to "notify users" in order for the users linked to that Virtual Guest object to be notified on failure. type User_Customer_Notification_Virtual_Guest struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserCustomerNotificationVirtualGuestService returns an instance of the User_Customer_Notification_Virtual_Guest SoftLayer service -func GetUserCustomerNotificationVirtualGuestService(sess *session.Session) User_Customer_Notification_Virtual_Guest { +func GetUserCustomerNotificationVirtualGuestService(sess session.SLSession) User_Customer_Notification_Virtual_Guest { return User_Customer_Notification_Virtual_Guest{Session: sess} } @@ -2026,12 +2019,12 @@ func (r User_Customer_Notification_Virtual_Guest) GetUser() (resp datatypes.User // no documentation yet type User_Customer_OpenIdConnect struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserCustomerOpenIdConnectService returns an instance of the User_Customer_OpenIdConnect SoftLayer service -func GetUserCustomerOpenIdConnectService(sess *session.Session) User_Customer_OpenIdConnect { +func GetUserCustomerOpenIdConnectService(sess session.SLSession) User_Customer_OpenIdConnect { return User_Customer_OpenIdConnect{Session: sess} } @@ -3257,12 +3250,12 @@ func (r User_Customer_OpenIdConnect) ValidateAuthenticationToken(authenticationT // no documentation yet type User_Customer_OpenIdConnect_TrustedProfile struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserCustomerOpenIdConnectTrustedProfileService returns an instance of the User_Customer_OpenIdConnect_TrustedProfile SoftLayer service -func GetUserCustomerOpenIdConnectTrustedProfileService(sess *session.Session) User_Customer_OpenIdConnect_TrustedProfile { +func GetUserCustomerOpenIdConnectTrustedProfileService(sess session.SLSession) User_Customer_OpenIdConnect_TrustedProfile { return User_Customer_OpenIdConnect_TrustedProfile{Session: sess} } @@ -4466,12 +4459,12 @@ func (r User_Customer_OpenIdConnect_TrustedProfile) ValidateAuthenticationToken( // no documentation yet type User_Customer_Profile_Event_HyperWarp struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserCustomerProfileEventHyperWarpService returns an instance of the User_Customer_Profile_Event_HyperWarp SoftLayer service -func GetUserCustomerProfileEventHyperWarpService(sess *session.Session) User_Customer_Profile_Event_HyperWarp { +func GetUserCustomerProfileEventHyperWarpService(sess session.SLSession) User_Customer_Profile_Event_HyperWarp { return User_Customer_Profile_Event_HyperWarp{Session: sess} } @@ -4515,12 +4508,12 @@ func (r User_Customer_Profile_Event_HyperWarp) ReceiveEventDirect(eventJson *dat // Contains user information for Service Provider Enrollment. type User_Customer_Prospect_ServiceProvider_EnrollRequest struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserCustomerProspectServiceProviderEnrollRequestService returns an instance of the User_Customer_Prospect_ServiceProvider_EnrollRequest SoftLayer service -func GetUserCustomerProspectServiceProviderEnrollRequestService(sess *session.Session) User_Customer_Prospect_ServiceProvider_EnrollRequest { +func GetUserCustomerProspectServiceProviderEnrollRequestService(sess session.SLSession) User_Customer_Prospect_ServiceProvider_EnrollRequest { return User_Customer_Prospect_ServiceProvider_EnrollRequest{Session: sess} } @@ -4576,12 +4569,12 @@ func (r User_Customer_Prospect_ServiceProvider_EnrollRequest) GetObject() (resp // The SoftLayer_User_Customer_Security_Answer type contains user's answers to security questions. type User_Customer_Security_Answer struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserCustomerSecurityAnswerService returns an instance of the User_Customer_Security_Answer SoftLayer service -func GetUserCustomerSecurityAnswerService(sess *session.Session) User_Customer_Security_Answer { +func GetUserCustomerSecurityAnswerService(sess session.SLSession) User_Customer_Security_Answer { return User_Customer_Security_Answer{Session: sess} } @@ -4636,12 +4629,12 @@ func (r User_Customer_Security_Answer) GetUser() (resp datatypes.User_Customer, // // Note that a status of "PENDING" also has been added. This status is specific to users that are configured to use IBMid authentication. This would include some (not all) users on accounts that are linked to Platform Services (PaaS, formerly Bluemix) accounts, but is not limited to users in such accounts. Using IBMid authentication is optional for active users even if it is not required by the account type. PENDING status indicates that a relationship between an IBMid and a user is being set up but is not complete. To be complete, PENDING users need to perform an action ("accepting the invitation") before becoming an active user within IBM Cloud and/or IMS. PENDING is a system state, and can not be administered by users (including the account master user). SoftLayer Commercial is the only environment where IBMid and/or account linking are used. type User_Customer_Status struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserCustomerStatusService returns an instance of the User_Customer_Status SoftLayer service -func GetUserCustomerStatusService(sess *session.Session) User_Customer_Status { +func GetUserCustomerStatusService(sess session.SLSession) User_Customer_Status { return User_Customer_Status{Session: sess} } @@ -4688,12 +4681,12 @@ func (r User_Customer_Status) GetObject() (resp datatypes.User_Customer_Status, // The SoftLayer_User_External_Binding data type contains general information for a single external binding. This includes the 3rd party vendor, type of binding, and a unique identifier and password that is used to authenticate against the 3rd party service. type User_External_Binding struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserExternalBindingService returns an instance of the User_External_Binding SoftLayer service -func GetUserExternalBindingService(sess *session.Session) User_External_Binding { +func GetUserExternalBindingService(sess session.SLSession) User_External_Binding { return User_External_Binding{Session: sess} } @@ -4779,12 +4772,12 @@ func (r User_External_Binding) UpdateNote(text *string) (resp bool, err error) { // The SoftLayer_User_External_Binding_Vendor data type contains information for a single external binding vendor. This information includes a user friendly vendor name, a unique version of the vendor name, and a unique internal identifier that can be used when creating a new external binding. type User_External_Binding_Vendor struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserExternalBindingVendorService returns an instance of the User_External_Binding_Vendor SoftLayer service -func GetUserExternalBindingVendorService(sess *session.Session) User_External_Binding_Vendor { +func GetUserExternalBindingVendorService(sess session.SLSession) User_External_Binding_Vendor { return User_External_Binding_Vendor{Session: sess} } @@ -4833,12 +4826,12 @@ func (r User_External_Binding_Vendor) GetObject() (resp datatypes.User_External_ // // It also contains relational attributes that indicate which SoftLayer_User_Permission_Group's include the action. type User_Permission_Action struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserPermissionActionService returns an instance of the User_Permission_Action SoftLayer service -func GetUserPermissionActionService(sess *session.Session) User_Permission_Action { +func GetUserPermissionActionService(sess session.SLSession) User_Permission_Action { return User_Permission_Action{Session: sess} } @@ -4887,12 +4880,12 @@ func (r User_Permission_Action) GetObject() (resp datatypes.User_Permission_Acti // // It also contains relational attributes that indicate what SoftLayer_User_Permission_Action objects belong to a particular group, and what SoftLayer_User_Permission_Role objects the group is linked. type User_Permission_Group struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserPermissionGroupService returns an instance of the User_Permission_Group SoftLayer service -func GetUserPermissionGroupService(sess *session.Session) User_Permission_Group { +func GetUserPermissionGroupService(sess session.SLSession) User_Permission_Group { return User_Permission_Group{Session: sess} } @@ -5083,12 +5076,12 @@ func (r User_Permission_Group) UnlinkRole(role *datatypes.User_Permission_Role) // // For further information see: [[SoftLayer_User_Permission_Group]]. type User_Permission_Group_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserPermissionGroupTypeService returns an instance of the User_Permission_Group_Type SoftLayer service -func GetUserPermissionGroupTypeService(sess *session.Session) User_Permission_Group_Type { +func GetUserPermissionGroupTypeService(sess session.SLSession) User_Permission_Group_Type { return User_Permission_Group_Type{Session: sess} } @@ -5135,12 +5128,12 @@ func (r User_Permission_Group_Type) GetObject() (resp datatypes.User_Permission_ // These are the variables relating to SoftLayer_User_Permission_Resource_Type. Collectively they describe the types of resources which can be linked to [[SoftLayer_User_Permission_Group]]. type User_Permission_Resource_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserPermissionResourceTypeService returns an instance of the User_Permission_Resource_Type SoftLayer service -func GetUserPermissionResourceTypeService(sess *session.Session) User_Permission_Resource_Type { +func GetUserPermissionResourceTypeService(sess session.SLSession) User_Permission_Resource_Type { return User_Permission_Resource_Type{Session: sess} } @@ -5189,12 +5182,12 @@ func (r User_Permission_Resource_Type) GetObject() (resp datatypes.User_Permissi // // It also contains relational attributes that indicate what SoftLayer_User_Permission_Group objects are linked to a particular role, and the SoftLayer_User_Customer objects assigned to the role. type User_Permission_Role struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserPermissionRoleService returns an instance of the User_Permission_Role SoftLayer service -func GetUserPermissionRoleService(sess *session.Session) User_Permission_Role { +func GetUserPermissionRoleService(sess session.SLSession) User_Permission_Role { return User_Permission_Role{Session: sess} } @@ -5323,12 +5316,12 @@ func (r User_Permission_Role) UnlinkGroup(group *datatypes.User_Permission_Group // The SoftLayer_User_Security_Question data type contains questions. type User_Security_Question struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUserSecurityQuestionService returns an instance of the User_Security_Question SoftLayer service -func GetUserSecurityQuestionService(sess *session.Session) User_Security_Question { +func GetUserSecurityQuestionService(sess session.SLSession) User_Security_Question { return User_Security_Question{Session: sess} } diff --git a/services/user_test.go b/services/user_test.go new file mode 100644 index 0000000..40f4642 --- /dev/null +++ b/services/user_test.go @@ -0,0 +1,4335 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("User Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_User_Customer service", func() { + var sl_service services.User_Customer + BeforeEach(func() { + sl_service = services.GetUserCustomerService(slsession) + }) + Context("SoftLayer_User_Customer Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Customer Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Customer::acknowledgeSupportPolicy", func() { + It("API Call Test", func() { + err := sl_service.AcknowledgeSupportPolicy() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::addApiAuthenticationKey", func() { + It("API Call Test", func() { + _, err := sl_service.AddApiAuthenticationKey() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::addBulkDedicatedHostAccess", func() { + It("API Call Test", func() { + _, err := sl_service.AddBulkDedicatedHostAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::addBulkHardwareAccess", func() { + It("API Call Test", func() { + _, err := sl_service.AddBulkHardwareAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::addBulkPortalPermission", func() { + It("API Call Test", func() { + _, err := sl_service.AddBulkPortalPermission(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::addBulkRoles", func() { + It("API Call Test", func() { + err := sl_service.AddBulkRoles(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::addBulkVirtualGuestAccess", func() { + It("API Call Test", func() { + _, err := sl_service.AddBulkVirtualGuestAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::addDedicatedHostAccess", func() { + It("API Call Test", func() { + _, err := sl_service.AddDedicatedHostAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::addExternalBinding", func() { + It("API Call Test", func() { + _, err := sl_service.AddExternalBinding(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::addHardwareAccess", func() { + It("API Call Test", func() { + _, err := sl_service.AddHardwareAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::addNotificationSubscriber", func() { + It("API Call Test", func() { + _, err := sl_service.AddNotificationSubscriber(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::addPortalPermission", func() { + It("API Call Test", func() { + _, err := sl_service.AddPortalPermission(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::addRole", func() { + It("API Call Test", func() { + err := sl_service.AddRole(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::addVirtualGuestAccess", func() { + It("API Call Test", func() { + _, err := sl_service.AddVirtualGuestAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::assignNewParentId", func() { + It("API Call Test", func() { + _, err := sl_service.AssignNewParentId(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::changePreference", func() { + It("API Call Test", func() { + _, err := sl_service.ChangePreference(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::createNotificationSubscriber", func() { + It("API Call Test", func() { + _, err := sl_service.CreateNotificationSubscriber(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::createSubscriberDeliveryMethods", func() { + It("API Call Test", func() { + _, err := sl_service.CreateSubscriberDeliveryMethods(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::deactivateNotificationSubscriber", func() { + It("API Call Test", func() { + _, err := sl_service.DeactivateNotificationSubscriber(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::editObjects", func() { + It("API Call Test", func() { + _, err := sl_service.EditObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::findUserPreference", func() { + It("API Call Test", func() { + _, err := sl_service.FindUserPreference(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getActions", func() { + It("API Call Test", func() { + _, err := sl_service.GetActions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getActiveExternalAuthenticationVendors", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveExternalAuthenticationVendors() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getAdditionalEmails", func() { + It("API Call Test", func() { + _, err := sl_service.GetAdditionalEmails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getAgentImpersonationToken", func() { + It("API Call Test", func() { + _, err := sl_service.GetAgentImpersonationToken() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getAllowedDedicatedHostIds", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedDedicatedHostIds() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getAllowedHardwareIds", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedHardwareIds() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getAllowedVirtualGuestIds", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedVirtualGuestIds() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getApiAuthenticationKeys", func() { + It("API Call Test", func() { + _, err := sl_service.GetApiAuthenticationKeys() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getAuthenticationToken", func() { + It("API Call Test", func() { + _, err := sl_service.GetAuthenticationToken(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getChildUsers", func() { + It("API Call Test", func() { + _, err := sl_service.GetChildUsers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getClosedTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetClosedTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getDedicatedHosts", func() { + It("API Call Test", func() { + _, err := sl_service.GetDedicatedHosts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getDefaultAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetDefaultAccount(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getExternalBindings", func() { + It("API Call Test", func() { + _, err := sl_service.GetExternalBindings() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getHardwareCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getHardwareNotifications", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareNotifications() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getHasAcknowledgedSupportPolicyFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasAcknowledgedSupportPolicyFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getHasFullDedicatedHostAccessFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasFullDedicatedHostAccessFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getHasFullHardwareAccessFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasFullHardwareAccessFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getHasFullVirtualGuestAccessFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasFullVirtualGuestAccessFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getIbmIdLink", func() { + It("API Call Test", func() { + _, err := sl_service.GetIbmIdLink() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getImpersonationToken", func() { + It("API Call Test", func() { + _, err := sl_service.GetImpersonationToken() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getLayoutProfiles", func() { + It("API Call Test", func() { + _, err := sl_service.GetLayoutProfiles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getLocale", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocale() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getLoginAttempts", func() { + It("API Call Test", func() { + _, err := sl_service.GetLoginAttempts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getLoginToken", func() { + It("API Call Test", func() { + _, err := sl_service.GetLoginToken(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getMappedAccounts", func() { + It("API Call Test", func() { + _, err := sl_service.GetMappedAccounts(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getNotificationSubscribers", func() { + It("API Call Test", func() { + _, err := sl_service.GetNotificationSubscribers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getOpenIdConnectMigrationState", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenIdConnectMigrationState() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getOpenTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getOverrides", func() { + It("API Call Test", func() { + _, err := sl_service.GetOverrides() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getParent", func() { + It("API Call Test", func() { + _, err := sl_service.GetParent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getPasswordRequirements", func() { + It("API Call Test", func() { + _, err := sl_service.GetPasswordRequirements(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getPermissions", func() { + It("API Call Test", func() { + _, err := sl_service.GetPermissions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getPortalLoginToken", func() { + It("API Call Test", func() { + _, err := sl_service.GetPortalLoginToken(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getPreference", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreference(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getPreferenceTypes", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreferenceTypes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getPreferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getRequirementsForPasswordSet", func() { + It("API Call Test", func() { + _, err := sl_service.GetRequirementsForPasswordSet(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getRoles", func() { + It("API Call Test", func() { + _, err := sl_service.GetRoles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getSecurityAnswers", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecurityAnswers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getSubscribers", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubscribers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getSuccessfulLogins", func() { + It("API Call Test", func() { + _, err := sl_service.GetSuccessfulLogins() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getSupportPolicyAcknowledgementRequiredFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetSupportPolicyAcknowledgementRequiredFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getSupportPolicyDocument", func() { + It("API Call Test", func() { + _, err := sl_service.GetSupportPolicyDocument() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getSupportPolicyName", func() { + It("API Call Test", func() { + _, err := sl_service.GetSupportPolicyName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getSupportedLocales", func() { + It("API Call Test", func() { + _, err := sl_service.GetSupportedLocales() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getSurveyRequiredFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetSurveyRequiredFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getSurveys", func() { + It("API Call Test", func() { + _, err := sl_service.GetSurveys() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getTimezone", func() { + It("API Call Test", func() { + _, err := sl_service.GetTimezone() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getUnsuccessfulLogins", func() { + It("API Call Test", func() { + _, err := sl_service.GetUnsuccessfulLogins() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getUserIdForPasswordSet", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserIdForPasswordSet(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getUserLinks", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserLinks() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getUserPreferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserPreferences(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getUserStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getVirtualGuestCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuestCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::getVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::inTerminalStatus", func() { + It("API Call Test", func() { + _, err := sl_service.InTerminalStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::initiatePortalPasswordChange", func() { + It("API Call Test", func() { + _, err := sl_service.InitiatePortalPasswordChange(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::initiatePortalPasswordChangeByBrandAgent", func() { + It("API Call Test", func() { + _, err := sl_service.InitiatePortalPasswordChangeByBrandAgent(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::inviteUserToLinkOpenIdConnect", func() { + It("API Call Test", func() { + err := sl_service.InviteUserToLinkOpenIdConnect(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::isMasterUser", func() { + It("API Call Test", func() { + _, err := sl_service.IsMasterUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::isValidPortalPassword", func() { + It("API Call Test", func() { + _, err := sl_service.IsValidPortalPassword(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::performExternalAuthentication", func() { + It("API Call Test", func() { + _, err := sl_service.PerformExternalAuthentication(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::processPasswordSetRequest", func() { + It("API Call Test", func() { + _, err := sl_service.ProcessPasswordSetRequest(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::removeAllDedicatedHostAccessForThisUser", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAllDedicatedHostAccessForThisUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::removeAllHardwareAccessForThisUser", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAllHardwareAccessForThisUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::removeAllVirtualAccessForThisUser", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAllVirtualAccessForThisUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::removeApiAuthenticationKey", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveApiAuthenticationKey(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::removeBulkDedicatedHostAccess", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveBulkDedicatedHostAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::removeBulkHardwareAccess", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveBulkHardwareAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::removeBulkPortalPermission", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveBulkPortalPermission(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::removeBulkRoles", func() { + It("API Call Test", func() { + err := sl_service.RemoveBulkRoles(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::removeBulkVirtualGuestAccess", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveBulkVirtualGuestAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::removeDedicatedHostAccess", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveDedicatedHostAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::removeExternalBinding", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveExternalBinding(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::removeHardwareAccess", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveHardwareAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::removePortalPermission", func() { + It("API Call Test", func() { + _, err := sl_service.RemovePortalPermission(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::removeRole", func() { + It("API Call Test", func() { + err := sl_service.RemoveRole(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::removeSecurityAnswers", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveSecurityAnswers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::removeVirtualGuestAccess", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveVirtualGuestAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::resetOpenIdConnectLink", func() { + It("API Call Test", func() { + err := sl_service.ResetOpenIdConnectLink(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::resetOpenIdConnectLinkUnifiedUserManagementMode", func() { + It("API Call Test", func() { + err := sl_service.ResetOpenIdConnectLinkUnifiedUserManagementMode(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::samlAuthenticate", func() { + It("API Call Test", func() { + _, err := sl_service.SamlAuthenticate(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::samlBeginAuthentication", func() { + It("API Call Test", func() { + _, err := sl_service.SamlBeginAuthentication(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::samlBeginLogout", func() { + It("API Call Test", func() { + _, err := sl_service.SamlBeginLogout() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::samlLogout", func() { + It("API Call Test", func() { + err := sl_service.SamlLogout(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::selfPasswordChange", func() { + It("API Call Test", func() { + err := sl_service.SelfPasswordChange(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::setDefaultAccount", func() { + It("API Call Test", func() { + _, err := sl_service.SetDefaultAccount(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::silentlyMigrateUserOpenIdConnect", func() { + It("API Call Test", func() { + _, err := sl_service.SilentlyMigrateUserOpenIdConnect(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::turnOffMasterUserPermissionCheckMode", func() { + It("API Call Test", func() { + err := sl_service.TurnOffMasterUserPermissionCheckMode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::turnOnMasterUserPermissionCheckMode", func() { + It("API Call Test", func() { + err := sl_service.TurnOnMasterUserPermissionCheckMode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::updateNotificationSubscriber", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateNotificationSubscriber(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::updateSecurityAnswers", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateSecurityAnswers(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::updateSubscriberDeliveryMethod", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateSubscriberDeliveryMethod(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::updateVpnPassword", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateVpnPassword(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::updateVpnUser", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateVpnUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer::validateAuthenticationToken", func() { + It("API Call Test", func() { + _, err := sl_service.ValidateAuthenticationToken(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_Customer_ApiAuthentication service", func() { + var sl_service services.User_Customer_ApiAuthentication + BeforeEach(func() { + sl_service = services.GetUserCustomerApiAuthenticationService(slsession) + }) + Context("SoftLayer_User_Customer_ApiAuthentication Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Customer_ApiAuthentication Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Customer_ApiAuthentication::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_ApiAuthentication::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_ApiAuthentication::getUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_Customer_CustomerPermission_Permission service", func() { + var sl_service services.User_Customer_CustomerPermission_Permission + BeforeEach(func() { + sl_service = services.GetUserCustomerCustomerPermissionPermissionService(slsession) + }) + Context("SoftLayer_User_Customer_CustomerPermission_Permission Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Customer_CustomerPermission_Permission Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Customer_CustomerPermission_Permission::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_CustomerPermission_Permission::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_Customer_External_Binding service", func() { + var sl_service services.User_Customer_External_Binding + BeforeEach(func() { + sl_service = services.GetUserCustomerExternalBindingService(slsession) + }) + Context("SoftLayer_User_Customer_External_Binding Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Customer_External_Binding Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Customer_External_Binding::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding::disable", func() { + It("API Call Test", func() { + _, err := sl_service.Disable(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding::enable", func() { + It("API Call Test", func() { + _, err := sl_service.Enable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding::getAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding::getNote", func() { + It("API Call Test", func() { + _, err := sl_service.GetNote() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding::getUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding::getVendor", func() { + It("API Call Test", func() { + _, err := sl_service.GetVendor() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding::updateNote", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateNote(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_Customer_External_Binding_Totp service", func() { + var sl_service services.User_Customer_External_Binding_Totp + BeforeEach(func() { + sl_service = services.GetUserCustomerExternalBindingTotpService(slsession) + }) + Context("SoftLayer_User_Customer_External_Binding_Totp Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Totp Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Totp::activate", func() { + It("API Call Test", func() { + _, err := sl_service.Activate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Totp::deactivate", func() { + It("API Call Test", func() { + _, err := sl_service.Deactivate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Totp::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Totp::disable", func() { + It("API Call Test", func() { + _, err := sl_service.Disable(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Totp::enable", func() { + It("API Call Test", func() { + _, err := sl_service.Enable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Totp::generateSecretKey", func() { + It("API Call Test", func() { + _, err := sl_service.GenerateSecretKey() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Totp::getAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Totp::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Totp::getNote", func() { + It("API Call Test", func() { + _, err := sl_service.GetNote() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Totp::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Totp::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Totp::getUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Totp::getVendor", func() { + It("API Call Test", func() { + _, err := sl_service.GetVendor() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Totp::updateNote", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateNote(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_Customer_External_Binding_Vendor service", func() { + var sl_service services.User_Customer_External_Binding_Vendor + BeforeEach(func() { + sl_service = services.GetUserCustomerExternalBindingVendorService(slsession) + }) + Context("SoftLayer_User_Customer_External_Binding_Vendor Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Vendor Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Vendor::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Vendor::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_Customer_External_Binding_Verisign service", func() { + var sl_service services.User_Customer_External_Binding_Verisign + BeforeEach(func() { + sl_service = services.GetUserCustomerExternalBindingVerisignService(slsession) + }) + Context("SoftLayer_User_Customer_External_Binding_Verisign Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Verisign Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Verisign::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Verisign::disable", func() { + It("API Call Test", func() { + _, err := sl_service.Disable(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Verisign::enable", func() { + It("API Call Test", func() { + _, err := sl_service.Enable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Verisign::getActivationCodeForMobileClient", func() { + It("API Call Test", func() { + _, err := sl_service.GetActivationCodeForMobileClient() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Verisign::getAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Verisign::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Verisign::getCredentialExpirationDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetCredentialExpirationDate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Verisign::getCredentialLastUpdateDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetCredentialLastUpdateDate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Verisign::getCredentialState", func() { + It("API Call Test", func() { + _, err := sl_service.GetCredentialState() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Verisign::getCredentialType", func() { + It("API Call Test", func() { + _, err := sl_service.GetCredentialType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Verisign::getNote", func() { + It("API Call Test", func() { + _, err := sl_service.GetNote() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Verisign::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Verisign::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Verisign::getUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Verisign::getVendor", func() { + It("API Call Test", func() { + _, err := sl_service.GetVendor() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Verisign::unlock", func() { + It("API Call Test", func() { + _, err := sl_service.Unlock(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Verisign::updateNote", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateNote(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_External_Binding_Verisign::validateCredentialId", func() { + It("API Call Test", func() { + _, err := sl_service.ValidateCredentialId(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_Customer_Invitation service", func() { + var sl_service services.User_Customer_Invitation + BeforeEach(func() { + sl_service = services.GetUserCustomerInvitationService(slsession) + }) + Context("SoftLayer_User_Customer_Invitation Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Customer_Invitation Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Customer_Invitation::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_Invitation::getUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_Customer_Notification_Hardware service", func() { + var sl_service services.User_Customer_Notification_Hardware + BeforeEach(func() { + sl_service = services.GetUserCustomerNotificationHardwareService(slsession) + }) + Context("SoftLayer_User_Customer_Notification_Hardware Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Customer_Notification_Hardware Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Customer_Notification_Hardware::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_Notification_Hardware::createObjects", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_Notification_Hardware::deleteObjects", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_Notification_Hardware::findByHardwareId", func() { + It("API Call Test", func() { + _, err := sl_service.FindByHardwareId(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_Notification_Hardware::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_Notification_Hardware::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_Notification_Hardware::getUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_Customer_Notification_Virtual_Guest service", func() { + var sl_service services.User_Customer_Notification_Virtual_Guest + BeforeEach(func() { + sl_service = services.GetUserCustomerNotificationVirtualGuestService(slsession) + }) + Context("SoftLayer_User_Customer_Notification_Virtual_Guest Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Customer_Notification_Virtual_Guest Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Customer_Notification_Virtual_Guest::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_Notification_Virtual_Guest::createObjects", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_Notification_Virtual_Guest::deleteObjects", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_Notification_Virtual_Guest::findByGuestId", func() { + It("API Call Test", func() { + _, err := sl_service.FindByGuestId(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_Notification_Virtual_Guest::getGuest", func() { + It("API Call Test", func() { + _, err := sl_service.GetGuest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_Notification_Virtual_Guest::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_Notification_Virtual_Guest::getUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_Customer_OpenIdConnect service", func() { + var sl_service services.User_Customer_OpenIdConnect + BeforeEach(func() { + sl_service = services.GetUserCustomerOpenIdConnectService(slsession) + }) + Context("SoftLayer_User_Customer_OpenIdConnect Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::acknowledgeSupportPolicy", func() { + It("API Call Test", func() { + err := sl_service.AcknowledgeSupportPolicy() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::activateOpenIdConnectUser", func() { + It("API Call Test", func() { + err := sl_service.ActivateOpenIdConnectUser(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::addApiAuthenticationKey", func() { + It("API Call Test", func() { + _, err := sl_service.AddApiAuthenticationKey() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::addBulkDedicatedHostAccess", func() { + It("API Call Test", func() { + _, err := sl_service.AddBulkDedicatedHostAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::addBulkHardwareAccess", func() { + It("API Call Test", func() { + _, err := sl_service.AddBulkHardwareAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::addBulkPortalPermission", func() { + It("API Call Test", func() { + _, err := sl_service.AddBulkPortalPermission(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::addBulkRoles", func() { + It("API Call Test", func() { + err := sl_service.AddBulkRoles(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::addBulkVirtualGuestAccess", func() { + It("API Call Test", func() { + _, err := sl_service.AddBulkVirtualGuestAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::addDedicatedHostAccess", func() { + It("API Call Test", func() { + _, err := sl_service.AddDedicatedHostAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::addExternalBinding", func() { + It("API Call Test", func() { + _, err := sl_service.AddExternalBinding(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::addHardwareAccess", func() { + It("API Call Test", func() { + _, err := sl_service.AddHardwareAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::addNotificationSubscriber", func() { + It("API Call Test", func() { + _, err := sl_service.AddNotificationSubscriber(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::addPortalPermission", func() { + It("API Call Test", func() { + _, err := sl_service.AddPortalPermission(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::addRole", func() { + It("API Call Test", func() { + err := sl_service.AddRole(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::addVirtualGuestAccess", func() { + It("API Call Test", func() { + _, err := sl_service.AddVirtualGuestAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::assignNewParentId", func() { + It("API Call Test", func() { + _, err := sl_service.AssignNewParentId(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::changePreference", func() { + It("API Call Test", func() { + _, err := sl_service.ChangePreference(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::completeInvitationAfterLogin", func() { + It("API Call Test", func() { + err := sl_service.CompleteInvitationAfterLogin(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::createNotificationSubscriber", func() { + It("API Call Test", func() { + _, err := sl_service.CreateNotificationSubscriber(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::createOpenIdConnectUserAndCompleteInvitation", func() { + It("API Call Test", func() { + err := sl_service.CreateOpenIdConnectUserAndCompleteInvitation(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::createSubscriberDeliveryMethods", func() { + It("API Call Test", func() { + _, err := sl_service.CreateSubscriberDeliveryMethods(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::deactivateNotificationSubscriber", func() { + It("API Call Test", func() { + _, err := sl_service.DeactivateNotificationSubscriber(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::declineInvitation", func() { + It("API Call Test", func() { + err := sl_service.DeclineInvitation(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::editObjects", func() { + It("API Call Test", func() { + _, err := sl_service.EditObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::findUserPreference", func() { + It("API Call Test", func() { + _, err := sl_service.FindUserPreference(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getActions", func() { + It("API Call Test", func() { + _, err := sl_service.GetActions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getActiveExternalAuthenticationVendors", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveExternalAuthenticationVendors() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getAdditionalEmails", func() { + It("API Call Test", func() { + _, err := sl_service.GetAdditionalEmails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getAgentImpersonationToken", func() { + It("API Call Test", func() { + _, err := sl_service.GetAgentImpersonationToken() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getAllowedDedicatedHostIds", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedDedicatedHostIds() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getAllowedHardwareIds", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedHardwareIds() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getAllowedVirtualGuestIds", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedVirtualGuestIds() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getApiAuthenticationKeys", func() { + It("API Call Test", func() { + _, err := sl_service.GetApiAuthenticationKeys() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getAuthenticationToken", func() { + It("API Call Test", func() { + _, err := sl_service.GetAuthenticationToken(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getChildUsers", func() { + It("API Call Test", func() { + _, err := sl_service.GetChildUsers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getClosedTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetClosedTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getDedicatedHosts", func() { + It("API Call Test", func() { + _, err := sl_service.GetDedicatedHosts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getDefaultAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetDefaultAccount(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getExternalBindings", func() { + It("API Call Test", func() { + _, err := sl_service.GetExternalBindings() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getHardwareCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getHardwareNotifications", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareNotifications() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getHasAcknowledgedSupportPolicyFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasAcknowledgedSupportPolicyFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getHasFullDedicatedHostAccessFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasFullDedicatedHostAccessFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getHasFullHardwareAccessFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasFullHardwareAccessFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getHasFullVirtualGuestAccessFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasFullVirtualGuestAccessFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getIbmIdLink", func() { + It("API Call Test", func() { + _, err := sl_service.GetIbmIdLink() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getImpersonationToken", func() { + It("API Call Test", func() { + _, err := sl_service.GetImpersonationToken() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getLayoutProfiles", func() { + It("API Call Test", func() { + _, err := sl_service.GetLayoutProfiles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getLocale", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocale() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getLoginAccountInfoOpenIdConnect", func() { + It("API Call Test", func() { + _, err := sl_service.GetLoginAccountInfoOpenIdConnect(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getLoginAttempts", func() { + It("API Call Test", func() { + _, err := sl_service.GetLoginAttempts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getLoginToken", func() { + It("API Call Test", func() { + _, err := sl_service.GetLoginToken(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getMappedAccounts", func() { + It("API Call Test", func() { + _, err := sl_service.GetMappedAccounts(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getNotificationSubscribers", func() { + It("API Call Test", func() { + _, err := sl_service.GetNotificationSubscribers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getOpenIdConnectMigrationState", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenIdConnectMigrationState() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getOpenIdRegistrationInfoFromCode", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenIdRegistrationInfoFromCode(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getOpenTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getOverrides", func() { + It("API Call Test", func() { + _, err := sl_service.GetOverrides() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getParent", func() { + It("API Call Test", func() { + _, err := sl_service.GetParent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getPasswordRequirements", func() { + It("API Call Test", func() { + _, err := sl_service.GetPasswordRequirements(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getPermissions", func() { + It("API Call Test", func() { + _, err := sl_service.GetPermissions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getPortalLoginToken", func() { + It("API Call Test", func() { + _, err := sl_service.GetPortalLoginToken(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getPortalLoginTokenOpenIdConnect", func() { + It("API Call Test", func() { + _, err := sl_service.GetPortalLoginTokenOpenIdConnect(nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getPreference", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreference(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getPreferenceTypes", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreferenceTypes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getPreferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getRequirementsForPasswordSet", func() { + It("API Call Test", func() { + _, err := sl_service.GetRequirementsForPasswordSet(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getRoles", func() { + It("API Call Test", func() { + _, err := sl_service.GetRoles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getSecurityAnswers", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecurityAnswers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getSubscribers", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubscribers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getSuccessfulLogins", func() { + It("API Call Test", func() { + _, err := sl_service.GetSuccessfulLogins() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getSupportPolicyAcknowledgementRequiredFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetSupportPolicyAcknowledgementRequiredFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getSupportPolicyDocument", func() { + It("API Call Test", func() { + _, err := sl_service.GetSupportPolicyDocument() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getSupportPolicyName", func() { + It("API Call Test", func() { + _, err := sl_service.GetSupportPolicyName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getSupportedLocales", func() { + It("API Call Test", func() { + _, err := sl_service.GetSupportedLocales() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getSurveyRequiredFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetSurveyRequiredFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getSurveys", func() { + It("API Call Test", func() { + _, err := sl_service.GetSurveys() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getTimezone", func() { + It("API Call Test", func() { + _, err := sl_service.GetTimezone() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getUnsuccessfulLogins", func() { + It("API Call Test", func() { + _, err := sl_service.GetUnsuccessfulLogins() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getUserForUnifiedInvitation", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserForUnifiedInvitation(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getUserIdForPasswordSet", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserIdForPasswordSet(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getUserLinks", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserLinks() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getUserPreferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserPreferences(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getUserStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getVirtualGuestCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuestCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::getVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::inTerminalStatus", func() { + It("API Call Test", func() { + _, err := sl_service.InTerminalStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::initiatePortalPasswordChange", func() { + It("API Call Test", func() { + _, err := sl_service.InitiatePortalPasswordChange(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::initiatePortalPasswordChangeByBrandAgent", func() { + It("API Call Test", func() { + _, err := sl_service.InitiatePortalPasswordChangeByBrandAgent(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::inviteUserToLinkOpenIdConnect", func() { + It("API Call Test", func() { + err := sl_service.InviteUserToLinkOpenIdConnect(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::isMasterUser", func() { + It("API Call Test", func() { + _, err := sl_service.IsMasterUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::isValidPortalPassword", func() { + It("API Call Test", func() { + _, err := sl_service.IsValidPortalPassword(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::performExternalAuthentication", func() { + It("API Call Test", func() { + _, err := sl_service.PerformExternalAuthentication(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::processPasswordSetRequest", func() { + It("API Call Test", func() { + _, err := sl_service.ProcessPasswordSetRequest(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::removeAllDedicatedHostAccessForThisUser", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAllDedicatedHostAccessForThisUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::removeAllHardwareAccessForThisUser", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAllHardwareAccessForThisUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::removeAllVirtualAccessForThisUser", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAllVirtualAccessForThisUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::removeApiAuthenticationKey", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveApiAuthenticationKey(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::removeBulkDedicatedHostAccess", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveBulkDedicatedHostAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::removeBulkHardwareAccess", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveBulkHardwareAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::removeBulkPortalPermission", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveBulkPortalPermission(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::removeBulkRoles", func() { + It("API Call Test", func() { + err := sl_service.RemoveBulkRoles(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::removeBulkVirtualGuestAccess", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveBulkVirtualGuestAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::removeDedicatedHostAccess", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveDedicatedHostAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::removeExternalBinding", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveExternalBinding(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::removeHardwareAccess", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveHardwareAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::removePortalPermission", func() { + It("API Call Test", func() { + _, err := sl_service.RemovePortalPermission(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::removeRole", func() { + It("API Call Test", func() { + err := sl_service.RemoveRole(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::removeSecurityAnswers", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveSecurityAnswers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::removeVirtualGuestAccess", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveVirtualGuestAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::resetOpenIdConnectLink", func() { + It("API Call Test", func() { + err := sl_service.ResetOpenIdConnectLink(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::resetOpenIdConnectLinkUnifiedUserManagementMode", func() { + It("API Call Test", func() { + err := sl_service.ResetOpenIdConnectLinkUnifiedUserManagementMode(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::samlAuthenticate", func() { + It("API Call Test", func() { + _, err := sl_service.SamlAuthenticate(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::samlBeginAuthentication", func() { + It("API Call Test", func() { + _, err := sl_service.SamlBeginAuthentication(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::samlBeginLogout", func() { + It("API Call Test", func() { + _, err := sl_service.SamlBeginLogout() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::samlLogout", func() { + It("API Call Test", func() { + err := sl_service.SamlLogout(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::selfPasswordChange", func() { + It("API Call Test", func() { + err := sl_service.SelfPasswordChange(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::setDefaultAccount", func() { + It("API Call Test", func() { + _, err := sl_service.SetDefaultAccount(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::silentlyMigrateUserOpenIdConnect", func() { + It("API Call Test", func() { + _, err := sl_service.SilentlyMigrateUserOpenIdConnect(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::turnOffMasterUserPermissionCheckMode", func() { + It("API Call Test", func() { + err := sl_service.TurnOffMasterUserPermissionCheckMode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::turnOnMasterUserPermissionCheckMode", func() { + It("API Call Test", func() { + err := sl_service.TurnOnMasterUserPermissionCheckMode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::updateNotificationSubscriber", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateNotificationSubscriber(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::updateSecurityAnswers", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateSecurityAnswers(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::updateSubscriberDeliveryMethod", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateSubscriberDeliveryMethod(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::updateVpnPassword", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateVpnPassword(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::updateVpnUser", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateVpnUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect::validateAuthenticationToken", func() { + It("API Call Test", func() { + _, err := sl_service.ValidateAuthenticationToken(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_Customer_OpenIdConnect_TrustedProfile service", func() { + var sl_service services.User_Customer_OpenIdConnect_TrustedProfile + BeforeEach(func() { + sl_service = services.GetUserCustomerOpenIdConnectTrustedProfileService(slsession) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::acknowledgeSupportPolicy", func() { + It("API Call Test", func() { + err := sl_service.AcknowledgeSupportPolicy() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::activateOpenIdConnectUser", func() { + It("API Call Test", func() { + err := sl_service.ActivateOpenIdConnectUser(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::addApiAuthenticationKey", func() { + It("API Call Test", func() { + _, err := sl_service.AddApiAuthenticationKey() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::addBulkDedicatedHostAccess", func() { + It("API Call Test", func() { + _, err := sl_service.AddBulkDedicatedHostAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::addBulkHardwareAccess", func() { + It("API Call Test", func() { + _, err := sl_service.AddBulkHardwareAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::addBulkPortalPermission", func() { + It("API Call Test", func() { + _, err := sl_service.AddBulkPortalPermission(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::addBulkRoles", func() { + It("API Call Test", func() { + err := sl_service.AddBulkRoles(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::addBulkVirtualGuestAccess", func() { + It("API Call Test", func() { + _, err := sl_service.AddBulkVirtualGuestAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::addDedicatedHostAccess", func() { + It("API Call Test", func() { + _, err := sl_service.AddDedicatedHostAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::addExternalBinding", func() { + It("API Call Test", func() { + _, err := sl_service.AddExternalBinding(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::addHardwareAccess", func() { + It("API Call Test", func() { + _, err := sl_service.AddHardwareAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::addNotificationSubscriber", func() { + It("API Call Test", func() { + _, err := sl_service.AddNotificationSubscriber(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::addPortalPermission", func() { + It("API Call Test", func() { + _, err := sl_service.AddPortalPermission(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::addRole", func() { + It("API Call Test", func() { + err := sl_service.AddRole(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::addVirtualGuestAccess", func() { + It("API Call Test", func() { + _, err := sl_service.AddVirtualGuestAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::assignNewParentId", func() { + It("API Call Test", func() { + _, err := sl_service.AssignNewParentId(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::changePreference", func() { + It("API Call Test", func() { + _, err := sl_service.ChangePreference(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::completeInvitationAfterLogin", func() { + It("API Call Test", func() { + err := sl_service.CompleteInvitationAfterLogin(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::createNotificationSubscriber", func() { + It("API Call Test", func() { + _, err := sl_service.CreateNotificationSubscriber(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::createOpenIdConnectUserAndCompleteInvitation", func() { + It("API Call Test", func() { + err := sl_service.CreateOpenIdConnectUserAndCompleteInvitation(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::createSubscriberDeliveryMethods", func() { + It("API Call Test", func() { + _, err := sl_service.CreateSubscriberDeliveryMethods(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::deactivateNotificationSubscriber", func() { + It("API Call Test", func() { + _, err := sl_service.DeactivateNotificationSubscriber(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::declineInvitation", func() { + It("API Call Test", func() { + err := sl_service.DeclineInvitation(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::editObjects", func() { + It("API Call Test", func() { + _, err := sl_service.EditObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::findUserPreference", func() { + It("API Call Test", func() { + _, err := sl_service.FindUserPreference(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getActions", func() { + It("API Call Test", func() { + _, err := sl_service.GetActions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getActiveExternalAuthenticationVendors", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveExternalAuthenticationVendors() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getAdditionalEmails", func() { + It("API Call Test", func() { + _, err := sl_service.GetAdditionalEmails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getAgentImpersonationToken", func() { + It("API Call Test", func() { + _, err := sl_service.GetAgentImpersonationToken() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getAllowedDedicatedHostIds", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedDedicatedHostIds() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getAllowedHardwareIds", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedHardwareIds() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getAllowedVirtualGuestIds", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedVirtualGuestIds() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getApiAuthenticationKeys", func() { + It("API Call Test", func() { + _, err := sl_service.GetApiAuthenticationKeys() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getAuthenticationToken", func() { + It("API Call Test", func() { + _, err := sl_service.GetAuthenticationToken(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getChildUsers", func() { + It("API Call Test", func() { + _, err := sl_service.GetChildUsers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getClosedTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetClosedTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getDedicatedHosts", func() { + It("API Call Test", func() { + _, err := sl_service.GetDedicatedHosts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getDefaultAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetDefaultAccount(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getExternalBindings", func() { + It("API Call Test", func() { + _, err := sl_service.GetExternalBindings() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getHardwareCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getHardwareNotifications", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareNotifications() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getHasAcknowledgedSupportPolicyFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasAcknowledgedSupportPolicyFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getHasFullDedicatedHostAccessFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasFullDedicatedHostAccessFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getHasFullHardwareAccessFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasFullHardwareAccessFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getHasFullVirtualGuestAccessFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHasFullVirtualGuestAccessFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getIbmIdLink", func() { + It("API Call Test", func() { + _, err := sl_service.GetIbmIdLink() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getImpersonationToken", func() { + It("API Call Test", func() { + _, err := sl_service.GetImpersonationToken() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getLayoutProfiles", func() { + It("API Call Test", func() { + _, err := sl_service.GetLayoutProfiles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getLocale", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocale() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getLoginAccountInfoOpenIdConnect", func() { + It("API Call Test", func() { + _, err := sl_service.GetLoginAccountInfoOpenIdConnect(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getLoginAttempts", func() { + It("API Call Test", func() { + _, err := sl_service.GetLoginAttempts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getLoginToken", func() { + It("API Call Test", func() { + _, err := sl_service.GetLoginToken(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getMappedAccounts", func() { + It("API Call Test", func() { + _, err := sl_service.GetMappedAccounts(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getNotificationSubscribers", func() { + It("API Call Test", func() { + _, err := sl_service.GetNotificationSubscribers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getOpenIdConnectMigrationState", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenIdConnectMigrationState() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getOpenIdRegistrationInfoFromCode", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenIdRegistrationInfoFromCode(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getOpenTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getOverrides", func() { + It("API Call Test", func() { + _, err := sl_service.GetOverrides() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getParent", func() { + It("API Call Test", func() { + _, err := sl_service.GetParent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getPasswordRequirements", func() { + It("API Call Test", func() { + _, err := sl_service.GetPasswordRequirements(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getPermissions", func() { + It("API Call Test", func() { + _, err := sl_service.GetPermissions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getPortalLoginToken", func() { + It("API Call Test", func() { + _, err := sl_service.GetPortalLoginToken(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getPortalLoginTokenOpenIdConnect", func() { + It("API Call Test", func() { + _, err := sl_service.GetPortalLoginTokenOpenIdConnect(nil, nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getPreference", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreference(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getPreferenceTypes", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreferenceTypes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getPreferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getRequirementsForPasswordSet", func() { + It("API Call Test", func() { + _, err := sl_service.GetRequirementsForPasswordSet(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getRoles", func() { + It("API Call Test", func() { + _, err := sl_service.GetRoles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getSecurityAnswers", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecurityAnswers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getSubscribers", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubscribers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getSuccessfulLogins", func() { + It("API Call Test", func() { + _, err := sl_service.GetSuccessfulLogins() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getSupportPolicyAcknowledgementRequiredFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetSupportPolicyAcknowledgementRequiredFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getSupportPolicyDocument", func() { + It("API Call Test", func() { + _, err := sl_service.GetSupportPolicyDocument() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getSupportPolicyName", func() { + It("API Call Test", func() { + _, err := sl_service.GetSupportPolicyName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getSupportedLocales", func() { + It("API Call Test", func() { + _, err := sl_service.GetSupportedLocales() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getSurveyRequiredFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetSurveyRequiredFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getSurveys", func() { + It("API Call Test", func() { + _, err := sl_service.GetSurveys() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getTimezone", func() { + It("API Call Test", func() { + _, err := sl_service.GetTimezone() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getUnsuccessfulLogins", func() { + It("API Call Test", func() { + _, err := sl_service.GetUnsuccessfulLogins() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getUserForUnifiedInvitation", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserForUnifiedInvitation(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getUserIdForPasswordSet", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserIdForPasswordSet(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getUserLinks", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserLinks() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getUserPreferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserPreferences(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getUserStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getVirtualGuestCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuestCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::getVirtualGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::inTerminalStatus", func() { + It("API Call Test", func() { + _, err := sl_service.InTerminalStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::initiatePortalPasswordChange", func() { + It("API Call Test", func() { + _, err := sl_service.InitiatePortalPasswordChange(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::initiatePortalPasswordChangeByBrandAgent", func() { + It("API Call Test", func() { + _, err := sl_service.InitiatePortalPasswordChangeByBrandAgent(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::inviteUserToLinkOpenIdConnect", func() { + It("API Call Test", func() { + err := sl_service.InviteUserToLinkOpenIdConnect(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::isMasterUser", func() { + It("API Call Test", func() { + _, err := sl_service.IsMasterUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::isValidPortalPassword", func() { + It("API Call Test", func() { + _, err := sl_service.IsValidPortalPassword(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::performExternalAuthentication", func() { + It("API Call Test", func() { + _, err := sl_service.PerformExternalAuthentication(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::processPasswordSetRequest", func() { + It("API Call Test", func() { + _, err := sl_service.ProcessPasswordSetRequest(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::removeAllDedicatedHostAccessForThisUser", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAllDedicatedHostAccessForThisUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::removeAllHardwareAccessForThisUser", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAllHardwareAccessForThisUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::removeAllVirtualAccessForThisUser", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAllVirtualAccessForThisUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::removeApiAuthenticationKey", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveApiAuthenticationKey(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::removeBulkDedicatedHostAccess", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveBulkDedicatedHostAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::removeBulkHardwareAccess", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveBulkHardwareAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::removeBulkPortalPermission", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveBulkPortalPermission(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::removeBulkRoles", func() { + It("API Call Test", func() { + err := sl_service.RemoveBulkRoles(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::removeBulkVirtualGuestAccess", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveBulkVirtualGuestAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::removeDedicatedHostAccess", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveDedicatedHostAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::removeExternalBinding", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveExternalBinding(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::removeHardwareAccess", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveHardwareAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::removePortalPermission", func() { + It("API Call Test", func() { + _, err := sl_service.RemovePortalPermission(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::removeRole", func() { + It("API Call Test", func() { + err := sl_service.RemoveRole(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::removeSecurityAnswers", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveSecurityAnswers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::removeVirtualGuestAccess", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveVirtualGuestAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::resetOpenIdConnectLink", func() { + It("API Call Test", func() { + err := sl_service.ResetOpenIdConnectLink(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::resetOpenIdConnectLinkUnifiedUserManagementMode", func() { + It("API Call Test", func() { + err := sl_service.ResetOpenIdConnectLinkUnifiedUserManagementMode(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::samlAuthenticate", func() { + It("API Call Test", func() { + _, err := sl_service.SamlAuthenticate(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::samlBeginAuthentication", func() { + It("API Call Test", func() { + _, err := sl_service.SamlBeginAuthentication(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::samlBeginLogout", func() { + It("API Call Test", func() { + _, err := sl_service.SamlBeginLogout() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::samlLogout", func() { + It("API Call Test", func() { + err := sl_service.SamlLogout(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::selfPasswordChange", func() { + It("API Call Test", func() { + err := sl_service.SelfPasswordChange(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::setDefaultAccount", func() { + It("API Call Test", func() { + _, err := sl_service.SetDefaultAccount(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::silentlyMigrateUserOpenIdConnect", func() { + It("API Call Test", func() { + _, err := sl_service.SilentlyMigrateUserOpenIdConnect(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::turnOffMasterUserPermissionCheckMode", func() { + It("API Call Test", func() { + err := sl_service.TurnOffMasterUserPermissionCheckMode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::turnOnMasterUserPermissionCheckMode", func() { + It("API Call Test", func() { + err := sl_service.TurnOnMasterUserPermissionCheckMode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::updateNotificationSubscriber", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateNotificationSubscriber(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::updateSecurityAnswers", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateSecurityAnswers(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::updateSubscriberDeliveryMethod", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateSubscriberDeliveryMethod(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::updateVpnPassword", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateVpnPassword(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::updateVpnUser", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateVpnUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::validateAuthenticationToken", func() { + It("API Call Test", func() { + _, err := sl_service.ValidateAuthenticationToken(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_Customer_Profile_Event_HyperWarp service", func() { + var sl_service services.User_Customer_Profile_Event_HyperWarp + BeforeEach(func() { + sl_service = services.GetUserCustomerProfileEventHyperWarpService(slsession) + }) + Context("SoftLayer_User_Customer_Profile_Event_HyperWarp Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Customer_Profile_Event_HyperWarp Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Customer_Profile_Event_HyperWarp::receiveEventDirect", func() { + It("API Call Test", func() { + _, err := sl_service.ReceiveEventDirect(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_Customer_Prospect_ServiceProvider_EnrollRequest service", func() { + var sl_service services.User_Customer_Prospect_ServiceProvider_EnrollRequest + BeforeEach(func() { + sl_service = services.GetUserCustomerProspectServiceProviderEnrollRequestService(slsession) + }) + Context("SoftLayer_User_Customer_Prospect_ServiceProvider_EnrollRequest Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Customer_Prospect_ServiceProvider_EnrollRequest Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Customer_Prospect_ServiceProvider_EnrollRequest::enroll", func() { + It("API Call Test", func() { + _, err := sl_service.Enroll(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_Prospect_ServiceProvider_EnrollRequest::getCompanyType", func() { + It("API Call Test", func() { + _, err := sl_service.GetCompanyType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_Prospect_ServiceProvider_EnrollRequest::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_Customer_Security_Answer service", func() { + var sl_service services.User_Customer_Security_Answer + BeforeEach(func() { + sl_service = services.GetUserCustomerSecurityAnswerService(slsession) + }) + Context("SoftLayer_User_Customer_Security_Answer Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Customer_Security_Answer Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Customer_Security_Answer::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_Security_Answer::getQuestion", func() { + It("API Call Test", func() { + _, err := sl_service.GetQuestion() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_Security_Answer::getUser", func() { + It("API Call Test", func() { + _, err := sl_service.GetUser() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_Customer_Status service", func() { + var sl_service services.User_Customer_Status + BeforeEach(func() { + sl_service = services.GetUserCustomerStatusService(slsession) + }) + Context("SoftLayer_User_Customer_Status Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Customer_Status Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Customer_Status::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Customer_Status::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_External_Binding service", func() { + var sl_service services.User_External_Binding + BeforeEach(func() { + sl_service = services.GetUserExternalBindingService(slsession) + }) + Context("SoftLayer_User_External_Binding Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_External_Binding Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_External_Binding::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_External_Binding::getAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_External_Binding::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_External_Binding::getNote", func() { + It("API Call Test", func() { + _, err := sl_service.GetNote() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_External_Binding::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_External_Binding::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_External_Binding::getVendor", func() { + It("API Call Test", func() { + _, err := sl_service.GetVendor() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_External_Binding::updateNote", func() { + It("API Call Test", func() { + _, err := sl_service.UpdateNote(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_External_Binding_Vendor service", func() { + var sl_service services.User_External_Binding_Vendor + BeforeEach(func() { + sl_service = services.GetUserExternalBindingVendorService(slsession) + }) + Context("SoftLayer_User_External_Binding_Vendor Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_External_Binding_Vendor Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_External_Binding_Vendor::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_External_Binding_Vendor::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_Permission_Action service", func() { + var sl_service services.User_Permission_Action + BeforeEach(func() { + sl_service = services.GetUserPermissionActionService(slsession) + }) + Context("SoftLayer_User_Permission_Action Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Permission_Action Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Permission_Action::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Action::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_Permission_Group service", func() { + var sl_service services.User_Permission_Group + BeforeEach(func() { + sl_service = services.GetUserPermissionGroupService(slsession) + }) + Context("SoftLayer_User_Permission_Group Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Permission_Group Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Permission_Group::addAction", func() { + It("API Call Test", func() { + err := sl_service.AddAction(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Group::addBulkActions", func() { + It("API Call Test", func() { + err := sl_service.AddBulkActions(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Group::addBulkResourceObjects", func() { + It("API Call Test", func() { + _, err := sl_service.AddBulkResourceObjects(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Group::addResourceObject", func() { + It("API Call Test", func() { + _, err := sl_service.AddResourceObject(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Group::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Group::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Group::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Group::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Group::getActions", func() { + It("API Call Test", func() { + _, err := sl_service.GetActions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Group::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Group::getRoles", func() { + It("API Call Test", func() { + _, err := sl_service.GetRoles() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Group::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Group::linkRole", func() { + It("API Call Test", func() { + err := sl_service.LinkRole(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Group::removeAction", func() { + It("API Call Test", func() { + err := sl_service.RemoveAction(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Group::removeBulkActions", func() { + It("API Call Test", func() { + err := sl_service.RemoveBulkActions(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Group::removeBulkResourceObjects", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveBulkResourceObjects(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Group::removeResourceObject", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveResourceObject(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Group::unlinkRole", func() { + It("API Call Test", func() { + err := sl_service.UnlinkRole(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_Permission_Group_Type service", func() { + var sl_service services.User_Permission_Group_Type + BeforeEach(func() { + sl_service = services.GetUserPermissionGroupTypeService(slsession) + }) + Context("SoftLayer_User_Permission_Group_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Permission_Group_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Permission_Group_Type::getGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Group_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_Permission_Resource_Type service", func() { + var sl_service services.User_Permission_Resource_Type + BeforeEach(func() { + sl_service = services.GetUserPermissionResourceTypeService(slsession) + }) + Context("SoftLayer_User_Permission_Resource_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Permission_Resource_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Permission_Resource_Type::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Resource_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_Permission_Role service", func() { + var sl_service services.User_Permission_Role + BeforeEach(func() { + sl_service = services.GetUserPermissionRoleService(slsession) + }) + Context("SoftLayer_User_Permission_Role Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Permission_Role Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Permission_Role::addUser", func() { + It("API Call Test", func() { + err := sl_service.AddUser(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Role::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Role::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Role::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Role::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Role::getActions", func() { + It("API Call Test", func() { + _, err := sl_service.GetActions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Role::getGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Role::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Role::getUsers", func() { + It("API Call Test", func() { + _, err := sl_service.GetUsers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Role::linkGroup", func() { + It("API Call Test", func() { + err := sl_service.LinkGroup(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Role::removeUser", func() { + It("API Call Test", func() { + err := sl_service.RemoveUser(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Permission_Role::unlinkGroup", func() { + It("API Call Test", func() { + err := sl_service.UnlinkGroup(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_User_Security_Question service", func() { + var sl_service services.User_Security_Question + BeforeEach(func() { + sl_service = services.GetUserSecurityQuestionService(slsession) + }) + Context("SoftLayer_User_Security_Question Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_User_Security_Question Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_User_Security_Question::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_User_Security_Question::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/utility.go b/services/utility.go index 9eed189..86f5114 100644 --- a/services/utility.go +++ b/services/utility.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -30,12 +23,12 @@ import ( // no documentation yet type Utility_Network struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetUtilityNetworkService returns an instance of the Utility_Network SoftLayer service -func GetUtilityNetworkService(sess *session.Session) Utility_Network { +func GetUtilityNetworkService(sess session.SLSession) Utility_Network { return Utility_Network{Session: sess} } diff --git a/services/utility_test.go b/services/utility_test.go new file mode 100644 index 0000000..0eabc2d --- /dev/null +++ b/services/utility_test.go @@ -0,0 +1,61 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Utility Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Utility_Network service", func() { + var sl_service services.Utility_Network + BeforeEach(func() { + sl_service = services.GetUtilityNetworkService(slsession) + }) + Context("SoftLayer_Utility_Network Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Utility_Network Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Utility_Network::nsLookup", func() { + It("API Call Test", func() { + _, err := sl_service.NsLookup(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Utility_Network::whois", func() { + It("API Call Test", func() { + _, err := sl_service.Whois(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/verify.go b/services/verify.go index a88d81b..a080b60 100644 --- a/services/verify.go +++ b/services/verify.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // no documentation yet type Verify_Api_HttpObj struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetVerifyApiHttpObjService returns an instance of the Verify_Api_HttpObj SoftLayer service -func GetVerifyApiHttpObjService(sess *session.Session) Verify_Api_HttpObj { +func GetVerifyApiHttpObjService(sess session.SLSession) Verify_Api_HttpObj { return Verify_Api_HttpObj{Session: sess} } @@ -98,12 +91,12 @@ func (r Verify_Api_HttpObj) GetObject() (resp datatypes.Verify_Api_HttpObj, err // no documentation yet type Verify_Api_HttpsObj struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetVerifyApiHttpsObjService returns an instance of the Verify_Api_HttpsObj SoftLayer service -func GetVerifyApiHttpsObjService(sess *session.Session) Verify_Api_HttpsObj { +func GetVerifyApiHttpsObjService(sess session.SLSession) Verify_Api_HttpsObj { return Verify_Api_HttpsObj{Session: sess} } diff --git a/services/verify_test.go b/services/verify_test.go new file mode 100644 index 0000000..39c50a8 --- /dev/null +++ b/services/verify_test.go @@ -0,0 +1,133 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Verify Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Verify_Api_HttpObj service", func() { + var sl_service services.Verify_Api_HttpObj + BeforeEach(func() { + sl_service = services.GetVerifyApiHttpObjService(slsession) + }) + Context("SoftLayer_Verify_Api_HttpObj Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Verify_Api_HttpObj Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Verify_Api_HttpObj::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Verify_Api_HttpObj::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Verify_Api_HttpObj::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Verify_Api_HttpObj::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Verify_Api_HttpsObj service", func() { + var sl_service services.Verify_Api_HttpsObj + BeforeEach(func() { + sl_service = services.GetVerifyApiHttpsObjService(slsession) + }) + Context("SoftLayer_Verify_Api_HttpsObj Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Verify_Api_HttpsObj Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Verify_Api_HttpsObj::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Verify_Api_HttpsObj::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Verify_Api_HttpsObj::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Verify_Api_HttpsObj::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/virtual.go b/services/virtual.go index 9b722ab..ab5b469 100644 --- a/services/virtual.go +++ b/services/virtual.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package services @@ -31,12 +24,12 @@ import ( // This data type presents the structure for a dedicated host. The data type contains relational properties to distinguish a dedicated host and associate an account to it. type Virtual_DedicatedHost struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetVirtualDedicatedHostService returns an instance of the Virtual_DedicatedHost SoftLayer service -func GetVirtualDedicatedHostService(sess *session.Session) Virtual_DedicatedHost { +func GetVirtualDedicatedHostService(sess session.SLSession) Virtual_DedicatedHost { return Virtual_DedicatedHost{Session: sess} } @@ -172,12 +165,12 @@ func (r Virtual_DedicatedHost) SetTags(tags *string) (resp bool, err error) { // // Virtual block devices are assigned to disk images. type Virtual_Disk_Image struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetVirtualDiskImageService returns an instance of the Virtual_Disk_Image SoftLayer service -func GetVirtualDiskImageService(sess *session.Session) Virtual_Disk_Image { +func GetVirtualDiskImageService(sess session.SLSession) Virtual_Disk_Image { return Virtual_Disk_Image{Session: sess} } @@ -367,12 +360,12 @@ func (r Virtual_Disk_Image) GetType() (resp datatypes.Virtual_Disk_Image_Type, e // // A guest, also known as a virtual server, represents an allocation of resources on a virtual host. type Virtual_Guest struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetVirtualGuestService returns an instance of the Virtual_Guest SoftLayer service -func GetVirtualGuestService(sess *session.Session) Virtual_Guest { +func GetVirtualGuestService(sess session.SLSession) Virtual_Guest { return Virtual_Guest{Session: sess} } @@ -2088,12 +2081,12 @@ func (r Virtual_Guest) VerifyReloadOperatingSystem(config *datatypes.Container_H // // A virtual block device template group, also known as an image template group, represents an image of a virtual guest instance. type Virtual_Guest_Block_Device_Template_Group struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetVirtualGuestBlockDeviceTemplateGroupService returns an instance of the Virtual_Guest_Block_Device_Template_Group SoftLayer service -func GetVirtualGuestBlockDeviceTemplateGroupService(sess *session.Session) Virtual_Guest_Block_Device_Template_Group { +func GetVirtualGuestBlockDeviceTemplateGroupService(sess session.SLSession) Virtual_Guest_Block_Device_Template_Group { return Virtual_Guest_Block_Device_Template_Group{Session: sess} } @@ -2579,12 +2572,12 @@ func (r Virtual_Guest_Block_Device_Template_Group) SetTags(tags *string) (resp b // no documentation yet type Virtual_Guest_Boot_Parameter struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetVirtualGuestBootParameterService returns an instance of the Virtual_Guest_Boot_Parameter SoftLayer service -func GetVirtualGuestBootParameterService(sess *session.Session) Virtual_Guest_Boot_Parameter { +func GetVirtualGuestBootParameterService(sess session.SLSession) Virtual_Guest_Boot_Parameter { return Virtual_Guest_Boot_Parameter{Session: sess} } @@ -2661,12 +2654,12 @@ func (r Virtual_Guest_Boot_Parameter) GetObject() (resp datatypes.Virtual_Guest_ // Describes a virtual guest boot parameter. In this the word class is used in the context of arguments sent to cloud computing instances such as single user mode and boot into bash. type Virtual_Guest_Boot_Parameter_Type struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetVirtualGuestBootParameterTypeService returns an instance of the Virtual_Guest_Boot_Parameter_Type SoftLayer service -func GetVirtualGuestBootParameterTypeService(sess *session.Session) Virtual_Guest_Boot_Parameter_Type { +func GetVirtualGuestBootParameterTypeService(sess session.SLSession) Virtual_Guest_Boot_Parameter_Type { return Virtual_Guest_Boot_Parameter_Type{Session: sess} } @@ -2715,12 +2708,12 @@ func (r Virtual_Guest_Boot_Parameter_Type) GetObject() (resp datatypes.Virtual_G // // A guest, also known as a virtual server, represents an allocation of resources on a virtual host. type Virtual_Guest_Network_Component struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetVirtualGuestNetworkComponentService returns an instance of the Virtual_Guest_Network_Component SoftLayer service -func GetVirtualGuestNetworkComponentService(sess *session.Session) Virtual_Guest_Network_Component { +func GetVirtualGuestNetworkComponentService(sess session.SLSession) Virtual_Guest_Network_Component { return Virtual_Guest_Network_Component{Session: sess} } @@ -2863,12 +2856,12 @@ func (r Virtual_Guest_Network_Component) SecurityGroupsReady() (resp bool, err e // The virtual host represents the platform on which virtual guests reside. At times a virtual host has no allocations on the physical server, however with many modern platforms it is a virtual machine with small CPU and Memory allocations that runs in the Control Domain. type Virtual_Host struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetVirtualHostService returns an instance of the Virtual_Host SoftLayer service -func GetVirtualHostService(sess *session.Session) Virtual_Host { +func GetVirtualHostService(sess session.SLSession) Virtual_Host { return Virtual_Host{Session: sess} } @@ -2933,12 +2926,12 @@ func (r Virtual_Host) GetPciDevices() (resp []datatypes.Virtual_Host_PciDevice, // This data type presents the structure for a virtual guest placement group. The data type contains relational properties to the virtual guest placement group rule class. type Virtual_PlacementGroup struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetVirtualPlacementGroupService returns an instance of the Virtual_PlacementGroup SoftLayer service -func GetVirtualPlacementGroupService(sess *session.Session) Virtual_PlacementGroup { +func GetVirtualPlacementGroupService(sess session.SLSession) Virtual_PlacementGroup { return Virtual_PlacementGroup{Session: sess} } @@ -3036,12 +3029,12 @@ func (r Virtual_PlacementGroup) GetRule() (resp datatypes.Virtual_PlacementGroup // This data type presents the structure of a virtual guest placement group rule. type Virtual_PlacementGroup_Rule struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetVirtualPlacementGroupRuleService returns an instance of the Virtual_PlacementGroup_Rule SoftLayer service -func GetVirtualPlacementGroupRuleService(sess *session.Session) Virtual_PlacementGroup_Rule { +func GetVirtualPlacementGroupRuleService(sess session.SLSession) Virtual_PlacementGroup_Rule { return Virtual_PlacementGroup_Rule{Session: sess} } @@ -3088,12 +3081,12 @@ func (r Virtual_PlacementGroup_Rule) GetObject() (resp datatypes.Virtual_Placeme // This data type presents the structure for a virtual reserved capacity group. type Virtual_ReservedCapacityGroup struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetVirtualReservedCapacityGroupService returns an instance of the Virtual_ReservedCapacityGroup SoftLayer service -func GetVirtualReservedCapacityGroupService(sess *session.Session) Virtual_ReservedCapacityGroup { +func GetVirtualReservedCapacityGroupService(sess session.SLSession) Virtual_ReservedCapacityGroup { return Virtual_ReservedCapacityGroup{Session: sess} } @@ -3179,12 +3172,12 @@ func (r Virtual_ReservedCapacityGroup) GetOccupiedInstances() (resp []datatypes. // This data type presents the structure for a virtual reserved capacity group instance. type Virtual_ReservedCapacityGroup_Instance struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetVirtualReservedCapacityGroupInstanceService returns an instance of the Virtual_ReservedCapacityGroup_Instance SoftLayer service -func GetVirtualReservedCapacityGroupInstanceService(sess *session.Session) Virtual_ReservedCapacityGroup_Instance { +func GetVirtualReservedCapacityGroupInstanceService(sess session.SLSession) Virtual_ReservedCapacityGroup_Instance { return Virtual_ReservedCapacityGroup_Instance{Session: sess} } @@ -3249,12 +3242,12 @@ func (r Virtual_ReservedCapacityGroup_Instance) GetReservedCapacityGroup() (resp // The SoftLayer_Virtual_Storage_Repository represents a web based storage system that can be accessed through many types of devices, interfaces, and other resources. type Virtual_Storage_Repository struct { - Session *session.Session + Session session.SLSession Options sl.Options } // GetVirtualStorageRepositoryService returns an instance of the Virtual_Storage_Repository SoftLayer service -func GetVirtualStorageRepositoryService(sess *session.Session) Virtual_Storage_Repository { +func GetVirtualStorageRepositoryService(sess session.SLSession) Virtual_Storage_Repository { return Virtual_Storage_Repository{Session: sess} } diff --git a/services/virtual_test.go b/services/virtual_test.go new file mode 100644 index 0000000..7ee749f --- /dev/null +++ b/services/virtual_test.go @@ -0,0 +1,3046 @@ +// AUTO GENERATED by tools/loadmeta.go +package services_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + "github.com/softlayer/softlayer-go/services" + "github.com/softlayer/softlayer-go/session/sessionfakes" +) + +var _ = Describe("Virtual Tests", func() { + var slsession *sessionfakes.FakeSLSession + BeforeEach(func() { + slsession = &sessionfakes.FakeSLSession{} + }) + + Context("Testing SoftLayer_Virtual_DedicatedHost service", func() { + var sl_service services.Virtual_DedicatedHost + BeforeEach(func() { + sl_service = services.GetVirtualDedicatedHostService(slsession) + }) + Context("SoftLayer_Virtual_DedicatedHost Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Virtual_DedicatedHost Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Virtual_DedicatedHost::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_DedicatedHost::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_DedicatedHost::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_DedicatedHost::getAllocationStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllocationStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_DedicatedHost::getAvailableRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableRouters(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_DedicatedHost::getBackendRouter", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendRouter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_DedicatedHost::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_DedicatedHost::getDatacenter", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_DedicatedHost::getGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_DedicatedHost::getInternalTagReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetInternalTagReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_DedicatedHost::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_DedicatedHost::getPciDeviceAllocationStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetPciDeviceAllocationStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_DedicatedHost::getPciDevices", func() { + It("API Call Test", func() { + _, err := sl_service.GetPciDevices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_DedicatedHost::getTagReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetTagReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_DedicatedHost::setTags", func() { + It("API Call Test", func() { + _, err := sl_service.SetTags(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Virtual_Disk_Image service", func() { + var sl_service services.Virtual_Disk_Image + BeforeEach(func() { + sl_service = services.GetVirtualDiskImageService(slsession) + }) + Context("SoftLayer_Virtual_Disk_Image Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Virtual_Disk_Image Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getAvailableBootModes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableBootModes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getBlockDevices", func() { + It("API Call Test", func() { + _, err := sl_service.GetBlockDevices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getBootableVolumeFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBootableVolumeFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getCloudInitFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetCloudInitFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getCoalescedDiskImages", func() { + It("API Call Test", func() { + _, err := sl_service.GetCoalescedDiskImages() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getCopyOnWriteFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetCopyOnWriteFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getDiskFileExtension", func() { + It("API Call Test", func() { + _, err := sl_service.GetDiskFileExtension() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getDiskImageStorageGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetDiskImageStorageGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getImportedDiskType", func() { + It("API Call Test", func() { + _, err := sl_service.GetImportedDiskType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getIsEncrypted", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsEncrypted() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getLocalDiskFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocalDiskFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getMetadataFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetadataFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getPublicIsoImages", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicIsoImages() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getSoftwareReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getSourceDiskImage", func() { + It("API Call Test", func() { + _, err := sl_service.GetSourceDiskImage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getStorageGroupDetails", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageGroupDetails() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getStorageGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageGroups() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getStorageRepository", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageRepository() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getStorageRepositoryType", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageRepositoryType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getSupportedHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetSupportedHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getTemplateBlockDevice", func() { + It("API Call Test", func() { + _, err := sl_service.GetTemplateBlockDevice() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Disk_Image::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Virtual_Guest service", func() { + var sl_service services.Virtual_Guest + BeforeEach(func() { + sl_service = services.GetVirtualGuestService(slsession) + }) + Context("SoftLayer_Virtual_Guest Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Virtual_Guest Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Virtual_Guest::activatePrivatePort", func() { + It("API Call Test", func() { + _, err := sl_service.ActivatePrivatePort() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::activatePublicPort", func() { + It("API Call Test", func() { + _, err := sl_service.ActivatePublicPort() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::allowAccessToNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToNetworkStorage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::allowAccessToNetworkStorageList", func() { + It("API Call Test", func() { + _, err := sl_service.AllowAccessToNetworkStorageList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::attachDiskImage", func() { + It("API Call Test", func() { + _, err := sl_service.AttachDiskImage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::cancelIsolationForDestructiveAction", func() { + It("API Call Test", func() { + err := sl_service.CancelIsolationForDestructiveAction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::captureImage", func() { + It("API Call Test", func() { + _, err := sl_service.CaptureImage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::checkHostDiskAvailability", func() { + It("API Call Test", func() { + _, err := sl_service.CheckHostDiskAvailability(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::configureMetadataDisk", func() { + It("API Call Test", func() { + _, err := sl_service.ConfigureMetadataDisk() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::createArchiveTemplate", func() { + It("API Call Test", func() { + _, err := sl_service.CreateArchiveTemplate(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::createArchiveTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.CreateArchiveTransaction(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::createObjects", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObjects(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::createPostSoftwareInstallTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.CreatePostSoftwareInstallTransaction(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::deleteTag", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteTag(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::deleteTransientWebhook", func() { + It("API Call Test", func() { + err := sl_service.DeleteTransientWebhook() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::detachDiskImage", func() { + It("API Call Test", func() { + _, err := sl_service.DetachDiskImage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::executeIderaBareMetalRestore", func() { + It("API Call Test", func() { + _, err := sl_service.ExecuteIderaBareMetalRestore() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::executeR1SoftBareMetalRestore", func() { + It("API Call Test", func() { + _, err := sl_service.ExecuteR1SoftBareMetalRestore() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::executeRemoteScript", func() { + It("API Call Test", func() { + err := sl_service.ExecuteRemoteScript(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::executeRescueLayer", func() { + It("API Call Test", func() { + _, err := sl_service.ExecuteRescueLayer() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::findByHostname", func() { + It("API Call Test", func() { + _, err := sl_service.FindByHostname(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::findByIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.FindByIpAddress(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::generateOrderTemplate", func() { + It("API Call Test", func() { + _, err := sl_service.GenerateOrderTemplate(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getAccountOwnedPoolFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountOwnedPoolFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getActiveNetworkMonitorIncident", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveNetworkMonitorIncident() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getActiveTickets", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveTickets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getActiveTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveTransaction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getActiveTransactions", func() { + It("API Call Test", func() { + _, err := sl_service.GetActiveTransactions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getAdditionalRequiredPricesForOsReload", func() { + It("API Call Test", func() { + _, err := sl_service.GetAdditionalRequiredPricesForOsReload(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getAllowedHost", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedHost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getAllowedNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getAllowedNetworkStorageReplicas", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllowedNetworkStorageReplicas() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getAntivirusSpywareSoftwareComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetAntivirusSpywareSoftwareComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getApplicationDeliveryController", func() { + It("API Call Test", func() { + _, err := sl_service.GetApplicationDeliveryController() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getAttachedNetworkStorages", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttachedNetworkStorages(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getAvailableBlockDevicePositions", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableBlockDevicePositions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getAvailableMonitoring", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableMonitoring() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getAvailableNetworkStorages", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableNetworkStorages(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getAverageDailyPrivateBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageDailyPrivateBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getAverageDailyPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageDailyPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getBackendNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getBackendRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getBandwidthAllocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthAllocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getBandwidthAllotmentDetail", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthAllotmentDetail() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getBandwidthDataByDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthDataByDate(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getBandwidthForDateRange", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthForDateRange(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getBandwidthImage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthImage(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getBandwidthImageByDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthImageByDate(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getBandwidthTotal", func() { + It("API Call Test", func() { + _, err := sl_service.GetBandwidthTotal(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getBillingCycleBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingCycleBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getBillingCyclePrivateBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingCyclePrivateBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getBillingCyclePublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingCyclePublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getBlockCancelBecauseDisconnectedFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetBlockCancelBecauseDisconnectedFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getBlockDeviceTemplateGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetBlockDeviceTemplateGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getBlockDevices", func() { + It("API Call Test", func() { + _, err := sl_service.GetBlockDevices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getBootMode", func() { + It("API Call Test", func() { + _, err := sl_service.GetBootMode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getBootOrder", func() { + It("API Call Test", func() { + _, err := sl_service.GetBootOrder() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getBrowserConsoleAccessLogs", func() { + It("API Call Test", func() { + _, err := sl_service.GetBrowserConsoleAccessLogs() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getConsoleAccessLog", func() { + It("API Call Test", func() { + _, err := sl_service.GetConsoleAccessLog() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getConsoleData", func() { + It("API Call Test", func() { + _, err := sl_service.GetConsoleData() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getConsoleIpAddressFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetConsoleIpAddressFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getConsoleIpAddressRecord", func() { + It("API Call Test", func() { + _, err := sl_service.GetConsoleIpAddressRecord() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getContinuousDataProtectionSoftwareComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetContinuousDataProtectionSoftwareComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getControlPanel", func() { + It("API Call Test", func() { + _, err := sl_service.GetControlPanel() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getCoreRestrictedOperatingSystemPrice", func() { + It("API Call Test", func() { + _, err := sl_service.GetCoreRestrictedOperatingSystemPrice() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getCpuMetricDataByDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetCpuMetricDataByDate(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getCpuMetricImage", func() { + It("API Call Test", func() { + _, err := sl_service.GetCpuMetricImage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getCpuMetricImageByDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetCpuMetricImageByDate(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getCreateObjectOptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetCreateObjectOptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getCurrentBandwidthSummary", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBandwidthSummary() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getCurrentBillingDetail", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBillingDetail() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getCurrentBillingTotal", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentBillingTotal() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getDatacenter", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getDedicatedHost", func() { + It("API Call Test", func() { + _, err := sl_service.GetDedicatedHost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getDeviceStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetDeviceStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getDriveRetentionItemPrice", func() { + It("API Call Test", func() { + _, err := sl_service.GetDriveRetentionItemPrice() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getEvaultNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetEvaultNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getFirewallProtectableSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallProtectableSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getFirewallServiceComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirewallServiceComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getFirstAvailableBlockDevicePosition", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirstAvailableBlockDevicePosition() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getFrontendNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getFrontendRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetFrontendRouters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getGlobalIdentifier", func() { + It("API Call Test", func() { + _, err := sl_service.GetGlobalIdentifier() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getGpuCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetGpuCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getGpuType", func() { + It("API Call Test", func() { + _, err := sl_service.GetGpuType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getGuestBootParameter", func() { + It("API Call Test", func() { + _, err := sl_service.GetGuestBootParameter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getHardwareFunctionDescription", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardwareFunctionDescription() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getHost", func() { + It("API Call Test", func() { + _, err := sl_service.GetHost() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getHostIpsSoftwareComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetHostIpsSoftwareComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getHourlyBillingFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHourlyBillingFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getInboundPrivateBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetInboundPrivateBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getInboundPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetInboundPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getInternalTagReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetInternalTagReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getIsoBootImage", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsoBootImage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getItemPricesFromSoftwareDescriptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetItemPricesFromSoftwareDescriptions(nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getLastKnownPowerState", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastKnownPowerState() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getLastOperatingSystemReload", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastOperatingSystemReload() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getLastTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.GetLastTransaction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getLatestNetworkMonitorIncident", func() { + It("API Call Test", func() { + _, err := sl_service.GetLatestNetworkMonitorIncident() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getLocalDiskFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocalDiskFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getLocation", func() { + It("API Call Test", func() { + _, err := sl_service.GetLocation() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getManagedResourceFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetManagedResourceFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getMemoryMetricDataByDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetMemoryMetricDataByDate(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getMemoryMetricImage", func() { + It("API Call Test", func() { + _, err := sl_service.GetMemoryMetricImage(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getMemoryMetricImageByDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetMemoryMetricImageByDate(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getMetricTrackingObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getMetricTrackingObjectId", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObjectId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getMonitoringRobot", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringRobot() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getMonitoringServiceComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringServiceComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getMonitoringServiceEligibilityFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringServiceEligibilityFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getMonitoringUserNotification", func() { + It("API Call Test", func() { + _, err := sl_service.GetMonitoringUserNotification() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getNetworkComponentFirewallProtectableIpAddresses", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponentFirewallProtectableIpAddresses() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getNetworkComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getNetworkMonitorIncidents", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitorIncidents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getNetworkMonitors", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkMonitors() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkStorage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getNetworkVlans", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlans() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getOpenCancellationTicket", func() { + It("API Call Test", func() { + _, err := sl_service.GetOpenCancellationTicket() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getOperatingSystem", func() { + It("API Call Test", func() { + _, err := sl_service.GetOperatingSystem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getOperatingSystemReferenceCode", func() { + It("API Call Test", func() { + _, err := sl_service.GetOperatingSystemReferenceCode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getOrderTemplate", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderTemplate(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getOrderedPackageId", func() { + It("API Call Test", func() { + _, err := sl_service.GetOrderedPackageId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getOutboundPrivateBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetOutboundPrivateBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getOutboundPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetOutboundPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getOverBandwidthAllocationFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetOverBandwidthAllocationFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getPendingMaintenanceActions", func() { + It("API Call Test", func() { + _, err := sl_service.GetPendingMaintenanceActions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getPendingMigrationFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetPendingMigrationFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getPlacementGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetPlacementGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getPowerState", func() { + It("API Call Test", func() { + _, err := sl_service.GetPowerState() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getPrimaryBackendIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryBackendIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getPrimaryBackendNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryBackendNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getPrimaryIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getPrimaryNetworkComponent", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryNetworkComponent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getPrivateNetworkOnlyFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrivateNetworkOnlyFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getProjectedOverBandwidthAllocationFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetProjectedOverBandwidthAllocationFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getProjectedPublicBandwidthUsage", func() { + It("API Call Test", func() { + _, err := sl_service.GetProjectedPublicBandwidthUsage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getProvisionDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetProvisionDate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getRecentEvents", func() { + It("API Call Test", func() { + _, err := sl_service.GetRecentEvents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getRecentMetricData", func() { + It("API Call Test", func() { + _, err := sl_service.GetRecentMetricData(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getRegionalGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetRegionalGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getRegionalInternetRegistry", func() { + It("API Call Test", func() { + _, err := sl_service.GetRegionalInternetRegistry() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getReservedCapacityGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetReservedCapacityGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getReservedCapacityGroupFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetReservedCapacityGroupFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getReservedCapacityGroupInstance", func() { + It("API Call Test", func() { + _, err := sl_service.GetReservedCapacityGroupInstance() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getReverseDomainRecords", func() { + It("API Call Test", func() { + _, err := sl_service.GetReverseDomainRecords() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getSecurityScanRequests", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecurityScanRequests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getServerRoom", func() { + It("API Call Test", func() { + _, err := sl_service.GetServerRoom() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getSoftwareComponents", func() { + It("API Call Test", func() { + _, err := sl_service.GetSoftwareComponents() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getSshKeys", func() { + It("API Call Test", func() { + _, err := sl_service.GetSshKeys() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getTagReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetTagReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getTransientGuestFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetTransientGuestFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getTransientWebhookURI", func() { + It("API Call Test", func() { + _, err := sl_service.GetTransientWebhookURI() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getUpgradeItemPrices", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeItemPrices(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getUpgradeRequest", func() { + It("API Call Test", func() { + _, err := sl_service.GetUpgradeRequest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getUserData", func() { + It("API Call Test", func() { + _, err := sl_service.GetUserData() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getUsers", func() { + It("API Call Test", func() { + _, err := sl_service.GetUsers() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getValidBlockDeviceTemplateGroups", func() { + It("API Call Test", func() { + _, err := sl_service.GetValidBlockDeviceTemplateGroups(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getVirtualRack", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualRack() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getVirtualRackId", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualRackId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::getVirtualRackName", func() { + It("API Call Test", func() { + _, err := sl_service.GetVirtualRackName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::isBackendPingable", func() { + It("API Call Test", func() { + _, err := sl_service.IsBackendPingable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::isCloudInit", func() { + It("API Call Test", func() { + _, err := sl_service.IsCloudInit() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::isPingable", func() { + It("API Call Test", func() { + _, err := sl_service.IsPingable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::isolateInstanceForDestructiveAction", func() { + It("API Call Test", func() { + err := sl_service.IsolateInstanceForDestructiveAction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::migrate", func() { + It("API Call Test", func() { + _, err := sl_service.Migrate() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::migrateDedicatedHost", func() { + It("API Call Test", func() { + err := sl_service.MigrateDedicatedHost(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::mountIsoImage", func() { + It("API Call Test", func() { + _, err := sl_service.MountIsoImage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::pause", func() { + It("API Call Test", func() { + _, err := sl_service.Pause() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::powerCycle", func() { + It("API Call Test", func() { + _, err := sl_service.PowerCycle() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::powerOff", func() { + It("API Call Test", func() { + _, err := sl_service.PowerOff() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::powerOffSoft", func() { + It("API Call Test", func() { + _, err := sl_service.PowerOffSoft() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::powerOn", func() { + It("API Call Test", func() { + _, err := sl_service.PowerOn() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::rebootDefault", func() { + It("API Call Test", func() { + _, err := sl_service.RebootDefault() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::rebootHard", func() { + It("API Call Test", func() { + _, err := sl_service.RebootHard() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::rebootSoft", func() { + It("API Call Test", func() { + _, err := sl_service.RebootSoft() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::reloadCurrentOperatingSystemConfiguration", func() { + It("API Call Test", func() { + _, err := sl_service.ReloadCurrentOperatingSystemConfiguration() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::reloadOperatingSystem", func() { + It("API Call Test", func() { + _, err := sl_service.ReloadOperatingSystem(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::removeAccessToNetworkStorage", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToNetworkStorage(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::removeAccessToNetworkStorageList", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveAccessToNetworkStorageList(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::removeTags", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveTags(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::resume", func() { + It("API Call Test", func() { + _, err := sl_service.Resume() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::sendTestReclaimScheduledAlert", func() { + It("API Call Test", func() { + err := sl_service.SendTestReclaimScheduledAlert() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::setPrivateNetworkInterfaceSpeed", func() { + It("API Call Test", func() { + _, err := sl_service.SetPrivateNetworkInterfaceSpeed(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::setPublicNetworkInterfaceSpeed", func() { + It("API Call Test", func() { + _, err := sl_service.SetPublicNetworkInterfaceSpeed(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::setTags", func() { + It("API Call Test", func() { + _, err := sl_service.SetTags(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::setTransientWebhook", func() { + It("API Call Test", func() { + err := sl_service.SetTransientWebhook(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::setUserMetadata", func() { + It("API Call Test", func() { + _, err := sl_service.SetUserMetadata(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::shutdownPrivatePort", func() { + It("API Call Test", func() { + _, err := sl_service.ShutdownPrivatePort() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::shutdownPublicPort", func() { + It("API Call Test", func() { + _, err := sl_service.ShutdownPublicPort() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::unmountIsoImage", func() { + It("API Call Test", func() { + _, err := sl_service.UnmountIsoImage() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::validateImageTemplate", func() { + It("API Call Test", func() { + _, err := sl_service.ValidateImageTemplate(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest::verifyReloadOperatingSystem", func() { + It("API Call Test", func() { + _, err := sl_service.VerifyReloadOperatingSystem(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Virtual_Guest_Block_Device_Template_Group service", func() { + var sl_service services.Virtual_Guest_Block_Device_Template_Group + BeforeEach(func() { + sl_service = services.GetVirtualGuestBlockDeviceTemplateGroupService(slsession) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::addByolAttribute", func() { + It("API Call Test", func() { + _, err := sl_service.AddByolAttribute() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::addCloudInitAttribute", func() { + It("API Call Test", func() { + _, err := sl_service.AddCloudInitAttribute() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::addLocations", func() { + It("API Call Test", func() { + _, err := sl_service.AddLocations(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::addSupportedBootMode", func() { + It("API Call Test", func() { + _, err := sl_service.AddSupportedBootMode(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::copyToExternalSource", func() { + It("API Call Test", func() { + _, err := sl_service.CopyToExternalSource(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::copyToIcos", func() { + It("API Call Test", func() { + _, err := sl_service.CopyToIcos(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::createFromExternalSource", func() { + It("API Call Test", func() { + _, err := sl_service.CreateFromExternalSource(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::createFromIcos", func() { + It("API Call Test", func() { + _, err := sl_service.CreateFromIcos(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::createPublicArchiveTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.CreatePublicArchiveTransaction(nil, nil, nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::deleteByolAttribute", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteByolAttribute() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::deleteCloudInitAttribute", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteCloudInitAttribute() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::denySharingAccess", func() { + It("API Call Test", func() { + _, err := sl_service.DenySharingAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::findGcImagesByCurrentUser", func() { + It("API Call Test", func() { + _, err := sl_service.FindGcImagesByCurrentUser(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getAccountContacts", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountContacts() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getAccountReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccountReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getAllAvailableCompatiblePlatformNames", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllAvailableCompatiblePlatformNames() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getBlockDevices", func() { + It("API Call Test", func() { + _, err := sl_service.GetBlockDevices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getBlockDevicesDiskSpaceTotal", func() { + It("API Call Test", func() { + _, err := sl_service.GetBlockDevicesDiskSpaceTotal() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getBootMode", func() { + It("API Call Test", func() { + _, err := sl_service.GetBootMode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getByolFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetByolFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getChildren", func() { + It("API Call Test", func() { + _, err := sl_service.GetChildren() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getCurrentCompatiblePlatformNames", func() { + It("API Call Test", func() { + _, err := sl_service.GetCurrentCompatiblePlatformNames() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getDatacenter", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getDatacenters", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenters() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getDefaultBootMode", func() { + It("API Call Test", func() { + _, err := sl_service.GetDefaultBootMode() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getEncryptionAttributes", func() { + It("API Call Test", func() { + _, err := sl_service.GetEncryptionAttributes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getFirstChild", func() { + It("API Call Test", func() { + _, err := sl_service.GetFirstChild() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getFlexImageFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetFlexImageFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getGlobalIdentifier", func() { + It("API Call Test", func() { + _, err := sl_service.GetGlobalIdentifier() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getImageType", func() { + It("API Call Test", func() { + _, err := sl_service.GetImageType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getImageTypeKeyName", func() { + It("API Call Test", func() { + _, err := sl_service.GetImageTypeKeyName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getNextGenFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextGenFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getParent", func() { + It("API Call Test", func() { + _, err := sl_service.GetParent() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getPublicCustomerOwnedImages", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicCustomerOwnedImages() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getPublicImages", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicImages() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getRegion", func() { + It("API Call Test", func() { + _, err := sl_service.GetRegion() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getRegions", func() { + It("API Call Test", func() { + _, err := sl_service.GetRegions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getRiasAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetRiasAccount(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getSshKeys", func() { + It("API Call Test", func() { + _, err := sl_service.GetSshKeys() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getStatus", func() { + It("API Call Test", func() { + _, err := sl_service.GetStatus() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getStorageLocations", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageLocations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getStorageRepository", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageRepository() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getSupportedBootModes", func() { + It("API Call Test", func() { + _, err := sl_service.GetSupportedBootModes() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getTagReferences", func() { + It("API Call Test", func() { + _, err := sl_service.GetTagReferences() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getTemplateDataCenterName", func() { + It("API Call Test", func() { + _, err := sl_service.GetTemplateDataCenterName() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getTransaction", func() { + It("API Call Test", func() { + _, err := sl_service.GetTransaction() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::getVhdImportSoftwareDescriptions", func() { + It("API Call Test", func() { + _, err := sl_service.GetVhdImportSoftwareDescriptions() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::isByol", func() { + It("API Call Test", func() { + _, err := sl_service.IsByol() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::isByolCapableOperatingSystem", func() { + It("API Call Test", func() { + _, err := sl_service.IsByolCapableOperatingSystem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::isByolOnlyOperatingSystem", func() { + It("API Call Test", func() { + _, err := sl_service.IsByolOnlyOperatingSystem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::isCloudInit", func() { + It("API Call Test", func() { + _, err := sl_service.IsCloudInit() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::isCloudInitOnlyOperatingSystem", func() { + It("API Call Test", func() { + _, err := sl_service.IsCloudInitOnlyOperatingSystem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::isEncrypted", func() { + It("API Call Test", func() { + _, err := sl_service.IsEncrypted() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::permitSharingAccess", func() { + It("API Call Test", func() { + _, err := sl_service.PermitSharingAccess(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::removeCompatiblePlatforms", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveCompatiblePlatforms(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::removeLocations", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveLocations(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::removeSupportedBootMode", func() { + It("API Call Test", func() { + _, err := sl_service.RemoveSupportedBootMode(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::setAvailableLocations", func() { + It("API Call Test", func() { + _, err := sl_service.SetAvailableLocations(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::setBootMode", func() { + It("API Call Test", func() { + _, err := sl_service.SetBootMode(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::setCompatiblePlatforms", func() { + It("API Call Test", func() { + _, err := sl_service.SetCompatiblePlatforms(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Block_Device_Template_Group::setTags", func() { + It("API Call Test", func() { + _, err := sl_service.SetTags(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Virtual_Guest_Boot_Parameter service", func() { + var sl_service services.Virtual_Guest_Boot_Parameter + BeforeEach(func() { + sl_service = services.GetVirtualGuestBootParameterService(slsession) + }) + Context("SoftLayer_Virtual_Guest_Boot_Parameter Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Virtual_Guest_Boot_Parameter Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Virtual_Guest_Boot_Parameter::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Boot_Parameter::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Boot_Parameter::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Boot_Parameter::getGuest", func() { + It("API Call Test", func() { + _, err := sl_service.GetGuest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Boot_Parameter::getGuestBootParameterType", func() { + It("API Call Test", func() { + _, err := sl_service.GetGuestBootParameterType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Boot_Parameter::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Virtual_Guest_Boot_Parameter_Type service", func() { + var sl_service services.Virtual_Guest_Boot_Parameter_Type + BeforeEach(func() { + sl_service = services.GetVirtualGuestBootParameterTypeService(slsession) + }) + Context("SoftLayer_Virtual_Guest_Boot_Parameter_Type Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Virtual_Guest_Boot_Parameter_Type Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Virtual_Guest_Boot_Parameter_Type::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Boot_Parameter_Type::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Virtual_Guest_Network_Component service", func() { + var sl_service services.Virtual_Guest_Network_Component + BeforeEach(func() { + sl_service = services.GetVirtualGuestNetworkComponentService(slsession) + }) + Context("SoftLayer_Virtual_Guest_Network_Component Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Virtual_Guest_Network_Component Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Virtual_Guest_Network_Component::disable", func() { + It("API Call Test", func() { + _, err := sl_service.Disable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Network_Component::enable", func() { + It("API Call Test", func() { + _, err := sl_service.Enable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Network_Component::getGuest", func() { + It("API Call Test", func() { + _, err := sl_service.GetGuest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Network_Component::getHighAvailabilityFirewallFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetHighAvailabilityFirewallFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Network_Component::getIcpBinding", func() { + It("API Call Test", func() { + _, err := sl_service.GetIcpBinding() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Network_Component::getIpAddressBindings", func() { + It("API Call Test", func() { + _, err := sl_service.GetIpAddressBindings() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Network_Component::getNetworkComponentFirewall", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkComponentFirewall() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Network_Component::getNetworkVlan", func() { + It("API Call Test", func() { + _, err := sl_service.GetNetworkVlan() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Network_Component::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Network_Component::getPrimaryIpAddress", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryIpAddress() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Network_Component::getPrimaryIpAddressRecord", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryIpAddressRecord() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Network_Component::getPrimarySubnet", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimarySubnet() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Network_Component::getPrimaryVersion6IpAddressRecord", func() { + It("API Call Test", func() { + _, err := sl_service.GetPrimaryVersion6IpAddressRecord() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Network_Component::getRouter", func() { + It("API Call Test", func() { + _, err := sl_service.GetRouter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Network_Component::getSecurityGroupBindings", func() { + It("API Call Test", func() { + _, err := sl_service.GetSecurityGroupBindings() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Network_Component::getSubnets", func() { + It("API Call Test", func() { + _, err := sl_service.GetSubnets() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Network_Component::isPingable", func() { + It("API Call Test", func() { + _, err := sl_service.IsPingable() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Guest_Network_Component::securityGroupsReady", func() { + It("API Call Test", func() { + _, err := sl_service.SecurityGroupsReady() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Virtual_Host service", func() { + var sl_service services.Virtual_Host + BeforeEach(func() { + sl_service = services.GetVirtualHostService(slsession) + }) + Context("SoftLayer_Virtual_Host Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Virtual_Host Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Virtual_Host::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Host::getHardware", func() { + It("API Call Test", func() { + _, err := sl_service.GetHardware() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Host::getMetricTrackingObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Host::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Host::getPciDevices", func() { + It("API Call Test", func() { + _, err := sl_service.GetPciDevices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Virtual_PlacementGroup service", func() { + var sl_service services.Virtual_PlacementGroup + BeforeEach(func() { + sl_service = services.GetVirtualPlacementGroupService(slsession) + }) + Context("SoftLayer_Virtual_PlacementGroup Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Virtual_PlacementGroup Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Virtual_PlacementGroup::createObject", func() { + It("API Call Test", func() { + _, err := sl_service.CreateObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_PlacementGroup::deleteObject", func() { + It("API Call Test", func() { + _, err := sl_service.DeleteObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_PlacementGroup::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_PlacementGroup::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_PlacementGroup::getAvailableRouters", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableRouters(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_PlacementGroup::getBackendRouter", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendRouter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_PlacementGroup::getGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_PlacementGroup::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_PlacementGroup::getRule", func() { + It("API Call Test", func() { + _, err := sl_service.GetRule() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Virtual_PlacementGroup_Rule service", func() { + var sl_service services.Virtual_PlacementGroup_Rule + BeforeEach(func() { + sl_service = services.GetVirtualPlacementGroupRuleService(slsession) + }) + Context("SoftLayer_Virtual_PlacementGroup_Rule Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Virtual_PlacementGroup_Rule Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Virtual_PlacementGroup_Rule::getAllObjects", func() { + It("API Call Test", func() { + _, err := sl_service.GetAllObjects() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_PlacementGroup_Rule::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Virtual_ReservedCapacityGroup service", func() { + var sl_service services.Virtual_ReservedCapacityGroup + BeforeEach(func() { + sl_service = services.GetVirtualReservedCapacityGroupService(slsession) + }) + Context("SoftLayer_Virtual_ReservedCapacityGroup Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Virtual_ReservedCapacityGroup Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Virtual_ReservedCapacityGroup::editObject", func() { + It("API Call Test", func() { + _, err := sl_service.EditObject(nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_ReservedCapacityGroup::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_ReservedCapacityGroup::getAvailableInstances", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableInstances() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_ReservedCapacityGroup::getBackendRouter", func() { + It("API Call Test", func() { + _, err := sl_service.GetBackendRouter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_ReservedCapacityGroup::getInstances", func() { + It("API Call Test", func() { + _, err := sl_service.GetInstances() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_ReservedCapacityGroup::getInstancesCount", func() { + It("API Call Test", func() { + _, err := sl_service.GetInstancesCount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_ReservedCapacityGroup::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_ReservedCapacityGroup::getOccupiedInstances", func() { + It("API Call Test", func() { + _, err := sl_service.GetOccupiedInstances() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Virtual_ReservedCapacityGroup_Instance service", func() { + var sl_service services.Virtual_ReservedCapacityGroup_Instance + BeforeEach(func() { + sl_service = services.GetVirtualReservedCapacityGroupInstanceService(slsession) + }) + Context("SoftLayer_Virtual_ReservedCapacityGroup_Instance Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Virtual_ReservedCapacityGroup_Instance Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Virtual_ReservedCapacityGroup_Instance::getAvailableFlag", func() { + It("API Call Test", func() { + _, err := sl_service.GetAvailableFlag() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_ReservedCapacityGroup_Instance::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_ReservedCapacityGroup_Instance::getGuest", func() { + It("API Call Test", func() { + _, err := sl_service.GetGuest() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_ReservedCapacityGroup_Instance::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_ReservedCapacityGroup_Instance::getReservedCapacityGroup", func() { + It("API Call Test", func() { + _, err := sl_service.GetReservedCapacityGroup() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + + Context("Testing SoftLayer_Virtual_Storage_Repository service", func() { + var sl_service services.Virtual_Storage_Repository + BeforeEach(func() { + sl_service = services.GetVirtualStorageRepositoryService(slsession) + }) + Context("SoftLayer_Virtual_Storage_Repository Set Options", func() { + It("Set Options properly", func() { + t_id := 1234 + t_filter := "{'testFilter':{'test'}}" + t_limit := 100 + t_offset := 5 + sl_service = sl_service.Id(t_id).Filter(t_filter).Offset(t_offset).Limit(t_limit) + Expect(sl_service.Options.Id).To(HaveValue(Equal(t_id))) + Expect(sl_service.Options.Filter).To(HaveValue(Equal(t_filter))) + Expect(sl_service.Options.Limit).To(HaveValue(Equal(t_limit))) + Expect(sl_service.Options.Offset).To(HaveValue(Equal(t_offset))) + }) + }) + Context("SoftLayer_Virtual_Storage_Repository Set Mask", func() { + It("Set Options properly", func() { + t_mask1 := "mask[test,test2]" + sl_service = sl_service.Mask(t_mask1) + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + // Mask("test,test2") should set the mask to be "mask[test,test2]" aka t_mask1 + sl_service = sl_service.Mask("test,test2") + Expect(sl_service.Options.Mask).To(HaveValue(Equal(t_mask1))) + }) + }) + Context("SoftLayer_Virtual_Storage_Repository::getAccount", func() { + It("API Call Test", func() { + _, err := sl_service.GetAccount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Storage_Repository::getArchiveDiskUsageRatePerGb", func() { + It("API Call Test", func() { + _, err := sl_service.GetArchiveDiskUsageRatePerGb() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Storage_Repository::getAverageDiskUsageMetricDataFromInfluxByDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageDiskUsageMetricDataFromInfluxByDate(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Storage_Repository::getAverageUsageMetricDataByDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetAverageUsageMetricDataByDate(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Storage_Repository::getBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Storage_Repository::getDatacenter", func() { + It("API Call Test", func() { + _, err := sl_service.GetDatacenter() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Storage_Repository::getDiskImages", func() { + It("API Call Test", func() { + _, err := sl_service.GetDiskImages() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Storage_Repository::getGuests", func() { + It("API Call Test", func() { + _, err := sl_service.GetGuests() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Storage_Repository::getMetricTrackingObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetMetricTrackingObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Storage_Repository::getObject", func() { + It("API Call Test", func() { + _, err := sl_service.GetObject() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Storage_Repository::getPublicImageBillingItem", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicImageBillingItem() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Storage_Repository::getPublicImageDiskUsageRatePerGb", func() { + It("API Call Test", func() { + _, err := sl_service.GetPublicImageDiskUsageRatePerGb() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Storage_Repository::getStorageLocations", func() { + It("API Call Test", func() { + _, err := sl_service.GetStorageLocations() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Storage_Repository::getType", func() { + It("API Call Test", func() { + _, err := sl_service.GetType() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Storage_Repository::getUsageMetricDataByDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetUsageMetricDataByDate(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + Context("SoftLayer_Virtual_Storage_Repository::getUsageMetricImageByDate", func() { + It("API Call Test", func() { + _, err := sl_service.GetUsageMetricImageByDate(nil, nil) + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) + }) + +}) diff --git a/services/workload.go b/services/workload.go deleted file mode 100644 index 245bdd6..0000000 --- a/services/workload.go +++ /dev/null @@ -1,460 +0,0 @@ -/** - * Copyright 2016 IBM Corp. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ - -package services - -import ( - "fmt" - "strings" - - "github.com/softlayer/softlayer-go/datatypes" - "github.com/softlayer/softlayer-go/session" - "github.com/softlayer/softlayer-go/sl" -) - -// no documentation yet -type Workload_Citrix_Client struct { - Session *session.Session - Options sl.Options -} - -// GetWorkloadCitrixClientService returns an instance of the Workload_Citrix_Client SoftLayer service -func GetWorkloadCitrixClientService(sess *session.Session) Workload_Citrix_Client { - return Workload_Citrix_Client{Session: sess} -} - -func (r Workload_Citrix_Client) Id(id int) Workload_Citrix_Client { - r.Options.Id = &id - return r -} - -func (r Workload_Citrix_Client) Mask(mask string) Workload_Citrix_Client { - if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { - mask = fmt.Sprintf("mask[%s]", mask) - } - - r.Options.Mask = mask - return r -} - -func (r Workload_Citrix_Client) Filter(filter string) Workload_Citrix_Client { - r.Options.Filter = filter - return r -} - -func (r Workload_Citrix_Client) Limit(limit int) Workload_Citrix_Client { - r.Options.Limit = &limit - return r -} - -func (r Workload_Citrix_Client) Offset(offset int) Workload_Citrix_Client { - r.Options.Offset = &offset - return r -} - -// no documentation yet -func (r Workload_Citrix_Client) CreateResourceLocation(citrixCredentials *datatypes.Workload_Citrix_Request) (resp datatypes.Workload_Citrix_Client_Response, err error) { - params := []interface{}{ - citrixCredentials, - } - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Client", "createResourceLocation", params, &r.Options, &resp) - return -} - -// no documentation yet -func (r Workload_Citrix_Client) GetResourceLocations(citrixCredentials *datatypes.Workload_Citrix_Request) (resp datatypes.Workload_Citrix_Client_Response, err error) { - params := []interface{}{ - citrixCredentials, - } - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Client", "getResourceLocations", params, &r.Options, &resp) - return -} - -// no documentation yet -func (r Workload_Citrix_Client) ValidateCitrixCredentials(citrixCredentials *datatypes.Workload_Citrix_Request) (resp datatypes.Workload_Citrix_Client_Response, err error) { - params := []interface{}{ - citrixCredentials, - } - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Client", "validateCitrixCredentials", params, &r.Options, &resp) - return -} - -// no documentation yet -type Workload_Citrix_Deployment struct { - Session *session.Session - Options sl.Options -} - -// GetWorkloadCitrixDeploymentService returns an instance of the Workload_Citrix_Deployment SoftLayer service -func GetWorkloadCitrixDeploymentService(sess *session.Session) Workload_Citrix_Deployment { - return Workload_Citrix_Deployment{Session: sess} -} - -func (r Workload_Citrix_Deployment) Id(id int) Workload_Citrix_Deployment { - r.Options.Id = &id - return r -} - -func (r Workload_Citrix_Deployment) Mask(mask string) Workload_Citrix_Deployment { - if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { - mask = fmt.Sprintf("mask[%s]", mask) - } - - r.Options.Mask = mask - return r -} - -func (r Workload_Citrix_Deployment) Filter(filter string) Workload_Citrix_Deployment { - r.Options.Filter = filter - return r -} - -func (r Workload_Citrix_Deployment) Limit(limit int) Workload_Citrix_Deployment { - r.Options.Limit = &limit - return r -} - -func (r Workload_Citrix_Deployment) Offset(offset int) Workload_Citrix_Deployment { - r.Options.Offset = &offset - return r -} - -// Creates a new Citrix Virtual Apps and Desktops deployment. -func (r Workload_Citrix_Deployment) CreateObject(templateObject *datatypes.Workload_Citrix_Deployment) (resp datatypes.Workload_Citrix_Deployment, err error) { - params := []interface{}{ - templateObject, - } - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Deployment", "createObject", params, &r.Options, &resp) - return -} - -// Retrieve The [[SoftLayer_Account]] to which the deployment belongs. -func (r Workload_Citrix_Deployment) GetAccount() (resp datatypes.Account, err error) { - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Deployment", "getAccount", nil, &r.Options, &resp) - return -} - -// Get all Citrix Virtual Apps And Desktop deployments. -func (r Workload_Citrix_Deployment) GetAllObjects() (resp []datatypes.Workload_Citrix_Deployment, err error) { - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Deployment", "getAllObjects", nil, &r.Options, &resp) - return -} - -// Returns a response object [[SoftLayer_Workload_Citrix_Deployment_Response]] which represents the CVAD deployment [[SoftLayer_Workload_Citrix_Deployment]] together with all the resources ordered under the CVAD order. -// -// The deployment resources are represented by object [[SoftLayer_Workload_Citrix_Deployment_Resource_Response]]. -func (r Workload_Citrix_Deployment) GetDeployment(deploymentId *int) (resp datatypes.Workload_Citrix_Deployment_Response, err error) { - params := []interface{}{ - deploymentId, - } - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Deployment", "getDeployment", params, &r.Options, &resp) - return -} - -// no documentation yet -func (r Workload_Citrix_Deployment) GetObject() (resp datatypes.Workload_Citrix_Deployment, err error) { - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Deployment", "getObject", nil, &r.Options, &resp) - return -} - -// Retrieve It contains a collection of items under the CVAD deployment. -func (r Workload_Citrix_Deployment) GetResources() (resp []datatypes.Workload_Citrix_Deployment_Resource, err error) { - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Deployment", "getResources", nil, &r.Options, &resp) - return -} - -// Retrieve Current Status of the CVAD deployment. -func (r Workload_Citrix_Deployment) GetStatus() (resp datatypes.Workload_Citrix_Deployment_Status, err error) { - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Deployment", "getStatus", nil, &r.Options, &resp) - return -} - -// Retrieve It shows if the deployment is for Citrix Hypervisor or VMware. -func (r Workload_Citrix_Deployment) GetType() (resp datatypes.Workload_Citrix_Deployment_Type, err error) { - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Deployment", "getType", nil, &r.Options, &resp) - return -} - -// Retrieve It is the [[SoftLayer_User_Customer]] who placed the order for CVAD. -func (r Workload_Citrix_Deployment) GetUser() (resp datatypes.User_Customer, err error) { - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Deployment", "getUser", nil, &r.Options, &resp) - return -} - -// Retrieve It is the VLAN resource for the CVAD deployment. -func (r Workload_Citrix_Deployment) GetVlan() (resp datatypes.Network_Vlan, err error) { - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Deployment", "getVlan", nil, &r.Options, &resp) - return -} - -// The SoftLayer_Workload_Citrix_Deployment_Resource type contains the information of the resource such as the Deployment ID, resource's Billing Item ID, Order ID and Role of the resource in the CVAD deployment. -type Workload_Citrix_Deployment_Resource struct { - Session *session.Session - Options sl.Options -} - -// GetWorkloadCitrixDeploymentResourceService returns an instance of the Workload_Citrix_Deployment_Resource SoftLayer service -func GetWorkloadCitrixDeploymentResourceService(sess *session.Session) Workload_Citrix_Deployment_Resource { - return Workload_Citrix_Deployment_Resource{Session: sess} -} - -func (r Workload_Citrix_Deployment_Resource) Id(id int) Workload_Citrix_Deployment_Resource { - r.Options.Id = &id - return r -} - -func (r Workload_Citrix_Deployment_Resource) Mask(mask string) Workload_Citrix_Deployment_Resource { - if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { - mask = fmt.Sprintf("mask[%s]", mask) - } - - r.Options.Mask = mask - return r -} - -func (r Workload_Citrix_Deployment_Resource) Filter(filter string) Workload_Citrix_Deployment_Resource { - r.Options.Filter = filter - return r -} - -func (r Workload_Citrix_Deployment_Resource) Limit(limit int) Workload_Citrix_Deployment_Resource { - r.Options.Limit = &limit - return r -} - -func (r Workload_Citrix_Deployment_Resource) Offset(offset int) Workload_Citrix_Deployment_Resource { - r.Options.Offset = &offset - return r -} - -// This will add the resource into CVAD deployment. -func (r Workload_Citrix_Deployment_Resource) CreateObject(templateObject *datatypes.Workload_Citrix_Deployment_Resource) (resp datatypes.Workload_Citrix_Deployment_Resource, err error) { - params := []interface{}{ - templateObject, - } - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Deployment_Resource", "createObject", params, &r.Options, &resp) - return -} - -// Get all the resources of Citrix Deployments. -func (r Workload_Citrix_Deployment_Resource) GetAllObjects() (resp []datatypes.Workload_Citrix_Deployment_Resource, err error) { - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Deployment_Resource", "getAllObjects", nil, &r.Options, &resp) - return -} - -// Retrieve -func (r Workload_Citrix_Deployment_Resource) GetBillingItem() (resp datatypes.Billing_Item, err error) { - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Deployment_Resource", "getBillingItem", nil, &r.Options, &resp) - return -} - -// Retrieve -func (r Workload_Citrix_Deployment_Resource) GetDeployment() (resp datatypes.Workload_Citrix_Deployment, err error) { - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Deployment_Resource", "getDeployment", nil, &r.Options, &resp) - return -} - -// getObject retrieves the SoftLayer_Workload_Citrix_Deployment_Resource object whose ID number corresponds to the ID number of the init parameter passed to the SoftLayer_Workload_Citrix_Deployment_Resource service. You can only retrieve resources that are assigned to your portal user's account. -func (r Workload_Citrix_Deployment_Resource) GetObject() (resp datatypes.Workload_Citrix_Deployment_Resource, err error) { - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Deployment_Resource", "getObject", nil, &r.Options, &resp) - return -} - -// Retrieve -func (r Workload_Citrix_Deployment_Resource) GetOrder() (resp datatypes.Billing_Order, err error) { - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Deployment_Resource", "getOrder", nil, &r.Options, &resp) - return -} - -// Retrieve -func (r Workload_Citrix_Deployment_Resource) GetRole() (resp datatypes.Workload_Citrix_Deployment_Resource_Role, err error) { - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Deployment_Resource", "getRole", nil, &r.Options, &resp) - return -} - -// no documentation yet -type Workload_Citrix_Deployment_Type struct { - Session *session.Session - Options sl.Options -} - -// GetWorkloadCitrixDeploymentTypeService returns an instance of the Workload_Citrix_Deployment_Type SoftLayer service -func GetWorkloadCitrixDeploymentTypeService(sess *session.Session) Workload_Citrix_Deployment_Type { - return Workload_Citrix_Deployment_Type{Session: sess} -} - -func (r Workload_Citrix_Deployment_Type) Id(id int) Workload_Citrix_Deployment_Type { - r.Options.Id = &id - return r -} - -func (r Workload_Citrix_Deployment_Type) Mask(mask string) Workload_Citrix_Deployment_Type { - if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { - mask = fmt.Sprintf("mask[%s]", mask) - } - - r.Options.Mask = mask - return r -} - -func (r Workload_Citrix_Deployment_Type) Filter(filter string) Workload_Citrix_Deployment_Type { - r.Options.Filter = filter - return r -} - -func (r Workload_Citrix_Deployment_Type) Limit(limit int) Workload_Citrix_Deployment_Type { - r.Options.Limit = &limit - return r -} - -func (r Workload_Citrix_Deployment_Type) Offset(offset int) Workload_Citrix_Deployment_Type { - r.Options.Offset = &offset - return r -} - -// no documentation yet -func (r Workload_Citrix_Deployment_Type) GetObject() (resp datatypes.Workload_Citrix_Deployment_Type, err error) { - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Deployment_Type", "getObject", nil, &r.Options, &resp) - return -} - -// no documentation yet -type Workload_Citrix_Workspace_Order struct { - Session *session.Session - Options sl.Options -} - -// GetWorkloadCitrixWorkspaceOrderService returns an instance of the Workload_Citrix_Workspace_Order SoftLayer service -func GetWorkloadCitrixWorkspaceOrderService(sess *session.Session) Workload_Citrix_Workspace_Order { - return Workload_Citrix_Workspace_Order{Session: sess} -} - -func (r Workload_Citrix_Workspace_Order) Id(id int) Workload_Citrix_Workspace_Order { - r.Options.Id = &id - return r -} - -func (r Workload_Citrix_Workspace_Order) Mask(mask string) Workload_Citrix_Workspace_Order { - if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { - mask = fmt.Sprintf("mask[%s]", mask) - } - - r.Options.Mask = mask - return r -} - -func (r Workload_Citrix_Workspace_Order) Filter(filter string) Workload_Citrix_Workspace_Order { - r.Options.Filter = filter - return r -} - -func (r Workload_Citrix_Workspace_Order) Limit(limit int) Workload_Citrix_Workspace_Order { - r.Options.Limit = &limit - return r -} - -func (r Workload_Citrix_Workspace_Order) Offset(offset int) Workload_Citrix_Workspace_Order { - r.Options.Offset = &offset - return r -} - -// This method will cancel the resources associated with the provided VLAN and have a 'cvad' tag reference. -func (r Workload_Citrix_Workspace_Order) CancelWorkspaceResources(vlanIdentifier *string, cancelImmediately *bool, customerNote *string) (resp datatypes.Workload_Citrix_Workspace_Response_Result, err error) { - params := []interface{}{ - vlanIdentifier, - cancelImmediately, - customerNote, - } - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Workspace_Order", "cancelWorkspaceResources", params, &r.Options, &resp) - return -} - -// This method will return the list of names of VLANs which have a 'cvad' tag reference. This name can be used with the cancelWorkspaceOrders method. -func (r Workload_Citrix_Workspace_Order) GetWorkspaceNames() (resp datatypes.Workload_Citrix_Workspace_Response_Result, err error) { - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Workspace_Order", "getWorkspaceNames", nil, &r.Options, &resp) - return -} - -// This method will return the list of resources which could be cancelled using cancelWorkspaceResources -func (r Workload_Citrix_Workspace_Order) GetWorkspaceResources(vlanIdentifier *string) (resp datatypes.Workload_Citrix_Workspace_Response_Result, err error) { - params := []interface{}{ - vlanIdentifier, - } - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Workspace_Order", "getWorkspaceResources", params, &r.Options, &resp) - return -} - -// no documentation yet -func (r Workload_Citrix_Workspace_Order) PlaceWorkspaceOrder(orderContainer *datatypes.Workload_Citrix_Workspace_Order_Container) (resp datatypes.Workload_Citrix_Workspace_Response, err error) { - params := []interface{}{ - orderContainer, - } - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Workspace_Order", "placeWorkspaceOrder", params, &r.Options, &resp) - return -} - -// This service is used to verify that an order meets all the necessary requirements to purchase Citrix Virtual Apps and Desktops running on IBM cloud. -func (r Workload_Citrix_Workspace_Order) VerifyWorkspaceOrder(orderContainer *datatypes.Workload_Citrix_Workspace_Order_Container) (resp datatypes.Workload_Citrix_Workspace_Response, err error) { - params := []interface{}{ - orderContainer, - } - err = r.Session.DoRequest("SoftLayer_Workload_Citrix_Workspace_Order", "verifyWorkspaceOrder", params, &r.Options, &resp) - return -} - -// no documentation yet -type Workload_Citrix_Workspace_Response struct { - Session *session.Session - Options sl.Options -} - -// GetWorkloadCitrixWorkspaceResponseService returns an instance of the Workload_Citrix_Workspace_Response SoftLayer service -func GetWorkloadCitrixWorkspaceResponseService(sess *session.Session) Workload_Citrix_Workspace_Response { - return Workload_Citrix_Workspace_Response{Session: sess} -} - -func (r Workload_Citrix_Workspace_Response) Id(id int) Workload_Citrix_Workspace_Response { - r.Options.Id = &id - return r -} - -func (r Workload_Citrix_Workspace_Response) Mask(mask string) Workload_Citrix_Workspace_Response { - if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) { - mask = fmt.Sprintf("mask[%s]", mask) - } - - r.Options.Mask = mask - return r -} - -func (r Workload_Citrix_Workspace_Response) Filter(filter string) Workload_Citrix_Workspace_Response { - r.Options.Filter = filter - return r -} - -func (r Workload_Citrix_Workspace_Response) Limit(limit int) Workload_Citrix_Workspace_Response { - r.Options.Limit = &limit - return r -} - -func (r Workload_Citrix_Workspace_Response) Offset(offset int) Workload_Citrix_Workspace_Response { - r.Options.Offset = &offset - return r -} diff --git a/session/session.go b/session/session.go index 5bdc87f..6b3697c 100644 --- a/session/session.go +++ b/session/session.go @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate package session @@ -46,6 +47,8 @@ const DefaultEndpoint = "https://api.softlayer.com/rest/v3.1" var retryableErrorCodes = []string{"SoftLayer_Exception_WebService_RateLimitExceeded"} // TransportHandler interface for the protocol-specific handling of API requests. +// +//counterfeiter:generate . TransportHandler type TransportHandler interface { // DoRequest is the protocol-specific handler for making API requests. // @@ -84,8 +87,8 @@ const ( DefaultRetryWait = time.Second * 3 ) -// Session stores the information required for communication with the SoftLayer -// API +// Session stores the information required for communication with the SoftLayer API + type Session struct { // UserName is the name of the SoftLayer API user UserName string @@ -139,6 +142,16 @@ type Session struct { userAgent string } +//counterfeiter:generate . SLSession +type SLSession interface { + DoRequest(service string, method string, args []interface{}, options *sl.Options, pResult interface{}) error + SetTimeout(timeout time.Duration) *Session + SetRetries(retries int) *Session + SetRetryWait(retryWait time.Duration) *Session + AppendUserAgent(agent string) + ResetUserAgent() +} + func init() { rand.Seed(time.Now().UnixNano()) } diff --git a/session/sessionfakes/fake_slsession.go b/session/sessionfakes/fake_slsession.go new file mode 100644 index 0000000..5fecfad --- /dev/null +++ b/session/sessionfakes/fake_slsession.go @@ -0,0 +1,417 @@ +// Code generated by counterfeiter. DO NOT EDIT. +package sessionfakes + +import ( + "sync" + "time" + + "github.com/softlayer/softlayer-go/session" + "github.com/softlayer/softlayer-go/sl" +) + +type FakeSLSession struct { + AppendUserAgentStub func(string) + appendUserAgentMutex sync.RWMutex + appendUserAgentArgsForCall []struct { + arg1 string + } + DoRequestStub func(string, string, []interface{}, *sl.Options, interface{}) error + doRequestMutex sync.RWMutex + doRequestArgsForCall []struct { + arg1 string + arg2 string + arg3 []interface{} + arg4 *sl.Options + arg5 interface{} + } + doRequestReturns struct { + result1 error + } + doRequestReturnsOnCall map[int]struct { + result1 error + } + ResetUserAgentStub func() + resetUserAgentMutex sync.RWMutex + resetUserAgentArgsForCall []struct { + } + SetRetriesStub func(int) *session.Session + setRetriesMutex sync.RWMutex + setRetriesArgsForCall []struct { + arg1 int + } + setRetriesReturns struct { + result1 *session.Session + } + setRetriesReturnsOnCall map[int]struct { + result1 *session.Session + } + SetRetryWaitStub func(time.Duration) *session.Session + setRetryWaitMutex sync.RWMutex + setRetryWaitArgsForCall []struct { + arg1 time.Duration + } + setRetryWaitReturns struct { + result1 *session.Session + } + setRetryWaitReturnsOnCall map[int]struct { + result1 *session.Session + } + SetTimeoutStub func(time.Duration) *session.Session + setTimeoutMutex sync.RWMutex + setTimeoutArgsForCall []struct { + arg1 time.Duration + } + setTimeoutReturns struct { + result1 *session.Session + } + setTimeoutReturnsOnCall map[int]struct { + result1 *session.Session + } + invocations map[string][][]interface{} + invocationsMutex sync.RWMutex +} + +func (fake *FakeSLSession) AppendUserAgent(arg1 string) { + fake.appendUserAgentMutex.Lock() + fake.appendUserAgentArgsForCall = append(fake.appendUserAgentArgsForCall, struct { + arg1 string + }{arg1}) + stub := fake.AppendUserAgentStub + fake.recordInvocation("AppendUserAgent", []interface{}{arg1}) + fake.appendUserAgentMutex.Unlock() + if stub != nil { + fake.AppendUserAgentStub(arg1) + } +} + +func (fake *FakeSLSession) AppendUserAgentCallCount() int { + fake.appendUserAgentMutex.RLock() + defer fake.appendUserAgentMutex.RUnlock() + return len(fake.appendUserAgentArgsForCall) +} + +func (fake *FakeSLSession) AppendUserAgentCalls(stub func(string)) { + fake.appendUserAgentMutex.Lock() + defer fake.appendUserAgentMutex.Unlock() + fake.AppendUserAgentStub = stub +} + +func (fake *FakeSLSession) AppendUserAgentArgsForCall(i int) string { + fake.appendUserAgentMutex.RLock() + defer fake.appendUserAgentMutex.RUnlock() + argsForCall := fake.appendUserAgentArgsForCall[i] + return argsForCall.arg1 +} + +func (fake *FakeSLSession) DoRequest(arg1 string, arg2 string, arg3 []interface{}, arg4 *sl.Options, arg5 interface{}) error { + var arg3Copy []interface{} + if arg3 != nil { + arg3Copy = make([]interface{}, len(arg3)) + copy(arg3Copy, arg3) + } + fake.doRequestMutex.Lock() + ret, specificReturn := fake.doRequestReturnsOnCall[len(fake.doRequestArgsForCall)] + fake.doRequestArgsForCall = append(fake.doRequestArgsForCall, struct { + arg1 string + arg2 string + arg3 []interface{} + arg4 *sl.Options + arg5 interface{} + }{arg1, arg2, arg3Copy, arg4, arg5}) + stub := fake.DoRequestStub + fakeReturns := fake.doRequestReturns + fake.recordInvocation("DoRequest", []interface{}{arg1, arg2, arg3Copy, arg4, arg5}) + fake.doRequestMutex.Unlock() + if stub != nil { + return stub(arg1, arg2, arg3, arg4, arg5) + } + if specificReturn { + return ret.result1 + } + return fakeReturns.result1 +} + +func (fake *FakeSLSession) DoRequestCallCount() int { + fake.doRequestMutex.RLock() + defer fake.doRequestMutex.RUnlock() + return len(fake.doRequestArgsForCall) +} + +func (fake *FakeSLSession) DoRequestCalls(stub func(string, string, []interface{}, *sl.Options, interface{}) error) { + fake.doRequestMutex.Lock() + defer fake.doRequestMutex.Unlock() + fake.DoRequestStub = stub +} + +func (fake *FakeSLSession) DoRequestArgsForCall(i int) (string, string, []interface{}, *sl.Options, interface{}) { + fake.doRequestMutex.RLock() + defer fake.doRequestMutex.RUnlock() + argsForCall := fake.doRequestArgsForCall[i] + return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4, argsForCall.arg5 +} + +func (fake *FakeSLSession) DoRequestReturns(result1 error) { + fake.doRequestMutex.Lock() + defer fake.doRequestMutex.Unlock() + fake.DoRequestStub = nil + fake.doRequestReturns = struct { + result1 error + }{result1} +} + +func (fake *FakeSLSession) DoRequestReturnsOnCall(i int, result1 error) { + fake.doRequestMutex.Lock() + defer fake.doRequestMutex.Unlock() + fake.DoRequestStub = nil + if fake.doRequestReturnsOnCall == nil { + fake.doRequestReturnsOnCall = make(map[int]struct { + result1 error + }) + } + fake.doRequestReturnsOnCall[i] = struct { + result1 error + }{result1} +} + +func (fake *FakeSLSession) ResetUserAgent() { + fake.resetUserAgentMutex.Lock() + fake.resetUserAgentArgsForCall = append(fake.resetUserAgentArgsForCall, struct { + }{}) + stub := fake.ResetUserAgentStub + fake.recordInvocation("ResetUserAgent", []interface{}{}) + fake.resetUserAgentMutex.Unlock() + if stub != nil { + fake.ResetUserAgentStub() + } +} + +func (fake *FakeSLSession) ResetUserAgentCallCount() int { + fake.resetUserAgentMutex.RLock() + defer fake.resetUserAgentMutex.RUnlock() + return len(fake.resetUserAgentArgsForCall) +} + +func (fake *FakeSLSession) ResetUserAgentCalls(stub func()) { + fake.resetUserAgentMutex.Lock() + defer fake.resetUserAgentMutex.Unlock() + fake.ResetUserAgentStub = stub +} + +func (fake *FakeSLSession) SetRetries(arg1 int) *session.Session { + fake.setRetriesMutex.Lock() + ret, specificReturn := fake.setRetriesReturnsOnCall[len(fake.setRetriesArgsForCall)] + fake.setRetriesArgsForCall = append(fake.setRetriesArgsForCall, struct { + arg1 int + }{arg1}) + stub := fake.SetRetriesStub + fakeReturns := fake.setRetriesReturns + fake.recordInvocation("SetRetries", []interface{}{arg1}) + fake.setRetriesMutex.Unlock() + if stub != nil { + return stub(arg1) + } + if specificReturn { + return ret.result1 + } + return fakeReturns.result1 +} + +func (fake *FakeSLSession) SetRetriesCallCount() int { + fake.setRetriesMutex.RLock() + defer fake.setRetriesMutex.RUnlock() + return len(fake.setRetriesArgsForCall) +} + +func (fake *FakeSLSession) SetRetriesCalls(stub func(int) *session.Session) { + fake.setRetriesMutex.Lock() + defer fake.setRetriesMutex.Unlock() + fake.SetRetriesStub = stub +} + +func (fake *FakeSLSession) SetRetriesArgsForCall(i int) int { + fake.setRetriesMutex.RLock() + defer fake.setRetriesMutex.RUnlock() + argsForCall := fake.setRetriesArgsForCall[i] + return argsForCall.arg1 +} + +func (fake *FakeSLSession) SetRetriesReturns(result1 *session.Session) { + fake.setRetriesMutex.Lock() + defer fake.setRetriesMutex.Unlock() + fake.SetRetriesStub = nil + fake.setRetriesReturns = struct { + result1 *session.Session + }{result1} +} + +func (fake *FakeSLSession) SetRetriesReturnsOnCall(i int, result1 *session.Session) { + fake.setRetriesMutex.Lock() + defer fake.setRetriesMutex.Unlock() + fake.SetRetriesStub = nil + if fake.setRetriesReturnsOnCall == nil { + fake.setRetriesReturnsOnCall = make(map[int]struct { + result1 *session.Session + }) + } + fake.setRetriesReturnsOnCall[i] = struct { + result1 *session.Session + }{result1} +} + +func (fake *FakeSLSession) SetRetryWait(arg1 time.Duration) *session.Session { + fake.setRetryWaitMutex.Lock() + ret, specificReturn := fake.setRetryWaitReturnsOnCall[len(fake.setRetryWaitArgsForCall)] + fake.setRetryWaitArgsForCall = append(fake.setRetryWaitArgsForCall, struct { + arg1 time.Duration + }{arg1}) + stub := fake.SetRetryWaitStub + fakeReturns := fake.setRetryWaitReturns + fake.recordInvocation("SetRetryWait", []interface{}{arg1}) + fake.setRetryWaitMutex.Unlock() + if stub != nil { + return stub(arg1) + } + if specificReturn { + return ret.result1 + } + return fakeReturns.result1 +} + +func (fake *FakeSLSession) SetRetryWaitCallCount() int { + fake.setRetryWaitMutex.RLock() + defer fake.setRetryWaitMutex.RUnlock() + return len(fake.setRetryWaitArgsForCall) +} + +func (fake *FakeSLSession) SetRetryWaitCalls(stub func(time.Duration) *session.Session) { + fake.setRetryWaitMutex.Lock() + defer fake.setRetryWaitMutex.Unlock() + fake.SetRetryWaitStub = stub +} + +func (fake *FakeSLSession) SetRetryWaitArgsForCall(i int) time.Duration { + fake.setRetryWaitMutex.RLock() + defer fake.setRetryWaitMutex.RUnlock() + argsForCall := fake.setRetryWaitArgsForCall[i] + return argsForCall.arg1 +} + +func (fake *FakeSLSession) SetRetryWaitReturns(result1 *session.Session) { + fake.setRetryWaitMutex.Lock() + defer fake.setRetryWaitMutex.Unlock() + fake.SetRetryWaitStub = nil + fake.setRetryWaitReturns = struct { + result1 *session.Session + }{result1} +} + +func (fake *FakeSLSession) SetRetryWaitReturnsOnCall(i int, result1 *session.Session) { + fake.setRetryWaitMutex.Lock() + defer fake.setRetryWaitMutex.Unlock() + fake.SetRetryWaitStub = nil + if fake.setRetryWaitReturnsOnCall == nil { + fake.setRetryWaitReturnsOnCall = make(map[int]struct { + result1 *session.Session + }) + } + fake.setRetryWaitReturnsOnCall[i] = struct { + result1 *session.Session + }{result1} +} + +func (fake *FakeSLSession) SetTimeout(arg1 time.Duration) *session.Session { + fake.setTimeoutMutex.Lock() + ret, specificReturn := fake.setTimeoutReturnsOnCall[len(fake.setTimeoutArgsForCall)] + fake.setTimeoutArgsForCall = append(fake.setTimeoutArgsForCall, struct { + arg1 time.Duration + }{arg1}) + stub := fake.SetTimeoutStub + fakeReturns := fake.setTimeoutReturns + fake.recordInvocation("SetTimeout", []interface{}{arg1}) + fake.setTimeoutMutex.Unlock() + if stub != nil { + return stub(arg1) + } + if specificReturn { + return ret.result1 + } + return fakeReturns.result1 +} + +func (fake *FakeSLSession) SetTimeoutCallCount() int { + fake.setTimeoutMutex.RLock() + defer fake.setTimeoutMutex.RUnlock() + return len(fake.setTimeoutArgsForCall) +} + +func (fake *FakeSLSession) SetTimeoutCalls(stub func(time.Duration) *session.Session) { + fake.setTimeoutMutex.Lock() + defer fake.setTimeoutMutex.Unlock() + fake.SetTimeoutStub = stub +} + +func (fake *FakeSLSession) SetTimeoutArgsForCall(i int) time.Duration { + fake.setTimeoutMutex.RLock() + defer fake.setTimeoutMutex.RUnlock() + argsForCall := fake.setTimeoutArgsForCall[i] + return argsForCall.arg1 +} + +func (fake *FakeSLSession) SetTimeoutReturns(result1 *session.Session) { + fake.setTimeoutMutex.Lock() + defer fake.setTimeoutMutex.Unlock() + fake.SetTimeoutStub = nil + fake.setTimeoutReturns = struct { + result1 *session.Session + }{result1} +} + +func (fake *FakeSLSession) SetTimeoutReturnsOnCall(i int, result1 *session.Session) { + fake.setTimeoutMutex.Lock() + defer fake.setTimeoutMutex.Unlock() + fake.SetTimeoutStub = nil + if fake.setTimeoutReturnsOnCall == nil { + fake.setTimeoutReturnsOnCall = make(map[int]struct { + result1 *session.Session + }) + } + fake.setTimeoutReturnsOnCall[i] = struct { + result1 *session.Session + }{result1} +} + +func (fake *FakeSLSession) Invocations() map[string][][]interface{} { + fake.invocationsMutex.RLock() + defer fake.invocationsMutex.RUnlock() + fake.appendUserAgentMutex.RLock() + defer fake.appendUserAgentMutex.RUnlock() + fake.doRequestMutex.RLock() + defer fake.doRequestMutex.RUnlock() + fake.resetUserAgentMutex.RLock() + defer fake.resetUserAgentMutex.RUnlock() + fake.setRetriesMutex.RLock() + defer fake.setRetriesMutex.RUnlock() + fake.setRetryWaitMutex.RLock() + defer fake.setRetryWaitMutex.RUnlock() + fake.setTimeoutMutex.RLock() + defer fake.setTimeoutMutex.RUnlock() + copiedInvocations := map[string][][]interface{}{} + for key, value := range fake.invocations { + copiedInvocations[key] = value + } + return copiedInvocations +} + +func (fake *FakeSLSession) recordInvocation(key string, args []interface{}) { + fake.invocationsMutex.Lock() + defer fake.invocationsMutex.Unlock() + if fake.invocations == nil { + fake.invocations = map[string][][]interface{}{} + } + if fake.invocations[key] == nil { + fake.invocations[key] = [][]interface{}{} + } + fake.invocations[key] = append(fake.invocations[key], args) +} + +var _ session.SLSession = new(FakeSLSession) diff --git a/session/sessionfakes/fake_transport_handler.go b/session/sessionfakes/fake_transport_handler.go index 07acdd8..b96f04f 100644 --- a/session/sessionfakes/fake_transport_handler.go +++ b/session/sessionfakes/fake_transport_handler.go @@ -45,15 +45,16 @@ func (fake *FakeTransportHandler) DoRequest(arg1 *session.Session, arg2 string, arg5 *sl.Options arg6 interface{} }{arg1, arg2, arg3, arg4Copy, arg5, arg6}) + stub := fake.DoRequestStub + fakeReturns := fake.doRequestReturns fake.recordInvocation("DoRequest", []interface{}{arg1, arg2, arg3, arg4Copy, arg5, arg6}) fake.doRequestMutex.Unlock() - if fake.DoRequestStub != nil { - return fake.DoRequestStub(arg1, arg2, arg3, arg4, arg5, arg6) + if stub != nil { + return stub(arg1, arg2, arg3, arg4, arg5, arg6) } if specificReturn { return ret.result1 } - fakeReturns := fake.doRequestReturns return fakeReturns.result1 } diff --git a/sl/version.go b/sl/version.go index b806f1b..1bc6ddf 100644 --- a/sl/version.go +++ b/sl/version.go @@ -1,22 +1,15 @@ /** - * Copyright 2016 IBM Corp. + * Copyright 2016-2024 IBM Corp. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. */ -/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */ +// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY package sl diff --git a/sldnSample.json b/sldnSample.json new file mode 100644 index 0000000..32d2ffc --- /dev/null +++ b/sldnSample.json @@ -0,0 +1,230 @@ +{ + "SoftLayer_Account": { + "base": "SoftLayer_Entity", + "name": "SoftLayer_Account", + "methods": { + "activatePartner": { + "docOverview": "This service enables a partner account that has been created but is currently inactive. This restricted service is only available for certain accounts. Please contact support for questions. ", + "maskable": true, + "name": "activatePartner", + "parameters": [ + { + "doc": "Specify the account ID that needs to be activated.", + "name": "accountId", + "type": "string" + }, + { + "doc": "Specify the hashcode for the partner", + "name": "hashCode", + "type": "string" + } + ], + "static": true, + "type": "SoftLayer_Account" + }, + "getObject": { + "doc": "getObject retrieves the SoftLayer_Account object whose ID number corresponds to the ID number of the init parameter passed to the SoftLayer_Account service. You can only retrieve the account that your portal user is assigned to. ", + "docErrorHandling": [ + { + "description": "Throw the error \"Unable to find object with id of {id}.\" if the given initialization parameter has an invalid id field.", + "exception": "SoftLayer_Exception_ObjectNotFound" + }, + { + "description": "Throw the error \"Access Denied.\" if the given initialization parameter id field is not the account id of the user making the API call.", + "exception": "SoftLayer_Exception_AccessDenied" + } + ], + "docOverview": "Retrieve a SoftLayer_Account record.", + "filterable": true, + "maskable": true, + "name": "getObject", + "static": true, + "type": "SoftLayer_Account" + } + }, + "properties": { + "abuseEmail": { + "doc": "An email address that is responsible for abuse and legal inquiries on behalf of an account. For instance, new legal and abuse tickets are sent to this address.", + "form": "relational", + "name": "abuseEmail", + "type": "string" + }, + "accountLinks": { + "form": "relational", + "name": "accountLinks", + "type": "SoftLayer_Account_Link", + "typeArray": true + } + }, + "serviceDoc": "Every SoftLayer customer has an account which is defined in the SoftLayer_Account service. SoftLayer accounts have users, hardware, and services such as storage and domains associated with them. The SoftLayer_Account service is a convenient way to obtain general information about your SoftLayer account. Use the data returned by these methods with other API services to get more detailed information about your services and to make changes to your servers and services. \n\nSoftLayer customers are unable to change their company account information in the portal or the API. If you need to change this information please open a sales ticket in our customer portal and our account management staff will assist you. ", + "typeDoc": "The SoftLayer_Account data type contains general information relating to a single SoftLayer customer account. Personal information in this type such as names, addresses, and phone numbers are assigned to the account only and not to users belonging to the account. The SoftLayer_Account data type contains a number of relational properties that are used by the SoftLayer customer portal to quickly present a variety of account related services to it's users. \n\nSoftLayer customers are unable to change their company account information in the portal or the API. If you need to change this information please open a sales ticket in our customer portal and our account management staff will assist you. " + }, + "SoftLayer_Virtual_Guest": { + "base": "SoftLayer_Entity", + "methods": { + "getObject": { + "docOverview": "Retrieve a SoftLayer_Virtual_Guest record.", + "filterable": true, + "maskable": true, + "name": "getObject", + "type": "SoftLayer_Virtual_Guest" + }, + "getNetworkComponentFirewallProtectableIpAddresses": { + "doc": "Get the IP addresses associated with this CloudLayer computing instance that are protectable by a network component firewall. Note, this may not return all values for IPv6 subnets for this CloudLayer computing instance. Please use getFirewallProtectableSubnets to get all protectable subnets. ", + "docOverview": "Get the IP addresses associated with this CloudLayer computing instance that are protectable by a network component firewall.", + "maskable": true, + "name": "getNetworkComponentFirewallProtectableIpAddresses", + "type": "SoftLayer_Network_Subnet_IpAddress", + "typeArray": true + } + }, + "name": "SoftLayer_Virtual_Guest", + "properties": { + "account": { + "doc": "The account that a virtual guest belongs to.", + "form": "relational", + "name": "account", + "type": "SoftLayer_Account" + }, + "accountId": { + "doc": "A computing instance's associated [[SoftLayer_Account|account]] id ", + "form": "local", + "name": "accountId", + "type": "int" + }, + "activeNetworkMonitorIncident": { + "doc": "A virtual guest's currently active network monitoring incidents.", + "form": "relational", + "name": "activeNetworkMonitorIncident", + "type": "SoftLayer_Network_Monitor_Version1_Incident", + "typeArray": true + } + }, + "serviceDoc": "The virtual guest service provides a common interface to any virtualization platform supported by SoftLayer. The interaction with various third party APIs is not needed when implementing this service to administer your guests. The SoftLayer_Virtual_Guest service also controls individual CloudLayer Computing Instances purchased from SoftLayer in a way that is analogous to the [[SoftLayer_Hardware_Server]] service's control over physical hardware purchased form SoftLayer. ", + "typeDoc": "The virtual guest data type presents the structure in which all virtual guests will be presented. Internally, the structure supports various virtualization platforms with no change to external interaction. \n\nA guest, also known as a virtual server, represents an allocation of resources on a virtual host. " + }, + "SoftLayer_Test_Service": { + "base": "SoftLayer_Entity", + "name": "SoftLayer_Test_Service", + "serviceDoc": "This is just a test service", + "typeDoc": "this is just a test datatype" + }, + "SoftLayer_Inherit": { + "base": "SoftLayer_Account", + "name": "SoftLayer_Test_Service", + "serviceDoc": "This is just a test service", + "typeDoc": "this is just a test datatype", + "methods": { + "test1": { + "docOverview": "A test Method", + "name": "test1", + "type": "SoftLayer_Inherit", + "parameters": [ + {"name": "param1", "type": "string"}, + {"name": "param2", "type": "int"} + ] + } + }, + "properties": { + "p_test1": { + "doc": "a test property", + "form": "relational", + "typeArray": true, + "name": "p_test1" + } + } + }, + "SoftLayer_Container_Product_Order": { + "base": "SoftLayer_Entity", + "name": "SoftLayer_Container_Product_Order", + "noservice": true, + "properties": { + "quantity": { + "doc": "The quantity of the item being ordered", + "form": "local", + "name": "quantity", + "type": "int" + } + }, + "typeDoc": "A containter thingy" + }, + "SoftLayer_Container_User_Customer_External_Binding": { + "base": "SoftLayer_Entity", + "name": "SoftLayer_Container_Product_Order", + "noservice": true, + "properties": { + "authenticationToken": { + "doc": "The unique token that is created by an external authentication request.", + "form": "local", + "name": "authenticationToken", + "type": "string" + } + }, + "typeDoc": "A containter thingy" + }, + "SoftLayer_Dns_Domain_ResourceRecord": { + "base": "SoftLayer_Entity", + "name": "SoftLayer_Dns_Domain_ResourceRecord", + "properties": { + "data": { + "doc": "The value of a domain's resource record.", + "form": "local", + "name": "data", + "type": "string" + } + } + }, + "SoftLayer_Dns_Domain_ResourceRecord_Test": { + "base": "SoftLayer_Dns_Domain_ResourceRecord", + "name": "SoftLayer_Dns_Domain_ResourceRecord_Test", + "noservice": true, + "properties": { + "testProp": { + "doc": "TEST DATA", + "form": "local", + "name": "testProp1", + "type": "string" + } + }, + "typeDoc": "test documentation string" + }, + "SoftLayer_Container_User_Customer_External_Binding": { + "base": "SoftLayer_Entity", + "name": "SoftLayer_Container_User_Customer_External_Binding", + "noservice": true, + "properties": { + "vendor": { + "doc": "The name of the vendor that will be used for external authentication", + "form": "local", + "name": "vendor", + "type": "string" + } + } + }, + "SoftLayer_Container_User_Customer_External_Binding_Verisign": { + "base": "SoftLayer_Container_User_Customer_External_Binding", + "name": "SoftLayer_Container_User_Customer_External_Binding_Verisign", + "noservice": true, + "properties": { + "securityCode": { + "doc": "The security code used to validate a VeriSign credential.", + "form": "local", + "name": "securityCode", + "type": "string" + } + } + }, + "SoftLayer_Container_User_Customer_External_Binding_Verisign": { + "base": "SoftLayer_Container_User_Customer_External_Binding", + "name": "SoftLayer_Container_User_Customer_External_Binding_Verisign", + "noservice": true, + "properties": { + "securityCode": { + "doc": "The security code used to validate a VeriSign credential.", + "form": "local", + "name": "securityCode", + "type": "string" + } + } + } +} \ No newline at end of file diff --git a/tools/common.go b/tools/common.go deleted file mode 100644 index 153c07e..0000000 --- a/tools/common.go +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Copyright 2016 IBM Corp. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package main - -import ( - "fmt" - "os" -) - -const license = `/** - * Copyright 2016 IBM Corp. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - ` - -const codegenWarning = `/** - * AUTOMATICALLY GENERATED CODE - DO NOT MODIFY - */` - -func bail(err error) { - fmt.Println(err) - os.Exit(1) -} diff --git a/tools/loadmeta_test.go b/tools/loadmeta_test.go deleted file mode 100644 index 56e9f51..0000000 --- a/tools/loadmeta_test.go +++ /dev/null @@ -1,91 +0,0 @@ -package main - -import ( - "testing" -) - -func TestRemovePrefix(t *testing.T) { - result := RemovePrefix("SoftLayer_Test") - if result != "Test" { - t.Errorf("removePrefix(SoftLayer_Test) resulted in %v\n", result) - } - - result = RemovePrefix("Something_Else") - if result != "Something_Else" { - t.Errorf("removePrefix(Something_Else) resulted in %v\n", result) - } -} - -func TestConvertType(t *testing.T) { - typeMap := map[string]string{ - "unsignedLong": "uint", - "boolean": "bool", - "dateTime": "Time", - "decimal": "Float64", - "base64Binary": "[]byte", - "json": "string", - "SoftLayer_Hardware": "Hardware", - "SoftLayer_Entity": "Entity", - "McAfee_Something": "McAfee_Something", - "test": "test", - } - var result string - for input, expected := range typeMap { - result = ConvertType(input, "datatypes") - if result != expected { - t.Errorf("ConvertType(%v) != %v, actually %v", input, expected, result) - } - } - - result = ConvertType("SoftLayer_Entity", "datatypes", "SoftLayer_Test", "resource") - if result != "interface{}" { - t.Errorf("ConvertType(SoftLayer_Entity, resource) != %v, actually %v", "interface{}", result) - } - -} - -func TestRemoveReservedWords(t *testing.T) { - result := RemoveReservedWords("type") - if result != "typ" { - t.Errorf("RemoveReservedWords(type) != typ") - } - result = RemoveReservedWords("other") - if result != "other" { - t.Errorf("RemoveReservedWords(other) != other") - } -} - -func TestDesnak(t *testing.T) { - result := Desnake("SoftLayer_Test_This_Thing") - if result != "SoftLayerTestThisThing" { - t.Errorf("Desnake(SoftLayer_Test_This_Thing) != SoftLayerTestThisThing") - } -} - -func TestGoDoc(t *testing.T) { - result := GoDoc("") - expected := "// no documentation yet" - if result != expected { - t.Errorf("TestGoDoc1: %s != %s", expected, result) - } - - result = GoDoc("TEST") - expected = "// TEST" - if result != expected { - t.Errorf("TestGoDoc2: %s != %s", expected, result) - - } -} - -func TestTags(t *testing.T) { - result := Tags("resourceRecords") - expected := "resourceRecords" - if result != expected { - t.Errorf("TestTags1: %s != %s", expected, result) - } - result = Tags("SomethingElse") - expected = "SomethingElse,omitempty" - if result != expected { - t.Errorf("TestTags2: %s != %s", expected, result) - } -} diff --git a/tools/main.go b/tools/main.go index f03363b..1b8c0c7 100644 --- a/tools/main.go +++ b/tools/main.go @@ -17,32 +17,9 @@ package main import ( - "fmt" - "os" + "github.com/softlayer/softlayer-go/generator" ) -const usage = `Usage: tools [options] - -Commands: - - generate: Generate the SDK from the API metadata - - version: library version management` - func main() { - if len(os.Args) < 2 { - fmt.Println(usage) - os.Exit(1) - } - - switch os.Args[1] { - case "generate": - generateAPI() - case "version": - version() - default: - fmt.Println("Unrecognized command") - os.Exit(1) - } - + generator.Execute() } diff --git a/tools/tools.go b/tools/tools.go new file mode 100644 index 0000000..c4b77c9 --- /dev/null +++ b/tools/tools.go @@ -0,0 +1,10 @@ +//go:build tools + +package tools + +import ( + _ "github.com/maxbrunsfeld/counterfeiter/v6" +) + +// This file imports packages that are used when running go generate, or used +// during the development process but not otherwise depended on by built code. diff --git a/tools/version.go b/tools/version.go index 8213c68..f9afec6 100644 --- a/tools/version.go +++ b/tools/version.go @@ -27,6 +27,19 @@ import ( "github.com/softlayer/softlayer-go/sl" ) +const license = `/** + * Copyright 2016-2024 IBM Corp. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. + */ + ` +const codegenWarning = `// AUTOMATICALLY GENERATED CODE - DO NOT MODIFY` + var versionfile = fmt.Sprintf(`%s %s @@ -96,7 +109,8 @@ func version() { v.Pre = prerelease case "": default: - bail(fmt.Errorf("Invalid value for bump: %s", bump)) + fmt.Printf("Invalid value for bump: %s", bump) + os.Exit(1) } writeVersionFile(v)