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