test

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePolicyAclBadRequest

func CreatePolicyAclBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AclController, payload *app.ACLPolicyPayload) (http.ResponseWriter, error)

CreatePolicyAclBadRequest runs the method CreatePolicy of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func CreatePolicyAclCreated

func CreatePolicyAclCreated(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AclController, payload *app.ACLPolicyPayload) (http.ResponseWriter, *app.ACLPolicy)

CreatePolicyAclCreated runs the method CreatePolicy of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func CreatePolicyAclInternalServerError

func CreatePolicyAclInternalServerError(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AclController, payload *app.ACLPolicyPayload) (http.ResponseWriter, error)

CreatePolicyAclInternalServerError runs the method CreatePolicy of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func DeletePolicyAclInternalServerError

func DeletePolicyAclInternalServerError(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AclController, policyID string) (http.ResponseWriter, error)

DeletePolicyAclInternalServerError runs the method DeletePolicy of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func DeletePolicyAclNotFound

func DeletePolicyAclNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AclController, policyID string) (http.ResponseWriter, error)

DeletePolicyAclNotFound runs the method DeletePolicy of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func DeletePolicyAclOK

func DeletePolicyAclOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AclController, policyID string) (http.ResponseWriter, *app.ACLPolicy)

DeletePolicyAclOK runs the method DeletePolicy of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func GetAclInternalServerError

func GetAclInternalServerError(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AclController, policyID string) (http.ResponseWriter, error)

GetAclInternalServerError runs the method Get of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func GetAclNotFound

func GetAclNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AclController, policyID string) (http.ResponseWriter, error)

GetAclNotFound runs the method Get of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func GetAclOK

func GetAclOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AclController, policyID string) (http.ResponseWriter, *app.ACLPolicy)

GetAclOK runs the method Get of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func ManageAccessAclBadRequest

func ManageAccessAclBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AclController, payload *app.AccessPolicyPayload) (http.ResponseWriter, error)

ManageAccessAclBadRequest runs the method ManageAccess of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func ManageAccessAclInternalServerError

func ManageAccessAclInternalServerError(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AclController, payload *app.AccessPolicyPayload) (http.ResponseWriter, error)

ManageAccessAclInternalServerError runs the method ManageAccess of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func ManageAccessAclOK

func ManageAccessAclOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AclController, payload *app.AccessPolicyPayload) (http.ResponseWriter, *app.ACLPolicy)

ManageAccessAclOK runs the method ManageAccess of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func UpdatePolicyAclBadRequest

func UpdatePolicyAclBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AclController, policyID string, payload *app.ACLPolicyPayload) (http.ResponseWriter, error)

UpdatePolicyAclBadRequest runs the method UpdatePolicy of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func UpdatePolicyAclInternalServerError

func UpdatePolicyAclInternalServerError(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AclController, policyID string, payload *app.ACLPolicyPayload) (http.ResponseWriter, error)

UpdatePolicyAclInternalServerError runs the method UpdatePolicy of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func UpdatePolicyAclNotFound

func UpdatePolicyAclNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AclController, policyID string, payload *app.ACLPolicyPayload) (http.ResponseWriter, error)

UpdatePolicyAclNotFound runs the method UpdatePolicy of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

func UpdatePolicyAclOK

func UpdatePolicyAclOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.AclController, policyID string, payload *app.ACLPolicyPayload) (http.ResponseWriter, *app.ACLPolicy)

UpdatePolicyAclOK runs the method UpdatePolicy of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.

Types

This section is empty.

Jump to

Keyboard shortcuts

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