blob: 5314e854ff1c87ad3ec0fac64cc47a65c2e340e1 [file] [log] [blame]
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
)