testing

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Tenant Connection Request unit tests

Index

Constants

View Source
const CreateRequest = `` /* 259-byte string literal not displayed */

CreateRequest provides the input to a Create request.

View Source
const CreateResponse = `` /* 508-byte string literal not displayed */

CreateResponse provides the output from a Create request.

View Source
const GetResult = `` /* 541-byte string literal not displayed */

GetResult provides a Get result.

View Source
const ListResult = `` /* 1083-byte string literal not displayed */

ListResult provides a single page of tenant_connection_request results.

View Source
const UpdateBlankRequest = `
{
  "tenant_connection_request":{
    "name": "",
    "description": "",
    "tags": {}
  }
}
`

UpdateBlankRequest provides the input to as Update with blank request.

View Source
const UpdateBlankResult = `` /* 493-byte string literal not displayed */

UpdateBlankResult provides an update with blank result.

View Source
const UpdateNilRequest = `
{
  "tenant_connection_request":{
    "name": "nilupdate"
  }
}
`

UpdateNilRequest provides the input to as Update with nil request.

View Source
const UpdateNilResult = `` /* 540-byte string literal not displayed */

UpdateNilResult provides an update with nil result.

View Source
const UpdateOtherMetadataRequest = `` /* 163-byte string literal not displayed */

UpdateOtherMetadataRequest provides the input to as Update to other metadata request.

View Source
const UpdateOtherMetadataResult = `` /* 562-byte string literal not displayed */

UpdateOtherMetadataResult provides an update to other metadata result.

View Source
const UpdateRequest = `` /* 133-byte string literal not displayed */

UpdateRequest provides the input to as Update request.

View Source
const UpdateResult = `` /* 532-byte string literal not displayed */

UpdateResult provides an update result.

Variables

ExpectedTenantConnectionRequestsSlice is the slice of tenant_connection_request expected to be returned from ListResult.

View Source
var FirstTenantConnectionRequest = tenant_connection_requests.TenantConnectionRequest{
	ID:                "5fbcc350-bd33-11e7-afb6-0050569c850d",
	Status:            "registering",
	Name:              "test_name1",
	Description:       "test_desc1",
	Tags:              map[string]string{"test_tags1": "test1"},
	TenantID:          "c7f3a68a73e845d4ba6a42fb80fce03f",
	NameOther:         "",
	DescriptionOther:  "",
	TagsOther:         map[string]string{},
	TenantIDOther:     "7e91b19b9baa423793ee74a8e1ff2be1",
	NetworkID:         "77cfc6b0-d032-4e5a-b6fb-4cce2537f4d1",
	ApprovalRequestID: "req0000010454",
}

FirstTenantConnectionRequest is the first tenant_connection_request in the List request.

View Source
var SecondTenantConnectionRequest = tenant_connection_requests.TenantConnectionRequest{
	ID:                "90381138-b572-11e7-9391-0050569c850d",
	Status:            "registered",
	Name:              "created_name",
	Description:       "created_desc",
	Tags:              map[string]string{"test_tags2": "test2"},
	TenantID:          "7e91b19b9baa423793ee74a8e1ff2be1",
	NameOther:         "",
	DescriptionOther:  "",
	TagsOther:         map[string]string{"test_tags_other2": "test2"},
	TenantIDOther:     "c7f3a68a73e845d4ba6a42fb80fce03f",
	NetworkID:         "77cfc6b0-d032-4e5a-b6fb-4cce2537f4d1",
	ApprovalRequestID: "req0000010363",
}

SecondTenantConnectionRequest is the second tenant_connection_request in the List request.

View Source
var SecondTenantConnectionRequestBlankUpdated = tenant_connection_requests.TenantConnectionRequest{
	ID:                "90381138-b572-11e7-9391-0050569c850d",
	Status:            "registered",
	Name:              "",
	Description:       "",
	Tags:              map[string]string{},
	TenantID:          "7e91b19b9baa423793ee74a8e1ff2be1",
	NameOther:         "",
	DescriptionOther:  "",
	TagsOther:         map[string]string{"test_tags_other2": "test2"},
	TenantIDOther:     "c7f3a68a73e845d4ba6a42fb80fce03f",
	NetworkID:         "77cfc6b0-d032-4e5a-b6fb-4cce2537f4d1",
	ApprovalRequestID: "req0000010363",
}

SecondTenantConnectionRequestBlankUpdated is how second tenant_connection_request should look after an Update with blank.

View Source
var SecondTenantConnectionRequestNilUpdated = tenant_connection_requests.TenantConnectionRequest{
	ID:                "90381138-b572-11e7-9391-0050569c850d",
	Status:            "registered",
	Name:              "nilupdate",
	Description:       "created_desc",
	Tags:              map[string]string{"test_tags2": "test2"},
	TenantID:          "7e91b19b9baa423793ee74a8e1ff2be1",
	NameOther:         "",
	DescriptionOther:  "",
	TagsOther:         map[string]string{"test_tags_other2": "test2"},
	TenantIDOther:     "c7f3a68a73e845d4ba6a42fb80fce03f",
	NetworkID:         "77cfc6b0-d032-4e5a-b6fb-4cce2537f4d1",
	ApprovalRequestID: "req0000010363",
}

