Mute security-cli tests in FIPS JVM (#32812)

All Unit tests in this module are muted in FIPS 140 JVMs and
 as such the CI run fails. This commit disables test task for the
module in a  FIPS JVM and reverts adding a dummy test in 
4cbcc1.
This commit is contained in:
Ioannis Kakavas 2018-08-13 21:27:06 +03:00 committed by GitHub
parent d412230cda
commit 06758f579c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 16 deletions

View File

@ -18,3 +18,7 @@ dependencies {
dependencyLicenses {
mapping from: /bc.*/, to: 'bouncycastle'
}
if (inFipsJvm) {
test.enabled = false
}

View File

@ -1,16 +0,0 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.security.cli;
import org.elasticsearch.test.ESTestCase;
public class TestSuiteCannotBeEmptyTests extends ESTestCase {
public void testIsHereSoThisSuiteIsNonEmpty() {
// This is needed on a FIPS JVM as the rest of the suite is skipped
}
}