Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 85488200C8C for ; Tue, 6 Jun 2017 19:45:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 83A89160BC6; Tue, 6 Jun 2017 17:45:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 31AFB160BB7 for ; Tue, 6 Jun 2017 19:45:57 +0200 (CEST) Received: (qmail 29752 invoked by uid 500); 6 Jun 2017 17:45:56 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 29743 invoked by uid 99); 6 Jun 2017 17:45:56 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2017 17:45:56 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 212BBDFF9D; Tue, 6 Jun 2017 17:45:55 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: adhamnas@apache.org To: commits@airavata.apache.org Message-Id: <98c9eb3503694fbb8e7f844fe82310b3@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: airavata git commit: Yaml implementation for sub types in enviroment setup Date: Tue, 6 Jun 2017 17:45:55 +0000 (UTC) archived-at: Tue, 06 Jun 2017 17:45:59 -0000 Repository: airavata Updated Branches: refs/heads/feature-workload-mgmt f37895ca5 -> 0451ae385 Yaml implementation for sub types in enviroment setup Project: http://git-wip-us.apache.org/repos/asf/airavata/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/0451ae38 Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/0451ae38 Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/0451ae38 Branch: refs/heads/feature-workload-mgmt Commit: 0451ae385f03f2ef9efd45bb796f1f310681a39b Parents: f37895c Author: Ajinkya Dhamnaskar Authored: Tue Jun 6 13:40:15 2017 -0400 Committer: Ajinkya Dhamnaskar Committed: Tue Jun 6 13:40:15 2017 -0400 ---------------------------------------------------------------------- modules/worker/task-envsetup/pom.xml | 6 + .../config/EnvironmentSetupConfigException.java | 31 +++++ .../config/EnvironmentSetupTaskConfig.java | 28 ++++ .../config/EnvironmentSetupYamlConfig.java | 58 +++++++++ .../envsetup/facade/EnvironmentSetupFacade.java | 34 +++++ .../envsetup/utils/EnvironmentSetupFactory.java | 39 ++++++ .../src/main/resources/env-setup-config.yaml | 23 ++++ .../src/test/java/TestEnvironmentSetup.java | 50 +++++++ .../task-envsetup/src/test/java/TestUtils.java | 11 ++ .../test-output/Default Suite/airavata.html | 129 +++++++++++++++++++ .../Default Suite/airavata.properties | 1 + .../test-output/Default Suite/classes.html | 50 +++++++ .../test-output/Default Suite/groups.html | 4 + .../test-output/Default Suite/index.html | 6 + .../test-output/Default Suite/main.html | 2 + .../Default Suite/methods-alphabetical.html | 68 ++++++++++ .../Default Suite/methods-not-run.html | 2 + .../test-output/Default Suite/methods.html | 68 ++++++++++ .../Default Suite/reporter-output.html | 1 + .../test-output/Default Suite/testng.xml.html | 1 + .../test-output/Default Suite/toc.html | 30 +++++ .../worker/task-envsetup/test-output/index.html | 9 ++ .../old/Default Suite/airavata.properties | 1 + .../test-output/old/Default Suite/classes.html | 38 ++++++ .../test-output/old/Default Suite/groups.html | 4 + .../test-output/old/Default Suite/index.html | 6 + .../test-output/old/Default Suite/main.html | 2 + .../old/Default Suite/methods-alphabetical.html | 26 ++++ .../old/Default Suite/methods-not-run.html | 2 + .../test-output/old/Default Suite/methods.html | 26 ++++ .../old/Default Suite/reporter-output.html | 1 + .../old/Default Suite/testng.xml.html | 1 + .../test-output/old/Default Suite/toc.html | 30 +++++ .../task-envsetup/test-output/old/index.html | 9 ++ .../test-output/testng-results.xml | 126 ++++++++++++++++++ .../worker/task-envsetup/test-output/testng.css | 9 ++ 36 files changed, 932 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/pom.xml ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/pom.xml b/modules/worker/task-envsetup/pom.xml index b123958..e8c0fbd 100644 --- a/modules/worker/task-envsetup/pom.xml +++ b/modules/worker/task-envsetup/pom.xml @@ -19,6 +19,7 @@ 0.1.53 0.6.1 + 6.9.10 @@ -52,5 +53,10 @@ ganymed-ssh2 262 + + org.testng + testng + ${testng.version} + \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/src/main/java/org/apache/airavata/worker/task/envsetup/config/EnvironmentSetupConfigException.java ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/src/main/java/org/apache/airavata/worker/task/envsetup/config/EnvironmentSetupConfigException.java b/modules/worker/task-envsetup/src/main/java/org/apache/airavata/worker/task/envsetup/config/EnvironmentSetupConfigException.java new file mode 100644 index 0000000..46ad2fa --- /dev/null +++ b/modules/worker/task-envsetup/src/main/java/org/apache/airavata/worker/task/envsetup/config/EnvironmentSetupConfigException.java @@ -0,0 +1,31 @@ +package org.apache.airavata.worker.task.envsetup.config; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * Created by Ajinkya on 6/1/17. + */ +public class EnvironmentSetupConfigException extends Exception { + + private static final Logger log = LoggerFactory.getLogger(EnvironmentSetupConfigException.class); + + /** + * + */ + private static final long serialVersionUID = 1L; + + public EnvironmentSetupConfigException(String s) { + super(s); + } + + public EnvironmentSetupConfigException(Exception e) { + super(e); + log.error(e.getMessage(),e); + } + + public EnvironmentSetupConfigException(String s, Throwable throwable) { + super(s, throwable); + log.error(s,throwable); + } +} http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/src/main/java/org/apache/airavata/worker/task/envsetup/config/EnvironmentSetupTaskConfig.java ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/src/main/java/org/apache/airavata/worker/task/envsetup/config/EnvironmentSetupTaskConfig.java b/modules/worker/task-envsetup/src/main/java/org/apache/airavata/worker/task/envsetup/config/EnvironmentSetupTaskConfig.java new file mode 100644 index 0000000..891e49a --- /dev/null +++ b/modules/worker/task-envsetup/src/main/java/org/apache/airavata/worker/task/envsetup/config/EnvironmentSetupTaskConfig.java @@ -0,0 +1,28 @@ +package org.apache.airavata.worker.task.envsetup.config; + +import org.apache.airavata.model.task.TaskTypes; + +/** + * Created by Ajinkya on 6/1/17. + */ +public class EnvironmentSetupTaskConfig { + private TaskTypes taskType; + private String taskClass; + + public TaskTypes getTaskType() { + return taskType; + } + + public void setTaskType(TaskTypes taskType) { + this.taskType = taskType; + } + + public String getTaskClass() { + return taskClass; + } + + public void setTaskClass(String taskClass) { + this.taskClass = taskClass; + } + +} http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/src/main/java/org/apache/airavata/worker/task/envsetup/config/EnvironmentSetupYamlConfig.java ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/src/main/java/org/apache/airavata/worker/task/envsetup/config/EnvironmentSetupYamlConfig.java b/modules/worker/task-envsetup/src/main/java/org/apache/airavata/worker/task/envsetup/config/EnvironmentSetupYamlConfig.java new file mode 100644 index 0000000..62f9b5d --- /dev/null +++ b/modules/worker/task-envsetup/src/main/java/org/apache/airavata/worker/task/envsetup/config/EnvironmentSetupYamlConfig.java @@ -0,0 +1,58 @@ +package org.apache.airavata.worker.task.envsetup.config; + +import org.apache.airavata.model.task.TaskTypes; +import org.yaml.snakeyaml.Yaml; + +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +/** + * Created by Ajinkya on 6/1/17. + */ +public class EnvironmentSetupYamlConfig { + + private static final String TASK_CLASS = "taskClass"; + private static final String ENV_SETUP_TASKS = "envSetupTasks"; + private static final String TASK_TYPE = "type"; + private List envSetupTasks = new ArrayList<>(); + + public EnvironmentSetupYamlConfig() throws EnvironmentSetupConfigException { + InputStream resourceAsStream = EnvironmentSetupYamlConfig.class.getClassLoader(). + getResourceAsStream("env-setup-config.yaml"); + parse(resourceAsStream); + } + + private void parse(InputStream resourceAsStream) throws EnvironmentSetupConfigException { + if (resourceAsStream == null) { + throw new EnvironmentSetupConfigException("Configuration file{env-setup-config.yaml} is not fund"); + } + Yaml yaml = new Yaml(); + Object load = yaml.load(resourceAsStream); + if (load == null) { + throw new EnvironmentSetupConfigException("Yaml configuration object null"); + } + + if (load instanceof Map) { + Map loadMap = (Map) load; + String identifier; + + List> envSetupYamls = (List>) loadMap.get(ENV_SETUP_TASKS); + EnvironmentSetupTaskConfig environmentSetupTaskConfig; + if (envSetupYamls != null) { + for (Map envSetupConfig : envSetupYamls) { + environmentSetupTaskConfig = new EnvironmentSetupTaskConfig(); + identifier = ((String) envSetupConfig.get(TASK_TYPE)); + environmentSetupTaskConfig.setTaskType(TaskTypes.valueOf(identifier)); + environmentSetupTaskConfig.setTaskClass(((String) envSetupConfig.get(TASK_CLASS))); + envSetupTasks.add(environmentSetupTaskConfig); + } + } + } + } + + public List getEnvironmentSetupTasks() { + return envSetupTasks; + } +} http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/src/main/java/org/apache/airavata/worker/task/envsetup/facade/EnvironmentSetupFacade.java ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/src/main/java/org/apache/airavata/worker/task/envsetup/facade/EnvironmentSetupFacade.java b/modules/worker/task-envsetup/src/main/java/org/apache/airavata/worker/task/envsetup/facade/EnvironmentSetupFacade.java new file mode 100644 index 0000000..671b5cf --- /dev/null +++ b/modules/worker/task-envsetup/src/main/java/org/apache/airavata/worker/task/envsetup/facade/EnvironmentSetupFacade.java @@ -0,0 +1,34 @@ +package org.apache.airavata.worker.task.envsetup.facade; + +import org.apache.airavata.model.status.TaskStatus; +import org.apache.airavata.model.task.TaskTypes; +import org.apache.airavata.worker.core.context.TaskContext; +import org.apache.airavata.worker.core.task.Task; +import org.apache.airavata.worker.core.task.TaskException; + +import java.util.Map; + +/** + * Created by Ajinkya on 6/1/17. + */ +public class EnvironmentSetupFacade implements Task { + @Override + public void init(Map propertyMap) throws TaskException { + + } + + @Override + public TaskStatus execute(TaskContext taskContext) { + return null; + } + + @Override + public TaskStatus recover(TaskContext taskContext) { + return null; + } + + @Override + public TaskTypes getType() { + return null; + } +} http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/src/main/java/org/apache/airavata/worker/task/envsetup/utils/EnvironmentSetupFactory.java ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/src/main/java/org/apache/airavata/worker/task/envsetup/utils/EnvironmentSetupFactory.java b/modules/worker/task-envsetup/src/main/java/org/apache/airavata/worker/task/envsetup/utils/EnvironmentSetupFactory.java new file mode 100644 index 0000000..53449ce --- /dev/null +++ b/modules/worker/task-envsetup/src/main/java/org/apache/airavata/worker/task/envsetup/utils/EnvironmentSetupFactory.java @@ -0,0 +1,39 @@ +package org.apache.airavata.worker.task.envsetup.utils; + +import org.apache.airavata.model.data.movement.DataMovementProtocol; +import org.apache.airavata.model.task.TaskTypes; +import org.apache.airavata.worker.core.task.Task; +import org.apache.airavata.worker.task.envsetup.config.EnvironmentSetupConfigException; +import org.apache.airavata.worker.task.envsetup.config.EnvironmentSetupTaskConfig; +import org.apache.airavata.worker.task.envsetup.config.EnvironmentSetupYamlConfig; + +import java.lang.reflect.Constructor; +import java.util.HashMap; +import java.util.Map; + +/** + * Created by Ajinkya on 6/1/17. + */ +public class EnvironmentSetupFactory { + + private static boolean isEnvSetupConfigurationLoaded = false; + private static Map envSetupTask = new HashMap<>(); + + public static void loadConfiguration() throws EnvironmentSetupConfigException { + if (!isEnvSetupConfigurationLoaded) { + EnvironmentSetupYamlConfig config = new EnvironmentSetupYamlConfig(); + try { + for (EnvironmentSetupTaskConfig envSetupTaskConfig : config.getEnvironmentSetupTasks()) { + String taskClass = envSetupTaskConfig.getTaskClass(); + Class aClass = Class.forName(taskClass); + Constructor constructor = aClass.getConstructor(); + Task task = (Task) constructor.newInstance(); + envSetupTask.put(envSetupTaskConfig.getTaskType(), task); + } + }catch (Exception e) { + throw new EnvironmentSetupConfigException("Data staging config issue", e); + } + isEnvSetupConfigurationLoaded = true; + } + } +} http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/src/main/resources/env-setup-config.yaml ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/src/main/resources/env-setup-config.yaml b/modules/worker/task-envsetup/src/main/resources/env-setup-config.yaml new file mode 100644 index 0000000..2701c0d --- /dev/null +++ b/modules/worker/task-envsetup/src/main/resources/env-setup-config.yaml @@ -0,0 +1,23 @@ +################################################################## +# 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. +# +################################################################ + +envSetupTasks: + - type: ENV_SETUP + taskClass: org.apache.airavata.worker.task.envsetup.impl.EnvironmentSetupTask http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/src/test/java/TestEnvironmentSetup.java ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/src/test/java/TestEnvironmentSetup.java b/modules/worker/task-envsetup/src/test/java/TestEnvironmentSetup.java new file mode 100644 index 0000000..dd00e58 --- /dev/null +++ b/modules/worker/task-envsetup/src/test/java/TestEnvironmentSetup.java @@ -0,0 +1,50 @@ +import org.testng.Assert; +import org.testng.annotations.*; + +/** + * Created by Ajinkya on 4/17/17. + */ +public class TestEnvironmentSetup { + + @BeforeClass + public void beforeClass(){ + System.out.println("@BeforeClass"); + } + + @AfterClass + public void afterClass(){ + System.out.println("@AfterClass"); + } + + @BeforeMethod + public void beforeMethod(){ + System.out.println("@BeforeMethod"); + } + + @AfterMethod + public void AfterMethod(){ + System.out.println("@AfterMethod"); + } + + @DataProvider(name = "DataProvider") + + public static Object[][] credentials() { + + return new Object[][] { { "myName1"}, {"myName2"}, {"myName3"}}; + + } + + @Test(invocationCount = 3, threadPoolSize = 3, description = "test", suiteName = "Suit1", dataProvider = "DataProvider", groups = { "fast" }) + public void test(String myName){ + System.out.println(myName); + System.out.println(Thread.currentThread().getId()); + Assert.assertEquals("1", "1"); + } + + @Test(invocationCount = 1, threadPoolSize = 3, description = "test2", timeOut = 2000, groups = { "slow" }) + public void test2() throws InterruptedException { + Thread.sleep(1000); + Assert.assertEquals("hello", "hello"); + } + +} http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/src/test/java/TestUtils.java ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/src/test/java/TestUtils.java b/modules/worker/task-envsetup/src/test/java/TestUtils.java new file mode 100644 index 0000000..cfb89e5 --- /dev/null +++ b/modules/worker/task-envsetup/src/test/java/TestUtils.java @@ -0,0 +1,11 @@ +import org.apache.airavata.worker.core.context.TaskContext; + +/** + * Created by Ajinkya on 4/17/17. + */ +public class TestUtils { + +// public static final TaskContext getTaskContext(){ +// +// } +} http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/Default Suite/airavata.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/Default Suite/airavata.html b/modules/worker/task-envsetup/test-output/Default Suite/airavata.html new file mode 100644 index 0000000..0059dcf --- /dev/null +++ b/modules/worker/task-envsetup/test-output/Default Suite/airavata.html @@ -0,0 +1,129 @@ + + +TestNG: airavata + + + + + + + + +

