github.com/flanksource/konfigadm@v0.12.0/pkg/phases/files_test.go (about) 1 package phases_test 2 3 import ( 4 . "github.com/flanksource/konfigadm/pkg/types" 5 "github.com/onsi/gomega" 6 "io/ioutil" 7 "testing" 8 ) 9 10 func TestCopy(t *testing.T) { 11 cfg, g := NewFixture("files.yml", t).Build() 12 fs, _, _ := cfg.ApplyPhases() 13 data, _ := ioutil.ReadFile("../../fixtures/files.yml") 14 g.Expect(fs).To(gomega.HaveKey("/etc/test")) 15 g.Expect(fs["/etc/test"].Content).To(gomega.Equal(string(data))) 16 } 17 18 func TestLookup(t *testing.T) { 19 } 20 21 func TestLookupFromContext(t *testing.T) { 22 }