-
Notifications
You must be signed in to change notification settings - Fork 121
feat(region): add Japan (JP) region support #1391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,10 @@ func TestParse(t *testing.T) { | |
| "Eu": EU, | ||
| "eU": EU, | ||
| "EU": EU, | ||
| "jp": JP, | ||
| "Jp": JP, | ||
| "jP": JP, | ||
| "JP": JP, | ||
| "staging": Staging, | ||
| "Staging": Staging, | ||
| "STAGING": Staging, | ||
|
|
@@ -48,6 +52,7 @@ func TestRegionGet(t *testing.T) { | |
| pairs := map[Name]*Region{ | ||
| US: Regions[US], | ||
| EU: Regions[EU], | ||
| JP: Regions[JP], | ||
| Staging: Regions[Staging], | ||
| } | ||
|
|
||
|
|
@@ -71,6 +76,7 @@ func TestRegionString(t *testing.T) { | |
| pairs := map[Name]string{ | ||
| US: "US", | ||
| EU: "EU", | ||
| JP: "JP", | ||
| Staging: "Staging", | ||
| Local: "Local", | ||
| } | ||
|
|
@@ -137,6 +143,7 @@ func TestNerdgraphURLs(t *testing.T) { | |
| pairs := map[Name]string{ | ||
| US: "https://api.newrelic.com/graphql", | ||
| EU: "https://api.eu.newrelic.com/graphql", | ||
| JP: "https://one.jp.newrelic.com/graphql", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @akifullahkhan-png - based on the existing convention with EU, should this not be
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @pranav-new-relic I got this endpoint from help-tdp, here is the related thread- https://newrelic.slack.com/archives/C01508Q2879/p1775580274371149?thread_ts=1775542419.946949&cid=C01508Q2879 |
||
| Staging: "https://staging-api.newrelic.com/graphql", | ||
| Local: "http://localhost:3000/graphql", | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same ask as https://github.com/newrelic/newrelic-client-go/pull/1391/changes#r3051075514
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Responded in above comment.