(dbName string, scopesConfig rest.ScopesConfig)
| 919 | } |
| 920 | |
| 921 | func getRESTKeyspaces(dbName string, scopesConfig rest.ScopesConfig) []string { |
| 922 | keyspaces := make([]string, 0) |
| 923 | for scopeName, scope := range scopesConfig { |
| 924 | for collectionName := range scope.Collections { |
| 925 | keyspaces = append(keyspaces, strings.Join([]string{dbName, scopeName, collectionName}, base.ScopeCollectionSeparator)) |
| 926 | } |
| 927 | } |
| 928 | return keyspaces |
| 929 | } |
| 930 | |
| 931 | // waitAndRequireDBState issues BootstrapAdminRequests to monitor db state |
| 932 | func waitAndRequireDBState(t *testing.T, sc *rest.ServerContext, dbName string, targetState uint32) { |
no outgoing calls
no test coverage detected