Skip to content
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

feat(Metrics Router): add new Metrics Router service to project #225

Merged
merged 11 commits into from
May 25, 2023

Conversation

adya1303
Copy link
Contributor

@adya1303 adya1303 commented Dec 13, 2022

PR summary

This PR adds the Metrics Router service to the project, including integration tests and request examples.

PR Checklist

Please make sure that your PR fulfills the following requirements:

  • The commit message follows the Angular Commit Message Guidelines.
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@adya1303 adya1303 marked this pull request as draft December 13, 2022 15:34
@adya1303
Copy link
Contributor Author

adya1303 commented Dec 14, 2022

unit tests

~/Documents/GO/src/github.com/IBM/platform-services-go-sdk/metricsrouterv3 (add-mr-12132022) $ go test
Running Suite: MetricsRouterV3 Suite
====================================
Random Seed: 1670477696
Will run 91 of 91 specs

•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
Ran 91 of 91 Specs in 6.766 seconds
SUCCESS! -- 91 Passed | 0 Failed | 0 Pending | 0 Skipped

integration tests

~/Documents/GO/src/github.com/IBM/platform-services-go-sdk/metricsrouterv3 (add-mr-12132022) $ go test -tags="integration" -v
=== RUN   TestMetricsRouterV3
Running Suite: MetricsRouterV3 Suite
====================================
Random Seed: 1670478288
Will run 135 of 135 specs

•••••••••••••
------------------------------
• [SLOW TEST:5.289 seconds]
MetricsRouterV3 Integration Tests
/Users/adyanandjha/Documents/GO/src/github.com/IBM/platform-services-go-sdk/metricsrouterv3/metrics_router_v3_integration_test.go:42
  ListTargets - List targets
  /Users/adyanandjha/Documents/GO/src/github.com/IBM/platform-services-go-sdk/metricsrouterv3/metrics_router_v3_integration_test.go:392
    ListTargets(listTargetsOptions *ListTargetsOptions)
    /Users/adyanandjha/Documents/GO/src/github.com/IBM/platform-services-go-sdk/metricsrouterv3/metrics_router_v3_integration_test.go:397
------------------------------
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
Ran 135 of 135 Specs in 28.251 seconds
SUCCESS! -- 135 Passed | 0 Failed | 0 Pending | 0 Skipped

example tests

~/Documents/GO/src/github.com/IBM/platform-services-go-sdk/metricsrouterv3 (add-mr-12132022) $ go test -tags="examples" -v
=== RUN   TestMetricsRouterV3
Running Suite: MetricsRouterV3 Suite
====================================
Random Seed: 1670478421
Will run 106 of 106 specs

•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
Ran 106 of 106 Specs in 11.220 seconds
SUCCESS! -- 106 Passed | 0 Failed | 0 Pending | 0 Skipped

@padamstx padamstx self-assigned this Dec 19, 2022
@padamstx
Copy link
Member

@adya1303 In preparation for a formal SF review of the SDK work in early January, could you please update your branch with the latest changes from "main", and when you are already for a review please click the "Ready for review" button on your draft PR. Thanks!

@adya1303
Copy link
Contributor Author

adya1303 commented Dec 21, 2022

@adya1303 In preparation for a formal SF review of the SDK work in early January, could you please update your branch with the latest changes from "main", and when you are already for a review please click the "Ready for review" button on your draft PR. Thanks!

sure @padamstx

@adya1303 adya1303 marked this pull request as ready for review January 3, 2023 03:56
@adya1303
Copy link
Contributor Author

adya1303 commented Jan 3, 2023

@padamstx Can you please review the PR. Thanks

Copy link
Member

@padamstx padamstx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just need to verify that the sydney region is the correct default endpoint URL (see my separate comment on that).

metricsrouterv3/metrics_router_v3.go Outdated Show resolved Hide resolved
@padamstx
Copy link
Member

padamstx commented Jan 4, 2023

I've approved the PR and I will merge when it is the appropriate time to do so. This would be at about the same time as the service implementation is made available in the production environment. Just let me know when and I will merge.

@padamstx
Copy link
Member

@adya1303 Could you please update your branch with the latest changes from "main"?
Also, please address my question about the default endpoint URL above. Thanks.

@adya1303
Copy link
Contributor Author

@adya1303 Could you please update your branch with the latest changes from "main"? Also, please address my question about the default endpoint URL above. Thanks.

Updated the branch with master and replied to the comment. For this GA, au-syd is the only supported region, so DefaultServiceURL is ok.

@padamstx
Copy link
Member

@adya1303 I just merged latest changes in main again. Is it time to merge the PR if the build is clean?

@padamstx
Copy link
Member

We'll hold this PR out until @adya1303 gives the go-ahead, later this quarter.

@padamstx
Copy link
Member

I did a re-review and the changes in the PR look good.
Before we merge this PR (IIRC the ETA is May/June when the service is GA), we'll need to make sure the PR is updated using the current "main" branch at the time, and we'll need screenshots showing clean results from running integration tests and examples. We can defer this until shortly before we plan to merge.

@adya1303
Copy link
Contributor Author

Tested with the latest code changes -
unit tests

~/Documents/GO/src/github.com/IBM/platform-services-go-sdk/metricsrouterv3 (add-mr-12132022) $ go test                       
Running Suite: MetricsRouterV3 Suite
====================================
Random Seed: 1685023090
Will run 83 of 83 specs

•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
Ran 83 of 83 Specs in 2.945 seconds
SUCCESS! -- 83 Passed | 0 Failed | 0 Pending | 0 Skipped
PASS
ok  	github.com/IBM/platform-services-go-sdk/metricsrouterv3	4.087s

integration tests

~/Documents/GO/src/github.com/IBM/platform-services-go-sdk/metricsrouterv3 (add-mr-12132022) $ go test -tags="integration" -v
=== RUN   TestMetricsRouterV3
Running Suite: MetricsRouterV3 Suite
====================================
Random Seed: 1685022846
Will run 123 of 123 specs
<some tests results output>
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
Ran 123 of 123 Specs in 15.119 seconds
SUCCESS! -- 123 Passed | 0 Failed | 0 Pending | 0 Skipped

example tests

~/Documents/GO/src/github.com/IBM/platform-services-go-sdk/metricsrouterv3 (add-mr-12132022) $ go test -tags="examples" -v
=== RUN   TestMetricsRouterV3
Running Suite: MetricsRouterV3 Suite
====================================
Random Seed: 1685022970
Will run 97 of 97 specs

••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
Ran 97 of 97 Specs in 5.395 seconds
SUCCESS! -- 97 Passed | 0 Failed | 0 Pending | 0 Skipped

@adya1303
Copy link
Contributor Author

Hi, @padamstx, we are ready to merge the changes. Tested with the current code and have added the screenshots.
Could you merge the changes. Thanks

@padamstx padamstx changed the title feat(Metrics Router): add metrics-router service to project feat(Metrics Router): add new Metrics Router service to project May 25, 2023
@padamstx padamstx merged commit 6eb402a into IBM:main May 25, 2023
ibm-devx-sdk pushed a commit that referenced this pull request May 25, 2023
# [0.38.0](v0.37.4...v0.38.0) (2023-05-25)

### Features

* **Metrics Router:** add new Metrics Router service to project ([#225](#225)) ([6eb402a](6eb402a))
@ibm-devx-sdk
Copy link

🎉 This PR is included in version 0.38.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@adya1303 adya1303 deleted the add-mr-12132022 branch September 25, 2023 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants