testing

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TestCreateUserOptsRaw = `
{
    "user": {
        "name": "NewUser1",
        "password":"verysecret"
    }
}
`

TestCreateUserOptsRaw represents marshalled options for the Create request.

View Source
const TestCreateUserResponseRaw = `` /* 127-byte string literal not displayed */

TestCreateUserResponseRaw represents a raw response from the Create request.

View Source
const TestGetUserInvalidResponseRaw = `
{
    "user": {
        "id": 999
    }
}
`

TestGetUserInvalidResponseRaw represents a raw invalid response with single user.

View Source
const TestGetUsersResponseRaw = `
{
    "user": {
        "enabled": false,
        "id": "c4b7e0581b964c52a1597fe0931eccdf",
        "name": "User1"
    }
}
`

TestGetUsersResponseRaw represents a raw response from the Get request.

View Source
const TestListUsersResponseRaw = `` /* 290-byte string literal not displayed */

TestListUsersResponseRaw represents a raw response from the List request.

View Source
const TestListUsersSingleUserResponseRaw = `` /* 157-byte string literal not displayed */

TestListUsersSingleUserResponseRaw represents a raw response with a single user from the List request.

View Source
const TestManyUsersInvalidResponseRaw = `
{
    "users": [
        {
            "id": 222
        }
    ]
}
`

TestManyUsersInvalidResponseRaw represents a raw invalid response with several users.

View Source
const TestSingleUserInvalidResponseRaw = `
{
    "user": [
        {
            "id": 222
        }
    ]
}
`

TestSingleUserInvalidResponseRaw represents a raw invalid response with a single user.

View Source
const TestUpdateUserOptsRaw = `
{
    "user": {
        "name": "UpdatedUser1",
        "password":"supersecret"
    }
}
`

TestUpdateUserOptsRaw represents marshalled options for the Update request.

View Source
const TestUpdateUserResponseRaw = `` /* 131-byte string literal not displayed */

TestUpdateUserResponseRaw represents a raw response from the Update request.

Variables

View Source
var TestCreateUserOpts = users.UserOpts{
	Name:     "NewUser1",
	Password: "verysecret",
}

TestCreateUserOpts represent options for the Create request.

View Source
var TestCreateUserResponse = &users.User{
	ID:      "4b2e452ed4c940bd87a88499eaf14c4f",
	Name:    "NewUser1",
	Enabled: true,
}

TestCreateUserResponse represents the unmarshalled TestCreateUserResponseRaw response.

View Source
var TestGetUsersResponse = &users.User{
	ID:      "c4b7e0581b964c52a1597fe0931eccdf",
	Name:    "User1",
	Enabled: false,
}

TestGetUsersResponse represents the unmarshalled TestGetUsersResponseRaw response.

View Source
var TestListUsersSingleUserResponse = []*users.User{
	{
		Enabled: true,
		Name:    "User1",
		ID:      "4b2e452ed4c940bd87a88499eaf14c4f",
	},
}

TestListUsersSingleUserResponse represents the unmarshalled TestListUsersSingleUserResponseRaw response.

View Source
var TestUpdateUserOpts = users.UserOpts{
	Name:     "UpdatedUser1",
	Password: "supersecret",
}

TestUpdateUserOpts represents options for the Update request.

View Source
var TestUpdateUserResponse = &users.User{
	ID:      "4b2e452ed4c940bd87a88499eaf14c4f",
	Name:    "UpdatedUser1",
	Enabled: true,
}

TestUpdateUserResponse represents the unmarshalled TestUpdateUserResponseRaw response.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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