Jamie Hannaford | af4570f | 2015-02-12 13:33:25 +0100 | [diff] [blame] | 1 | package users |
| 2 | |
Jamie Hannaford | d3a78ef | 2015-02-18 12:17:16 +0100 | [diff] [blame^] | 3 | import "fmt" |
Jamie Hannaford | af4570f | 2015-02-12 13:33:25 +0100 | [diff] [blame] | 4 | |
Jamie Hannaford | d3a78ef | 2015-02-18 12:17:16 +0100 | [diff] [blame^] | 5 | const user1 = ` |
| 6 | {"databases": [{"name": "databaseA"}],"name": "dbuser3"%s} |
| 7 | ` |
| 8 | |
| 9 | const user2 = ` |
| 10 | {"databases": [{"name": "databaseB"},{"name": "databaseC"}],"name": "dbuser4"%s} |
| 11 | ` |
| 12 | |
| 13 | var ( |
| 14 | pUser1 = fmt.Sprintf(user1, `,"password":"secretsecret"`) |
| 15 | pUser2 = fmt.Sprintf(user2, `,"password":"secretsecret"`) |
Jamie Hannaford | af4570f | 2015-02-12 13:33:25 +0100 | [diff] [blame] | 16 | ) |
| 17 | |
Jamie Hannaford | d3a78ef | 2015-02-18 12:17:16 +0100 | [diff] [blame^] | 18 | var ( |
| 19 | createReq = fmt.Sprintf(`{"users":[%s, %s]}`, pUser1, pUser2) |
| 20 | listResp = fmt.Sprintf(`{"users":[%s, %s]}`, fmt.Sprintf(user1, ""), fmt.Sprintf(user2, "")) |
| 21 | ) |