You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2015/06/28 13:43:34 UTC
incubator-groovy git commit: delete signed jar and the disabled test
using it (as discussed on the mailing list:
http://mail-archives.apache.org/mod_mbox/incubator-groovy-dev/201506.mbox/%3C557DCF82.4050605%40gmx.net%3E)
Repository: incubator-groovy
Updated Branches:
refs/heads/master 95600a1d0 -> 53c6570ad
delete signed jar and the disabled test using it (as discussed on the mailing list: http://mail-archives.apache.org/mod_mbox/incubator-groovy-dev/201506.mbox/%3C557DCF82.4050605%40gmx.net%3E)
Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/53c6570a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/53c6570a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/53c6570a
Branch: refs/heads/master
Commit: 53c6570ad562b5af12ec45b80820fd6b70345e8f
Parents: 95600a1
Author: pascalschumacher <pa...@gmx.net>
Authored: Sun Jun 28 13:43:21 2015 +0200
Committer: pascalschumacher <pa...@gmx.net>
Committed: Sun Jun 28 13:43:21 2015 +0200
----------------------------------------------------------------------
security/GroovyJarTest.jar | Bin 2588 -> 0 bytes
src/test/groovy/security/SignedJarTest.java | 64 -----------------------
2 files changed, 64 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/53c6570a/security/GroovyJarTest.jar
----------------------------------------------------------------------
diff --git a/security/GroovyJarTest.jar b/security/GroovyJarTest.jar
deleted file mode 100644
index eb59c7d..0000000
Binary files a/security/GroovyJarTest.jar and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/53c6570a/src/test/groovy/security/SignedJarTest.java
----------------------------------------------------------------------
diff --git a/src/test/groovy/security/SignedJarTest.java b/src/test/groovy/security/SignedJarTest.java
deleted file mode 100644
index 0ecd112..0000000
--- a/src/test/groovy/security/SignedJarTest.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package groovy.security;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
-
-
-/**
- * Read a .groovy file from a signed jar and verify that a policy file grant with a signedBy field
- * works. The following steps were used to create and manage the keys used to sign and read the jar:
- * <ol>
- * <li>keytool -genkey -alias groovy -keypass keypass -keystore groovystore -storepass storepass -validity 7000
- * <li>keytool -export -keystore groovystore -alias groovy -file GroovyDev.cer
- * <li>keytool -import -alias groovy -file GroovyDev.cer -keystore groovykeys
- * </ol>
- * Once the keys are constructed, creat the jar and sign:
- * <ol>
- * <li>jar -cvf Groovy.jar groovy
- * <li>jarsigner -keystore groovystore -signedjar GroovyJarTest.jar Groovy.jar groovy
- * </ol>
- * Add the keystore to the policy file and write the grant:
- * <ol>
- * <li>keystore "file:${user.dir}/src/test/groovy/security/groovykeys";
- * </ol>
- */
-public class SignedJarTest extends SecurityTestSupport {
-
- public static void main(String[] args) {
- TestRunner.run(suite());
- }
-
- public static Test suite() {
- return new TestSuite(SignedJarTest.class);
- }
-
- public void testReadSignedJar() throws Exception {
- if (!isSecurityAvailable() || (notYetImplemented())) return;
-
- //spg 2006-02-09 The GroovyClassLoader code that checked jar files
- //for source files was removed last July. This test will not function
- //without that capability.
- Class c = loader.loadClass("groovy.security.JarTest"); // ClassNotFoundException !
- executeTest(c, null);
-
- }
-}