Documentation ¶
Index ¶
- Constants
- Variables
- func HandleCreateApplicationCredentialSuccessfully(t *testing.T)
- func HandleCreateNoSecretApplicationCredentialSuccessfully(t *testing.T)
- func HandleCreateUnrestrictedApplicationCredentialSuccessfully(t *testing.T)
- func HandleDeleteApplicationCredentialSuccessfully(t *testing.T)
- func HandleGetApplicationCredentialSuccessfully(t *testing.T)
- func HandleListApplicationCredentialsSuccessfully(t *testing.T)
Constants ¶
const CreateNoSecretRequest = `` /* 173-byte string literal not displayed */
CreateNoOptionsRequest provides the input to a Create request with no Secret.
const CreateNoSecretResponse = `` /* 571-byte string literal not displayed */
const CreateRequest = `` /* 198-byte string literal not displayed */
CreateRequest provides the input to a Create request.
const CreateResponse = `` /* 562-byte string literal not displayed */
const CreateUnrestrictedRequest = `` /* 286-byte string literal not displayed */
const CreateUnrestrictedResponse = `` /* 721-byte string literal not displayed */
const GetOutput = `` /* 536-byte string literal not displayed */
GetOutput provides a Get result.
const ListOutput = `` /* 1440-byte string literal not displayed */
ListOutput provides a single page of ApplicationCredential results.
Variables ¶
var ApplationCredentialExpiresAt, _ = time.Parse(gophercloud.RFC3339MilliNoZ, "2019-03-12T12:12:12.000000")
var ApplicationCredential = applicationcredentials.ApplicationCredential{ ID: "f741662395b249c9b8acdebf1722c5ae", Name: "test", Description: "", Unrestricted: false, Secret: "", ProjectID: "53c2b94f63fb4f43a21b92d119ce549f", Roles: []applicationcredentials.Role{ applicationcredentials.Role{ ID: "31f87923ae4a4d119aa0b85dcdbeed13", Name: "compute_viewer", }, }, ExpiresAt: nilTime, Links: map[string]interface{}{ "self": "https://identity/v3/users/2844b2a08be147a08ef58317d6471f1f/application_credentials/f741662395b249c9b8acdebf1722c5ae", }, }
var ApplicationCredentialNoSecretResponse = applicationcredentials.ApplicationCredential{ ID: "c4859fb437df4b87a51a8f5adcfb0bc7", Name: "test1", Description: "", Unrestricted: false, Secret: "generated_secret", ProjectID: "53c2b94f63fb4f43a21b92d119ce549f", Roles: []applicationcredentials.Role{ applicationcredentials.Role{ ID: "31f87923ae4a4d119aa0b85dcdbeed13", Name: "compute_viewer", }, }, ExpiresAt: nilTime, Links: map[string]interface{}{ "self": "https://identity/v3/users/2844b2a08be147a08ef58317d6471f1f/application_credentials/c4859fb437df4b87a51a8f5adcfb0bc7", }, }
var ExpectedApplicationCredentialsSlice = []applicationcredentials.ApplicationCredential{FirstApplicationCredential, SecondApplicationCredential}
ExpectedApplicationCredentialsSlice is the slice of application credentials expected to be returned from ListOutput.
var FirstApplicationCredential = applicationcredentials.ApplicationCredential{ ID: "c4859fb437df4b87a51a8f5adcfb0bc7", Name: "test1", Description: "", Unrestricted: false, Secret: "", ProjectID: "53c2b94f63fb4f43a21b92d119ce549f", Roles: []applicationcredentials.Role{ applicationcredentials.Role{ ID: "31f87923ae4a4d119aa0b85dcdbeed13", Name: "compute_viewer", }, }, ExpiresAt: nilTime, Links: map[string]interface{}{ "self": "https://identity/v3/users/2844b2a08be147a08ef58317d6471f1f/application_credentials/c4859fb437df4b87a51a8f5adcfb0bc7", }, }
var SecondApplicationCredential = applicationcredentials.ApplicationCredential{ ID: "6b8cc7647da64166a4a3cc0c88ebbabb", Name: "test2", Description: "", Unrestricted: true, Secret: "", ProjectID: "53c2b94f63fb4f43a21b92d119ce549f", Roles: []applicationcredentials.Role{ applicationcredentials.Role{ ID: "31f87923ae4a4d119aa0b85dcdbeed13", Name: "compute_viewer", }, applicationcredentials.Role{ ID: "4494bc5bea1a4105ad7fbba6a7eb9ef4", Name: "network_viewer", }, }, ExpiresAt: ApplationCredentialExpiresAt, Links: map[string]interface{}{ "self": "https://identity/v3/users/2844b2a08be147a08ef58317d6471f1f/application_credentials/6b8cc7647da64166a4a3cc0c88ebbabb", }, }
var UnrestrictedApplicationCredential = applicationcredentials.ApplicationCredential{ ID: "6b8cc7647da64166a4a3cc0c88ebbabb", Name: "test2", Description: "", Unrestricted: true, Secret: "", ProjectID: "53c2b94f63fb4f43a21b92d119ce549f", Roles: []applicationcredentials.Role{ applicationcredentials.Role{ ID: "31f87923ae4a4d119aa0b85dcdbeed13", Name: "compute_viewer", }, applicationcredentials.Role{ ID: "4494bc5bea1a4105ad7fbba6a7eb9ef4", Name: "network_viewer", }, }, ExpiresAt: ApplationCredentialExpiresAt, Links: map[string]interface{}{ "self": "https://identity/v3/users/2844b2a08be147a08ef58317d6471f1f/application_credentials/6b8cc7647da64166a4a3cc0c88ebbabb", }, }
Functions ¶
func HandleCreateApplicationCredentialSuccessfully ¶
HandleCreateApplicationCredentialSuccessfully creates an HTTP handler at `/users` on the test handler mux that tests application credential creation.
func HandleCreateNoSecretApplicationCredentialSuccessfully ¶
HandleCreateNoOptionsApplicationCredentialSuccessfully creates an HTTP handler at `/users` on the test handler mux that tests application credential creation.
func HandleDeleteApplicationCredentialSuccessfully ¶
HandleDeleteApplicationCredentialSuccessfully creates an HTTP handler at `/users` on the test handler mux that tests application credential deletion.
func HandleGetApplicationCredentialSuccessfully ¶
HandleGetApplicationCredentialSuccessfully creates an HTTP handler at `/users` on the test handler mux that responds with a single application credential.
func HandleListApplicationCredentialsSuccessfully ¶
HandleListApplicationCredentialsSuccessfully creates an HTTP handler at `/users` on the test handler mux that responds with a list of two applicationcredentials.
Types ¶
This section is empty.