testing

package
v0.6.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const AssignRequest = `
{
  "port_id": "ee2402d0-f0cd-4503-9b75-69be1d11c5f1",
  "fixed_ip_address": "192.168.10.15"
}
`
View Source
const CreateRequest = `
{
  "port_id": "ee2402d0-f0cd-4503-9b75-69be1d11c5f1",
  "fixed_ip_address": "192.168.10.15"
}
`
View Source
const CreateResponse = `
{
  "tasks": [
    "50f53a35-42ed-40c4-82b2-5a37fb3e00bc"
  ]
}
`
View Source
const DeleteResponse = `
{
  "tasks": [
    "50f53a35-42ed-40c4-82b2-5a37fb3e00bc"
  ]
}
`
View Source
const MetadataCreateRequest = `
{
"test1": "test1", 
"test2": "test2"
}
`
View Source
const MetadataListResponse = `` /* 215-byte string literal not displayed */
View Source
const MetadataResponse = `
{
  "key": "some_key",
  "value": "some_val",
  "read_only": false
}
`
View Source
const UnassignRequest = `
{
  "port_id": "ee2402d0-f0cd-4503-9b75-69be1d11c5f1",
  "fixed_ip_address": "192.168.10.15"
}
`

Variables

View Source
var (
	Tasks1 = tasks.TaskResults{
		Tasks: []tasks.TaskID{"50f53a35-42ed-40c4-82b2-5a37fb3e00bc"},
	}

	ExpectedFloatingIPSlice = []floatingips.FloatingIPDetail{floatingIPDetails}

	ResourceMetadata = map[string]interface{}{
		"some_key": "some_val",
	}

	ResourceMetadataReadOnly = metadata.Metadata{
		Key:      "some_key",
		Value:    "some_val",
		ReadOnly: false,
	}

	Metadata1 = metadata.Metadata{
		Key:      "cost-center",
		Value:    "Atlanta",
		ReadOnly: false,
	}
	Metadata2 = metadata.Metadata{
		Key:      "data-center",
		Value:    "A",
		ReadOnly: false,
	}
	ExpectedMetadataList = []metadata.Metadata{Metadata1, Metadata2}
)
View Source
var AssignResponse = GetResponse
View Source
var GetResponse = fmt.Sprintf(`
{
  "floating_ip_address": "172.24.4.34",
  "router_id": "11005a33-c5ac-4c96-ab6f-8f2827cc7da6",
  "port_id": "ee2402d0-f0cd-4503-9b75-69be1d11c5f1",
  "status": "ACTIVE",
  "id": "c64e5db1-5f1f-43ec-a8d9-5090df85b82d",
  "fixed_ip_address": null,
  "description": "FLOAT FLOAT FLOAT",
  "updated_at": "2019-06-13T13:58:12+0000",
  "created_at": "2019-06-13T13:58:12+0000",
  "project_id": 1,
  "region": "ED-8",
  "region_id": 1,
 "metadata": [%s]
}`, MetadataResponse)
View Source
var ListResponse = fmt.Sprintf(`
{
  "count": 1,
  "results": [
    {
      "floating_ip_address": "172.24.4.34",
      "router_id": "11005a33-c5ac-4c96-ab6f-8f2827cc7da6",
      "port_id": "ee2402d0-f0cd-4503-9b75-69be1d11c5f1",
      "status": "ACTIVE",
      "id": "c64e5db1-5f1f-43ec-a8d9-5090df85b82d",
      "fixed_ip_address": null,
      "description": "FLOAT FLOAT FLOAT",
      "instance": {
        "tenant_id": "fe5cc21270554c0d9d4cdc48ba574987",
        "task_state": null,
        "instance_description": "Testing",
        "instance_name": "Testing",
        "status": "ACTIVE",
        "instance_created": "2019-07-11T06:58:48Z",
        "vm_state": "active",
	    "region": "ED-8",
    	"volumes": [
          {
            "id": "28bfe198-a003-4283-8dca-ab5da4a71b62",
            "delete_on_termination": false
          }
        ],
        "instance_id": "a7e7e8d6-0bf7-4ac9-8170-831b47ee2ba9",
        "metadata": {
          "task_id": "d1e1500b-e2be-40aa-9a4b-cc493fa1af30"
        },
        "project_id": 1,
        "region_id": 1
      },
      "updated_at": "2019-06-13T13:58:12+0000",
      "created_at": "2019-06-13T13:58:12+0000",
	  "region": "ED-8",
      "project_id": 1,
      "region_id": 1,
      "metadata": [%s]
    }
  ]
}`, MetadataResponse)
View Source
var UnassignResponse = GetResponse

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL