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

Added test suite for servers API testing #103

Closed
wants to merge 13 commits into from

Conversation

Samudelacruz77
Copy link

test suite to test API responses from all servers

@openshift-ci openshift-ci bot requested review from danielerez and irinamihai June 18, 2024 09:07
Copy link

openshift-ci bot commented Jun 18, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign danielerez for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

openshift-ci bot commented Jun 18, 2024

Hi @Samudelacruz77. Thanks for your PR.

I'm waiting for a openshift-kni member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-ci openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jun 18, 2024
@Samudelacruz77
Copy link
Author

Samudelacruz77 commented Jun 18, 2024 via email

@tshefi
Copy link
Contributor

tshefi commented Jun 18, 2024

As Juan pointed out already adding readme would be great.

@Samudelacruz77
Copy link
Author

Added required folders and a README about usage

@Samudelacruz77 Samudelacruz77 requested a review from jhernand June 18, 2024 19:52
. "github.com/onsi/gomega"
)

func TestOranO2ims(t *testing.T) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you rename this to TestAPI?

@Samudelacruz77
Copy link
Author

Samudelacruz77 commented Jun 19, 2024 via email

Context("When getting infrastructure Inventory API version", func() {
It("should return OK in the response and json response should match reference json", func() {
requestBody := []byte(``)
request, _ := http.NewRequest("GET", "https://"+os.Getenv("TEST_HOST")+"/o2ims-infrastructureInventory/api_versions", bytes.NewBuffer([]byte(requestBody)))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please consider having the ORAN URIs (like /o2ims-infrastructureInventory/api_versions) as constants. Hardcoding them multiple times increases the risk of having typos.

@irinamihai
Copy link
Collaborator

@Samudelacruz77 , is this PR to set up the initial framework? If so, I think it should be clearly stated in the PR's name / 1st comment.

In my opinion, if any parts of the tests are as per WG6 standard, the specific chapter should be specified + the WG6 chapter that's actually being tested.

Kindly link the Jira # as well.

@Samudelacruz77
Copy link
Author

@Samudelacruz77 , is this PR to set up the initial framework? If so, I think it should be clearly stated in the PR's name / 1st comment.

In my opinion, if any parts of the tests are as per WG6 standard, the specific chapter should be specified + the WG6 chapter that's actually being tested.

Kindly link the Jira # as well.

Is not the case for now, we are only having the curls in the readme and demos in a test suite, on next stages telco team will have test as per specifications, we are testing right now the integration with openshift as per individual components

@donpenney
Copy link
Collaborator

Closing as stale

@donpenney donpenney closed this Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants