diff --git a/backend/inventory/app/server_test.go b/backend/inventory/app/server_test.go index 7584170c0d..4fb7771903 100644 --- a/backend/inventory/app/server_test.go +++ b/backend/inventory/app/server_test.go @@ -13,7 +13,7 @@ import ( pb "github.com/spotify/backstage/proto/inventory/v1" ) -var entityURI = "boss://test/test" +var entityURI = "entity:test:test" func TestServer(t *testing.T) { testStorage := NewTestStorage() @@ -35,7 +35,7 @@ func TestServer(t *testing.T) { t.Errorf("ServerTest(ListEntities) expected %v items, got %v", 1, len(list.GetEntities())) } if list.GetEntities()[0].GetUri() != entityURI { - t.Errorf("ServerTest(ListEntities) expected uri %v, got %v", "boss://test/test", list.GetEntities()[0].GetUri()) + t.Errorf("ServerTest(ListEntities) expected uri %v, got %v", "entity:test:test", list.GetEntities()[0].GetUri()) } expectedFacts := []*pb.Fact{{Name: "test-name", Value: "test-value"}} if !reflect.DeepEqual(list.GetEntities()[0].GetFacts(), expectedFacts) { @@ -47,7 +47,7 @@ func TestServer(t *testing.T) { entity := &pb.Entity{Uri: entityURI} s.CreateEntity(context.Background(), &pb.CreateEntityRequest{Entity: entity}) - list, err := s.ListEntities(context.Background(), &pb.ListEntitiesRequest{UriPrefix: "boss://test2"}) + list, err := s.ListEntities(context.Background(), &pb.ListEntitiesRequest{UriPrefix: "entity:test2"}) if err != nil { t.Errorf("ServerTest(TestServerListEntities) could not list: %v", err) } diff --git a/frontend/packages/plugins/home-page/src/components/HomePage/HomePage.tsx b/frontend/packages/plugins/home-page/src/components/HomePage/HomePage.tsx index edec2112ed..ffe75b2699 100644 --- a/frontend/packages/plugins/home-page/src/components/HomePage/HomePage.tsx +++ b/frontend/packages/plugins/home-page/src/components/HomePage/HomePage.tsx @@ -17,11 +17,11 @@ import { inventoryV1 } from '@backstage/protobuf-definitions'; const client = new inventoryV1.Client('http://localhost:8080'); -const entityUriRegex = /boss:\/\/service\/(.*)/; +const entityUriRegex = /entity:service:(.*)/; async function fetchServices() { const req = new inventoryV1.ListEntitiesRequest(); - req.setUriprefix('boss://service/'); + req.setUriprefix('entity:service:'); const res = await client.listEntities(req); return res