github.com/didip/deis@v1.4.1/deisctl/backend/fleet/unit_test.go (about)

     1  package fleet
     2  
     3  import "testing"
     4  
     5  func TestFormatUnitName(t *testing.T) {
     6  	unitName, err := formatUnitName("router", 1)
     7  	if err != nil {
     8  		t.Fatal(err)
     9  	}
    10  	if unitName != "deis-router@1.service" {
    11  		t.Fatalf("invalid unit name: %v", unitName)
    12  	}
    13  
    14  }