github.com/flanksource/konfigadm@v0.12.0/pkg/phases/sysctl_test.go (about) 1 package phases_test 2 3 import ( 4 "testing" 5 6 . "github.com/flanksource/konfigadm/pkg/types" 7 "github.com/onsi/gomega" 8 ) 9 10 func TestSysctl(t *testing.T) { 11 cfg, g := NewFixture("sysctl.yml", t).Build() 12 files, commands, _ := cfg.ApplyPhases() 13 g.Expect(files).To(gomega.HaveLen(1)) 14 g.Expect(commands).To(MatchCommand("sysctl -w net.ipv6.conf.all.disable_ipv6=1")) 15 }