Documentation ¶
Overview ¶
availabilityzones unittests
Index ¶
Constants ¶
View Source
const GetDetailOutput = `` /* 2473-byte string literal not displayed */
View Source
const GetOutput = `` /* 195-byte string literal not displayed */
Variables ¶
View Source
var AZDetailResult = []az.AvailabilityZone{ { Hosts: az.Hosts{ "localhost": az.Services{ "nova-cert": az.ServiceState{ Active: true, Available: false, UpdatedAt: time.Date(2017, 10, 14, 17, 3, 39, 0, time.UTC), }, "nova-conductor": az.ServiceState{ Active: true, Available: false, UpdatedAt: time.Date(2017, 10, 14, 17, 4, 9, 0, time.UTC), }, "nova-consoleauth": az.ServiceState{ Active: true, Available: false, UpdatedAt: time.Date(2017, 10, 14, 17, 4, 18, 0, time.UTC), }, "nova-scheduler": az.ServiceState{ Active: true, Available: false, UpdatedAt: time.Date(2017, 10, 14, 17, 4, 30, 0, time.UTC), }, }, "openstack-acc-tests.novalocal": az.Services{ "nova-cert": az.ServiceState{ Active: true, Available: true, UpdatedAt: time.Date(2018, 1, 4, 4, 11, 19, 0, time.UTC), }, "nova-conductor": az.ServiceState{ Active: true, Available: true, UpdatedAt: time.Date(2018, 1, 4, 4, 11, 22, 0, time.UTC), }, "nova-consoleauth": az.ServiceState{ Active: true, Available: true, UpdatedAt: time.Date(2018, 1, 4, 4, 11, 20, 0, time.UTC), }, "nova-scheduler": az.ServiceState{ Active: true, Available: true, UpdatedAt: time.Date(2018, 1, 4, 4, 11, 23, 0, time.UTC), }, }, }, ZoneName: "internal", ZoneState: az.ZoneState{Available: true}, }, { Hosts: az.Hosts{ "openstack-acc-tests.novalocal": az.Services{ "nova-compute": az.ServiceState{ Active: true, Available: true, UpdatedAt: time.Date(2018, 1, 4, 4, 11, 23, 0, time.UTC), }, }, }, ZoneName: "nova", ZoneState: az.ZoneState{Available: true}, }, }
View Source
var AZResult = []az.AvailabilityZone{ { Hosts: nil, ZoneName: "nova", ZoneState: az.ZoneState{Available: true}, }, }
Functions ¶
func HandleGetDetailSuccessfully ¶
HandleGetDetailSuccessfully configures the test server to respond to a Get request for detailed availability zone information.
func HandleGetSuccessfully ¶
HandleGetSuccessfully configures the test server to respond to a Get request for availability zone information.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.