SecondTenantConnectionRequestNilUpdated is how second tenant_connection_request should look after an Update with nil.

View Source
var SecondTenantConnectionRequestOtherMetadataUpdated = tenant_connection_requests.TenantConnectionRequest{
	ID:                "90381138-b572-11e7-9391-0050569c850d",
	Status:            "registered",
	Name:              "created_name",
	Description:       "created_desc",
	Tags:              map[string]string{"test_tags2": "test2"},
	TenantID:          "7e91b19b9baa423793ee74a8e1ff2be1",
	NameOther:         "updated_name_other",
	DescriptionOther:  "updated_desc_other",
	TagsOther:         map[string]string{"k3": "v3"},
	TenantIDOther:     "c7f3a68a73e845d4ba6a42fb80fce03f",
	NetworkID:         "77cfc6b0-d032-4e5a-b6fb-4cce2537f4d1",
	ApprovalRequestID: "req0000010363",
}

SecondTenantConnectionRequestOtherMetadataUpdated is how second tenant_connection_request should look after an Update to other metadata.

View Source
var SecondTenantConnectionRequestUpdated = tenant_connection_requests.TenantConnectionRequest{
	ID:                "90381138-b572-11e7-9391-0050569c850d",
	Status:            "registered",
	Name:              "updated_name",
	Description:       "updated_desc",
	Tags:              map[string]string{"k2": "v2"},
	TenantID:          "7e91b19b9baa423793ee74a8e1ff2be1",
	NameOther:         "",
	DescriptionOther:  "",
	TagsOther:         map[string]string{"test_tags_other2": "test2"},
	TenantIDOther:     "c7f3a68a73e845d4ba6a42fb80fce03f",
	NetworkID:         "77cfc6b0-d032-4e5a-b6fb-4cce2537f4d1",
	ApprovalRequestID: "req0000010363",
}

SecondTenantConnectionRequestUpdated is how second tenant_connection_request should look after an Update.

Functions

func HandleBlankUpdateTenantConnectionRequestSuccessfully

func HandleBlankUpdateTenantConnectionRequestSuccessfully(t *testing.T)

HandleBlankUpdateTenantConnectionRequestSuccessfully creates an HTTP handler at `/tenant_connection_requests` on the test handler mux that tests tenant_connection_request update with blank.

func HandleCreateTenantConnectionRequestSuccessfully

func HandleCreateTenantConnectionRequestSuccessfully(t *testing.T)

HandleCreateTenantConnectionRequestSuccessfully creates an HTTP handler at `/tenant_connection_requests` on the test handler mux that tests tenant_connection_request creation.

func HandleDeleteTenantConnectionRequestSuccessfully

func HandleDeleteTenantConnectionRequestSuccessfully(t *testing.T)

HandleDeleteTenantConnectionRequestSuccessfully creates an HTTP handler at `/tenant_connection_requests` on the test handler mux that tests tenant_connection_request deletion.

func HandleGetTenantConnectionRequestSuccessfully

func HandleGetTenantConnectionRequestSuccessfully(t *testing.T)

HandleGetTenantConnectionRequestSuccessfully creates an HTTP handler at `/tenant_connection_requests` on the test handler mux that responds with a single tenant_connection_request.

func HandleListTenantConnectionRequestsSuccessfully

func HandleListTenantConnectionRequestsSuccessfully(t *testing.T)

HandleListTenantConnectionRequestsSuccessfully creates an HTTP handler at `/tenant_connection_requests` on the test handler mux that responds with a list of two tenant_connection_requests.

func HandleNilUpdateTenantConnectionRequestSuccessfully

func HandleNilUpdateTenantConnectionRequestSuccessfully(t *testing.T)

HandleNilUpdateTenantConnectionRequestSuccessfully creates an HTTP handler at `/tenant_connection_requests` on the test handler mux that tests tenant_connection_request update with nil.

func HandleUpdateOtherMetadataTenantConnectionRequestSuccessfully

func HandleUpdateOtherMetadataTenantConnectionRequestSuccessfully(t *testing.T)

HandleUpdateOtherMetadataTenantConnectionRequestSuccessfully creates an HTTP handler at `/tenant_connection_requests` on the test handler mux that tests tenant_connection_request update to other metadata result.

func HandleUpdateTenantConnectionRequestSuccessfully

func HandleUpdateTenantConnectionRequestSuccessfully(t *testing.T)

HandleUpdateTenantConnectionRequestSuccessfully creates an HTTP handler at `/tenant_connection_requests` on the test handler mux that tests tenant_connection_request update.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL