@@ -84,19 +84,40 @@ describe('Api detail breadcrumb resolver', () => {
8484 runFakeRxjs ( ( { expectObservable } ) => {
8585 expectObservable ( breadcrumb$ ) . toBe ( '(abc|)' , {
8686 a : {
87+ [ entityIdKey ] : 'test-id' ,
88+ [ entityTypeKey ] : ObservabilityEntityType . Api ,
8789 label : 'test service' ,
8890 icon : ObservabilityIconType . Service ,
89- url : [ 'services' , 'service' , 'test-service-id' ]
91+ url : [ 'services' , 'service' , 'test-service-id' ] ,
92+ name : 'test api' ,
93+ parentId : 'test-service-id' ,
94+ parentName : 'test service' ,
95+ serviceName : 'test service' ,
96+ serviceId : 'test-service-id'
9097 } ,
9198 b : {
99+ [ entityIdKey ] : 'test-id' ,
100+ [ entityTypeKey ] : ObservabilityEntityType . Api ,
92101 label : 'Endpoints' ,
93102 icon : ObservabilityIconType . Api ,
94- url : [ 'services' , 'service' , 'test-service-id' , 'endpoints' ]
103+ url : [ 'services' , 'service' , 'test-service-id' , 'endpoints' ] ,
104+ name : 'test api' ,
105+ parentId : 'test-service-id' ,
106+ parentName : 'test service' ,
107+ serviceName : 'test service' ,
108+ serviceId : 'test-service-id'
95109 } ,
96110 c : {
111+ [ entityIdKey ] : 'test-id' ,
112+ [ entityTypeKey ] : ObservabilityEntityType . Api ,
97113 label : 'test api' ,
98114 icon : ObservabilityIconType . Api ,
99- url : [ 'api' , 'test-id' ]
115+ url : [ 'api' , 'test-id' ] ,
116+ name : 'test api' ,
117+ parentId : 'test-service-id' ,
118+ parentName : 'test service' ,
119+ serviceName : 'test service' ,
120+ serviceId : 'test-service-id'
100121 }
101122 } ) ;
102123 } ) ;
@@ -109,7 +130,7 @@ describe('Api detail breadcrumb resolver', () => {
109130 entityType : ObservabilityEntityType . Api ,
110131 id : 'test-id'
111132 } ) ,
112- { cacheability : GraphQlRequestCacheability . NotCacheable }
133+ { cacheability : GraphQlRequestCacheability . Cacheable }
113134 ) ;
114135 } ) ) ;
115136
@@ -123,9 +144,14 @@ describe('Api detail breadcrumb resolver', () => {
123144 runFakeRxjs ( ( { expectObservable } ) => {
124145 expectObservable ( breadcrumb$ ) . toBe ( '(y|)' , {
125146 y : {
147+ [ entityIdKey ] : 'test-id' ,
148+ [ entityTypeKey ] : ObservabilityEntityType . Api ,
126149 label : 'test api' ,
127150 icon : ObservabilityIconType . Api ,
128- url : [ 'api' , 'test-id' ]
151+ url : [ 'api' , 'test-id' ] ,
152+ name : 'test api' ,
153+ serviceName : 'test service' ,
154+ serviceId : 'test-service-id'
129155 }
130156 } ) ;
131157 } ) ;
@@ -138,7 +164,7 @@ describe('Api detail breadcrumb resolver', () => {
138164 entityType : ObservabilityEntityType . Api ,
139165 id : 'test-id'
140166 } ) ,
141- { cacheability : GraphQlRequestCacheability . NotCacheable }
167+ { cacheability : GraphQlRequestCacheability . Cacheable }
142168 ) ;
143169 } ) ) ;
144170} ) ;
0 commit comments