fix(auth): expose raw projected config revision
This commit is contained in:
@@ -581,7 +581,7 @@ function load(root: string): LoadedAuthConfig {
|
||||
);
|
||||
return {
|
||||
value: selectedGeneration.value,
|
||||
revision: `sha256:${selected.generation}`,
|
||||
revision: selected.generation,
|
||||
sourcePath: join(generationsPath, selected.generation, "auth.yaml"),
|
||||
runtimeProjection: snapshot(
|
||||
selected.generation,
|
||||
|
||||
@@ -283,7 +283,7 @@ linuxTest("loads ready projection as one immutable auth and local-users snapshot
|
||||
const generation = writeReadyProjection(root, fixture);
|
||||
const loaded = createProjectedAuthenticationConfigProvider(root).current();
|
||||
|
||||
expect(loaded.revision).toBe(`sha256:${generation}`);
|
||||
expect(loaded.revision).toBe(generation);
|
||||
expect(loaded.sourcePath).toBe(
|
||||
join(root, "generations", generation, "auth.yaml"),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user