airavata

+ + + + + + + + + + + +
Tests passed/Failed/Skipped:10/0/0
Started on:Fri Apr 21 00:40:15 EDT 2017
Total time:1 seconds (1088 ms)
Included groups:
Excluded groups:

+(Hover the method name to see the test class name)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PASSED TESTS
Test methodExceptionTime (seconds)Instance
test
Test class: TestEnvironmentSetup
Test method: test
Parameters: myName1
0TestEnvironmentSetup@59a6e353
test
Test class: TestEnvironmentSetup
Test method: test
Parameters: myName1
0TestEnvironmentSetup@59a6e353
test
Test class: TestEnvironmentSetup
Test method: test
Parameters: myName1
0TestEnvironmentSetup@59a6e353
test
Test class: TestEnvironmentSetup
Test method: test
Parameters: myName2
0TestEnvironmentSetup@59a6e353
test
Test class: TestEnvironmentSetup
Test method: test
Parameters: myName2
0TestEnvironmentSetup@59a6e353
test
Test class: TestEnvironmentSetup
Test method: test
Parameters: myName2
0TestEnvironmentSetup@59a6e353
test
Test class: TestEnvironmentSetup
Test method: test
Parameters: myName3
0TestEnvironmentSetup@59a6e353
test
Test class: TestEnvironmentSetup
Test method: test
Parameters: myName3
0TestEnvironmentSetup@59a6e353
test
Test class: TestEnvironmentSetup
Test method: test
Parameters: myName3
0TestEnvironmentSetup@59a6e353
test2
Test class: TestEnvironmentSetup
Test method: test2
1TestEnvironmentSetup@59a6e353

