File tree Expand file tree Collapse file tree
openstackclient/tests/network/v2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323from openstackclient .tests .network .v2 import fakes as network_fakes
2424from openstackclient .tests import utils as tests_utils
2525
26- RESOURCE = 'network'
27- RESOURCES = 'networks'
28- FAKE_ID = 'iditty'
29- FAKE_NAME = 'noo'
30- FAKE_PROJECT = 'yaa'
31- RECORD = {
32- 'id' : FAKE_ID ,
33- 'name' : FAKE_NAME ,
34- 'admin_state_up' : True ,
35- 'router:external' : True ,
36- 'status' : 'ACTIVE' ,
37- 'subnets' : ['a' , 'b' ],
38- 'tenant_id' : FAKE_PROJECT ,
39- }
40- RESPONSE = {RESOURCE : copy .deepcopy (RECORD )}
41- FILTERED = [
42- (
43- 'id' ,
44- 'name' ,
45- 'project_id' ,
46- 'router_type' ,
47- 'state' ,
48- 'status' ,
49- 'subnets' ,
50- ),
51- (
52- FAKE_ID ,
53- FAKE_NAME ,
54- FAKE_PROJECT ,
55- 'External' ,
56- 'UP' ,
57- 'ACTIVE' ,
58- 'a, b' ,
59- ),
60- ]
61-
6226
6327class TestNetwork (network_fakes .TestNetworkV2 ):
6428
You can’t perform that action at this time.
0 commit comments