Skip to content

Origo Tests #24

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

Open
wants to merge 83 commits into
base: master
Choose a base branch
from

Conversation

ben-w-martin
Copy link

Includes:

  • Spock tests for HttpClient, OrigoClient, and OrigoStorageService.
  • Much cleanup and refactoring for each of these classes.

Tests have all passed.
Refactored code has been tested live with SQS feed and Origo API calls.

…http requests. Implemented to checkExistingCallbackSubs
…owire origo client to make requests and apply logic to results. Add: getFilterById.
…me provisional service methods for brainstorming.
…e successfully pulls and mock-processes events from origo API
…makeRequest(). delete: unused origocontroller. add: authenticateAndRetry
- Provided by Origo.
- Available in Origo Management Portal.
- `Origo.contentType`
- Used for request headers - see documentation.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a situation where this isn't always the same value?

Copy link
Author

Choose a reason for hiding this comment

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

Not unless there was a change in API Version. Would you like these properties to stay filled?

Copy link
Author

Choose a reason for hiding this comment

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

For the moment, I've included the properties that don't change in the existing application.properties file.

Copy link
Author

Choose a reason for hiding this comment

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

Made a little mistake. While the content-type shouldn't change except for a couple requests (Already accounted for in OrigoClient methods), All of the API links change from test API to the Production API. I'll add the production API links to the Application.properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants