 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
floatingips unit tests
Index ¶
- Constants
- Variables
- func HandleAssociateFixedSuccessfully(t *testing.T)
- func HandleAssociateSuccessfully(t *testing.T)
- func HandleCreateSuccessfully(t *testing.T)
- func HandleCreateWithNumericIDSuccessfully(t *testing.T)
- func HandleDeleteSuccessfully(t *testing.T)
- func HandleDisassociateSuccessfully(t *testing.T)
- func HandleGetSuccessfully(t *testing.T)
- func HandleListSuccessfully(t *testing.T)
Constants ¶
const CreateOutput = `` /* 157-byte string literal not displayed */
    CreateOutput is a sample response to a Post call
const CreateOutputWithNumericID = `` /* 155-byte string literal not displayed */
    CreateOutputWithNumericID is a sample response to a Post call with a legacy nova-network-based numeric ID.
const GetOutput = `` /* 203-byte string literal not displayed */
    GetOutput is a sample response to a Get call.
const ListOutput = `` /* 410-byte string literal not displayed */
    ListOutput is a sample response to a List call.
Variables ¶
var CreatedFloatingIP = floatingips.FloatingIP{
	ID:   "1",
	IP:   "10.10.10.1",
	Pool: "nova",
}
    CreatedFloatingIP is the parsed result from CreateOutput.
var ExpectedFloatingIPsSlice = []floatingips.FloatingIP{FirstFloatingIP, SecondFloatingIP}
    ExpectedFloatingIPsSlice is the slice of results that should be parsed from ListOutput, in the expected order.
var FirstFloatingIP = floatingips.FloatingIP{
	ID:   "1",
	IP:   "10.10.10.1",
	Pool: "nova",
}
    FirstFloatingIP is the first result in ListOutput.
var SecondFloatingIP = floatingips.FloatingIP{
	FixedIP:    "166.78.185.201",
	ID:         "2",
	InstanceID: "4d8c3732-a248-40ed-bebc-539a6ffd25c0",
	IP:         "10.10.10.2",
	Pool:       "nova",
}
    SecondFloatingIP is the first result in ListOutput.
Functions ¶
func HandleAssociateFixedSuccessfully ¶
HandleFixedAssociateSucessfully configures the test server to respond to a Post request to associate an allocated floating IP with a specific fixed IP address
func HandleAssociateSuccessfully ¶
HandleAssociateSuccessfully configures the test server to respond to a Post request to associate an allocated floating IP
func HandleCreateSuccessfully ¶
HandleCreateSuccessfully configures the test server to respond to a Create request for a new floating ip
func HandleCreateWithNumericIDSuccessfully ¶
HandleCreateWithNumericIDSuccessfully configures the test server to respond to a Create request for a new floating ip
func HandleDeleteSuccessfully ¶
HandleDeleteSuccessfully configures the test server to respond to a Delete request for a an existing floating ip
func HandleDisassociateSuccessfully ¶
HandleDisassociateSuccessfully configures the test server to respond to a Post request to disassociate an allocated floating IP
func HandleGetSuccessfully ¶
HandleGetSuccessfully configures the test server to respond to a Get request for an existing floating ip
func HandleListSuccessfully ¶
HandleListSuccessfully configures the test server to respond to a List request.
Types ¶
This section is empty.