Skip to content

Commit c8b40fd

Browse files
avoid printing service "Status", only print "State"
1 parent 28a6697 commit c8b40fd

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/pkg/cli/deploymentinfo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func PrintServiceStatesAndEndpoints(serviceInfos []*defangv1.ServiceInfo) error
5858
return err
5959
}
6060

61-
attrs := []string{"Service", "Deployment", "State", "Fqdn", "Endpoint", "Status"}
61+
attrs := []string{"Service", "Deployment", "State", "Fqdn", "Endpoint"}
6262
// if showDomainNameColumn {
6363
// attrs = append(attrs, "DomainName")
6464
// }

src/pkg/cli/deploymentinfo_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ func TestPrintServiceStatesAndEndpointsAndDomainname(t *testing.T) {
3737
},
3838
},
3939
expectedLines: []string{
40-
"SERVICE DEPLOYMENT STATE FQDN ENDPOINT STATUS",
41-
"service1 NOT_SPECIFIED https://example.com UNKNOWN",
40+
"SERVICE DEPLOYMENT STATE FQDN ENDPOINT",
41+
"service1 NOT_SPECIFIED https://example.com",
4242
"",
4343
},
4444
},
@@ -58,8 +58,8 @@ func TestPrintServiceStatesAndEndpointsAndDomainname(t *testing.T) {
5858
},
5959
},
6060
expectedLines: []string{
61-
"SERVICE DEPLOYMENT STATE FQDN ENDPOINT STATUS",
62-
"service1 NOT_SPECIFIED https://example.com UNKNOWN",
61+
"SERVICE DEPLOYMENT STATE FQDN ENDPOINT",
62+
"service1 NOT_SPECIFIED https://example.com",
6363
"",
6464
},
6565
},
@@ -77,8 +77,8 @@ func TestPrintServiceStatesAndEndpointsAndDomainname(t *testing.T) {
7777
},
7878
},
7979
expectedLines: []string{
80-
"SERVICE DEPLOYMENT STATE FQDN ENDPOINT STATUS",
81-
"service1 NOT_SPECIFIED N/A UNKNOWN",
80+
"SERVICE DEPLOYMENT STATE FQDN ENDPOINT",
81+
"service1 NOT_SPECIFIED N/A",
8282
"",
8383
},
8484
},

src/pkg/cli/getServices_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ func TestPrintServices(t *testing.T) {
8686
if err != nil {
8787
t.Fatalf("PrintServices error = %v", err)
8888
}
89-
expectedOutput := "\x1b[95m * Checking service health...\n\x1b[0m\x1b[1m\nSERVICE DEPLOYMENT STATE FQDN ENDPOINT STATUS\x1b[0m" + `
90-
foo a1b2c3 NOT_SPECIFIED test-foo.prod1.defang.dev https://test-foo.prod1.defang.dev NOT_SPECIFIED
89+
expectedOutput := "\x1b[95m * Checking service health...\n\x1b[0m\x1b[1m\nSERVICE DEPLOYMENT STATE FQDN ENDPOINT\x1b[0m" + `
90+
foo a1b2c3 NOT_SPECIFIED test-foo.prod1.defang.dev https://test-foo.prod1.defang.dev
9191
`
9292

9393
receivedLines := strings.Split(stdout.String(), "\n")

0 commit comments

Comments
 (0)