Skip to content

Commit 980c13d

Browse files
authored
Pass distribution type through to docs tests (elastic#37885)
This commit fixes the distribution flavor passed to the docs tests to be the same as the distribution. These two values are now in sync (either oss or default) for the docs tests.
1 parent a4020f4 commit 980c13d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/doc/DocsTestPlugin.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ public class DocsTestPlugin extends RestTestPlugin {
4545
'\\{version\\}': Version.fromString(VersionProperties.elasticsearch).toString(),
4646
'\\{version_qualified\\}': VersionProperties.elasticsearch,
4747
'\\{lucene_version\\}' : VersionProperties.lucene.replaceAll('-snapshot-\\w+$', ''),
48-
'\\{build_flavor\\}' :
49-
project.integTestCluster.distribution.startsWith('oss-') ? 'oss' : 'default',
48+
'\\{build_flavor\\}' : project.integTestCluster.distribution,
5049
]
5150
Task listSnippets = project.tasks.create('listSnippets', SnippetsTask)
5251
listSnippets.group 'Docs'

0 commit comments

Comments
 (0)