+ + \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/Default Suite/airavata.properties ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/Default Suite/airavata.properties b/modules/worker/task-envsetup/test-output/Default Suite/airavata.properties new file mode 100644 index 0000000..f0a82e0 --- /dev/null +++ b/modules/worker/task-envsetup/test-output/Default Suite/airavata.properties @@ -0,0 +1 @@ +[SuiteResult airavata] \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/Default Suite/classes.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/Default Suite/classes.html b/modules/worker/task-envsetup/test-output/Default Suite/classes.html new file mode 100644 index 0000000..396cccd --- /dev/null +++ b/modules/worker/task-envsetup/test-output/Default Suite/classes.html @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Class nameMethod nameGroups
TestEnvironmentSetup  
@Test
 test2slow
 testfast
@BeforeClass
 beforeClass 
@BeforeMethod
 beforeMethod 
@AfterMethod
 AfterMethod 
@AfterClass
 afterClass 
http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/Default Suite/groups.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/Default Suite/groups.html b/modules/worker/task-envsetup/test-output/Default Suite/groups.html new file mode 100644 index 0000000..9ecbd79 --- /dev/null +++ b/modules/worker/task-envsetup/test-output/Default Suite/groups.html @@ -0,0 +1,4 @@ +

Groups used for this test run

+ + +
Group nameMethods
fastTestEnvironmentSetup.test(java.lang.String)
slowTestEnvironmentSetup.test2()
http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/Default Suite/index.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/Default Suite/index.html b/modules/worker/task-envsetup/test-output/Default Suite/index.html new file mode 100644 index 0000000..24a3e50 --- /dev/null +++ b/modules/worker/task-envsetup/test-output/Default Suite/index.html @@ -0,0 +1,6 @@ +Results for Default Suite + + + + + http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/Default Suite/main.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/Default Suite/main.html b/modules/worker/task-envsetup/test-output/Default Suite/main.html new file mode 100644 index 0000000..7c40dd5 --- /dev/null +++ b/modules/worker/task-envsetup/test-output/Default Suite/main.html @@ -0,0 +1,2 @@ +Results for Default Suite +Select a result on the left-hand pane. http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/Default Suite/methods-alphabetical.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/Default Suite/methods-alphabetical.html b/modules/worker/task-envsetup/test-output/Default Suite/methods-alphabetical.html new file mode 100644 index 0000000..e95d288 --- /dev/null +++ b/modules/worker/task-envsetup/test-output/Default Suite/methods-alphabetical.html @@ -0,0 +1,68 @@ +

