-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: master
Are you sure you want to change the base?
Origo Tests #24
Conversation
…origo client classes
…http requests. Implemented to checkExistingCallbackSubs
…ilize new httpactionresult wrapper
…owire origo client to make requests and apply logic to results. Add: getFilterById.
…ty null by default.
…me provisional service methods for brainstorming.
…oring event ids and timestamps in json
…ill be the api call for events.
…nts, but gains new events.
… Passing in sample event objects.
…thods to fit interface.
…e. Add: successful authentication request
…e successfully pulls and mock-processes events from origo API
…makeRequest(). delete: unused origocontroller. add: authenticateAndRetry
…o incompatible with PhotoFile
…te authentication loop.
…service / httpclient
- Provided by Origo. | ||
- Available in Origo Management Portal. | ||
- `Origo.contentType` | ||
- Used for request headers - see documentation. |
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.
Is there a situation where this isn't always the same value?
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.
Not unless there was a change in API Version. Would you like these properties to stay filled?
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.
For the moment, I've included the properties that don't change in the existing application.properties file.
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.
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.
src/main/groovy/com/cloudcard/photoDownloader/OrigoStorageService.groovy
Outdated
Show resolved
Hide resolved
src/main/groovy/com/cloudcard/photoDownloader/TouchNetClient.groovy
Outdated
Show resolved
Hide resolved
…efactors, updated readme.
Includes:
Tests have all passed.
Refactored code has been tested live with SQS feed and Origo API calls.