github.com/gophercloud/gophercloud@v1.11.0/openstack/networking/v2/extensions/mtu/testing/fixtures_test.go (about)

     1  package testing
     2  
     3  // These fixtures are here instead of in the underlying networks package
     4  // because all network tests (including extensions) would have to
     5  // implement the NetworkMTUExt extention for create/update tests
     6  // to pass.
     7  
     8  const CreateRequest = `
     9  {
    10      "network": {
    11          "name": "private",
    12          "admin_state_up": true,
    13          "mtu": 1500
    14      }
    15  }`
    16  
    17  const CreateResponse = `
    18  {
    19      "network": {
    20          "status": "ACTIVE",
    21          "subnets": ["08eae331-0402-425a-923c-34f7cfe39c1b"],
    22          "name": "private",
    23          "admin_state_up": true,
    24          "tenant_id": "26a7980765d0414dbc1fc1f88cdb7e6e",
    25          "shared": false,
    26          "id": "db193ab3-96e3-4cb3-8fc5-05f4296d0324",
    27          "mtu": 1500
    28      }
    29  }`
    30  
    31  const UpdateRequest = `
    32  {
    33      "network": {
    34          "name": "new_network_name",
    35          "admin_state_up": false,
    36          "shared": true,
    37          "mtu": 1350
    38      }
    39  }`
    40  
    41  const UpdateResponse = `
    42  {
    43      "network": {
    44          "status": "ACTIVE",
    45          "subnets": [],
    46          "name": "new_network_name",
    47          "admin_state_up": false,
    48          "tenant_id": "4fd44f30292945e481c7b8a0c8908869",
    49          "shared": true,
    50          "id": "4e8e5957-649f-477b-9e5b-f1f75b21c03c",
    51          "mtu": 1350
    52      }
    53  }`
    54  
    55  const ExpectedListOpts = "?id=d32019d3-bc6e-4319-9c1d-6722fc136a22&mtu=1500"