Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@saschadoemer
Copy link
Member

No description provided.

This change consolidates the creation and acceptance of JSON type requests into a single line in the RequestFactory class. This refactoring boosts code readability and efficiency.
Removed the redundant client creation and configuration logic within the bearerTokenRequest method in the RequestFactory class. Moreover, a separate method is introduced to generate a request with bearer token allowing simplification and code reuse. The change ensures cleaner and more efficient request generation.
@saschadoemer saschadoemer linked an issue May 16, 2024 that may be closed by this pull request
@saschadoemer saschadoemer self-assigned this May 16, 2024
@saschadoemer saschadoemer requested a review from oliverrahner May 16, 2024 08:50
The onboarding parameters and response for the farming software tests have been updated. This includes changes to the registration code and a new response in the farming-software.json file which includes new id values and URLs.
In the FarmingSoftwareFixture.java test file, the placeholder for the registration code has been replaced with an actual code and the test case has been enabled. Additionally, the onboarding response for farming-software-deactivated.json has been updated. These changes are essential to ensure that the tests can run successfully and reflect the current state of the system.
The update involves renewing the registration code used in the farming software fixture for tests. Also, the authentication detail of the farming software in the test JSON response is updated to ensure the effectiveness and relevancy of the tests.
The placeholder for the registration code in the test case "onboardAndDeactivateFarmingSoftwareAndSaveToFile" in FarmingSoftwareFixture file has been updated with actual code, and the test case is enabled back for execution. Additionally, relevant changes were made in the "farming-software-deactivated.json" file.
@oliverrahner oliverrahner merged commit 4e97b8c into main May 16, 2024
@saschadoemer saschadoemer deleted the bugfix/remove-duplicate-header-declaration branch May 16, 2024 11:27
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.

application/json repeated twice in Accept header

3 participants