File: fixtures.go

package info (click to toggle)
golang-github-gophercloud-gophercloud 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,416 kB
  • sloc: sh: 99; makefile: 21
file content (79 lines) | stat: -rw-r--r-- 1,372 bytes parent folder | download
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
package testing

import "github.com/gophercloud/gophercloud/openstack/loadbalancer/v2/quotas"

const GetResponseRaw_1 = `
{
    "quota": {
        "loadbalancer": 15,
        "listener": 30,
        "member": -1,
        "pool": 15,
        "healthmonitor": 30,
        "l7policy": 100,
        "l7rule": -1
    }
}
`

const GetResponseRaw_2 = `
{
    "quota": {
        "load_balancer": 15,
        "listener": 30,
        "member": -1,
        "pool": 15,
        "health_monitor": 30,
        "l7policy": 100,
        "l7rule": -1
    }
}
`

var GetResponse = quotas.Quota{
	Loadbalancer:  15,
	Listener:      30,
	Member:        -1,
	Pool:          15,
	Healthmonitor: 30,
	L7Policy:      100,
	L7Rule:        -1,
}

const UpdateRequestResponseRaw_1 = `
{
    "quota": {
        "loadbalancer": 20,
        "listener": 40,
        "member": 200,
        "pool": 20,
        "healthmonitor": -1,
        "l7policy": 50,
        "l7rule": 100
    }
}
`

const UpdateRequestResponseRaw_2 = `
{
    "quota": {
        "load_balancer": 20,
        "listener": 40,
        "member": 200,
        "pool": 20,
        "health_monitor": -1,
        "l7policy": 50,
        "l7rule": 100
    }
}
`

var UpdateResponse = quotas.Quota{
	Loadbalancer:  20,
	Listener:      40,
	Member:        200,
	Pool:          20,
	Healthmonitor: -1,
	L7Policy:      50,
	L7Rule:        100,
}