Documentation ¶
Index ¶
- Constants
- Variables
- func HandleDeleteContainerACLSuccessfully(t *testing.T)
- func HandleDeleteSecretACLSuccessfully(t *testing.T)
- func HandleGetContainerACLSuccessfully(t *testing.T)
- func HandleGetSecretACLSuccessfully(t *testing.T)
- func HandleSetContainerACLSuccessfully(t *testing.T)
- func HandleSetSecretACLSuccessfully(t *testing.T)
- func HandleUpdateContainerACLSuccessfully(t *testing.T)
- func HandleUpdateSecretACLSuccessfully(t *testing.T)
Constants ¶
const ContainerSetResponse = `
{
"acl_ref": "http://barbican:9311/v1/containers/4befede0-fbde-4480-982c-b160c1014a47/acl"
}`
const GetResponse = `` /* 187-byte string literal not displayed */
const SecretSetResponse = `
{
"acl_ref": "http://barbican:9311/v1/secrets/4befede0-fbde-4480-982c-b160c1014a47/acl"
}`
const SetRequest = `
{
"read": {
"project-access": false,
"users": [
"GG27dVwR9gBMnsOaRoJ1DFJmZfdVjIdW"
]
}
}`
const UpdateRequest = `
{
"read": {
"users": []
}
}`
Variables ¶
var ExpectedACL = acls.ACL{ "read": acls.ACLDetails{ Created: time.Date(2018, 6, 22, 17, 54, 24, 0, time.UTC), ProjectAccess: false, Updated: time.Date(2018, 6, 22, 17, 54, 24, 0, time.UTC), Users: []string{ "GG27dVwR9gBMnsOaRoJ1DFJmZfdVjIdW", }, }, }
var ExpectedContainerACLRef = acls.ACLRef("http://barbican:9311/v1/containers/4befede0-fbde-4480-982c-b160c1014a47/acl")
var ExpectedSecretACLRef = acls.ACLRef("http://barbican:9311/v1/secrets/4befede0-fbde-4480-982c-b160c1014a47/acl")
Functions ¶
func HandleDeleteContainerACLSuccessfully ¶
HandleDeleteContainerACLSuccessfully creates an HTTP handler at `/secrets` on the test handler mux that tests secret deletion.
func HandleDeleteSecretACLSuccessfully ¶
HandleDeleteSecretACLSuccessfully creates an HTTP handler at `/secrets` on the test handler mux that tests secret deletion.
func HandleGetContainerACLSuccessfully ¶
HandleGetContainerACLSuccessfully creates an HTTP handler at `/secrets/uuid/acl` on the test handler mux that responds with an acl.
func HandleGetSecretACLSuccessfully ¶
HandleGetSecretACLSuccessfully creates an HTTP handler at `/secrets/uuid/acl` on the test handler mux that responds with an acl.
func HandleSetContainerACLSuccessfully ¶
HandleSetContainerACLSuccessfully creates an HTTP handler at `/secrets` on the test handler mux that tests secret creation.
func HandleSetSecretACLSuccessfully ¶
HandleSetSecretACLSuccessfully creates an HTTP handler at `/secrets` on the test handler mux that tests secret creation.
func HandleUpdateContainerACLSuccessfully ¶
HandleUpdateContainerACLSuccessfully creates an HTTP handler at `/secrets` on the test handler mux that tests secret creation.
func HandleUpdateSecretACLSuccessfully ¶
HandleUpdateSecretACLSuccessfully creates an HTTP handler at `/secrets` on the test handler mux that tests secret creation.
Types ¶
This section is empty.