@@ -37,17 +37,17 @@ public void defaultValues() throws IOException {
3737 AgentConfig agentConfig = HypertraceConfig .load (resource .getPath ());
3838 Assertions .assertEquals ("unknown" , agentConfig .getServiceName ().getValue ());
3939 Assertions .assertEquals (
40- HypertraceConfig .DEFAULT_REPORTING_ADDRESS ,
41- agentConfig .getReporting ().getAddress ().getValue ());
40+ HypertraceConfig .DEFAULT_REPORTING_ENDPOINT ,
41+ agentConfig .getReporting ().getEndpoint ().getValue ());
4242 Assertions .assertEquals (
43- Arrays .asList (PropagationFormat .TRACE_CONTEXT ), agentConfig .getPropagationFormatsList ());
43+ Arrays .asList (PropagationFormat .TRACECONTEXT ), agentConfig .getPropagationFormatsList ());
4444 Assertions .assertEquals (false , agentConfig .getReporting ().getSecure ().getValue ());
4545 Assertions .assertEquals (
46- HypertraceConfig .DEFAULT_OPA_ADDRESS ,
47- agentConfig .getReporting ().getOpa ().getAddress ().getValue ());
46+ HypertraceConfig .DEFAULT_OPA_ENDPOINT ,
47+ agentConfig .getReporting ().getOpa ().getEndpoint ().getValue ());
4848 Assertions .assertEquals (
4949 HypertraceConfig .DEFAULT_OPA_POLL_PERIOD_SECONDS ,
50- agentConfig .getReporting ().getOpa ().getPollPeriod ().getValue ());
50+ agentConfig .getReporting ().getOpa ().getPollPeriodSeconds ().getValue ());
5151 Assertions .assertEquals (
5252 true , agentConfig .getDataCapture ().getHttpHeaders ().getRequest ().getValue ());
5353 Assertions .assertEquals (
@@ -93,11 +93,12 @@ private void assertConfig(AgentConfig agentConfig) {
9393 Assertions .assertEquals (
9494 Arrays .asList (PropagationFormat .B3 ), agentConfig .getPropagationFormatsList ());
9595 Assertions .assertEquals (
96- "http://localhost:9411" , agentConfig .getReporting ().getAddress ().getValue ());
96+ "http://localhost:9411" , agentConfig .getReporting ().getEndpoint ().getValue ());
9797 Assertions .assertEquals (true , agentConfig .getReporting ().getSecure ().getValue ());
9898 Assertions .assertEquals (
99- "http://opa.localhost:8181/" , agentConfig .getReporting ().getOpa ().getAddress ().getValue ());
100- Assertions .assertEquals (12 , agentConfig .getReporting ().getOpa ().getPollPeriod ().getValue ());
99+ "http://opa.localhost:8181/" , agentConfig .getReporting ().getOpa ().getEndpoint ().getValue ());
100+ Assertions .assertEquals (
101+ 12 , agentConfig .getReporting ().getOpa ().getPollPeriodSeconds ().getValue ());
101102 Assertions .assertEquals (
102103 true , agentConfig .getDataCapture ().getHttpHeaders ().getRequest ().getValue ());
103104 Assertions .assertEquals (
@@ -109,14 +110,14 @@ private void assertConfig(AgentConfig agentConfig) {
109110 }
110111
111112 @ Test
112- @ ClearSystemProperty (key = EnvironmentConfig .REPORTING_ADDRESS )
113+ @ ClearSystemProperty (key = EnvironmentConfig .REPORTING_ENDPOINT )
113114 public void configWithSystemProps () throws IOException {
114- System .setProperty (EnvironmentConfig .REPORTING_ADDRESS , "http://nowhere.here" );
115+ System .setProperty (EnvironmentConfig .REPORTING_ENDPOINT , "http://nowhere.here" );
115116
116117 URL resource = getClass ().getClassLoader ().getResource ("config.yaml" );
117118 AgentConfig agentConfig = HypertraceConfig .load (resource .getPath ());
118119 Assertions .assertEquals (
119- "http://nowhere.here" , agentConfig .getReporting ().getAddress ().getValue ());
120+ "http://nowhere.here" , agentConfig .getReporting ().getEndpoint ().getValue ());
120121 Assertions .assertEquals ("service" , agentConfig .getServiceName ().getValue ());
121122 }
122123}
0 commit comments