Mercurial > hg > release > icedtea6-1.12
changeset 1987:5a761c257361
Added new regression test to check if the cacerts keytool
database is configured and created properly and if SSL
is really working.
author | Pavel Tisnovsky <ptisnovs@redhat.com> |
---|---|
date | Thu, 18 Mar 2010 19:27:35 +0100 |
parents | f98b3c5d3511 |
children | 2bf01e9fe8b0 2ce1a2c119bb |
files | ChangeLog Makefile.am patches/icedtea-jtreg-httpTest.patch |
diffstat | 3 files changed, 45 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Mar 18 16:40:26 2010 +0000 +++ b/ChangeLog Thu Mar 18 19:27:35 2010 +0100 @@ -1,3 +1,9 @@ +2010-03-18 Pavel Tisnovsky <ptisnovs@redhat.com> + + * patches/icedtea-jtreg-httpTest.patch: new regression test + to check if the cacerts keytool database is configured and + created properly and if SSL is really working. + 2010-03-18 Gary Benson <gbenson@redhat.com> * ports/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp
--- a/Makefile.am Thu Mar 18 16:40:26 2010 +0000 +++ b/Makefile.am Thu Mar 18 19:27:35 2010 +0100 @@ -298,7 +298,8 @@ patches/libpng.patch \ patches/extensions/netx.patch \ patches/extensions/netx-dist.patch \ - patches/extensions/netx-umask.patch + patches/extensions/netx-umask.patch \ + patches/icedtea-jtreg-httpTest.patch if WITH_RHINO ICEDTEA_PATCHES += \
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/icedtea-jtreg-httpTest.patch Thu Mar 18 19:27:35 2010 +0100 @@ -0,0 +1,37 @@ +--- /dev/null 2010-03-18 17:24:04.000000000 +0100 ++++ openjdk/jdk/test/java/net/URL/TestHttps.java 2010-03-18 17:24:04.000000000 +0100 +@@ -0,0 +1,34 @@ ++/* ++ * Copyright 2010 Red Hat, Inc. All Rights Reserved. ++ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. ++ * ++ * This code is free software; you can redistribute it and/or modify it ++ * under the terms of the GNU General Public License version 2 only, as ++ * published by the Free Software Foundation. ++ * ++ * This code is distributed in the hope that it will be useful, but WITHOUT ++ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ++ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ++ * version 2 for more details (a copy is included in the LICENSE file that ++ * accompanied this code). ++ * ++ * You should have received a copy of the GNU General Public License version ++ * 2 along with this work; if not, write to the Free Software Foundation, ++ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. ++ */ ++ ++ ++/* @test ++ * @summary This test check if the cacerts keytool database is configured properly and SSL is really working. The test should not fail if SSL is working. ++ */ ++ ++import java.io.IOException; ++ ++import java.net.URL; ++import java.net.URLConnection; ++ ++public class TestHttps { ++ public static void main(String[] args) throws IOException { ++ new URL("https://www.verisign.com/").openConnection().connect(); ++ } ++}