Skip to content

Commit 176e7da

Browse files
committed
Set templated=false for all management endpoints
1 parent 68f4fae commit 176e7da

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

src/Management/src/Endpoint/Actuators/Hypermedia/HypermediaService.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ private static Link CreateLink(Uri baseUrl, string? basePath, EndpointOptions en
114114
};
115115

116116
string href = builder.Uri.ToString();
117-
bool isTemplated = !endpointOptions.RequiresExactMatch();
118-
return new Link(href, isTemplated);
117+
return new Link(href, false);
119118
}
120119
}

src/Management/test/Endpoint.Test/Actuators/CloudFoundry/CloudFoundryActuatorTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public async Task Endpoint_returns_expected_data_with_all_actuators_registered(H
176176
},
177177
"health": {
178178
"href": "http://localhost/cloudfoundryapplication/health",
179-
"templated": true
179+
"templated": false
180180
},
181181
"heapdump": {
182182
"href": "http://localhost/cloudfoundryapplication/heapdump",
@@ -192,7 +192,7 @@ public async Task Endpoint_returns_expected_data_with_all_actuators_registered(H
192192
},
193193
"loggers": {
194194
"href": "http://localhost/cloudfoundryapplication/loggers",
195-
"templated": true
195+
"templated": false
196196
},
197197
"mappings": {
198198
"href": "http://localhost/cloudfoundryapplication/mappings",
@@ -410,7 +410,7 @@ public async Task Hides_disabled_actuators_and_ignores_exposure()
410410
"_links": {
411411
"loggers": {
412412
"href": "http://localhost/cloudfoundryapplication/loggers",
413-
"templated": true
413+
"templated": false
414414
},
415415
"self": {
416416
"href": "http://localhost/cloudfoundryapplication",
@@ -507,7 +507,7 @@ public async Task Can_change_configuration_at_runtime()
507507
"_links": {
508508
"health": {
509509
"href": "http://localhost/cloudfoundryapplication/health",
510-
"templated": true
510+
"templated": false
511511
},
512512
"self": {
513513
"href": "http://localhost/cloudfoundryapplication",

src/Management/test/Endpoint.Test/Actuators/Hypermedia/HypermediaActuatorTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public async Task Endpoint_returns_expected_data_with_all_actuators_registered(H
111111
"_links": {
112112
"health": {
113113
"href": "http://localhost/actuator/health",
114-
"templated": true
114+
"templated": false
115115
},
116116
"info": {
117117
"href": "http://localhost/actuator/info",
@@ -196,7 +196,7 @@ public async Task Can_use_alternate_IDs_and_paths()
196196
},
197197
"loggers": {
198198
"href": "http://localhost/alt-actuator/alt-loggers-path",
199-
"templated": true
199+
"templated": false
200200
},
201201
"self": {
202202
"href": "http://localhost/alt-actuator/hypermedia",
@@ -448,7 +448,7 @@ public async Task Can_change_configuration_at_runtime()
448448
"_links": {
449449
"health": {
450450
"href": "http://localhost/actuator/health",
451-
"templated": true
451+
"templated": false
452452
},
453453
"self": {
454454
"href": "http://localhost/actuator",

0 commit comments

Comments
 (0)