Skip to content

Commit fbbdfcb

Browse files
fix: opamp endpoint staging (#1950)
1 parent 90f89bb commit fbbdfcb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

agent-control/src/cli/on_host/config_gen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ agents:
407407

408408
const EXPECTED_NONE_STAGING: &str = r#"
409409
fleet_control:
410-
endpoint: https://staging-service.newrelic.com/v1/opamp
410+
endpoint: https://opamp.staging-service.newrelic.com/v1/opamp
411411
signature_validation:
412412
public_key_server_url: https://staging-publickeys.newrelic.com/r/blob-management/global/agentconfiguration/jwks.json
413413
fleet_id: test-fleet-id

agent-control/src/cli/on_host/config_gen/region.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use nr_auth::{
77

88
const OPAMP_ENDPOINT_US: &str = "https://opamp.service.newrelic.com/v1/opamp";
99
const OPAMP_ENDPOINT_EU: &str = "https://opamp.service.eu.newrelic.com/v1/opamp";
10-
const OPAMP_ENDPOINT_STAGING: &str = "https://staging-service.newrelic.com/v1/opamp";
10+
const OPAMP_ENDPOINT_STAGING: &str = "https://opamp.staging-service.newrelic.com/v1/opamp";
1111

1212
const PUBLIC_KEY_ENDPOINT_US: &str =
1313
"https://publickeys.newrelic.com/r/blob-management/global/agentconfiguration/jwks.json";
@@ -110,7 +110,7 @@ mod tests {
110110
#[rstest]
111111
#[case(Region::US, "https://opamp.service.newrelic.com/v1/opamp")]
112112
#[case(Region::EU, "https://opamp.service.eu.newrelic.com/v1/opamp")]
113-
#[case(Region::STAGING, "https://staging-service.newrelic.com/v1/opamp")]
113+
#[case(Region::STAGING, "https://opamp.staging-service.newrelic.com/v1/opamp")]
114114
fn test_opamp_endpoint(#[case] region: Region, #[case] expected_endpoint: &str) {
115115
assert_eq!(
116116
region.opamp_endpoint().to_string(),

0 commit comments

Comments
 (0)