Migrate acquisition fixtures to document-root controls
This commit is contained in:
@@ -28,7 +28,7 @@ type layeredConfig struct {
|
||||
|
||||
func TestLayeredProvenanceAgreesWithResolvedSnapshot(t *testing.T) {
|
||||
directory := t.TempDir()
|
||||
mainPath := writeImportFile(t, directory, "main.yml", `configkit:
|
||||
mainPath := writeImportFile(t, directory, "main.yml", `config:
|
||||
imports: [{path: imported.yml}]
|
||||
shared: {equal: same}
|
||||
values: [1, 2]
|
||||
@@ -209,7 +209,7 @@ func TestSelectedOverlayLoadsRemainIndependentConcurrently(t *testing.T) {
|
||||
|
||||
func TestResolutionInputKeepsLayeredOriginsAndSources(t *testing.T) {
|
||||
directory := t.TempDir()
|
||||
mainPath := writeImportFile(t, directory, "main.yml", `configkit:
|
||||
mainPath := writeImportFile(t, directory, "main.yml", `config:
|
||||
imports: [{path: first.yml}, {path: second.yml}]
|
||||
main: main
|
||||
equal: same
|
||||
@@ -361,7 +361,7 @@ func TestResolutionInputDistinguishesNonFileRootsAndImportedFiles(t *testing.T)
|
||||
Imported string `yaml:"imported"`
|
||||
Default string `yaml:"default"`
|
||||
}
|
||||
input := "configkit: {imports: [{path: fragment.yml}]}\nroot: memory\n"
|
||||
input := "config: {imports: [{path: fragment.yml}]}\nroot: memory\n"
|
||||
context := &FilesystemContext{BaseDir: directory, Root: directory}
|
||||
for _, test := range []struct {
|
||||
name string
|
||||
|
||||
Reference in New Issue
Block a user