github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/identity/v3/federation/protocols/testing/fixtures.go (about) 1 package testing 2 3 const ( 4 protocolID = "saml" 5 providerID = "ACME" 6 mappingID = "ACME" 7 8 listURL = "/OS-FEDERATION/identity_providers/ACME/protocols" 9 protocolURL = "/OS-FEDERATION/identity_providers/ACME/protocols/saml" 10 11 listResponseBody = ` 12 { 13 "links": { 14 "next": null, 15 "previous": null, 16 "self": "https://example.com/v3/OS-FEDERATION/identity_providers/ACME/protocols" 17 }, 18 "protocols": [ 19 { 20 "id": "saml", 21 "links": { 22 "identity_provider": "https://example.com/v3/OS-FEDERATION/identity_providers/ACME", 23 "self": "https://example.com/v3/OS-FEDERATION/identity_providers/ACME/protocols/saml" 24 }, 25 "mapping_id": "ACME" 26 } 27 ] 28 } 29 ` 30 31 getResponseBody = ` 32 { 33 "protocol": { 34 "id": "saml", 35 "links": { 36 "identity_provider": "https://example.com/v3/OS-FEDERATION/identity_providers/ACME", 37 "self": "https://example.com/v3/OS-FEDERATION/identity_providers/ACME/protocols/saml" 38 }, 39 "mapping_id": "ACME" 40 } 41 } 42 ` 43 44 createRequestBody = ` 45 { 46 "protocol": { 47 "mapping_id": "ACME" 48 } 49 } 50 ` 51 )