summaryrefslogtreecommitdiffstats
path: root/app/test/fetch/api_fetch/test_data/api_fetch_networks.py
blob: 5079a922f8b77dbebe0c8a9134f33a1f94011764 (plain)
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
###############################################################################
# Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems)   #
# and others                                                                  #
#                                                                             #
# All rights reserved. This program and the accompanying materials            #
# are made available under the terms of the Apache License, Version 2.0       #
# which accompanies this distribution, and is available at                    #
# http://www.apache.org/licenses/LICENSE-2.0                                  #
###############################################################################
NETWORKS_RESPONSE = {
    "networks": [
        {
            "id": "8673c48a-f137-4497-b25d-08b7b218fd17",
            "subnets": [
                "cae3c81d-9a27-48c4-b8f6-32867ca03134"
            ],
            "tenant_id": "75c0eb79ff4a42b0ae4973c8375ddf40"
        }
    ]
}

NETWORKS_RESULT = [
    {
        "id": "8673c48a-f137-4497-b25d-08b7b218fd17",
        "subnets": {
            "test23":  {
                "cidr": "172.16.12.0/24",
                "id": "cae3c81d-9a27-48c4-b8f6-32867ca03134",
                "name": "test23",
                "network_id": "0abe6331-0d74-4bbd-ad89-a5719c3793e4",
                "tenant_id": "75c0eb79ff4a42b0ae4973c8375ddf40"
            }
        },
        "tenant_id": "75c0eb79ff4a42b0ae4973c8375ddf40",
        "master_parent_type": "project",
        "master_parent_id": "75c0eb79ff4a42b0ae4973c8375ddf40",
        "parent_type": "networks_folder",
        "parent_id": "75c0eb79ff4a42b0ae4973c8375ddf40-networks",
        "parent_text": "Networks",
        "project": "Calipso-project",
        "cidrs": ["172.16.12.0/24"],
        "subnet_ids": ["cae3c81d-9a27-48c4-b8f6-32867ca03134"],
        "network": "8673c48a-f137-4497-b25d-08b7b218fd17"
    }
]

WRONG_NETWORK_RESPONSE = {
}

SUBNETS_RESPONSE = {
    "subnets": [
        {
            "cidr": "172.16.12.0/24",
            "id": "cae3c81d-9a27-48c4-b8f6-32867ca03134",
            "name": "test23",
            "network_id": "0abe6331-0d74-4bbd-ad89-a5719c3793e4",
            "tenant_id": "75c0eb79ff4a42b0ae4973c8375ddf40"
        }
    ]
}

ENDPOINT = "http://10.56.20.239:9696"
WRONG_SUBNETS_RESPONSE = {}

PROJECT = {
        "description": "",
        "enabled": True,
        "id": "75c0eb79ff4a42b0ae4973c8375ddf40",
        "name": "Calipso-project"
    }

REGION_NAME = "RegionOne"