Methods run, sorted chronologically

>> means before, << means after


Default Suite

(Hover the method name to see the test class name)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
17/04/17 16:42:19 0     <<AfterMethod  TestNG@1093506171
17/04/17 16:42:19 0     <<AfterMethod  TestNG@818813539
17/04/17 16:42:19 0     <<AfterMethod  TestNG@1598459808
17/04/17 16:42:19 1     <<AfterMethod  TestNG@818813539
17/04/17 16:42:19 1     <<AfterMethod  TestNG@1598459808
17/04/17 16:42:19 2     <<AfterMethod  TestNG@818813539
17/04/17 16:42:19 2     <<AfterMethod  TestNG@1598459808
17/04/17 16:42:19 4     <<AfterMethod  TestNG@1093506171
17/04/17 16:42:19 4     <<AfterMethod  TestNG@1093506171
17/04/17 16:42:20 1021     <<AfterMethod  main@457233904
17/04/17 16:42:20 1021   <<afterClass    main@457233904
17/04/17 16:42:19 -19   >>beforeClass    main@457233904
17/04/17 16:42:19 -3     >>beforeMethod  TestNG@1598459808
17/04/17 16:42:19 -3     >>beforeMethod  TestNG@818813539
17/04/17 16:42:19 -3     >>beforeMethod  TestNG@1093506171
17/04/17 16:42:19 0     >>beforeMethod  TestNG@818813539
17/04/17 16:42:19 0     >>beforeMethod  TestNG@1598459808
17/04/17 16:42:19 1     >>beforeMethod  TestNG@818813539
17/04/17 16:42:19 1     >>beforeMethod  TestNG@1598459808
17/04/17 16:42:19 3     >>beforeMethod  TestNG@1093506171
17/04/17 16:42:19 4     >>beforeMethod  TestNG@1093506171
17/04/17 16:42:19 6     >>beforeMethod  main@457233904
17/04/17 16:42:19 -3      testTestNG@1598459808
17/04/17 16:42:19 -3      testTestNG@818813539
17/04/17 16:42:19 -3      testTestNG@1093506171
17/04/17 16:42:19 0      testTestNG@818813539
17/04/17 16:42:19 1      testTestNG@1598459808
17/04/17 16:42:19 1      testTestNG@818813539
17/04/17 16:42:19 1      testTestNG@1598459808
17/04/17 16:42:19 3      testTestNG@1093506171
17/04/17 16:42:19 4      testTestNG@1093506171
17/04/17 16:42:19 6      test2main@457233904
http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/Default Suite/methods-not-run.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/Default Suite/methods-not-run.html b/modules/worker/task-envsetup/test-output/Default Suite/methods-not-run.html new file mode 100644 index 0000000..54b14cb --- /dev/null +++ b/modules/worker/task-envsetup/test-output/Default Suite/methods-not-run.html @@ -0,0 +1,2 @@ +

