blob: 25b75f14a9b3977e27f8ce7b7e381bb424aa323c [file] [log] [blame]
Jamie Hannafordaf4570f2015-02-12 13:33:25 +01001package users
2
Jamie Hannafordd3a78ef2015-02-18 12:17:16 +01003import "fmt"
Jamie Hannafordaf4570f2015-02-12 13:33:25 +01004
Jamie Hannafordd3a78ef2015-02-18 12:17:16 +01005const user1 = `
6{"databases": [{"name": "databaseA"}],"name": "dbuser3"%s}
7`
8
9const user2 = `
10{"databases": [{"name": "databaseB"},{"name": "databaseC"}],"name": "dbuser4"%s}
11`
12
13var (
14 pUser1 = fmt.Sprintf(user1, `,"password":"secretsecret"`)
15 pUser2 = fmt.Sprintf(user2, `,"password":"secretsecret"`)
Jamie Hannafordaf4570f2015-02-12 13:33:25 +010016)
17
Jamie Hannafordd3a78ef2015-02-18 12:17:16 +010018var (
19 createReq = fmt.Sprintf(`{"users":[%s, %s]}`, pUser1, pUser2)
20 listResp = fmt.Sprintf(`{"users":[%s, %s]}`, fmt.Sprintf(user1, ""), fmt.Sprintf(user2, ""))
21)