Fix test scope errors (#1029)
When using a disabled verifier context we were faking scope information. Due to other recent changes, this was now causing test errors. This adjusts that flow to actually query the DB, fixing tests and making them more like real code.
This commit is contained in:
1 parent
c95f6df36d
commit
3c430678ae
16 files changed
+523
-335
No files matched your search
@@ -57,7 +57,7 @@ func GetListingScopeIds(
|
||||
// Base case: if not recursive, return the scope we were given and the
|
||||
// already-looked-up info
|
||||
if !recursive {
|
||||
return []string{rootScopeId}, map[string]*scopes.ScopeInfo{rootScopeId: authResults.Scope}, nil
|
||||
return []string{authResults.Scope.Id}, map[string]*scopes.ScopeInfo{authResults.Scope.Id: authResults.Scope}, nil
|
||||
}
|
||||
|
||||
// This will be used to memoize scope info so we can put the right scope
|
||||
|
||||
Reference in new issue
Block a user