Methods that were not run

+
\ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/Default Suite/methods.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/Default Suite/methods.html b/modules/worker/task-envsetup/test-output/Default Suite/methods.html new file mode 100644 index 0000000..e12a4df --- /dev/null +++ b/modules/worker/task-envsetup/test-output/Default Suite/methods.html @@ -0,0 +1,68 @@ +

Methods run, sorted chronologically

>> means before, << means after


Default Suite

(Hover the method name to see the test class name)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
17/04/17 16:42:19 0   >>beforeClass    main@457233904
17/04/17 16:42:19 16     >>beforeMethod  TestNG@1598459808
17/04/17 16:42:19 16     >>beforeMethod  TestNG@818813539
17/04/17 16:42:19 16     >>beforeMethod  TestNG@1093506171
17/04/17 16:42:19 16      testTestNG@1598459808
17/04/17 16:42:19 16      testTestNG@818813539
17/04/17 16:42:19 16      testTestNG@1093506171
17/04/17 16:42:19 19     <<AfterMethod  TestNG@1093506171
17/04/17 16:42:19 19     <<AfterMethod  TestNG@818813539
17/04/17 16:42:19 19     <<AfterMethod  TestNG@1598459808
17/04/17 16:42:19 19     >>beforeMethod  TestNG@818813539
17/04/17 16:42:19 19     >>beforeMethod  TestNG@1598459808
17/04/17 16:42:19 19      testTestNG@818813539
17/04/17 16:42:19 20      testTestNG@1598459808
17/04/17 16:42:19 20     <<AfterMethod  TestNG@818813539
17/04/17 16:42:19 20     <<AfterMethod  TestNG@1598459808
17/04/17 16:42:19 20     >>beforeMethod  TestNG@818813539
17/04/17 16:42:19 20     >>beforeMethod  TestNG@1598459808
17/04/17 16:42:19 20      testTestNG@818813539
17/04/17 16:42:19 20      testTestNG@1598459808
17/04/17 16:42:19 21     <<AfterMethod  TestNG@818813539
17/04/17 16:42:19 21     <<AfterMethod  TestNG@1598459808
17/04/17 16:42:19 22     >>beforeMethod  TestNG@1093506171
17/04/17 16:42:19 22      testTestNG@1093506171
17/04/17 16:42:19 23     <<AfterMethod  TestNG@1093506171
17/04/17 16:42:19 23     >>beforeMethod  TestNG@1093506171
17/04/17 16:42:19 23      testTestNG@1093506171
17/04/17 16:42:19 23     <<AfterMethod  TestNG@1093506171
17/04/17 16:42:19 25     >>beforeMethod  main@457233904
17/04/17 16:42:19 25      test2main@457233904
17/04/17 16:42:20 1040     <<AfterMethod  main@457233904
17/04/17 16:42:20 1040   <<afterClass    main@457233904
http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/Default Suite/reporter-output.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/Default Suite/reporter-output.html b/modules/worker/task-envsetup/test-output/Default Suite/reporter-output.html new file mode 100644 index 0000000..063bc2e --- /dev/null +++ b/modules/worker/task-envsetup/test-output/Default Suite/reporter-output.html @@ -0,0 +1 @@ +

