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

B 19181 int create pptas api #12629

Merged
merged 41 commits into from
May 17, 2024

Conversation

joeydoyecaci
Copy link
Contributor

@joeydoyecaci joeydoyecaci commented May 8, 2024

Linked BLI: B-19181

##How to test:

#Testing Prerequisites

  1. Postman is required to test.
  2. PPTAS is acessed through TLS similar to acessing Prime API. In setup of Postman, you must add the mTLS certificates to postman. See Setup Postman to make mTLS calls. This will cover your authentication to the API.
  3. Easiest way to get the API definition into postman is to import it as a Postman collection with OpenAI Spec 2.0 using the generated pptas.yaml file under /swagger.
  4. Setup an environment in postman for making Prime API calls, then set an env variable for the base url and api (Optional, but otherwise you will have to manually add base url to the request). EnvSetup
  5. Setup a collection variable for the path routing from base url to api path (prime/pptas). Set apiPath under collection variables as shown here:
    CollectionVariableSettings
  6. Click on listMoves to edit the request to the following: {{baseUrl}}/{{apiPath}}/moves?since=<dateTime>
    RouteSetup
    7, Both client and server must be running.

#How To Test

  1. Go to PPTAS Swagger and verify that the page loads and there is a single endpoint here.
    PPTAS SwaggerScreenshot

  2. Go under that endpoint and try calling it using the example date (or any date).
    PPTAS moves

  3. The page should show the JSON results under a 200 result.

  4. Within postman run the request using the one you setup in the pre requisites earlier. This should return a 200 result the reuslts in the response body.
    PPTASRequestPostman

@joeydoyecaci joeydoyecaci added G-Unit Scrum Team G INTEGRATION Slated for Integration Testing labels May 8, 2024
@joeydoyecaci joeydoyecaci self-assigned this May 8, 2024
@joeydoyecaci joeydoyecaci marked this pull request as ready for review May 8, 2024 20:17
@joeydoyecaci joeydoyecaci requested a review from a team as a code owner May 8, 2024 20:17
pkg/cli/hosts.go Outdated Show resolved Hide resolved
pkg/cli/services.go Outdated Show resolved Hide resolved
pkg/handlers/routing/routing_init.go Outdated Show resolved Hide resolved
swagger-def/pptas.yaml Outdated Show resolved Hide resolved
@joeydoyecaci joeydoyecaci dismissed danieljordan-caci’s stale review May 16, 2024 16:10

All comments have been addressed.

@joeydoyecaci joeydoyecaci merged commit bfd61da into integrationTesting May 17, 2024
28 of 29 checks passed
@joeydoyecaci joeydoyecaci deleted the B-19181-INT-Create-PPTAS-API branch May 17, 2024 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
G-Unit Scrum Team G INTEGRATION Slated for Integration Testing
Development

Successfully merging this pull request may close these issues.

None yet

3 participants