-
Notifications
You must be signed in to change notification settings - Fork 46
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
feat: introduce WireMock for testing #350
base: develop
Are you sure you want to change the base?
Conversation
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.
Thanks for all of the changes.
I would be willing to accept the PR as it is (provided it works as I have not yet checked it), if you don't find the time to beautify according to my comments.
@@ -21,6 +21,9 @@ dependencies { | |||
|
|||
testImplementation platform("org.codehaus.groovy:groovy-bom:${GroovySystem.version}") | |||
testImplementation 'org.codehaus.groovy:groovy-xml' | |||
|
|||
testImplementation 'org.wiremock.integrations.testcontainers:wiremock-testcontainers-module:1.0-alpha-14' | |||
testImplementation "org.testcontainers:junit-jupiter:1.20.2" |
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.
Could you please put the versions into the gradle/libs.versions.toml
file?
import java.lang.reflect.Field | ||
import java.lang.reflect.Proxy | ||
|
||
|
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.
Please do not make more than one new line behind a new block (I know this is not consequently done over all of the repository).
def setup() { | ||
myConfig = new Configuration() | ||
brokenHttpLinksChecker = new BrokenHttpLinksChecker( myConfig ) | ||
|
||
collector = new SingleCheckResults() | ||
} | ||
|
||
|
||
/** executed once after all specs are executed **/ | ||
def cleanupSpec() { |
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.
Just a remark: This should have been part of the previous commit (but I am fine if it stays here).
...anityCheck-core/src/test/java/org/aim42/htmlsanitycheck/test/dns/CustomHostNameResolver.java
Show resolved
Hide resolved
...Check-core/src/test/groovy/org/aim42/htmlsanitycheck/check/BrokenHttpLinksCheckerSpec.groovy
Show resolved
Hide resolved
@@ -131,7 +180,7 @@ class BrokenHttpLinksCheckerSpec extends Specification { | |||
//@Ignore("test currently breaks. see issue-219") |
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.
Perhaps you could also remove the comment here?
I just see there are some |
8fd4076
to
d9d0194
Compare
d9d0194
to
6aab113
Compare
Merge post-poned due to PavanMudigonda/jacoco-reporter#68 |
- Added WireMockContainer to BrokenHttpLinksCheckerSpec for mocking HTTP responses. - progress towards fixing aim42#331 - Configured WireMock to use mappings.json for predefined request-response mappings.
…ests - progress towards fixing aim42#331
…stnames - progress towards fixing aim42#331
…mHostNameResolver - fixes aim42#331 - Updated all URLs in test cases to use WireMock with Testcontainers. - Integrated CustomHostNameResolver to ensure tests run without internet. - Updated `mappings.json` with mappings for all test URLs. - Remove test for recognizing internet connectivity.
6aab113
to
58b87db
Compare
Quality Gate passedIssues Measures |
No description provided.