diff --git a/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/AppearanceTest.java b/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/AppearanceTest.java index 1d2f7ad5f..4d4facf33 100644 --- a/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/AppearanceTest.java +++ b/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/AppearanceTest.java @@ -78,27 +78,25 @@ public class AppearanceTest assertTextPresent( "You must enter a URL for your logo." ); } - @Test(enabled = false) + @Test public void testAddAppearanceValidValues() { goToAppearancePage(); clickLinkWithText( "Edit" ); - // FIXME: not allowed this URL for the logo?! addEditAppearance( "The Apache Software Foundation", "http://www.apache.org/", "http://www.apache.org/images/asf_logo_wide.gifs", true ); assertTextPresent( "The Apache Software Foundation" ); } - @Test( dependsOnMethods = { "testAddAppearanceValidValues" }, enabled = false) + @Test( dependsOnMethods = { "testAddAppearanceValidValues" } ) public void testEditAppearance() { goToAppearancePage(); clickLinkWithText( "Edit" ); - // FIXME: not allowed this URL for the logo?! addEditAppearance( "Apache Software Foundation", "http://www.apache.org/", "http://www.apache.org/images/asf_logo_wide.gifs", true ); assertTextPresent( "Apache Software Foundation" ); } -} \ No newline at end of file +} diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/resources/template/xhtml/form-close-validate.ftl b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/template/xhtml/form-close-validate.ftl new file mode 100644 index 000000000..49d3a2314 --- /dev/null +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/template/xhtml/form-close-validate.ftl @@ -0,0 +1,130 @@ +<#-- +/* + * $Id$ + * + * 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. + */ +--> +<#-- +START SNIPPET: supported-validators +Only the following validators are supported: +* required validator +* requiredstring validator +* stringlength validator +* regex validator +* email validator +* url validator +* int validator +* double validator +END SNIPPET: supported-validators +--> +<#if ((parameters.validate?default(false) == true) && (parameters.performValidation?default(false) == true))> + +