Skip to content
Snippets Groups Projects
Commit 617917b2 authored by erbel's avatar erbel
Browse files

Add Iteration Test

parent a2029bc8
No related branches found
No related tags found
1 merge request!6Dev/ref
Pipeline #97255 passed
# MOCCI # MOCCI
[![build status](https://gitlab.gwdg.de/rwm/de.ugoe.cs.rwm.mocci/badges/master/pipeline.svg)](https://gitlab.gwdg.de/rwm/de.ugoe.cs.rwm.mocci/commits/master) [![build status](https://gitlab.gwdg.de/rwm/de.ugoe.cs.rwm.mocci/badges/master/pipeline.svg)](https://gitlab.gwdg.de/rwm/de.ugoe.cs.rwm.mocci/commits/master)
[![coverage report](https://gitlab.gwdg.de/rwm/de.ugoe.cs.rwm.mocci/badges/master/coverage.svg)](https://gitlab.gwdg.de/rwm/de.ugoe.cs.rwm.mocci/commits/master)
MOCCI is an extension for the [Open Cloud Computing Interface (OCCI)](http://occi-wg.org/about/specification/) to enable a model-driven management of monitoring devices in the cloud, as well as storing their results within an OCCI-compliant runtime model. Together with other tools from the OCCI ecosystem it provides a testing and execution environment for self-adaptive systems with an EMF-based architecture runtime model ([Snapshot in JSON format](./doc/browser.png)). In the following you will find a getting started guide in which a preconfigured VirtualBox image is downloaded to perform example scenarios and an tutorial on how to enrich existing OCCI models with monitoring functionality. Moreover, an introduction to MOCCI's components is provided, as well as links and description on how to integrate MOCCI with other pre-existing tooling from the OCCI ecosystem. The paper submitted to this artifact and the VirtualBox image can be found [here](https://owncloud.gwdg.de/index.php/s/5u2ddnyyNlzecM5) with the password being mocci. MOCCI is an extension for the [Open Cloud Computing Interface (OCCI)](http://occi-wg.org/about/specification/) to enable a model-driven management of monitoring devices in the cloud, as well as storing their results within an OCCI-compliant runtime model. Together with other tools from the OCCI ecosystem it provides a testing and execution environment for self-adaptive systems with an EMF-based architecture runtime model ([Snapshot in JSON format](./doc/browser.png)). In the following you will find a getting started guide in which a preconfigured VirtualBox image is downloaded to perform example scenarios and an tutorial on how to enrich existing OCCI models with monitoring functionality. Moreover, an introduction to MOCCI's components is provided, as well as links and description on how to integrate MOCCI with other pre-existing tooling from the OCCI ecosystem. The paper submitted to this artifact and the VirtualBox image can be found [here](https://owncloud.gwdg.de/index.php/s/5u2ddnyyNlzecM5) with the password being mocci.
......
apply plugin: "com.github.psxpaul.execfork"
apply plugin: 'jacoco' apply plugin: 'jacoco'
apply plugin: "com.github.psxpaul.execfork"
apply plugin: 'com.github.johnrengelman.shadow' apply plugin: 'com.github.johnrengelman.shadow'
ext{ ext{
...@@ -121,7 +121,6 @@ dependencies { ...@@ -121,7 +121,6 @@ dependencies {
compile "org.eclipse.uml2:org.eclipse.uml2.common:1.8.2" compile "org.eclipse.uml2:org.eclipse.uml2.common:1.8.2"
compile group: 'org.eclipse.ocl', name: 'pivot', version: '1.3.0' compile group: 'org.eclipse.ocl', name: 'pivot', version: '1.3.0'
testCompile group: 'junit', name: 'junit', version: '4.12' testCompile group: 'junit', name: 'junit', version: '4.12'
} }
......
...@@ -4,9 +4,6 @@ ...@@ -4,9 +4,6 @@
"http://checkstyle.sourceforge.net/dtds/configuration_1_3.dtd"> "http://checkstyle.sourceforge.net/dtds/configuration_1_3.dtd">
<module name="Checker"> <module name="Checker">
<property name="charset" value="UTF-8"/> <property name="charset" value="UTF-8"/>
<module name="JavadocPackage"/>
<module name="TreeWalker"> <module name="TreeWalker">
<module name="RegexpSinglelineJava"> <module name="RegexpSinglelineJava">
<property name="format" value="^\t* "/> <property name="format" value="^\t* "/>
......
/**
*
*/
/** /**
* Main package that includes util classes as well as the monitoring interface. * Main package that includes util classes as well as the monitoring interface.
* *
......
...@@ -76,4 +76,27 @@ public class MapeTest { ...@@ -76,4 +76,27 @@ public class MapeTest {
assertTrue(TestUtility.equalsRuntime(MAPE.runtimeModel, MAPE.conn)); assertTrue(TestUtility.equalsRuntime(MAPE.runtimeModel, MAPE.conn));
} }
@Test
public void Iterations() {
int iterations = 20;
int count = 0;
int interval = 1000;
while (count < iterations) {
try {
System.out.println("\n--------------------Waiting for new MAPE-K Cycle: Sleeping " + interval
+ "--------------------");
Thread.sleep(interval);
Monitor monitor = MAPE.monitor();
String analysis = MAPE.analyze(monitor);
MAPE.runtimeModel = MAPE.plan(analysis);
MAPE.execute(MAPE.runtimeModel);
count++;
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
} }
/**
*
*/
/**
* Main package that includes MOCCI live tests.
*
* @author erbel
*
*/
package de.ugoe.cs.rwm.mocci.live;
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment