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

Maven to gradle migration #188

Merged
merged 3 commits into from
Sep 2, 2021
Merged

Maven to gradle migration #188

merged 3 commits into from
Sep 2, 2021

Conversation

wlodarcp
Copy link
Collaborator

@wlodarcp wlodarcp commented Aug 26, 2021

@@ -41,9 +41,6 @@ class K8sServiceLocatorFT extends Specification {

static WireMockRule wireMockRule

@Autowired
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

unused

JavaTimeModule javaTimeModule = new JavaTimeModule();

//According to issue https://bitbucket.org/atlassian/swagger-request-validator/issues/331/timestamp-iso8601-format-issue
Json.mapper().registerModule(javaTimeModule);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Issue fixed in swagger-request-validator new version

@coveralls
Copy link

coveralls commented Aug 26, 2021

Pull Request Test Coverage Report for Build #645

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+32.0%) to 97.605%

Totals Coverage Status
Change from base Build #636: 32.0%
Covered Lines: 652
Relevant Lines: 668

💛 - Coveralls

@@ -57,6 +54,7 @@ class K8sServiceLocatorFT extends Specification {
wireMockRule.stop()
}

@DirtiesContext(methodMode = DirtiesContext.MethodMode.BEFORE_METHOD)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

After migration system properties required for this test were setting after spring context loaded, it was one possible workaraund, replaced with setting those properties in static initialization block

)
.andExpect(status().isOk())
.andExpect(content().contentType("application/json;charset=UTF-8"))
.andExpect(content().contentType('application/json'))
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

…atic initializer block to initialize system properties
@wlodarcp wlodarcp merged commit c8fbb92 into master Sep 2, 2021
@wlodarcp wlodarcp deleted the maven_to_gradle_migration branch September 14, 2021 20:05
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.

3 participants