Skip to content

Commit 747f5f1

Browse files
committed
Review feedback: reformat JSON snippets in tests
1 parent 885a2ff commit 747f5f1

2 files changed

Lines changed: 21 additions & 9 deletions

File tree

src/Configuration/test/ConfigServer.Test/ConfigServerClientOptionsTest.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,9 @@ public void Certificate_configuration_survives_options_reload()
229229
const string configServerResponseJson = """
230230
{
231231
"name": "myName",
232-
"profiles": [ "Production" ],
232+
"profiles": [
233+
"Production"
234+
],
233235
"label": "test-label",
234236
"version": "test-version",
235237
"propertySources": []
@@ -401,9 +403,9 @@ public void Changes_in_IConfiguration_update_provider_options_and_injected_optio
401403
fileProvider.ReplaceAppSettingsJsonFile("""
402404
{
403405
"custom": {
404-
"profileName": "example-profile"
405-
},
406-
"spring": {
406+
"profileName": "example-profile"
407+
},
408+
"spring": {
407409
"cloud": {
408410
"config": {
409411
"uri": "https://alternate-config.server.com:7777",

src/Configuration/test/ConfigServer.Test/ConfigServerConfigurationProviderTest.Loading.cs

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ public void OnSettingsChanged_stops_reload_timer_when_polling_no_longer_enabled(
220220
const string responseJson = """
221221
{
222222
"name": "myName",
223-
"profiles": [ "Production" ],
223+
"profiles": [
224+
"Production"
225+
],
224226
"label": "test-label",
225227
"version": "test-version",
226228
"propertySources": []
@@ -283,7 +285,9 @@ public void OnSettingsChanged_reschedules_reload_timer_when_polling_interval_cha
283285
const string responseJson = """
284286
{
285287
"name": "myName",
286-
"profiles": [ "Production" ],
288+
"profiles": [
289+
"Production"
290+
],
287291
"label": "test-label",
288292
"version": "test-version",
289293
"propertySources": []
@@ -346,7 +350,9 @@ public void OnSettingsChanged_stops_vault_renew_timer_when_renewal_becomes_disab
346350
const string responseJson = """
347351
{
348352
"name": "myName",
349-
"profiles": [ "Production" ],
353+
"profiles": [
354+
"Production"
355+
],
350356
"label": "test-label",
351357
"version": "test-version",
352358
"propertySources": []
@@ -406,7 +412,9 @@ public void Load_MultipleConfigServers_SocketError_FallsBackToNextServer()
406412
const string responseJson = """
407413
{
408414
"name": "test-name",
409-
"profiles": [ "Production" ],
415+
"profiles": [
416+
"Production"
417+
],
410418
"label": "test-label",
411419
"version": "test-version",
412420
"propertySources": [
@@ -446,7 +454,9 @@ public void Load_IdenticalData_DoesNotTriggerReload()
446454
const string responseJson = """
447455
{
448456
"name": "test-name",
449-
"profiles": [ "Production" ],
457+
"profiles": [
458+
"Production"
459+
],
450460
"label": "test-label",
451461
"version": "test-version",
452462
"propertySources": [

0 commit comments

Comments
 (0)