Documentation ¶
Overview ¶
Tenant Connection Request unit tests
Index ¶
- Constants
- Variables
- func HandleBlankUpdateTenantConnectionRequestSuccessfully(t *testing.T)
- func HandleCreateTenantConnectionRequestSuccessfully(t *testing.T)
- func HandleDeleteTenantConnectionRequestSuccessfully(t *testing.T)
- func HandleGetTenantConnectionRequestSuccessfully(t *testing.T)
- func HandleListTenantConnectionRequestsSuccessfully(t *testing.T)
- func HandleNilUpdateTenantConnectionRequestSuccessfully(t *testing.T)
- func HandleUpdateOtherMetadataTenantConnectionRequestSuccessfully(t *testing.T)
- func HandleUpdateTenantConnectionRequestSuccessfully(t *testing.T)
Constants ¶
const CreateRequest = `` /* 259-byte string literal not displayed */
CreateRequest provides the input to a Create request.
const CreateResponse = `` /* 508-byte string literal not displayed */
CreateResponse provides the output from a Create request.
const GetResult = `` /* 541-byte string literal not displayed */
GetResult provides a Get result.
const ListResult = `` /* 1083-byte string literal not displayed */
ListResult provides a single page of tenant_connection_request results.
const UpdateBlankRequest = `
{
"tenant_connection_request":{
"name": "",
"description": "",
"tags": {}
}
}
`
UpdateBlankRequest provides the input to as Update with blank request.
const UpdateBlankResult = `` /* 493-byte string literal not displayed */
UpdateBlankResult provides an update with blank result.
const UpdateNilRequest = `
{
"tenant_connection_request":{
"name": "nilupdate"
}
}
`
UpdateNilRequest provides the input to as Update with nil request.
const UpdateNilResult = `` /* 540-byte string literal not displayed */
UpdateNilResult provides an update with nil result.
const UpdateOtherMetadataRequest = `` /* 163-byte string literal not displayed */
UpdateOtherMetadataRequest provides the input to as Update to other metadata request.
const UpdateOtherMetadataResult = `` /* 562-byte string literal not displayed */
UpdateOtherMetadataResult provides an update to other metadata result.
const UpdateRequest = `` /* 133-byte string literal not displayed */
UpdateRequest provides the input to as Update request.
const UpdateResult = `` /* 532-byte string literal not displayed */
UpdateResult provides an update result.
Variables ¶
var ExpectedTenantConnectionRequestsSlice = []tenant_connection_requests.TenantConnectionRequest{FirstTenantConnectionRequest, SecondTenantConnectionRequest}
ExpectedTenantConnectionRequestsSlice is the slice of tenant_connection_request expected to be returned from ListResult.
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.
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.
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.
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.
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.
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 ¶
HandleBlankUpdateTenantConnectionRequestSuccessfully creates an HTTP handler at `/tenant_connection_requests` on the test handler mux that tests tenant_connection_request update with blank.
func HandleCreateTenantConnectionRequestSuccessfully ¶
HandleCreateTenantConnectionRequestSuccessfully creates an HTTP handler at `/tenant_connection_requests` on the test handler mux that tests tenant_connection_request creation.
func HandleDeleteTenantConnectionRequestSuccessfully ¶
HandleDeleteTenantConnectionRequestSuccessfully creates an HTTP handler at `/tenant_connection_requests` on the test handler mux that tests tenant_connection_request deletion.
func HandleGetTenantConnectionRequestSuccessfully ¶
HandleGetTenantConnectionRequestSuccessfully creates an HTTP handler at `/tenant_connection_requests` on the test handler mux that responds with a single tenant_connection_request.
func HandleListTenantConnectionRequestsSuccessfully ¶
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 ¶
HandleNilUpdateTenantConnectionRequestSuccessfully creates an HTTP handler at `/tenant_connection_requests` on the test handler mux that tests tenant_connection_request update with nil.
func HandleUpdateOtherMetadataTenantConnectionRequestSuccessfully ¶
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 ¶
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.