Only one of azure key or token can be specified in 3rd party tests (#54876)

#54803 introduces more QA tests for Azure storage service, but 
they fail the build is one of the key or token is missing. It should i
nstead work like repository-azure:qa tests.
This commit is contained in:
Tanguy Leroux 2020-04-07 19:35:30 +02:00
parent 37abc411dc
commit b8d2b952b8
1 changed files with 6 additions and 4 deletions

View File

@ -52,8 +52,6 @@ if (!azureAccount && !azureKey && !azureContainer && !azureBasePath && !azureSas
azureSasToken = '' azureSasToken = ''
useFixture = true useFixture = true
} else if (!azureAccount || !azureKey || !azureContainer || !azureBasePath || !azureSasToken) {
throw new IllegalArgumentException("not all options specified to run against external Azure service are present")
} }
if (useFixture) { if (useFixture) {
@ -78,8 +76,12 @@ testClusters.integTest {
} }
keystore 'azure.client.searchable_snapshots.account', azureAccount keystore 'azure.client.searchable_snapshots.account', azureAccount
keystore 'azure.client.searchable_snapshots.key', azureKey if (azureKey != null && azureKey.isEmpty() == false) {
keystore 'azure.client.searchable_snapshots.sas_token', azureSasToken keystore 'azure.client.searchable_snapshots.key', azureKey
}
if (azureSasToken != null && azureSasToken.isEmpty() == false) {
keystore 'azure.client.searchable_snapshots.sas_token', azureSasToken
}
setting 'xpack.license.self_generated.type', 'trial' setting 'xpack.license.self_generated.type', 'trial'