github.com/flanksource/konfigadm@v0.12.0/pkg/phases/containers_test.go (about)

     1  package phases_test
     2  
     3  import (
     4  	_ "github.com/flanksource/konfigadm/pkg"
     5  	. "github.com/flanksource/konfigadm/pkg/types"
     6  	"github.com/onsi/gomega"
     7  	"testing"
     8  )
     9  
    10  func TestContainers(t *testing.T) {
    11  	cfg, g := NewFixture("containers.yml", t).Build()
    12  	files, commands, _ := cfg.ApplyPhases()
    13  	g.Expect(commands).To(MatchCommand("systemctl start consul"))
    14  	g.Expect(commands).To(MatchCommand("systemctl enable consul"))
    15  	g.Expect(files).To(gomega.HaveKey("/etc/environment.consul"))
    16  	g.Expect(files).To(gomega.HaveKey("/etc/systemd/system/consul.service"))
    17  }