testing

package
v0.0.0-...-cd80d89 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ContainerSetResponse = `
{
  "acl_ref": "http://barbican:9311/v1/containers/4befede0-fbde-4480-982c-b160c1014a47/acl"
}`
View Source
const GetResponse = `` /* 187-byte string literal not displayed */
View Source
const SecretSetResponse = `
{
  "acl_ref": "http://barbican:9311/v1/secrets/4befede0-fbde-4480-982c-b160c1014a47/acl"
}`
View Source
const SetRequest = `
{
  "read": {
    "project-access": false,
    "users": [
      "GG27dVwR9gBMnsOaRoJ1DFJmZfdVjIdW"
    ]
  }
}`
View Source
const UpdateRequest = `
{
  "read": {
    "users": []
  }
}`

Variables

View Source
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",
		},
	},
}
View Source
var ExpectedContainerACLRef = acls.ACLRef("http://barbican:9311/v1/containers/4befede0-fbde-4480-982c-b160c1014a47/acl")
View Source
var ExpectedSecretACLRef = acls.ACLRef("http://barbican:9311/v1/secrets/4befede0-fbde-4480-982c-b160c1014a47/acl")

Functions

func HandleDeleteContainerACLSuccessfully

func HandleDeleteContainerACLSuccessfully(t *testing.T)

HandleDeleteContainerACLSuccessfully creates an HTTP handler at `/secrets` on the test handler mux that tests secret deletion.

func HandleDeleteSecretACLSuccessfully

func HandleDeleteSecretACLSuccessfully(t *testing.T)

HandleDeleteSecretACLSuccessfully creates an HTTP handler at `/secrets` on the test handler mux that tests secret deletion.

func HandleGetContainerACLSuccessfully

func HandleGetContainerACLSuccessfully(t *testing.T)

HandleGetContainerACLSuccessfully creates an HTTP handler at `/secrets/uuid/acl` on the test handler mux that responds with an acl.

func HandleGetSecretACLSuccessfully

func HandleGetSecretACLSuccessfully(t *testing.T)

HandleGetSecretACLSuccessfully creates an HTTP handler at `/secrets/uuid/acl` on the test handler mux that responds with an acl.

func HandleSetContainerACLSuccessfully

func HandleSetContainerACLSuccessfully(t *testing.T)

HandleSetContainerACLSuccessfully creates an HTTP handler at `/secrets` on the test handler mux that tests secret creation.

func HandleSetSecretACLSuccessfully

func HandleSetSecretACLSuccessfully(t *testing.T)

HandleSetSecretACLSuccessfully creates an HTTP handler at `/secrets` on the test handler mux that tests secret creation.

func HandleUpdateContainerACLSuccessfully

func HandleUpdateContainerACLSuccessfully(t *testing.T)

HandleUpdateContainerACLSuccessfully creates an HTTP handler at `/secrets` on the test handler mux that tests secret creation.

func HandleUpdateSecretACLSuccessfully

func HandleUpdateSecretACLSuccessfully(t *testing.T)

HandleUpdateSecretACLSuccessfully creates an HTTP handler at `/secrets` on the test handler mux that tests secret creation.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL