You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by am...@apache.org on 2013/06/20 05:14:28 UTC
svn commit: r1494843 [2/2] - in /airavata/sandbox/grid-tools/gram-client: ./
src/main/java/org/apache/airavata/jobsubmission/
src/main/java/org/apache/airavata/jobsubmission/gram/
src/main/java/org/apache/airavata/jobsubmission/gram/notifier/ src/main/...
Added: airavata/sandbox/grid-tools/gram-client/src/test/java/org/apache/airavata/jobsubmission/gram/LoneStarGramTest.java
URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gram-client/src/test/java/org/apache/airavata/jobsubmission/gram/LoneStarGramTest.java?rev=1494843&view=auto
==============================================================================
--- airavata/sandbox/grid-tools/gram-client/src/test/java/org/apache/airavata/jobsubmission/gram/LoneStarGramTest.java (added)
+++ airavata/sandbox/grid-tools/gram-client/src/test/java/org/apache/airavata/jobsubmission/gram/LoneStarGramTest.java Thu Jun 20 03:14:27 2013
@@ -0,0 +1,75 @@
+/*
+ *
+ * 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 org.apache.airavata.jobsubmission.gram;
+
+import org.apache.airavata.jobsubmission.gram.notifier.GramJobLogger;
+
+/**
+ * User: AmilaJ (amilaj@apache.org)
+ * Date: 6/19/13
+ * Time: 3:56 PM
+ */
+
+public class LoneStarGramTest extends GramJobSubmissionManagerTest {
+
+
+ // Dummy test case just avoid failures
+ public void testDummy() {}
+
+ public void xtestExecuteJobLoneStarInteractive() throws Exception {
+
+ ExecutionContext executionContext = getDefaultExecutionContext();
+
+ executionContext.setHost("lonestar");
+
+ executionContext.setInteractive(true);
+ executionContext.addGramJobNotifier(new GramJobLogger());
+
+ executeJob(executionContext);
+ }
+
+ public void xtestMonitoringRunningJobsLoneStar() throws Exception {
+
+ ExecutionContext executionContext = getDefaultExecutionContext();
+
+ executionContext.setHost("lonestar");
+
+ executionContext.setInteractive(true);
+ executionContext.addGramJobNotifier(new GramJobLogger());
+
+ monitoringRunningJobs(executionContext);
+ }
+
+ public void xtestCancelJobsLoneStar() throws Exception {
+
+ ExecutionContext executionContext = getDefaultExecutionContext();
+
+ executionContext.setHost("lonestar");
+
+ executionContext.setInteractive(true);
+ executionContext.addGramJobNotifier(new GramJobLogger());
+
+ cancelJob(executionContext);
+ }
+
+
+}
Added: airavata/sandbox/grid-tools/gram-client/src/test/java/org/apache/airavata/jobsubmission/gram/StampedeGramTest.java
URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gram-client/src/test/java/org/apache/airavata/jobsubmission/gram/StampedeGramTest.java?rev=1494843&view=auto
==============================================================================
--- airavata/sandbox/grid-tools/gram-client/src/test/java/org/apache/airavata/jobsubmission/gram/StampedeGramTest.java (added)
+++ airavata/sandbox/grid-tools/gram-client/src/test/java/org/apache/airavata/jobsubmission/gram/StampedeGramTest.java Thu Jun 20 03:14:27 2013
@@ -0,0 +1,72 @@
+/*
+ *
+ * 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 org.apache.airavata.jobsubmission.gram;
+
+import org.apache.airavata.jobsubmission.gram.notifier.GramJobLogger;
+
+/**
+ * User: AmilaJ (amilaj@apache.org)
+ * Date: 6/19/13
+ * Time: 3:56 PM
+ */
+
+public class StampedeGramTest extends GramJobSubmissionManagerTest {
+
+ // ====================== Stampede ==============================//
+
+ public void testExecuteJobStampedeInteractive() throws Exception {
+
+ ExecutionContext executionContext = getDefaultExecutionContext();
+
+ executionContext.setHost("stampede");
+
+ executionContext.setInteractive(true);
+ executionContext.addGramJobNotifier(new GramJobLogger());
+
+ executeJob(executionContext);
+ }
+
+ public void testMonitoringRunningJobsStampede() throws Exception {
+
+ ExecutionContext executionContext = getDefaultExecutionContext();
+
+ executionContext.setHost("stampede");
+
+ executionContext.setInteractive(true);
+ executionContext.addGramJobNotifier(new GramJobLogger());
+
+ monitoringRunningJobs(executionContext);
+ }
+
+ public void testCancelJobsStampede() throws Exception {
+
+ ExecutionContext executionContext = getDefaultExecutionContext();
+
+ executionContext.setHost("stampede");
+
+ executionContext.setInteractive(true);
+ executionContext.addGramJobNotifier(new GramJobLogger());
+
+ cancelJob(executionContext);
+ }
+
+}
Added: airavata/sandbox/grid-tools/gram-client/src/test/java/org/apache/airavata/jobsubmission/gram/TrestlesGramTest.java
URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gram-client/src/test/java/org/apache/airavata/jobsubmission/gram/TrestlesGramTest.java?rev=1494843&view=auto
==============================================================================
--- airavata/sandbox/grid-tools/gram-client/src/test/java/org/apache/airavata/jobsubmission/gram/TrestlesGramTest.java (added)
+++ airavata/sandbox/grid-tools/gram-client/src/test/java/org/apache/airavata/jobsubmission/gram/TrestlesGramTest.java Thu Jun 20 03:14:27 2013
@@ -0,0 +1,71 @@
+/*
+ *
+ * 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 org.apache.airavata.jobsubmission.gram;
+
+import org.apache.airavata.jobsubmission.gram.notifier.GramJobLogger;
+
+/**
+ * User: AmilaJ (amilaj@apache.org)
+ * Date: 6/19/13
+ * Time: 3:54 PM
+ */
+
+public class TrestlesGramTest extends GramJobSubmissionManagerTest {
+
+ // ====================== Trestles ==============================//
+
+ public void testExecuteJobTrestlesInteractive() throws Exception {
+
+ ExecutionContext executionContext = getDefaultExecutionContext();
+
+ executionContext.setHost("trestles");
+
+ executionContext.setInteractive(true);
+ executionContext.addGramJobNotifier(new GramJobLogger());
+
+ executeJob(executionContext);
+ }
+
+ public void testMonitoringRunningJobsTrestles() throws Exception {
+
+ ExecutionContext executionContext = getDefaultExecutionContext();
+
+ executionContext.setHost("trestles");
+
+ executionContext.setInteractive(true);
+ executionContext.addGramJobNotifier(new GramJobLogger());
+
+ monitoringRunningJobs(executionContext);
+ }
+
+ public void testCancelJobsTrestles() throws Exception {
+
+ ExecutionContext executionContext = getDefaultExecutionContext();
+
+ executionContext.setHost("trestles");
+
+ executionContext.setInteractive(true);
+ executionContext.addGramJobNotifier(new GramJobLogger());
+
+ cancelJob(executionContext);
+ }
+}
Added: airavata/sandbox/grid-tools/gram-client/src/test/resources/airavata-myproxy-client.properties
URL: http://svn.apache.org/viewvc/airavata/sandbox/grid-tools/gram-client/src/test/resources/airavata-myproxy-client.properties?rev=1494843&view=auto
==============================================================================
--- airavata/sandbox/grid-tools/gram-client/src/test/resources/airavata-myproxy-client.properties (added)
+++ airavata/sandbox/grid-tools/gram-client/src/test/resources/airavata-myproxy-client.properties Thu Jun 20 03:14:27 2013
@@ -0,0 +1,7 @@
+#Download trusted certificates from - https://software.xsede.org/security/xsede-certs.tar.gz
+trustedCertsFile=/Users/thejaka/development/apache/airavata/sandbox/grid-tools/gridftp-client/certificates
+myproxyServer=myproxy.teragrid.org
+myproxy_lifetime=17280000
+myproxyUserName=
+myproxyPasswd=
+myproxyPort=7512