Skip to content

Commit

Permalink
module es63x - tests fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
coutoPL committed Mar 15, 2024
1 parent 539d8f1 commit a7dbc23
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class AdminApiAuthMockSuite
)

createLocalClusterContainer(
esNewerOrEqual63ClusterSettings = esClusterSettingsCreator(
esNewerOrEqual65ClusterSettings = esClusterSettingsCreator(
RorWithXpackSecurity(ReadonlyRestWithEnabledXpackSecurityPlugin.Config.Attributes.default.copy(
rorConfigReloading = Enabled.Yes(2 seconds),
rorCustomSettingsIndex = Some(readonlyrestIndexName),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class AdminApiWithDefaultRorIndexSuite
)

createLocalClusterContainer(
esNewerOrEqual63ClusterSettings = esClusterSettingsCreator(
esNewerOrEqual65ClusterSettings = esClusterSettingsCreator(
RorWithXpackSecurity(ReadonlyRestWithEnabledXpackSecurityPlugin.Config.Attributes.default.copy(
rorConfigFileName = rorConfigFileName,
rorConfigReloading = Enabled.Yes(settingsReloadInterval)
Expand All @@ -64,7 +64,7 @@ class AdminApiWithDefaultRorIndexSuite
)

createLocalClusterContainer(
esNewerOrEqual63ClusterSettings = esClusterSettingsCreator(
esNewerOrEqual65ClusterSettings = esClusterSettingsCreator(
RorWithXpackSecurity(ReadonlyRestWithEnabledXpackSecurityPlugin.Config.Attributes.default.copy(
rorConfigFileName = rorConfigFileName
))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ClusterApiSuite
)

createLocalClusterContainer(
esNewerOrEqual63ClusterSettings = esClusterSettingsCreator(
esNewerOrEqual65ClusterSettings = esClusterSettingsCreator(
RorWithXpackSecurity(ReadonlyRestWithEnabledXpackSecurityPlugin.Config.Attributes.default.copy(
rorConfigFileName = rorConfigFileName
))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class DynamicVariablesSuite
}

createLocalClusterContainer(
esNewerOrEqual63ClusterSettings = esClusterSettingsCreator(
esNewerOrEqual65ClusterSettings = esClusterSettingsCreator(
SecurityType.RorWithXpackSecurity(ReadonlyRestWithEnabledXpackSecurityPlugin.Config.Attributes.default.copy(
rorConfigFileName = rorConfigFileName
))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class IndexLifecycleManagementApiSuite
nodeDataInitializer = IndexLifecycleManagementApiSuite.nodeDataInitializer()
)
createLocalClusterContainer(
esNewerOrEqual63ClusterSettings = esClusterSettingsCreator(
esNewerOrEqual65ClusterSettings = esClusterSettingsCreator(
RorWithXpackSecurity(ReadonlyRestWithEnabledXpackSecurityPlugin.Config.Attributes.default.copy(
rorConfigFileName = rorConfigFileName
))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class RemoteReindexSuite
securityType = securityType
)
createLocalClusterContainer(
esNewerOrEqual63ClusterSettings = clusterSettingsCreator {
esNewerOrEqual65ClusterSettings = clusterSettingsCreator {
SecurityType.RorWithXpackSecurity(
ReadonlyRestWithEnabledXpackSecurityPlugin.Config.Attributes.default.copy(
rorConfigFileName = RemoteReindexSuite.this.rorConfigFileName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class RorDisabledSuite
override lazy val targetEs = container.nodes.head

override lazy val clusterContainer: EsClusterContainer = createLocalClusterContainer(
esNewerOrEqual63ClusterSettings = EsClusterSettings.create(
esNewerOrEqual65ClusterSettings = EsClusterSettings.create(
clusterName = "ROR1",
securityType = RorWithXpackSecurity(ReadonlyRestWithEnabledXpackSecurityPlugin.Config.Attributes.default.copy(
rorConfigFileName = rorConfigFileName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ import scala.collection.parallel.CollectionConverters._

trait EsClusterProvider extends EsContainerCreator with EsModulePatterns {

def createLocalClusterContainer(esNewerOrEqual63ClusterSettings: EsClusterSettings,
def createLocalClusterContainer(esNewerOrEqual65ClusterSettings: EsClusterSettings,
esOlderThan63ClusterSettings: EsClusterSettings): EsClusterContainer = {
if (isCurrentModuleNotExcluded(allEs6xBelowEs63x)) {
createLocalClusterContainer(esNewerOrEqual63ClusterSettings)
if (isCurrentModuleNotExcluded(allEs6xBelowEs65x)) {
createLocalClusterContainer(esNewerOrEqual65ClusterSettings)
} else {
createLocalClusterContainer(esOlderThan63ClusterSettings)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ object SingletonEsContainerWithRorSecurity
with EsModulePatterns {

val singleton: EsClusterContainer = createLocalClusterContainer(
esNewerOrEqual63ClusterSettings = EsClusterSettings.create(
esNewerOrEqual65ClusterSettings = EsClusterSettings.create(
clusterName = "ROR_SINGLE",
securityType = RorWithXpackSecurity(ReadonlyRestWithEnabledXpackSecurityPlugin.Config.Attributes.default)
),
Expand Down

0 comments on commit a7dbc23

Please sign in to comment.