Documentation ¶
Overview ¶
networks unit tests
Index ¶
Constants ¶
View Source
const CreateOptionalFieldsRequest = `
{
"vpc": {
"name": "public",
"is_default": true,
"tenant_id": "12345"
}
}`
View Source
const CreatePortSecurityRequest = `
{
"vpc": {
"name": "private",
"is_default": true,
"port_security_enabled": false
}
}`
View Source
const CreatePortSecurityResponse = `` /* 479-byte string literal not displayed */
View Source
const CreateRequest = `
{
"vpc": {
"name": "private",
"is_default": true
}
}`
View Source
const CreateResponse = `` /* 447-byte string literal not displayed */
View Source
const GetResponse = `` /* 383-byte string literal not displayed */
View Source
const ListResponse = `` /* 1014-byte string literal not displayed */
View Source
const UpdatePortSecurityRequest = `
{
"vpc": {
"port_security_enabled": false
}
}`
View Source
const UpdatePortSecurityResponse = `` /* 383-byte string literal not displayed */
View Source
const UpdateRequest = `
{
"vpc": {
"name": "new_network_name",
"description": "description abcd"
}
}`
View Source
const UpdateResponse = `` /* 389-byte string literal not displayed */
Variables ¶
View Source
var ExpectedNetworkSlice = []vpcs.Vpc{Network1, Network2}
View Source
var Network1 = vpcs.Vpc{ Status: "ACTIVE", NetworkIds: []string{"54d6f61d-db07-451c-9ab3-b9609b6b6f0b"}, Name: "public", TenantID: "4fd44f30292945e481c7b8a0c8908869", ID: "d32019d3-bc6e-4319-9c1d-6722fc136a22", Description: "Network1 description", CreatedAt: "2018-04-23", IsDefault: false, Cidr: "172.17.0.0/16", }
View Source
var Network2 = vpcs.Vpc{ Status: "ACTIVE", NetworkIds: []string{"08eae331-0402-425a-923c-34f7cfe39c1b"}, Name: "private", TenantID: "26a7980765d0414dbc1fc1f88cdb7e6e", ID: "db193ab3-96e3-4cb3-8fc5-05f4296d0324", Description: "Network2 description", CreatedAt: "2018-05-23", IsDefault: true, Cidr: "172.18.0.0/16", }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.