Reporter output

\ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/Default Suite/testng.xml.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/Default Suite/testng.xml.html b/modules/worker/task-envsetup/test-output/Default Suite/testng.xml.html new file mode 100644 index 0000000..ed43f7c --- /dev/null +++ b/modules/worker/task-envsetup/test-output/Default Suite/testng.xml.html @@ -0,0 +1 @@ +testng.xml for Default Suite<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Default Suite">
  <test name="airavata" preserve-order="false">
    <classes>
      <class name="TestEnvironmentSetup"/>
    </classes>
  </test>
</suite>
\ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/Default Suite/toc.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/Default Suite/toc.html b/modules/worker/task-envsetup/test-output/Default Suite/toc.html new file mode 100644 index 0000000..8d4198b --- /dev/null +++ b/modules/worker/task-envsetup/test-output/Default Suite/toc.html @@ -0,0 +1,30 @@ + + +Results for Default Suite + + + + +

Results for
Default Suite

+ + + + + + + + + + +
1 test1 class2 methods:
+  chronological
+  alphabetical
+  not run (0)
2 groupsreporter outputtestng.xml
+ +

+

+
airavata (10/0/0) + Results +
+
+ \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/index.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/index.html b/modules/worker/task-envsetup/test-output/index.html new file mode 100644 index 0000000..4fc38ec --- /dev/null +++ b/modules/worker/task-envsetup/test-output/index.html @@ -0,0 +1,9 @@ + +Test results + + +

