diff --git a/report/id_test.go b/report/id_test.go index 7854ae273a..f6306e5c12 100644 --- a/report/id_test.go +++ b/report/id_test.go @@ -66,3 +66,15 @@ func TestEndpointNodeID(t *testing.T) { } } } + +func TestECSServiceNodeIDCompat(t *testing.T) { + testID := "my-service;" + testName := "my-service" + _, name, ok := report.ParseECSServiceNodeID(testID) + if !ok { + t.Errorf("Failed to parse backwards-compatible id %q", testID) + } + if name != testName { + t.Errorf("Backwards-compatible id %q parsed name to %q, expected %q", testID, name, testName) + } +}