forked from huaweicloud/huaweicloud-sdk-go
/
fixtures.go
81 lines (77 loc) · 1.85 KB
/
fixtures.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
package testing
const FlavorListResponse = `
{
"flavors": [
{
"id": "104",
"name": "m1.large",
"vcpus": "4",
"ram": 8192,
"disk": "0",
"swap": "",
"OS-FLV-EXT-DATA:ephemeral": 0,
"rxtx_factor": null,
"OS-FLV-DISABLED:disabled": null,
"rxtx_quota": null,
"rxtx_cap": null,
"os-flavor-access:is_public": null,
"os_extra_specs": {
"ecs:performancetype": "normal"
}
},
{
"id": "105",
"name": "m2.large",
"vcpus": "8",
"ram": 16384,
"disk": "0",
"swap": "",
"OS-FLV-EXT-DATA:ephemeral": 0,
"rxtx_factor": null,
"OS-FLV-DISABLED:disabled": null,
"rxtx_quota": null,
"rxtx_cap": null,
"os-flavor-access:is_public": null,
"os_extra_specs": {
"ecs:performancetype": "normal"
}
}
]
}
`
const FlavorListWithFormResponse = `
{
"flavors": [
{
"id": "104",
"name": "m1.large",
"vcpus": "4",
"ram": 8192,
"disk": "0",
"swap": "",
"OS-FLV-EXT-DATA:ephemeral": 0,
"rxtx_factor": null,
"OS-FLV-DISABLED:disabled": null,
"rxtx_quota": null,
"rxtx_cap": null,
"os-flavor-access:is_public": null,
"os_extra_specs": {
"ecs:performancetype": "normal"
}
}
]
}
`
const ResizeRequest = `
{
"resize": {
"flavorRef": "c3.15xlarge.2",
"dedicated_host_id": "459a2b9d-804a-4745-ab19-a113bb1b4ddc"
}
}
`
const ResizeResponse = `
{
"job_id": "70a599e0-31e7-49b7-b260-868f441e862b"
}
`