NewRestTesterPersistentConfig returns a rest tester with persistent config setup and a single database. A convenience function for NewRestTester.
(tb testing.TB)
| 159 | |
| 160 | // NewRestTesterPersistentConfig returns a rest tester with persistent config setup and a single database. A convenience function for NewRestTester. |
| 161 | func NewRestTesterPersistentConfig(tb testing.TB) *RestTester { |
| 162 | rt := NewRestTesterPersistentConfigNoDB(tb) |
| 163 | RequireStatus(tb, rt.CreateDatabase("db", rt.NewDbConfig()), http.StatusCreated) |
| 164 | return rt |
| 165 | } |
| 166 | |
| 167 | // newRestTester creates the underlying rest testers, use public functions. |
| 168 | func newRestTester(tb testing.TB, restConfig *RestTesterConfig, collectionConfig collectionConfiguration, numCollections int) *RestTester { |