@@ -37,18 +37,6 @@ public static IEnumerable<object[]> GetEnabledConfig()
3737
3838 public override Result ValidateIntegrationSpan ( MockSpan span , string metadataSchemaVersion ) => span . IsCosmosDb ( metadataSchemaVersion ) ;
3939
40- private static VerifySettings ApplyCosmosDbScrubbers ( VerifySettings settings )
41- {
42- // Normalize cosmosdb host between localhost, x64, and ARM64
43- settings . AddSimpleScrubber ( "out.host: https://localhost:00000/" , "out.host: https://cosmosdb-emulator:8081/" ) ;
44- settings . AddSimpleScrubber ( "out.host: https://cosmosdb-emulator_arm64:8081/" , "out.host: https://cosmosdb-emulator:8081/" ) ;
45- settings . AddSimpleScrubber ( "out.host: localhost" , "out.host: cosmosdb-emulator" ) ;
46- settings . AddSimpleScrubber ( "out.host: cosmosdb-emulator_arm64" , "out.host: cosmosdb-emulator" ) ;
47- settings . AddSimpleScrubber ( "peer.service: localhost" , "peer.service: cosmosdb-emulator" ) ;
48- settings . AddSimpleScrubber ( "peer.service: cosmosdb-emulator_arm64" , "peer.service: cosmosdb-emulator" ) ;
49- return settings ;
50- }
51-
5240 [ SkippableTheory ]
5341 [ MemberData ( nameof ( GetEnabledConfig ) ) ]
5442 [ Trait ( "Category" , "EndToEnd" ) ]
@@ -124,5 +112,17 @@ public async Task InitializeAsync()
124112 }
125113
126114 public Task DisposeAsync ( ) => Task . CompletedTask ;
115+
116+ private static VerifySettings ApplyCosmosDbScrubbers ( VerifySettings settings )
117+ {
118+ // Normalize cosmosdb host between localhost, x64, and ARM64
119+ settings . AddSimpleScrubber ( "out.host: https://localhost:00000/" , "out.host: https://cosmosdb-emulator:8081/" ) ;
120+ settings . AddSimpleScrubber ( "out.host: https://cosmosdb-emulator_arm64:8081/" , "out.host: https://cosmosdb-emulator:8081/" ) ;
121+ settings . AddSimpleScrubber ( "out.host: localhost" , "out.host: cosmosdb-emulator" ) ;
122+ settings . AddSimpleScrubber ( "out.host: cosmosdb-emulator_arm64" , "out.host: cosmosdb-emulator" ) ;
123+ settings . AddSimpleScrubber ( "peer.service: localhost" , "peer.service: cosmosdb-emulator" ) ;
124+ settings . AddSimpleScrubber ( "peer.service: cosmosdb-emulator_arm64" , "peer.service: cosmosdb-emulator" ) ;
125+ return settings ;
126+ }
127127 }
128128}
0 commit comments