From 29842bbe63d74cff5425fb0113bc4c639207d2cf Mon Sep 17 00:00:00 2001 From: jjiwooLim Date: Wed, 17 Jan 2024 16:30:28 -0500 Subject: [PATCH] enable verify all test --- .../tools/gradle/VerifyFeatureTest.groovy | 30 +++++++++---------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/src/test/groovy/io/openliberty/tools/gradle/VerifyFeatureTest.groovy b/src/test/groovy/io/openliberty/tools/gradle/VerifyFeatureTest.groovy index d9267a43..a2ad4923 100644 --- a/src/test/groovy/io/openliberty/tools/gradle/VerifyFeatureTest.groovy +++ b/src/test/groovy/io/openliberty/tools/gradle/VerifyFeatureTest.groovy @@ -57,23 +57,21 @@ class VerifyFeatureTest extends AbstractIntegrationTest{ } + @Test + public void test_verifyALL() { + try { + System.properties['verify'] = 'all' + System.properties['keyid'] = '0x05534365803788CE' + assert simpleValidKey.exists() : "no valid key" + + runTasks(buildDir, 'installFeature') - //TODO: Disable for now. -// @Test -// public void test_verifyALL() { -// try { -// System.properties['verify'] = 'all' -// System.properties['keyid'] = '0x05534365803788CE' -// assert simpleValidKey.exists() : "no valid key" -// -// runTasks(buildDir, 'installFeature') -// -// assert featureFile.exists() : "SimpleActivator.mf cannot be generated" -// -// } catch (Exception e) { -// throw new AssertionError ("Fail to verify user feature.", e) -// } -// } + assert featureFile.exists() : "SimpleActivator.mf cannot be generated" + + } catch (Exception e) { + throw new AssertionError ("Fail to verify user feature.", e) + } + } @Test public void test_verifyALLWrongKeyId() {