Test results

+ + + +
SuitePassedFailedSkippedtestng.xml
Total1000 
Default Suite1000Link
http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/old/Default Suite/airavata.properties ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/old/Default Suite/airavata.properties b/modules/worker/task-envsetup/test-output/old/Default Suite/airavata.properties new file mode 100644 index 0000000..233de07 --- /dev/null +++ b/modules/worker/task-envsetup/test-output/old/Default Suite/airavata.properties @@ -0,0 +1 @@ +[SuiteResult context=airavata] \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/old/Default Suite/classes.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/old/Default Suite/classes.html b/modules/worker/task-envsetup/test-output/old/Default Suite/classes.html new file mode 100644 index 0000000..924797f --- /dev/null +++ b/modules/worker/task-envsetup/test-output/old/Default Suite/classes.html @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Class nameMethod nameGroups
TestEnvironmentSetup  
@Test
 test2slow
 testfast
@BeforeClass
 credentials 
@BeforeMethod
@AfterMethod
@AfterClass
http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/old/Default Suite/groups.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/old/Default Suite/groups.html b/modules/worker/task-envsetup/test-output/old/Default Suite/groups.html new file mode 100644 index 0000000..9b41a62 --- /dev/null +++ b/modules/worker/task-envsetup/test-output/old/Default Suite/groups.html @@ -0,0 +1,4 @@ +

Groups used for this test run

+ + +
Group nameMethods
fastTestEnvironmentSetup.test(java.lang.String)[pri:0, instance:TestEnvironmentSetup@59a6e353]
slowTestEnvironmentSetup.test2()[pri:0, instance:TestEnvironmentSetup@59a6e353]
http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/old/Default Suite/index.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/old/Default Suite/index.html b/modules/worker/task-envsetup/test-output/old/Default Suite/index.html new file mode 100644 index 0000000..24a3e50 --- /dev/null +++ b/modules/worker/task-envsetup/test-output/old/Default Suite/index.html @@ -0,0 +1,6 @@ +Results for Default Suite + + + + + http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/old/Default Suite/main.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/old/Default Suite/main.html b/modules/worker/task-envsetup/test-output/old/Default Suite/main.html new file mode 100644 index 0000000..7c40dd5 --- /dev/null +++ b/modules/worker/task-envsetup/test-output/old/Default Suite/main.html @@ -0,0 +1,2 @@ +Results for Default Suite +Select a result on the left-hand pane. http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/old/Default Suite/methods-alphabetical.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/old/Default Suite/methods-alphabetical.html b/modules/worker/task-envsetup/test-output/old/Default Suite/methods-alphabetical.html new file mode 100644 index 0000000..9aa9cc1 --- /dev/null +++ b/modules/worker/task-envsetup/test-output/old/Default Suite/methods-alphabetical.html @@ -0,0 +1,26 @@ +

Methods run, sorted chronologically

>> means before, << means after


Default Suite

(Hover the method name to see the test class name)

+ + + + + + + + + + + + + + + + + + + + + + + + +
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
17/04/21 00:40:15 0   >>credentials    main@1020923989
17/04/21 00:40:15 42      testTestNG@23687180
17/04/21 00:40:15 42      testTestNG@1500935830
17/04/21 00:40:15 42      testTestNG@22784715
17/04/21 00:40:15 46      testTestNG@1500935830
17/04/21 00:40:15 46      testTestNG@22784715
17/04/21 00:40:15 46      testTestNG@23687180
17/04/21 00:40:15 47      testTestNG@1500935830
17/04/21 00:40:15 48      testTestNG@23687180
17/04/21 00:40:15 47      testTestNG@22784715
17/04/21 00:40:15 50      test2main@1020923989
http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/old/Default Suite/methods-not-run.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/old/Default Suite/methods-not-run.html b/modules/worker/task-envsetup/test-output/old/Default Suite/methods-not-run.html new file mode 100644 index 0000000..54b14cb --- /dev/null +++ b/modules/worker/task-envsetup/test-output/old/Default Suite/methods-not-run.html @@ -0,0 +1,2 @@ +

