Skip to content

Commit

Permalink
Fix YamlRestTestPluginFuncTest on Windows (elastic#77063)
Browse files Browse the repository at this point in the history
* Fix YamlRestTestPluginFuncTest on Windows

- need to normalize output before comparison
- should fix elastic#77060

* Minor cleanup after review
  • Loading branch information
breskeby authored Sep 1, 2021
1 parent eec1a18 commit 5ffada5
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@ class YamlRestTestPluginFuncTest extends AbstractGradleFuncTest {

when:
def result = gradleRunner("dependencies").build()

def output = normalized(result.output)
then:
result.output.contains("""
output.contains("""
restTestSpecs
\\--- org.elasticsearch:rest-api-spec:${VersionProperties.elasticsearch} FAILED
""")
result.output.contains("""
/--- org.elasticsearch:rest-api-spec:${VersionProperties.elasticsearch} FAILED""")
output.contains(normalized("""
yamlRestTestImplementation - Implementation only dependencies for source set 'yaml rest test'. (n)
\\--- org.elasticsearch.test:framework:8.0.0-SNAPSHOT (n)
""")
/--- org.elasticsearch.test:framework:${VersionProperties.elasticsearch} (n)"""))
}

def "yamlRestTest does nothing when there are no tests"() {
Expand Down

0 comments on commit 5ffada5

Please sign in to comment.