Documentation ¶
Overview ¶
networks unit tests
Index ¶
Constants ¶
View Source
const CreateOptionalFieldsRequest = `` /* 179-byte string literal not displayed */
View Source
const CreatePortSecurityRequest = `
{
"network": {
"name": "private",
"admin_state_up": true,
"port_security_enabled": false
}
}`
View Source
const CreatePortSecurityResponse = `` /* 575-byte string literal not displayed */
View Source
const CreateRequest = `
{
"network": {
"name": "private",
"admin_state_up": true
}
}`
View Source
const CreateResponse = `` /* 561-byte string literal not displayed */
View Source
const GetResponse = `` /* 678-byte string literal not displayed */
View Source
const ListResponse = `` /* 1515-byte string literal not displayed */
View Source
const UpdatePortSecurityRequest = `
{
"network": {
"port_security_enabled": false
}
}`
View Source
const UpdatePortSecurityResponse = `` /* 575-byte string literal not displayed */
View Source
const UpdateRequest = `
{
"network": {
"name": "new_network_name",
"admin_state_up": false,
"shared": true
}
}`
View Source
const UpdateResponse = `` /* 506-byte string literal not displayed */
Variables ¶
View Source
var ExpectedNetworkSlice = []networks.Network{Network1, Network2}
View Source
var ( Network1 = networks.Network{ Status: "ACTIVE", Subnets: []string{"54d6f61d-db07-451c-9ab3-b9609b6b6f0b"}, Name: "public", AdminStateUp: true, TenantID: "4fd44f30292945e481c7b8a0c8908869", CreatedAt: createdTime, UpdatedAt: updatedTime, Shared: true, ID: "d32019d3-bc6e-4319-9c1d-6722fc136a22", } )
View Source
var ( Network2 = networks.Network{ Status: "ACTIVE", Subnets: []string{"08eae331-0402-425a-923c-34f7cfe39c1b"}, Name: "private", AdminStateUp: true, TenantID: "26a7980765d0414dbc1fc1f88cdb7e6e", CreatedAt: createdTime, UpdatedAt: updatedTime, Shared: false, ID: "db193ab3-96e3-4cb3-8fc5-05f4296d0324", } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.