blob: bc548675c4ab9eb8fb83fb0812fa45e6c439243f [file] [log] [blame]
// +build fixtures
package users
const singleDB = `{"databases": [{"name": "databaseE"}]}`
var changePwdReq = `
{
"users": [
{
"name": "dbuser1",
"password": "newpassword"
},
{
"name": "dbuser2",
"password": "anotherpassword"
}
]
}
`
var updateReq = `
{
"user": {
"name": "new_username",
"password": "new_password"
}
}
`
var getResp = `
{
"user": {
"name": "exampleuser",
"host": "foo",
"databases": [
{
"name": "databaseA"
},
{
"name": "databaseB"
}
]
}
}
`
var listResp = `
{
"users": [
{
"name": "dbuser1",
"host": "localhost",
"databases": [
{
"name": "databaseA"
}
]
},
{
"name": "dbuser2",
"host": "localhost",
"databases": [
{
"name": "databaseB"
},
{
"name": "databaseC"
}
]
}
]
}
`
var (
listUserAccessResp = singleDB
grantUserAccessReq = singleDB
)