Skip to content

Commit

Permalink
Merge pull request #11 from at88mph/regression-test-vault
Browse files Browse the repository at this point in the history
Test updates and fixes.
  • Loading branch information
at88mph authored Jan 30, 2024
2 parents c87eb29 + 3c30761 commit cb2adf3
Show file tree
Hide file tree
Showing 23 changed files with 592 additions and 276 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# Storage User Interface

## January 30, 2024
* Support for IAM Group querying
* MD5 property checking fix

## January 12, 2024
* OpenID Connect compliant with Authorization Code flow
* Feature flag to disable some features (Batch download/upload, ZIP Download, Create External Links, Supports Paginated downloads)

## December 8, 2023
* OpenID Connect compliant with Authorization Code flow

## March 29, 2023
* Add Shell Script download
* Merge library as forking is not practical.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## deployable containers have a semantic and build tag
# semantic version tag: major.minor
# build version tag: timestamp
VERSION="1.1.0"
VERSION="1.1.1"
TAGS="${VERSION} ${VERSION}-$(date -u +"%Y%m%dT%H%M%S")"
unset VERSION
28 changes: 22 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ ext {
// VOSpace service values. Change alt_vospace_service if necessary
// to match a configured service in org.opencadc.vosui.properties
intTest_default_vospace_service = 'vault'
intTest_alt_vospace_service = 'arc'
// intTest_alt_vospace_service = 'arc'
}

sourceSets {
Expand Down Expand Up @@ -101,22 +101,28 @@ idea {
systemProperty 'web.app.url', project.intTest_web_app_url
}

if (!project.hasProperty('intTest_resource_id')) {
System.err.println("Please set the intTest_resource_id property (-PintTest_resource_id=ivo://...).")
} else {
systemProperty 'resource.id', project.intTest_resource_id
}

if (!project.hasProperty('intTest_user_name')) {
System.err.println("Please set the intTest_user_name property (-PintTest_user_name=cadcuser).")
} else {
systemProperty 'user.name', project.intTest_user_name
}

if (!project.hasProperty('intTest_user_password')) {
System.err.println("Please set the intTest_user_password property (-intTest_user_password=1234pw).")
System.err.println("Please set the intTest_user_password property (-PintTest_user_password=1234pw).")
} else {
systemProperty 'user.password', project.intTest_user_password
}

if (project.hasProperty('intTest_directory')) {
systemProperty 'test.directory', project.intTest_directory
if (project.hasProperty('intTest_test_directory_name')) {
systemProperty 'test.directory.name', project.intTest_test_directory_name
} else {
logger.info("Using default directory in VOSpace.")
logger.info("Using " + System.getProperty("user.name") + " as the test directory.")
}

if (project.hasProperty('intTest_alt_home_directory')) {
Expand All @@ -126,7 +132,17 @@ idea {
}

systemProperty 'test.default_vospace', project.intTest_default_vospace_service
systemProperty 'test.alt_vospace', project.intTest_alt_vospace_service

if (project.hasProperty('intTest_alt_vospace_service')) {
systemProperty 'test.alt_vospace', project.intTest_alt_vospace_service
} else {
logger.info("No alternate VOSpace backend configured.")
}

// This needs to be explicitly transferred. Unclear why.
// jenkinsd 2024.01.25
//
systemProperty 'ca.nrc.cadc.reg.client.RegistryClient.host', System.getProperty('ca.nrc.cadc.reg.client.RegistryClient.host')

maxParallelForks = 1
}
Expand Down
77 changes: 77 additions & 0 deletions src/intTest/java/net/canfar/ErrorPage.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/*
************************************************************************
******************* CANADIAN ASTRONOMY DATA CENTRE *******************
************** CENTRE CANADIEN DE DONNÉES ASTRONOMIQUES **************
*
* (c) 2024. (c) 2024.
* Government of Canada Gouvernement du Canada
* National Research Council Conseil national de recherches
* Ottawa, Canada, K1A 0R6 Ottawa, Canada, K1A 0R6
* All rights reserved Tous droits réservés
*
* NRC disclaims any warranties, Le CNRC dénie toute garantie
* expressed, implied, or énoncée, implicite ou légale,
* statutory, of any kind with de quelque nature que ce
* respect to the software, soit, concernant le logiciel,
* including without limitation y compris sans restriction
* any warranty of merchantability toute garantie de valeur
* or fitness for a particular marchande ou de pertinence
* purpose. NRC shall not be pour un usage particulier.
* liable in any event for any Le CNRC ne pourra en aucun cas
* damages, whether direct or être tenu responsable de tout
* indirect, special or general, dommage, direct ou indirect,
* consequential or incidental, particulier ou général,
* arising from the use of the accessoire ou fortuit, résultant
* software. Neither the name de l'utilisation du logiciel. Ni
* of the National Research le nom du Conseil National de
* Council of Canada nor the Recherches du Canada ni les noms
* names of its contributors may de ses participants ne peuvent
* be used to endorse or promote être utilisés pour approuver ou
* products derived from this promouvoir les produits dérivés
* software without specific prior de ce logiciel sans autorisation
* written permission. préalable et particulière
* par écrit.
*
* This file is part of the Ce fichier fait partie du projet
* OpenCADC project. OpenCADC.
*
* OpenCADC is free software: OpenCADC est un logiciel libre ;
* you can redistribute it and/or vous pouvez le redistribuer ou le
* modify it under the terms of modifier suivant les termes de
* the GNU Affero General Public la “GNU Affero General Public
* License as published by the License” telle que publiée
* Free Software Foundation, par la Free Software Foundation
* either version 3 of the : soit la version 3 de cette
* License, or (at your option) licence, soit (à votre gré)
* any later version. toute version ultérieure.
*
* OpenCADC is distributed in the OpenCADC est distribué
* hope that it will be useful, dans l’espoir qu’il vous
* but WITHOUT ANY WARRANTY; sera utile, mais SANS AUCUNE
* without even the implied GARANTIE : sans même la garantie
* warranty of MERCHANTABILITY implicite de COMMERCIALISABILITÉ
* or FITNESS FOR A PARTICULAR ni d’ADÉQUATION À UN OBJECTIF
* PURPOSE. See the GNU Affero PARTICULIER. Consultez la Licence
* General Public License for Générale Publique GNU Affero
* more details. pour plus de détails.
*
* You should have received Vous devriez avoir reçu une
* a copy of the GNU Affero copie de la Licence Générale
* General Public License along Publique GNU Affero avec
* with OpenCADC. If not, see OpenCADC ; si ce n’est
* <http://www.gnu.org/licenses/>. pas le cas, consultez :
* <http://www.gnu.org/licenses/>.
*
*
************************************************************************
*/

package net.canfar;

import org.openqa.selenium.WebDriver;

public class ErrorPage extends StoragePage {
public ErrorPage(WebDriver driver) throws Exception {
super(driver);
}
}
Loading

0 comments on commit cb2adf3

Please sign in to comment.