Methods that were not run

+
\ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/old/Default Suite/methods.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/old/Default Suite/methods.html b/modules/worker/task-envsetup/test-output/old/Default Suite/methods.html new file mode 100644 index 0000000..9aa9cc1 --- /dev/null +++ b/modules/worker/task-envsetup/test-output/old/Default Suite/methods.html @@ -0,0 +1,26 @@ +

Methods run, sorted chronologically

>> means before, << means after


Default Suite

(Hover the method name to see the test class name)

+ + + + + + + + + + + + + + + + + + + + + + + + +
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
17/04/21 00:40:15 0   >>credentials    main@1020923989
17/04/21 00:40:15 42      testTestNG@23687180
17/04/21 00:40:15 42      testTestNG@1500935830
17/04/21 00:40:15 42      testTestNG@22784715
17/04/21 00:40:15 46      testTestNG@1500935830
17/04/21 00:40:15 46      testTestNG@22784715
17/04/21 00:40:15 46      testTestNG@23687180
17/04/21 00:40:15 47      testTestNG@1500935830
17/04/21 00:40:15 48      testTestNG@23687180
17/04/21 00:40:15 47      testTestNG@22784715
17/04/21 00:40:15 50      test2main@1020923989
http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/old/Default Suite/reporter-output.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/old/Default Suite/reporter-output.html b/modules/worker/task-envsetup/test-output/old/Default Suite/reporter-output.html new file mode 100644 index 0000000..063bc2e --- /dev/null +++ b/modules/worker/task-envsetup/test-output/old/Default Suite/reporter-output.html @@ -0,0 +1 @@ +

Reporter output

\ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/old/Default Suite/testng.xml.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/old/Default Suite/testng.xml.html b/modules/worker/task-envsetup/test-output/old/Default Suite/testng.xml.html new file mode 100644 index 0000000..51cd397 --- /dev/null +++ b/modules/worker/task-envsetup/test-output/old/Default Suite/testng.xml.html @@ -0,0 +1 @@ +testng.xml for Default Suite<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite guice-stage="DEVELOPMENT" name="Default Suite">
  <test name="airavata">
    <classes>
      <class name="TestEnvironmentSetup"/>
    </classes>
  </test> <!-- airavata -->
</suite> <!-- Default Suite -->
\ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/old/Default Suite/toc.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/old/Default Suite/toc.html b/modules/worker/task-envsetup/test-output/old/Default Suite/toc.html new file mode 100644 index 0000000..8d4198b --- /dev/null +++ b/modules/worker/task-envsetup/test-output/old/Default Suite/toc.html @@ -0,0 +1,30 @@ + + +Results for Default Suite + + + + +

Results for
Default Suite

+ + + + + + + + + + +
1 test1 class2 methods:
+  chronological
+  alphabetical
+  not run (0)
2 groupsreporter outputtestng.xml
+ +

+

+
airavata (10/0/0) + Results +
+
+ \ No newline at end of file http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/old/index.html ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/old/index.html b/modules/worker/task-envsetup/test-output/old/index.html new file mode 100644 index 0000000..4fc38ec --- /dev/null +++ b/modules/worker/task-envsetup/test-output/old/index.html @@ -0,0 +1,9 @@ + +Test results + + +

Test results

+ + + +
SuitePassedFailedSkippedtestng.xml
Total1000 
Default Suite1000Link
http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/testng-results.xml ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/testng-results.xml b/modules/worker/task-envsetup/test-output/testng-results.xml new file mode 100644 index 0000000..73a51e6 --- /dev/null +++ b/modules/worker/task-envsetup/test-output/testng-results.xml @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/airavata/blob/0451ae38/modules/worker/task-envsetup/test-output/testng.css ---------------------------------------------------------------------- diff --git a/modules/worker/task-envsetup/test-output/testng.css b/modules/worker/task-envsetup/test-output/testng.css new file mode 100644 index 0000000..3904800 --- /dev/null +++ b/modules/worker/task-envsetup/test-output/testng.css @@ -0,0 +1,9 @@ +.invocation-failed, .test-failed { background-color: #DD0000; } +.invocation-percent, .test-percent { background-color: #006600; } +.invocation-passed, .test-passed { background-color: #00AA00; } +.invocation-skipped, .test-skipped { background-color: #CCCC00; } + +.main-page { + font-size: x-large; +} +