diff --git a/.classpath b/.classpath new file mode 100644 index 0000000000000000000000000000000000000000..ca477fe6ee0fb317e51b69710e9327caf27c73e9 --- /dev/null +++ b/.classpath @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src/main/java"/> + <classpathentry kind="src" path="src/test/java"/> + <classpathentry kind="src" path="src/main/resources"/> + <classpathentry kind="src" path="src/test/resources"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/> + <classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..cf4e3d389d95963ea12359d32ec2854b9f8ec0e1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,39 @@ +# Created by https://www.gitignore.io/api/java,gradle + +### Java ### +*.class + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.war +*.ear + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + + +### Gradle ### +.gradle +/build/ + +# Ignore Gradle GUI config +gradle-app.setting + +# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) +!gradle-wrapper.jar + +# Cache of project +.gradletasknamecache + +# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 +# gradle/wrapper/gradle-wrapper.properties + +# End of https://www.gitignore.io/api/java,gradle +/bin/ + +*.cfg diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..63b9c9bbed3be53d35fb7901bc041d47851f4c6a --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,66 @@ +image: gradle:alpine + +stages: + - build + - test + - deploy + +variables: + GRADLE_OPTS: "-Dorg.gradle.daemon=false" + +before_script: + - export GRADLE_USER_HOME=`pwd`/.gradle + +build: + stage: build + script: + - gradle assemble + artifacts: + paths: + - build/libs/*.jar + expire_in: 1 week + +test: + stage: test + script: + - mv src/test/resources/martserver-plugins ~/martserver-plugins/ + - gradle check + artifacts: + paths: + - build/reports/ + - config/html/ + +javadoc: + stage: test + script: + gradle javadoc + artifacts: + paths: + - build/docs/ + + +pages: + stage: deploy + script: + - mkdir public + - mv config/html/* public + - mv build/reports/* public + - mv build/docs/* public + - mv build/libs/*.jar public + artifacts: + paths: + - public + expire_in: 1 day + only: + - master + +upload: + stage: deploy + script: + - gradle upload + only: + - master + +after_script: + - echo "End CI" + diff --git a/.project b/.project new file mode 100644 index 0000000000000000000000000000000000000000..851de53840d7360dc8e641717d9d526b1c2ac548 --- /dev/null +++ b/.project @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>de.ugoe.cs.rwm.mocci</name> + <comment>Project de.ugoe.cs.rwm.mocci created by Buildship.</comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.buildship.core.gradleprojectbuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.buildship.core.gradleprojectnature</nature> + </natures> +</projectDescription> diff --git a/.settings/org.eclipse.buildship.core.prefs b/.settings/org.eclipse.buildship.core.prefs new file mode 100644 index 0000000000000000000000000000000000000000..e8895216fd3c0c3af4c4522334775f41b7deb42e --- /dev/null +++ b/.settings/org.eclipse.buildship.core.prefs @@ -0,0 +1,2 @@ +connection.project.dir= +eclipse.preferences.version=1 diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..69ddd19dd3a995cd26e2d3b73fefca50a76a60da --- /dev/null +++ b/build.gradle @@ -0,0 +1,159 @@ +// Apply the java-library plugin to add support for Java Library +apply plugin: 'eclipse' +apply plugin: 'java' +apply plugin: 'checkstyle' +apply plugin: 'findbugs' +apply plugin: 'maven' +apply plugin: "com.github.psxpaul.execfork" +apply plugin: 'jacoco' + +buildscript { + repositories { + maven { + url "https://plugins.gradle.org/m2/" + } + } + dependencies { + classpath "gradle.plugin.com.github.psxpaul:gradle-execfork-plugin:0.1.8" + } +} + +sourceSets { + startMartServer { + resources { + srcDir 'src/test/resources' + } + } +} + + +// In this section you declare where to find the dependencies of your project +repositories { + // Use jcenter for resolving your dependencies. + // You can declare any Maven/Ivy/file repository here. + //mavenLocal() + mavenCentral() + jcenter() + maven { + url "https://nexus.informatik.uni-goettingen.de/content/repositories/thirdparty/" + } + maven { + url "https://nexus.informatik.uni-goettingen.de/content/repositories/rwm/" + } + + flatDir { + dirs 'lib' + } +} + +dependencies { + //Nexus + compile "org.eclipse.uml2:org.eclipse.uml2.uml:4.1.2" + //runtime? + compile "org.eclipse.uml2:org.eclipse.uml2.types:1.1.0" + compile "org.eclipse.uml2:org.eclipse.uml2.common:1.8.2" + compile group: 'org.eclipse.ocl', name: 'pivot', version: '1.3.0' + //occiware + compile group: 'org.eclipse.cmf.occi', name: 'core', version: '1.0.0' + compile group: 'org.eclipse.cmf.occi', name: 'infrastructure', version: '1.0.0' + compile group: 'org.eclipse.cmf.occi', name: 'crtp', version: '1.0.0' + + //own + compile group: 'de.ugoe.cs.rwm.pog', name: 'model', version: '1.0.0' + //compile group: 'de.ugoe.cs.rwm.pcg', name: 'model', version: '1.0.0' + compile group: 'de.ugoe.cs.rwm', name: 'tocci', version: '1.0.0' + compile group: 'de.ugoe.cs.rwm', name: 'cocci', version: '1.0.0' + compile group: 'de.ugoe.cs.rwm.wocci', name: 'model', version: '1.0.0' + //modmacao + compile group: 'org.modmacao', name: 'core', version: '1.0.0' + compile group: 'org.modmacao', name: 'placement', version: '1.0.0' + compile group: 'org.modmacao.occi', name: 'platform', version: '1.0.0' + compile group: 'org.modmacao.openstack', name: 'runtime', version: '1.0.0' + compile group: 'org.modmacao.openstack.swe', name: 'runtime', version: '1.0.0' + compile group: 'org.modmacao', name: 'ansible', version:'1.0.0' + + //maven + compile group: 'org.eclipse.epsilon', name: 'epsilon-core', version: '1.4.0' + compile group: 'org.eclipse.epsilon', name: 'epsilon-emf', version: '1.4.0' + compile group: 'log4j', name: 'log4j', version: '1.2.17' + compile group: 'com.google.guava', name: 'guava', version: '25.1-jre' + compile group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '2.11.0' + compile "org.eclipse.core:org.eclipse.core.runtime:3.7.0" + compile group: 'com.jcraft', name: 'jsch', version: '0.1.54' + compile group: 'org.json', name: 'json', version: '20180130' + compile group: 'commons-codec', name: 'commons-codec', version: '1.9' + + compile name: 'de.ugoe.cs.oco.usecases.occi.sugarcrm_1.0.0.201810261338' + + testCompile group: 'junit', name: 'junit', version: '4.12' + //testImplementation 'junit:junit:4.12' +} + +javadoc { + source = sourceSets.main.allJava + classpath = configurations.compile + failOnError = true +} +test { + //exclude 'de/ugoe/cs/rwm/docci/live/**' + testLogging.showStandardStreams = true + testLogging { + exceptionFormat = 'full' + } +} +tasks.test.dependsOn("startMartServer") +test.finalizedBy jacocoTestReport + +jacoco { + toolVersion = "0.8.1" +} + +jacocoTestReport { + reports { + xml.enabled false + csv.enabled false + html.destination file("${buildDir}/reports/jacoco") + } +} + +findbugs { + sourceSets = [sourceSets.main] + ignoreFailures = false +} + +checkstyle { + toolVersion = "8.7" + sourceSets = [sourceSets.main] +} + +checkstyleMain { + ignoreFailures = true +} + +tasks.withType(FindBugs) { + reports { + xml.enabled false + html.enabled true + } +} + +task startMartServer(type: com.github.psxpaul.task.JavaExecFork) { + classpath = files("src/test/resources/org.occiware.mart.jetty.jar") + main = 'org.occiware.mart.jetty.MartServer' + waitForPort = 8080 + stopAfter = test +} + + +uploadArchives { + repositories { + mavenDeployer { + repository(url: "https://nexus.informatik.uni-goettingen.de/content/repositories/rwm/") { + authentication(userName: System.getenv('NEXUSUSER'), password: System.getenv('NEXUSPASSWORD')) + } + pom.version = "1.0.0" + pom.artifactId = "docci" + pom.groupId = "de.ugoe.cs.rwm" + } + } +} diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml new file mode 100644 index 0000000000000000000000000000000000000000..a2566db62204b93a1396208e15d31e0a9220f060 --- /dev/null +++ b/config/checkstyle/checkstyle.xml @@ -0,0 +1,149 @@ +<?xml version="1.0"?> +<!DOCTYPE module PUBLIC + "-//Puppy Crawl//DTD Check Configuration 1.3//EN" + "http://checkstyle.sourceforge.net/dtds/configuration_1_3.dtd"> +<module name="Checker"> + <property name="charset" value="UTF-8"/> + <module name="JavadocPackage"/> + + + <module name="TreeWalker"> + <module name="RegexpSinglelineJava"> + <property name="format" value="^\t* "/> + <property name="message" value="Indent must use tab characters"/> + <property name="ignoreComments" value="true"/> + </module> + <module name="AvoidStarImport"> + <property name="excludes" value="java.io,java.util,java.util.concurrent,com.google.common.graph, + org.apache.bcel.classfile,org.mongodb.morphia.annotations,de.ugoe.cs.comfort.data.models, + org.apache.bcel.generic,org.jacoco.core.data,com.github.javaparser.ast.stmt" /> + </module> + <module name="ConstantName"/> + <module name="EmptyBlock"> + <property name="option" value="TEXT"/> + <property name="tokens" value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/> + </module> + <module name="EmptyCatchBlock"> + <property name="exceptionVariableName" value="expected"/> + </module> + + <module name="AvoidEscapedUnicodeCharacters"> + <property name="allowEscapesForControlCharacters" value="true"/> + <property name="allowByTailComment" value="true"/> + <property name="allowNonPrintableEscapes" value="true"/> + </module> + <module name="LineLength"> + <property name="max" value="150"/> + <property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/> + </module> + <module name="OneTopLevelClass"/> + <module name="NeedBraces"/> + <module name="NoLineWrap"/> + + <module name="CustomImportOrder"> + <property name="separateLineBetweenGroups" value="true"/> + <property name="customImportOrderRules" value="STATIC###THIRD_PARTY_PACKAGE"/> + </module> + + <module name="LeftCurly"/> + <module name="RightCurly"> + <property name="id" value="RightCurlySame"/> + <property name="tokens" value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_DO"/> + </module> + <module name="RightCurly"> + <property name="id" value="RightCurlyAlone"/> + <property name="option" value="alone"/> + <property name="tokens" value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT, INSTANCE_INIT"/> + </module> + + <module name="OneStatementPerLine"/> + + <module name="OperatorWrap"> + <property name="option" value="NL"/> + <property name="tokens" value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, + LOR, LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR, METHOD_REF"/> + </module> + + <module name="SeparatorWrap"> + <property name="id" value="SeparatorWrapDot"/> + <property name="tokens" value="DOT"/> + <property name="option" value="nl"/> + </module> + <module name="SeparatorWrap"> + <property name="id" value="SeparatorWrapComma"/> + <property name="tokens" value="COMMA"/> + <property name="option" value="EOL"/> + </module> + <module name="SeparatorWrap"> + <!-- ELLIPSIS is EOL until https://github.com/google/styleguide/issues/258 --> + <property name="id" value="SeparatorWrapEllipsis"/> + <property name="tokens" value="ELLIPSIS"/> + <property name="option" value="EOL"/> + </module> + <module name="SeparatorWrap"> + <!-- ARRAY_DECLARATOR is EOL until https://github.com/google/styleguide/issues/259 --> + <property name="id" value="SeparatorWrapArrayDeclarator"/> + <property name="tokens" value="ARRAY_DECLARATOR"/> + <property name="option" value="EOL"/> + </module> + <module name="SeparatorWrap"> + <property name="id" value="SeparatorWrapMethodRef"/> + <property name="tokens" value="METHOD_REF"/> + <property name="option" value="nl"/> + </module> + + <module name="MethodParamPad"/> + + <module name="EmptyLineSeparator"> + <property name="allowNoEmptyLineBetweenFields" value="true"/> + </module> + + <module name="PackageName"> + <property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/> + <message key="name.invalidPattern" + value="Package name ''{0}'' must match pattern ''{1}''."/> + </module> + + <module name="TypeName"> + <message key="name.invalidPattern" + value="Type name ''{0}'' must match pattern ''{1}''."/> + </module> + + <module name="MemberName"> + <property name="format" value="^[a-z][a-z0-9A-Z]*?$"/> + <message key="name.invalidPattern" + value="Member name ''{0}'' must match pattern ''{1}''."/> + </module> + <module name="ParameterName"> + <property name="format" value="^[a-z][a-z0-9A-Z]*?$"/> + <message key="name.invalidPattern" + value="Parameter name ''{0}'' must match pattern ''{1}''."/> + </module> + <module name="CatchParameterName"> + <property name="format" value="^[a-z][a-z0-9A-Z]*?$"/> + <message key="name.invalidPattern" + value="Catch parameter name ''{0}'' must match pattern ''{1}''."/> + </module> + <module name="LocalVariableName"> + <property name="tokens" value="VARIABLE_DEF"/> + <property name="format" value="^[a-z][a-z0-9A-Z]*?$"/> + <message key="name.invalidPattern" + value="Local variable name ''{0}'' must match pattern ''{1}''."/> + </module> + <module name="ClassTypeParameterName"> + <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/> + <message key="name.invalidPattern" + value="Class type name ''{0}'' must match pattern ''{1}''."/> + </module> + <module name="MethodTypeParameterName"> + <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/> + <message key="name.invalidPattern" + value="Method type name ''{0}'' must match pattern ''{1}''."/> + </module> + <module name="InterfaceTypeParameterName"> + <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/> + <message key="name.invalidPattern" + value="Interface type name ''{0}'' must match pattern ''{1}''."/> + </module> + </module> +</module> \ No newline at end of file diff --git a/config/html/index.hmtl b/config/html/index.hmtl new file mode 100644 index 0000000000000000000000000000000000000000..b6acc621b78bfc54ad21138ea5e1ef0a068546c1 --- /dev/null +++ b/config/html/index.hmtl @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <meta name="generator" content="GitLab Pages"> + <title>MOCCI</title> + <link rel="stylesheet" href="style.css"> + </head> + <body> + <center> + <div class="navbar"> + <a href="./findbugs/main.html/">Findbugs</a> + <a href="./checkstyle/main.html/">Checkstyle</a> + <a href="./tests/test/index.html">Test Reports</a> + <a href="./jacoco/index.html">JaCoCo</a> + <a href="./javadoc/index.html">Javadoc</a> + <b><a href="./de.ugoe.cs.rwm.MOCCI.jar">Download Jar</a></b> + </div> + + <h1>MOCCI Report</h1> + + <p> + This is a small report navigation page for the MOCCI project. + </p> + <p> + Other subprojects used by MOCCI: + <ul> + <li><a href="https://erbel.pages.gwdg.de/de.ugoe.cs.rwm.tocci/index.hmtl">TOCCI</a></li> + <li><a href="https://erbel.pages.gwdg.de/de.ugoe.cs.rwm.cocci/index.hmtl">COCCI</a></li> + <li><a href="https://erbel.pages.gwdg.de/de.ugoe.cs.rwm.docci/index.hmtl">DOCCI</a></li> + <li><a href="https://erbel.pages.gwdg.de/de.ugoe.cs.rwm.wocci/index.hmtl">WOCCI</a></li> + </ul> + </body> + </center> +</html> + diff --git a/config/html/style.css b/config/html/style.css new file mode 100644 index 0000000000000000000000000000000000000000..63184390049af4962330b6b7ac42ee4859b19af4 --- /dev/null +++ b/config/html/style.css @@ -0,0 +1,24 @@ +body { + font-family: sans-serif; + margin: auto; + max-width: 1280px; +} + +.navbar { + background-color: #313236; + border-radius: 2px; + max-width: 540px; +} + +.navbar a { + color: #aaa; + display: inline-block; + font-size: 15px; + padding: 10px; + text-decoration: none; +} + +.navbar a:hover { + color: #ffffff; +} + diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..27768f1bbac3ce2d055b20d521f12da78d331e8e Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000000000000000000000000000000000..92165eede80f1d94536089f202478c7adc36a7a3 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-4.3-bin.zip diff --git a/gradlew b/gradlew new file mode 100755 index 0000000000000000000000000000000000000000..cccdd3d517fc5249beaefa600691cf150f2fa3e6 --- /dev/null +++ b/gradlew @@ -0,0 +1,172 @@ +#!/usr/bin/env sh + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=$(save "$@") + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong +if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then + cd "$(dirname "$0")" +fi + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000000000000000000000000000000000000..e95643d6a2ca62258464e83c72f5156dc941c609 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,84 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windows variants + +if not "%OS%" == "Windows_NT" goto win9xME_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000000000000000000000000000000000000..3fafa656ac74099c7573861c430ad831c681581a --- /dev/null +++ b/settings.gradle @@ -0,0 +1,18 @@ +/* + * This settings file was generated by the Gradle 'init' task. + * + * The settings file is used to specify which projects to include in your build. + * In a single project build this file can be empty or even removed. + * + * Detailed information about configuring a multi-project build in Gradle can be found + * in the user guide at https://docs.gradle.org/4.3/userguide/multi_project_builds.html + */ + +/* +// To declare projects as part of a multi-project build use the 'include' method +include 'shared' +include 'api' +include 'services:webservice' +*/ + +rootProject.name = 'de.ugoe.cs.rwm.mocci' diff --git a/src/main/java/de/ugoe/cs/rwm/mocci/package-info.java b/src/main/java/de/ugoe/cs/rwm/mocci/package-info.java new file mode 100644 index 0000000000000000000000000000000000000000..2bfc2dbd8043e3ba777821b400a8bb26d36a0bc0 --- /dev/null +++ b/src/main/java/de/ugoe/cs/rwm/mocci/package-info.java @@ -0,0 +1,10 @@ +/** + * + */ +/** + * Main package that includes util classes as well as the monitoring interface. + * + * @author erbel + * + */ +package de.ugoe.cs.rwm.mocci; diff --git a/src/test/java/de/ugoe/cs/rwm/mocci/live/package-info.java b/src/test/java/de/ugoe/cs/rwm/mocci/live/package-info.java new file mode 100644 index 0000000000000000000000000000000000000000..9588e64cb2f50c88479aef8acf840cbf4b77f0ae --- /dev/null +++ b/src/test/java/de/ugoe/cs/rwm/mocci/live/package-info.java @@ -0,0 +1,8 @@ +/** + * + */ +/** + * @author erbel + * + */ +package de.ugoe.cs.rwm.mocci.live; \ No newline at end of file diff --git a/src/test/resources/Dockerfile b/src/test/resources/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..00efa8789ed4902edbd948ad71f6af65c26dbaf2 --- /dev/null +++ b/src/test/resources/Dockerfile @@ -0,0 +1,35 @@ +# Use an official openjdk base image +FROM ubuntu:latest + +# Set the working directory to /app +WORKDIR /mart + +# Get all required packages and install the project +RUN apt-get update \ + && apt-get install -y git openjdk-8-jdk openjdk-8-jre wget openssh* + + + +COPY /authorized_keys /root/.ssh/authorized_keys +# SSH login fix. Otherwise user is kicked off after login +RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd + + +# Copy the application and its configuration files +COPY /org.occiware.mart.jetty.jar /mart +COPY /startLocal.sh /mart + +# Copy Mart-Plugins +COPY /martserver-plugins/ /root/martserver-plugins/ + +# Copy roles +COPY /roles/ /root/roles/ + +# Make ports 8080 available to the world outside this container +EXPOSE 8080 +EXPOSE 22 + +# Start SSH and bash +ENTRYPOINT service ssh start && ./startLocal.sh + + diff --git a/src/test/resources/authorized_keys b/src/test/resources/authorized_keys new file mode 100644 index 0000000000000000000000000000000000000000..7ab09cc3c595f49597aaf7df374472ab79c58c41 --- /dev/null +++ b/src/test/resources/authorized_keys @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova diff --git a/src/test/resources/martserver-plugins/de.ugoe.cs.rwm.wocci.connector.dummy.jar b/src/test/resources/martserver-plugins/de.ugoe.cs.rwm.wocci.connector.dummy.jar new file mode 100755 index 0000000000000000000000000000000000000000..0e5f78ac64887b25cb25132141b1625e019d7542 Binary files /dev/null and b/src/test/resources/martserver-plugins/de.ugoe.cs.rwm.wocci.connector.dummy.jar differ diff --git a/src/test/resources/martserver-plugins/de.ugoe.cs.rwm.wocci.model.jar b/src/test/resources/martserver-plugins/de.ugoe.cs.rwm.wocci.model.jar new file mode 100755 index 0000000000000000000000000000000000000000..1f8d2287440d994b40b342a7427eec0f46d00951 Binary files /dev/null and b/src/test/resources/martserver-plugins/de.ugoe.cs.rwm.wocci.model.jar differ diff --git a/src/test/resources/martserver-plugins/org.eclipse.cmf.occi.core_1.0.0.201712071437.jar b/src/test/resources/martserver-plugins/org.eclipse.cmf.occi.core_1.0.0.201712071437.jar new file mode 100755 index 0000000000000000000000000000000000000000..8e968762c2e800bb6881934cfe5f3dda9ce876e4 Binary files /dev/null and b/src/test/resources/martserver-plugins/org.eclipse.cmf.occi.core_1.0.0.201712071437.jar differ diff --git a/src/test/resources/martserver-plugins/org.eclipse.cmf.occi.infrastructure.connector.dummy_1.0.0.201712071437.jar b/src/test/resources/martserver-plugins/org.eclipse.cmf.occi.infrastructure.connector.dummy_1.0.0.201712071437.jar new file mode 100755 index 0000000000000000000000000000000000000000..fedc854cf8f8274be571c1f7d4716094a0b06676 Binary files /dev/null and b/src/test/resources/martserver-plugins/org.eclipse.cmf.occi.infrastructure.connector.dummy_1.0.0.201712071437.jar differ diff --git a/src/test/resources/martserver-plugins/org.eclipse.cmf.occi.infrastructure_1.0.0.201712071437.jar b/src/test/resources/martserver-plugins/org.eclipse.cmf.occi.infrastructure_1.0.0.201712071437.jar new file mode 100755 index 0000000000000000000000000000000000000000..29b72a5e867abef0f2e39369dcc090ab65d56f87 Binary files /dev/null and b/src/test/resources/martserver-plugins/org.eclipse.cmf.occi.infrastructure_1.0.0.201712071437.jar differ diff --git a/src/test/resources/martserver-plugins/org.eclipse.cmf.occi.monitoring.connector.dummy_1.0.0.201808131250.jar b/src/test/resources/martserver-plugins/org.eclipse.cmf.occi.monitoring.connector.dummy_1.0.0.201808131250.jar new file mode 100755 index 0000000000000000000000000000000000000000..80c15f9cd80013b7373698e59f592a6bb1953ec0 Binary files /dev/null and b/src/test/resources/martserver-plugins/org.eclipse.cmf.occi.monitoring.connector.dummy_1.0.0.201808131250.jar differ diff --git a/src/test/resources/martserver-plugins/org.eclipse.cmf.occi.monitoring_1.0.0.201808131250.jar b/src/test/resources/martserver-plugins/org.eclipse.cmf.occi.monitoring_1.0.0.201808131250.jar new file mode 100755 index 0000000000000000000000000000000000000000..b71972eba671e7da1342dac53f51c00fdedf782c Binary files /dev/null and b/src/test/resources/martserver-plugins/org.eclipse.cmf.occi.monitoring_1.0.0.201808131250.jar differ diff --git a/src/test/resources/martserver-plugins/org.modmacao.ansible_1.0.0.201808232105.jar b/src/test/resources/martserver-plugins/org.modmacao.ansible_1.0.0.201808232105.jar new file mode 100755 index 0000000000000000000000000000000000000000..d20d0f7d68b587bc9e24063861fdb68262ecf9a7 Binary files /dev/null and b/src/test/resources/martserver-plugins/org.modmacao.ansible_1.0.0.201808232105.jar differ diff --git a/src/test/resources/martserver-plugins/org.modmacao.cm.dummy.jar b/src/test/resources/martserver-plugins/org.modmacao.cm.dummy.jar new file mode 100755 index 0000000000000000000000000000000000000000..21571b0a825cdc463b0d5b2e2a7bb2fd05b51b49 Binary files /dev/null and b/src/test/resources/martserver-plugins/org.modmacao.cm.dummy.jar differ diff --git a/src/test/resources/martserver-plugins/org.modmacao.core.connector_1.0.0.201804261009.jar b/src/test/resources/martserver-plugins/org.modmacao.core.connector_1.0.0.201804261009.jar new file mode 100755 index 0000000000000000000000000000000000000000..6d5427d6c803eab5b193c66bbda55968ee963445 Binary files /dev/null and b/src/test/resources/martserver-plugins/org.modmacao.core.connector_1.0.0.201804261009.jar differ diff --git a/src/test/resources/martserver-plugins/org.modmacao.core_1.0.0.201804261009.jar b/src/test/resources/martserver-plugins/org.modmacao.core_1.0.0.201804261009.jar new file mode 100755 index 0000000000000000000000000000000000000000..e520e6b36326d1f3ff86adefb0db27e14e3ec5c4 Binary files /dev/null and b/src/test/resources/martserver-plugins/org.modmacao.core_1.0.0.201804261009.jar differ diff --git a/src/test/resources/martserver-plugins/org.modmacao.occi.platform_1.0.0.201804261009.jar b/src/test/resources/martserver-plugins/org.modmacao.occi.platform_1.0.0.201804261009.jar new file mode 100755 index 0000000000000000000000000000000000000000..71d32092d7fadc1c61ec1f40ac11e93a2f1c97f3 Binary files /dev/null and b/src/test/resources/martserver-plugins/org.modmacao.occi.platform_1.0.0.201804261009.jar differ diff --git a/src/test/resources/martserver-plugins/org.modmacao.openstack.runtime_1.0.0.201804261009.jar b/src/test/resources/martserver-plugins/org.modmacao.openstack.runtime_1.0.0.201804261009.jar new file mode 100755 index 0000000000000000000000000000000000000000..a4cccb80fb4a77e78e47b4b23fb1da651bfe9e14 Binary files /dev/null and b/src/test/resources/martserver-plugins/org.modmacao.openstack.runtime_1.0.0.201804261009.jar differ diff --git a/src/test/resources/martserver-plugins/org.modmacao.openstack.swe.runtime_1.0.0.201804261009.jar b/src/test/resources/martserver-plugins/org.modmacao.openstack.swe.runtime_1.0.0.201804261009.jar new file mode 100755 index 0000000000000000000000000000000000000000..1a5809c0816afe84aacac048f31f2a4223f194d7 Binary files /dev/null and b/src/test/resources/martserver-plugins/org.modmacao.openstack.swe.runtime_1.0.0.201804261009.jar differ diff --git a/src/test/resources/martserver-plugins/org.modmacao.placement_1.0.0.201804261009.jar b/src/test/resources/martserver-plugins/org.modmacao.placement_1.0.0.201804261009.jar new file mode 100755 index 0000000000000000000000000000000000000000..621e10a2bbc0eea6079f2d6c1ca5fd913d897328 Binary files /dev/null and b/src/test/resources/martserver-plugins/org.modmacao.placement_1.0.0.201804261009.jar differ diff --git a/src/test/resources/occi/AdhocNw.occic b/src/test/resources/occi/AdhocNw.occic new file mode 100644 index 0000000000000000000000000000000000000000..dcb5648f87adedfb718008d406ed2fb9808288c3 --- /dev/null +++ b/src/test/resources/occi/AdhocNw.occic @@ -0,0 +1,117 @@ +<?xml version="1.0" encoding="ASCII"?> +<occi:Configuration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:infrastructure="http://schemas.ogf.org/occi/infrastructure/ecore" xmlns:occi="http://schemas.ogf.org/occi/core/ecore" xmlns:placement="http://schemas.modmacao.org/placement/ecore" xmlns:platform="http://schemas.modmacao.org/occi/platform/ecore"> + <use href="http://schemas.ogf.org/occi/core#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure#/"/> + <use href="http://schemas.modmacao.org/occi/platform#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure/compute/template/1.1#/"/> + <use href="http://schemas.modmacao.org/placement#/"/> + <use href="http://schemas.modmacao.org/openstack/runtime#/"/> + <use href="http://schemas.modmacao.org/modmacao#/"/> + <use href="http://schemas.modmacao.org/openstack/swe#/"/> + <resources xsi:type="infrastructure:Network" id="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6" title="provider" location="/network/urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6/" occiNetworkState="inactive"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + <attributes name="occi.core.title" value="provider"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="inactive"/> + <attributes name="occi.network.state.message" value=""/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/runtime#//@mixins[term='runtimeid']"/> + <attributes name="openstack.runtime.id" value="d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + </parts> + </resources> + <resources xsi:type="infrastructure:Storage" id="urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060" title="storage" location="/storage/urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060/" rlinks="//@resources.3/@links.0" occiStorageSize="100.0"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storage']"/> + <attributes name="occi.core.id" value="urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060"/> + <attributes name="occi.core.title" value="storage"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.storage.size" value="100"/> + <attributes name="occi.storage.state" value="online"/> + <attributes name="occi.storage.state.message" value=""/> + </resources> + <resources xsi:type="infrastructure:Network" id="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590" title="sampleNet" location="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/" rlinks="//@resources.3/@links.1" occiNetworkState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590"/> + <attributes name="occi.core.title" value="sampleNet"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="active"/> + <attributes name="occi.network.state.message" value=""/> + <parts xsi:type="infrastructure:Ipnetwork" occiNetworkAddress="10.0.0.0/24"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetwork']"/> + <attributes name="occi.network.address" value="10.0.0.0/24"/> + <attributes name="occi.network.gateway" value="10.0.0.254"/> + <attributes name="occi.network.allocation" value="dynamic"/> + </parts> + </resources> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce" title="vm2" location="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/" rlinks="//@resources.4/@links.0" occiComputeCores="2" occiComputeHostname="vm2" occiComputeMemory="4096.0" occiComputeState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce"/> + <attributes name="occi.core.title" value="vm2"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.compute.architecture" value="x86"/> + <attributes name="occi.compute.cores" value="2"/> + <attributes name="occi.compute.hostname" value="vm2"/> + <attributes name="occi.compute.share" value="0"/> + <attributes name="occi.compute.speed" value="0"/> + <attributes name="occi.compute.memory" value="4096"/> + <attributes name="occi.compute.state" value="active"/> + <attributes name="occi.compute.state.message" value=""/> + <parts xsi:type="infrastructure:Ssh_key" occiCredentialsSshPublickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ssh_key']"/> + <attributes name="occi.credentials.ssh.publickey" value="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"/> + </parts> + <parts xsi:type="infrastructure:User_data" occiComputeUserdata="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='user_data']"/> + <attributes name="occi.compute.userdata" value="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"/> + </parts> + <links xsi:type="infrastructure:Storagelink" id="urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b" title="storageLink" location="/storagelink/urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b/" target="//@resources.1"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storagelink']"/> + <attributes name="occi.core.id" value="urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b"/> + <attributes name="occi.core.title" value="storageLink"/> + <attributes name="occi.storagelink.deviceid" value=""/> + <attributes name="occi.storagelink.mountpoint" value=""/> + <attributes name="occi.storagelink.state" value="active"/> + <attributes name="occi.storagelink.state.message" value=""/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + <attributes name="occi.core.target" value="/storage/urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060/"/> + </links> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8af" title="link1" location="/networkinterface/urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8af/" target="//@resources.2" occiNetworkinterfaceInterface="" occiNetworkinterfaceMac="" occiNetworkinterfaceStateMessage=""> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8af"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.networkinterface.interface" value=""/> + <attributes name="occi.networkinterface.mac" value=""/> + <attributes name="occi.networkinterface.state" value="active"/> + <attributes name="occi.networkinterface.state.message" value=""/> + <attributes name="occi.networkinterface.address" value="10.0.0.35"/> + <attributes name="occi.networkinterface.gateway" value="10.0.0.1"/> + <attributes name="occi.networkinterface.allocation" value="dynamic"/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + <attributes name="occi.core.target" value="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.0.0.35" occiNetworkinterfaceGateway="10.0.0.1"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896" title="Apache" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896"/> + <attributes name="occi.core.title" value="Apache"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.0"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918/" target="//@resources.3"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.core.source" value="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/"/> + <attributes name="occi.core.target" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + </links> + </resources> + <mixins name="apache" scheme="http://schemas.modmacao.org/usermixins#"/> +</occi:Configuration> diff --git a/src/test/resources/occi/Empty.occic b/src/test/resources/occi/Empty.occic new file mode 100755 index 0000000000000000000000000000000000000000..686392b431888219fef37d7ba87513836db29a7c --- /dev/null +++ b/src/test/resources/occi/Empty.occic @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="ASCII"?> +<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:occi="http://schemas.ogf.org/occi/core/ecore"> + <occi:Extension name="template" scheme="http://schemas.openstack.org/template#"> + <mixins name="36637a26-fded-4635-b6c5-ec8ec0745eab" scheme="http://schemas.openstack.org/template/resource#" title="Flavor: m1.medium"/> + <mixins name="60ab5827-e8cd-44f3-a33a-ee2fb989f7a7" scheme="http://schemas.openstack.org/template/os#" title="Sahara_Spark1.6_Ubuntu"/> + <mixins name="cc5d21d7-fc0e-451d-884b-aba0efac9c33" scheme="http://schemas.openstack.org/template/resource#" title="Flavor: mongoscale_m8"/> + <mixins name="9961ccdf-2ee2-42d1-ac6d-b45318212cad" scheme="http://schemas.openstack.org/template/resource#" title="Flavor: mongoscale_m10"/> + <mixins name="32ef77d0-5d26-46f5-9ea3-f805a7a05af6" scheme="http://schemas.openstack.org/template/resource#" title="Flavor: mongoscale_m4"/> + <mixins name="2a665c12-e4c5-41fe-b16e-2aec31c799eb" scheme="http://schemas.openstack.org/template/resource#" title="Flavor: mongoscale_m2"/> + <mixins name="5437eae8-7c47-4834-929c-a314de77d291" scheme="http://schemas.openstack.org/template/os#" title="Ubuntu 16.04 Server"/> + <mixins name="e739cb33-4224-4829-8dcb-9b66a1b8ceb9" scheme="http://schemas.openstack.org/template/resource#" title="Flavor: m1.large"/> + <mixins name="d1f5a7a6-0fbe-4146-87fe-1e9441462833" scheme="http://schemas.openstack.org/template/resource#" title="Flavor: mongoscale_m6"/> + <mixins name="41598b12-2d7d-4ffe-b3c1-0f52e68fa1ea" scheme="http://schemas.openstack.org/template/resource#" title="Flavor: mongoscale_m1"/> + <mixins name="0" scheme="http://schemas.openstack.org/template/resource#" title="Flavor: m1.nano"/> + <mixins name="8dd25971-1bbd-47db-9d49-2fef02fa0bc8" scheme="http://schemas.openstack.org/template/resource#" title="Flavor: m1.small"/> + <mixins name="e7a211eb-d1dc-4e3a-8da6-f9daabdb81c8" scheme="http://schemas.openstack.org/template/os#" title="Centos 7"/> + <mixins name="adf63ddc-debe-4d7e-b899-b936e989439f" scheme="http://schemas.openstack.org/template/os#" title="Ubuntu 14.04 Server"/> + </occi:Extension> + <occi:Extension name="instance" scheme="http://schemas.openstack.org/instance#"> + <mixins name="public_key" scheme="http://schemas.openstack.org/instance/credentials#" title="Contextualization extension - public_key"/> + </occi:Extension> + <occi:Extension name="occi" scheme="http://schemas.ogf.org/occi#"> + <mixins name="resource_tpl" scheme="http://schemas.ogf.org/occi/infrastructure#" title="OCCI Resource Template"/> + <mixins name="os_tpl" scheme="http://schemas.ogf.org/occi/infrastructure#" title="OCCI OS Template"/> + </occi:Extension> + <occi:Extension name="compute" scheme="http://schemas.openstack.org/compute#"> + <mixins name="user_data" scheme="http://schemas.openstack.org/compute/instance#" title="Contextualization extension - user_data"/> + </occi:Extension> + <occi:Extension name="infrastructure" scheme="http://schemas.ogf.org/occi/infrastructure#"> + <kinds name="storage" scheme="http://schemas.ogf.org/occi/infrastructure#" title="storage resource" parent="/7/@kinds[term='resource']"> + <actions name="snapshot" scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#" title="snapshot storage instance"/> + <actions name="online" scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#" title="online storage instance"/> + <actions name="resize" scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#" title="resize storage instance"/> + <actions name="backup" scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#" title="backup storage instance"/> + <actions name="offline" scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#" title="offline storage instance"/> + </kinds> + <kinds name="network" scheme="http://schemas.ogf.org/occi/infrastructure#" title="network resource" parent="/7/@kinds[term='resource']"> + <actions name="down" scheme="http://schemas.ogf.org/occi/infrastructure/network/action#" title="down network instance"/> + <actions name="up" scheme="http://schemas.ogf.org/occi/infrastructure/network/action#" title="up network instance"/> + </kinds> + <kinds name="ipreservation" scheme="http://schemas.ogf.org/occi/infrastructure#" title="IPReservation" parent="/4/@kinds[term='network']"/> + <kinds name="storagelink" scheme="http://schemas.ogf.org/occi/infrastructure#" title="storage link resource" parent="/7/@kinds[term='link']" source="/4/@kinds[term='compute']" target="/4/@kinds[term='storage']"/> + <kinds name="compute" scheme="http://schemas.ogf.org/occi/infrastructure#" title="compute resource" parent="/7/@kinds[term='resource']"> + <actions name="start" scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#" title="start compute instance"/> + <actions name="restart" scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#" title="restart compute instance"/> + <actions name="suspend" scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#" title="suspend compute instance"/> + <actions name="stop" scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#" title="stop compute instance"/> + <actions name="save" scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#" title="save compute instance"/> + </kinds> + <kinds name="networkinterface" scheme="http://schemas.ogf.org/occi/infrastructure#" title="network link resource" parent="/7/@kinds[term='link']" source="/4/@kinds[term='compute']" target="/4/@kinds[term='network']"/> + <mixins name="ssh_key" scheme="http://schemas.ogf.org/occi/infrastructure/credentials#" title="Credentials mixin"/> + <mixins name="ipnetwork" scheme="http://schemas.ogf.org/occi/infrastructure/network#" title="IP Networking Mixin"/> + <mixins name="user_data" scheme="http://schemas.ogf.org/occi/infrastructure/compute#" title="Contextualization mixin"/> + <mixins name="ipnetworkinterface" scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface#" title="IP Network interface Mixin"/> + </occi:Extension> + <occi:Extension name="infrastructure" scheme="http://schemas.openstack.org/infrastructure#"> + <mixins name="neutron" scheme="http://schemas.openstack.org/infrastructure/network#" title="Network component"/> + <mixins name="osnetwork" scheme="http://schemas.openstack.org/infrastructure/network#" title="openstack network"/> + </occi:Extension> + <occi:Extension name="network" scheme="http://schemas.openstack.org/network#"> + <mixins name="provider" scheme="http://schemas.openstack.org/network/floatingippool#" title="provider"/> + </occi:Extension> + <occi:Extension scheme="http://schemas.ogf.org/occi/core#"> + <kinds name="link" scheme="http://schemas.ogf.org/occi/core#" title="link"/> + <kinds name="entity" scheme="http://schemas.ogf.org/occi/core#" title="entity"/> + <kinds name="resource" scheme="http://schemas.ogf.org/occi/core#" title="resource" parent="/7/@kinds[term='entity']"/> + </occi:Extension> + <occi:Configuration description="Extracted Runtime Model" location="http://192.168.34.1:8787/occi1.1OCCIBasicAuthentication" use="/0 /4 /5"> + </occi:Configuration> +</xmi:XMI> diff --git a/src/test/resources/occi/Empty2.occic b/src/test/resources/occi/Empty2.occic new file mode 100755 index 0000000000000000000000000000000000000000..3618611c6fb0d091721d9c993688a2221a58c60a --- /dev/null +++ b/src/test/resources/occi/Empty2.occic @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="ASCII"?> +<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:occi="http://schemas.ogf.org/occi/core/ecore"> + <occi:Configuration> + + </occi:Configuration> +</xmi:XMI> diff --git a/src/test/resources/occi/Infra.occic b/src/test/resources/occi/Infra.occic new file mode 100755 index 0000000000000000000000000000000000000000..ea6dc5e743cd7d967a80a4997ca0319688a28272 --- /dev/null +++ b/src/test/resources/occi/Infra.occic @@ -0,0 +1,98 @@ +<?xml version="1.0" encoding="ASCII"?> +<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:occi="http://schemas.ogf.org/occi/core/ecore"> + <occi:Extension name="template" scheme="http://schemas.openstack.org/template#"> + <mixins name="36637a26-fded-4635-b6c5-ec8ec0745eab" scheme="http://schemas.openstack.org/template/resource#" title="Flavor: m1.medium"/> + <mixins name="60ab5827-e8cd-44f3-a33a-ee2fb989f7a7" scheme="http://schemas.openstack.org/template/os#" title="Sahara_Spark1.6_Ubuntu"/> + <mixins name="cc5d21d7-fc0e-451d-884b-aba0efac9c33" scheme="http://schemas.openstack.org/template/resource#" title="Flavor: mongoscale_m8"/> + <mixins name="9961ccdf-2ee2-42d1-ac6d-b45318212cad" scheme="http://schemas.openstack.org/template/resource#" title="Flavor: mongoscale_m10"/> + <mixins name="32ef77d0-5d26-46f5-9ea3-f805a7a05af6" scheme="http://schemas.openstack.org/template/resource#" title="Flavor: mongoscale_m4"/> + <mixins name="2a665c12-e4c5-41fe-b16e-2aec31c799eb" scheme="http://schemas.openstack.org/template/resource#" title="Flavor: mongoscale_m2"/> + <mixins name="5437eae8-7c47-4834-929c-a314de77d291" scheme="http://schemas.openstack.org/template/os#" title="Ubuntu 16.04 Server"/> + <mixins name="e739cb33-4224-4829-8dcb-9b66a1b8ceb9" scheme="http://schemas.openstack.org/template/resource#" title="Flavor: m1.large"/> + <mixins name="d1f5a7a6-0fbe-4146-87fe-1e9441462833" scheme="http://schemas.openstack.org/template/resource#" title="Flavor: mongoscale_m6"/> + <mixins name="41598b12-2d7d-4ffe-b3c1-0f52e68fa1ea" scheme="http://schemas.openstack.org/template/resource#" title="Flavor: mongoscale_m1"/> + <mixins name="0" scheme="http://schemas.openstack.org/template/resource#" title="Flavor: m1.nano"/> + <mixins name="8dd25971-1bbd-47db-9d49-2fef02fa0bc8" scheme="http://schemas.openstack.org/template/resource#" title="Flavor: m1.small"/> + <mixins name="e7a211eb-d1dc-4e3a-8da6-f9daabdb81c8" scheme="http://schemas.openstack.org/template/os#" title="Centos 7"/> + <mixins name="adf63ddc-debe-4d7e-b899-b936e989439f" scheme="http://schemas.openstack.org/template/os#" title="Ubuntu 14.04 Server"/> + </occi:Extension> + <occi:Extension name="instance" scheme="http://schemas.openstack.org/instance#"> + <mixins name="public_key" scheme="http://schemas.openstack.org/instance/credentials#" title="Contextualization extension - public_key"/> + </occi:Extension> + <occi:Extension name="occi" scheme="http://schemas.ogf.org/occi#"> + <mixins name="resource_tpl" scheme="http://schemas.ogf.org/occi/infrastructure#" title="OCCI Resource Template"/> + <mixins name="os_tpl" scheme="http://schemas.ogf.org/occi/infrastructure#" title="OCCI OS Template"/> + </occi:Extension> + <occi:Extension name="compute" scheme="http://schemas.openstack.org/compute#"> + <mixins name="user_data" scheme="http://schemas.openstack.org/compute/instance#" title="Contextualization extension - user_data"/> + </occi:Extension> + <occi:Extension name="infrastructure" scheme="http://schemas.ogf.org/occi/infrastructure#"> + <kinds name="storage" scheme="http://schemas.ogf.org/occi/infrastructure#" title="storage resource" parent="/7/@kinds[term='resource']"> + <actions name="snapshot" scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#" title="snapshot storage instance"/> + <actions name="online" scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#" title="online storage instance"/> + <actions name="resize" scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#" title="resize storage instance"/> + <actions name="backup" scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#" title="backup storage instance"/> + <actions name="offline" scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#" title="offline storage instance"/> + </kinds> + <kinds name="network" scheme="http://schemas.ogf.org/occi/infrastructure#" title="network resource" parent="/7/@kinds[term='resource']"> + <actions name="down" scheme="http://schemas.ogf.org/occi/infrastructure/network/action#" title="down network instance"/> + <actions name="up" scheme="http://schemas.ogf.org/occi/infrastructure/network/action#" title="up network instance"/> + </kinds> + <kinds name="ipreservation" scheme="http://schemas.ogf.org/occi/infrastructure#" title="IPReservation" parent="/4/@kinds[term='network']"/> + <kinds name="storagelink" scheme="http://schemas.ogf.org/occi/infrastructure#" title="storage link resource" parent="/7/@kinds[term='link']" source="/4/@kinds[term='compute']" target="/4/@kinds[term='storage']"/> + <kinds name="compute" scheme="http://schemas.ogf.org/occi/infrastructure#" title="compute resource" parent="/7/@kinds[term='resource']"> + <actions name="start" scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#" title="start compute instance"/> + <actions name="restart" scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#" title="restart compute instance"/> + <actions name="suspend" scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#" title="suspend compute instance"/> + <actions name="stop" scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#" title="stop compute instance"/> + <actions name="save" scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#" title="save compute instance"/> + </kinds> + <kinds name="networkinterface" scheme="http://schemas.ogf.org/occi/infrastructure#" title="network link resource" parent="/7/@kinds[term='link']" source="/4/@kinds[term='compute']" target="/4/@kinds[term='network']"/> + <mixins name="ssh_key" scheme="http://schemas.ogf.org/occi/infrastructure/credentials#" title="Credentials mixin"/> + <mixins name="ipnetwork" scheme="http://schemas.ogf.org/occi/infrastructure/network#" title="IP Networking Mixin"/> + <mixins name="user_data" scheme="http://schemas.ogf.org/occi/infrastructure/compute#" title="Contextualization mixin"/> + <mixins name="ipnetworkinterface" scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface#" title="IP Network interface Mixin"/> + </occi:Extension> + <occi:Extension name="infrastructure" scheme="http://schemas.openstack.org/infrastructure#"> + <mixins name="neutron" scheme="http://schemas.openstack.org/infrastructure/network#" title="Network component"/> + <mixins name="osnetwork" scheme="http://schemas.openstack.org/infrastructure/network#" title="openstack network"/> + </occi:Extension> + <occi:Extension name="network" scheme="http://schemas.openstack.org/network#"> + <mixins name="provider" scheme="http://schemas.openstack.org/network/floatingippool#" title="provider"/> + </occi:Extension> + <occi:Extension scheme="http://schemas.ogf.org/occi/core#"> + <kinds name="link" scheme="http://schemas.ogf.org/occi/core#" title="link"/> + <kinds name="entity" scheme="http://schemas.ogf.org/occi/core#" title="entity"/> + <kinds name="resource" scheme="http://schemas.ogf.org/occi/core#" title="resource" parent="/7/@kinds[term='entity']"/> + </occi:Extension> + <occi:Configuration description="Extracted Runtime Model" location="http://192.168.34.1:8787/occi1.1OCCIBasicAuthentication" use="/0 /4 /5"> + <resources id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce" title="vm2" kind="/4/@kinds[term='compute']" location="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"> + <attributes name="occi.compute.state" value="active"/> + <attributes name="occi.compute.hostname" value="vm2"/> + <attributes name="occi.compute.memory" value="4096"/> + <attributes name="occi.core.title" value="vm2"/> + <attributes name="occi.compute.cores" value="2"/> + <attributes name="occi.core.id" value="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce"/> + <links id="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8af" title="link1" kind="/4/@kinds[term='networkinterface']" location="/networkinterface/urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8af/" target="/8/@resources.1"> + <attributes name="occi.core.id" value="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8af"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.networkinterface.state" value="active"/> + <attributes name="occi.networkinterface.address" value="10.0.0.35"/> + <attributes name="occi.networkinterface.gateway" value="10.0.0.1"/> + <attributes name="occi.networkinterface.interface" value=""""/> + <attributes name="occi.networkinterface.mac" value=""""/> + <attributes name="occi.networkinterface.state.message" value=""""/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce"/> + <attributes name="occi.core.target" value="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/"/> + <parts mixin="/4/@mixins[term='ipnetworkinterface']"/> + </links> + </resources> + <resources id="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590" title="sampleNet" kind="/4/@kinds[term='network']" location="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/" rlinks="/8/@resources.0/@links.0"> + <attributes name="occi.network.address" value="10.0.0.0/24"/> + <attributes name="occi.core.title" value="management"/> + <attributes name="occi.core.id" value="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590"/> + <attributes name="occi.network.state" value="active"/> + <parts mixin="/4/@mixins[term='ipnetwork']"/> + </resources> + </occi:Configuration> +</xmi:XMI> diff --git a/src/test/resources/occi/MLSDiffVM.occic b/src/test/resources/occi/MLSDiffVM.occic new file mode 100644 index 0000000000000000000000000000000000000000..3b3170f0265f72d87da8f1db0b4a0b2de1e7a12b --- /dev/null +++ b/src/test/resources/occi/MLSDiffVM.occic @@ -0,0 +1,300 @@ +<?xml version="1.0" encoding="ASCII"?> +<occi:Configuration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:infrastructure="http://schemas.ogf.org/occi/infrastructure/ecore" xmlns:occi="http://schemas.ogf.org/occi/core/ecore" xmlns:placement="http://schemas.modmacao.org/placement/ecore" xmlns:platform="http://schemas.modmacao.org/occi/platform/ecore" xmlns:workflow="http://schemas.ugoe.cs.rwm/workflow/ecore"> + <use href="http://schemas.ogf.org/occi/core#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure#/"/> + <use href="http://schemas.modmacao.org/occi/platform#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure/compute/template/1.1#/"/> + <use href="http://schemas.modmacao.org/placement#/"/> + <use href="http://schemas.modmacao.org/openstack/runtime#/"/> + <use href="http://schemas.modmacao.org/modmacao#/"/> + <use href="http://schemas.modmacao.org/openstack/swe#/"/> + <use href="http://schemas.ugoe.cs.rwm/workflow#/"/> + <resources xsi:type="infrastructure:Network" id="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6" title="provider" location="/network/urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6/" occiNetworkState="inactive"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + <attributes name="occi.core.title" value="provider"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="inactive"/> + <attributes name="occi.network.state.message" value=""/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/runtime#//@mixins[term='runtimeid']"/> + <attributes name="openstack.runtime.id" value="d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + </parts> + </resources> + <resources xsi:type="infrastructure:Storage" id="urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060" title="storage" location="/storage/urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060/" rlinks="//@resources.3/@links.0" occiStorageSize="100.0"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storage']"/> + <attributes name="occi.core.id" value="urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060"/> + <attributes name="occi.core.title" value="storage"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.storage.size" value="100"/> + <attributes name="occi.storage.state" value="online"/> + <attributes name="occi.storage.state.message" value=""/> + </resources> + <resources xsi:type="infrastructure:Network" id="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590" title="management" location="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/" rlinks="//@resources.3/@links.1 //@resources.8/@links.0" occiNetworkState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590"/> + <attributes name="occi.core.title" value="management"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="active"/> + <attributes name="occi.network.state.message" value=""/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/runtime#//@mixins[term='runtimeid']"/> + <attributes name="openstack.runtime.id" value="718eaf4e-cc2b-4f19-9347-8ba8a045c515"/> + </parts> + </resources> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce" title="vm1" location="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/" rlinks="//@resources.5/@links.0 //@resources.4/@links.0 //@resources.11/@links.0" occiComputeCores="2" occiComputeHostname="vm2" occiComputeMemory="4096.0" occiComputeState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce"/> + <attributes name="occi.core.title" value="vm1"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.compute.architecture" value="x86"/> + <attributes name="occi.compute.cores" value="2"/> + <attributes name="occi.compute.hostname" value="vm1"/> + <attributes name="occi.compute.share" value="0"/> + <attributes name="occi.compute.speed" value="0"/> + <attributes name="occi.compute.memory" value="4096"/> + <attributes name="occi.compute.state" value="active"/> + <attributes name="occi.compute.state.message" value=""/> + <parts xsi:type="infrastructure:Ssh_key" occiCredentialsSshPublickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ssh_key']"/> + <attributes name="occi.credentials.ssh.publickey" value="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"/> + </parts> + <parts xsi:type="infrastructure:User_data" occiComputeUserdata="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='user_data']"/> + <attributes name="occi.compute.userdata" value="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"/> + </parts> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/swe#//@mixins[term='ubuntu_xenialxerus']"/> + </parts> + <links xsi:type="infrastructure:Storagelink" id="urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b" title="storageLink" location="/storagelink/urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b/" target="//@resources.1"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storagelink']"/> + <attributes name="occi.core.id" value="urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b"/> + <attributes name="occi.core.title" value="storageLink"/> + <attributes name="occi.storagelink.deviceid" value=""/> + <attributes name="occi.storagelink.mountpoint" value=""/> + <attributes name="occi.storagelink.state" value="active"/> + <attributes name="occi.storagelink.state.message" value=""/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + <attributes name="occi.core.target" value="/storage/urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060/"/> + </links> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ag" title="link1" location="/networkinterface/urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ag/" target="//@resources.2" occiNetworkinterfaceInterface="" occiNetworkinterfaceMac="" occiNetworkinterfaceStateMessage=""> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ag"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.networkinterface.address" value="10.0.0.25"/> + <attributes name="occi.networkinterface.gateway" value="10.0.0.254"/> + <attributes name="occi.core.target" value="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.0.0.25" occiNetworkinterfaceGateway="10.0.0.254"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896" title="Java" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/" rlinks="//@resources.5/@links.1 //@resources.6/@links.0 //@resources.9/@links.1 //@resources.10/@links.2" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896"/> + <attributes name="occi.core.title" value="Java"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.0"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b929" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b929/" target="//@resources.3"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b929"/> + <attributes name="occi.core.title" value="link1"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:3441844f-3317-4f90-88b1-a3de96244e4d" title="depends" location="/componentlink/urn:uuid:3441844f-3317-4f90-88b1-a3de96244e4d" target="//@resources.11"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:3441844f-3317-4f90-88b1-a3de96244e4d"/> + <attributes name="occi.core.title" value="depends"/> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897" title="Coarse" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897/" rlinks="//@resources.6/@links.1 //@resources.7/@links.0" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897"/> + <attributes name="occi.core.title" value="Coarse"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.1"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b928" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b928/" target="//@resources.3"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b928"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.core.source" value="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897/"/> + <attributes name="occi.core.target" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3d" title="depends" location="/componentlink/urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3d" target="//@resources.4"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3d"/> + <attributes name="occi.core.title" value="depends"/> + </links> + </resources> + <resources xsi:type="platform:Application" id="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" title="CoarseApplication" location="/application/urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" occiAppName="" occiAppState="deployed"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='application']"/> + <attributes name="occi.core.id" value="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d"/> + <attributes name="occi.core.title" value="CoarseApplication"/> + <links xsi:type="platform:Componentlink" id="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ee" title="ComponentLink" location="/componentlink/urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ee" target="//@resources.4"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ee"/> + <attributes name="occi.core.title" value="ComponentLink"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ef" title="ComponentLink" location="/componentlink/urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ef" target="//@resources.5"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ef"/> + <attributes name="occi.core.title" value="ComponentLink"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:9aa31c50-c605-4370-aa60-3c7c461051ee" title="ComponentLink" location="/componentlink/urn:uuid:9aa31c50-c605-4370-aa60-3c7c461051ee" target="//@resources.11"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:9aa31c50-c605-4370-aa60-3c7c461051ee"/> + <attributes name="occi.core.title" value="ComponentLink"/> + </links> + </resources> + <resources xsi:type="workflow:Task" id="urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a" title="CoarseTask" location="/task/urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='task']"/> + <attributes name="occi.core.id" value="urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a"/> + <attributes name="occi.core.title" value="CoarseTask"/> + <links xsi:type="workflow:Executionlink" id="urn:uuid:097c5265-01ac-4beb-8cc5-8958ea4d1f3f" title="execLink" location="/executionlink/urn:uuid:097c5265-01ac-4beb-8cc5-8958ea4d1f3f" target="//@resources.5"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='executionlink']"/> + <attributes name="occi.core.id" value="urn:uuid:097c5265-01ac-4beb-8cc5-8958ea4d1f3f"/> + <attributes name="occi.core.title" value="execLink"/> + <attributes name="occi.core.target" value="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897/"/> + <attributes name="occi.core.source" value="/task/urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a"/> + </links> + </resources> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf" title="vm2" location="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/" rlinks="//@resources.9/@links.0 //@resources.12/@links.0 //@resources.13/@links.0" occiComputeCores="2" occiComputeHostname="vm2" occiComputeMemory="4096.0" occiComputeState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf"/> + <attributes name="occi.core.title" value="vm2"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.compute.architecture" value="x86"/> + <attributes name="occi.compute.cores" value="2"/> + <attributes name="occi.compute.hostname" value="vm2"/> + <attributes name="occi.compute.share" value="0"/> + <attributes name="occi.compute.speed" value="0"/> + <attributes name="occi.compute.memory" value="4096"/> + <attributes name="occi.compute.state" value="active"/> + <attributes name="occi.compute.state.message" value=""/> + <parts xsi:type="infrastructure:Ssh_key" occiCredentialsSshPublickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ssh_key']"/> + <attributes name="occi.credentials.ssh.publickey" value="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"/> + </parts> + <parts xsi:type="infrastructure:User_data" occiComputeUserdata="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='user_data']"/> + <attributes name="occi.compute.userdata" value="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"/> + </parts> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/swe#//@mixins[term='ubuntu_xenialxerus']"/> + </parts> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ah" title="link1" location="/networkinterface/urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ah/" target="//@resources.2" occiNetworkinterfaceInterface="" occiNetworkinterfaceMac="" occiNetworkinterfaceStateMessage=""> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ah"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.networkinterface.interface" value=""/> + <attributes name="occi.networkinterface.mac" value=""/> + <attributes name="occi.networkinterface.state" value="active"/> + <attributes name="occi.networkinterface.state.message" value=""/> + <attributes name="occi.networkinterface.address" value="10.0.0.15"/> + <attributes name="occi.networkinterface.gateway" value="10.0.0.254"/> + <attributes name="occi.networkinterface.allocation" value="dynamic"/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/"/> + <attributes name="occi.core.target" value="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.0.0.15" occiNetworkinterfaceGateway="10.0.0.254"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255898" title="Fine" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255898/" rlinks="//@resources.10/@links.0" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255898"/> + <attributes name="occi.core.title" value="Fine"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.2"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b917" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b917/" target="//@resources.8"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b917"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.core.target" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3e" title="depends" location="/componentlink/urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3e" target="//@resources.4"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3e"/> + <attributes name="occi.core.title" value="depends"/> + </links> + </resources> + <resources xsi:type="platform:Application" id="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42e" title="FineApplication" location="/application/urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42e" occiAppName="" occiAppState="deployed"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='application']"/> + <attributes name="occi.core.id" value="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42e"/> + <attributes name="occi.core.title" value="FineApplication"/> + <links xsi:type="platform:Componentlink" id="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051eg" title="ComponentLink" location="/componentlink/urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051eg" target="//@resources.9"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051eg"/> + <attributes name="occi.core.title" value="ComponentLink"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:9aa31c50-c605-4370-aa60-4c7c461051ee" title="ComponentLink" location="/componentlink/urn:uuid:9aa31c50-c605-4370-aa60-4c7c461051ee" target="//@resources.12"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:9aa31c50-c605-4370-aa60-4c7c461051ee"/> + <attributes name="occi.core.title" value="ComponentLink"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ez" title="ComponentLink" location="/componentlink/urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ez" target="//@resources.4"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ez"/> + <attributes name="occi.core.title" value="ComponentLink"/> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255887" title="Ping" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255887/" rlinks="//@resources.4/@links.1 //@resources.6/@links.2" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255887"/> + <attributes name="occi.core.title" value="Ping"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.3"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918/" target="//@resources.3"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.core.source" value="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897/"/> + <attributes name="occi.core.target" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255888" title="Ping" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255888/" rlinks="//@resources.13/@links.1 //@resources.10/@links.1" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255888"/> + <attributes name="occi.core.title" value="Ping"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.3"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-94d33783b918" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-94d33783b918/" target="//@resources.8"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-94d33783b918"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.core.source" value="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897/"/> + <attributes name="occi.core.target" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8254896" title="Java" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8254896/" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.title" value="Java"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8254896"/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.0"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b919" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b919/" target="//@resources.8"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b919"/> + <attributes name="occi.core.title" value="link1"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:3441844f-3317-4f90-88b1-a3de96233e4d" title="depends" location="/componentlink/urn:uuid:3441844f-3317-4f90-88b1-a3de96233e4d" target="//@resources.12"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:3441844f-3317-4f90-88b1-a3de96233e4d"/> + <attributes name="occi.core.title" value="depends"/> + </links> + </resources> + <mixins name="java" scheme="http://schemas.modmacao.org/usermixins#" title="Java"/> + <mixins name="coarse" scheme="http://schemas.modmacao.org/usermixins#" title="Coarse"/> + <mixins name="fine" scheme="http://schemas.modmacao.org/usermixins#" title="Fine"/> + <mixins name="ping" scheme="http://schemas.modmacao.org/usermixins#" title="Ping"/> +</occi:Configuration> diff --git a/src/test/resources/occi/MLSProviderManagementNWU14.occic b/src/test/resources/occi/MLSProviderManagementNWU14.occic new file mode 100644 index 0000000000000000000000000000000000000000..085d9bda45319f978b22e44602eb7d7d348cdae2 --- /dev/null +++ b/src/test/resources/occi/MLSProviderManagementNWU14.occic @@ -0,0 +1,202 @@ +<?xml version="1.0" encoding="ASCII"?> +<occi:Configuration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:infrastructure="http://schemas.ogf.org/occi/infrastructure/ecore" xmlns:occi="http://schemas.ogf.org/occi/core/ecore" xmlns:placement="http://schemas.modmacao.org/placement/ecore" xmlns:platform="http://schemas.modmacao.org/occi/platform/ecore" xmlns:workflow="http://schemas.ugoe.cs.rwm/workflow/ecore"> + <use href="http://schemas.ogf.org/occi/core#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure#/"/> + <use href="http://schemas.modmacao.org/occi/platform#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure/compute/template/1.1#/"/> + <use href="http://schemas.modmacao.org/placement#/"/> + <use href="http://schemas.modmacao.org/openstack/runtime#/"/> + <use href="http://schemas.modmacao.org/modmacao#/"/> + <use href="http://schemas.modmacao.org/openstack/swe#/"/> + <use href="http://schemas.ugoe.cs.rwm/workflow#/"/> + <resources xsi:type="infrastructure:Network" id="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6" title="provider" location="/network/urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6/" occiNetworkState="inactive"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + <attributes name="occi.core.title" value="provider"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="inactive"/> + <attributes name="occi.network.state.message" value=""/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/runtime#//@mixins[term='runtimeid']"/> + <attributes name="openstack.runtime.id" value="d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + </parts> + </resources> + <resources xsi:type="infrastructure:Storage" id="urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060" title="storage" location="/storage/urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060/" rlinks="//@resources.3/@links.0" occiStorageSize="100.0"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storage']"/> + <attributes name="occi.core.id" value="urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060"/> + <attributes name="occi.core.title" value="storage"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.storage.size" value="100"/> + <attributes name="occi.storage.state" value="online"/> + <attributes name="occi.storage.state.message" value=""/> + </resources> + <resources xsi:type="infrastructure:Network" id="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590" title="management" location="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/" rlinks="//@resources.3/@links.1 //@resources.8/@links.0" occiNetworkState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590"/> + <attributes name="occi.core.title" value="management"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="inactive"/> + <attributes name="occi.network.state.message" value=""/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/runtime#//@mixins[term='runtimeid']"/> + <attributes name="openstack.runtime.id" value="718eaf4e-cc2b-4f19-9347-8ba8a045c515"/> + </parts> + </resources> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce" title="vm1" location="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/" rlinks="//@resources.5/@links.0 //@resources.4/@links.0" occiComputeCores="2" occiComputeHostname="vm2" occiComputeMemory="4096.0" occiComputeState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce"/> + <attributes name="occi.core.title" value="vm1"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.compute.architecture" value="x86"/> + <attributes name="occi.compute.cores" value="2"/> + <attributes name="occi.compute.hostname" value="vm1"/> + <attributes name="occi.compute.share" value="0"/> + <attributes name="occi.compute.speed" value="0"/> + <attributes name="occi.compute.memory" value="4096"/> + <attributes name="occi.compute.state" value="active"/> + <attributes name="occi.compute.state.message" value=""/> + <parts xsi:type="infrastructure:Ssh_key" occiCredentialsSshPublickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ssh_key']"/> + <attributes name="occi.credentials.ssh.publickey" value="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"/> + </parts> + <parts xsi:type="infrastructure:User_data" occiComputeUserdata="I2Nsb3VkLWNvbmZpZwpwYWNrYWdlX3VwZ3JhZGU6IHRydWUKCndyaXRlX2ZpbGVzOgogIC0gcGF0aDogL2V0Yy9uZXR3b3JrL2ludGVyZmFjZXMuZC81MC1jbG91ZC1pbml0LmNmZwogICAgY29udGVudDogfAogICAgICBhdXRvIGxvCiAgICAgIGlmYWNlIGxvIGluZXQgbG9vcGJhY2sKICAgICAgCiAgICAgIGF1dG8gZXRoMAogICAgICBhbGxvdy1ob3RwbHVnIGV0aDAKICAgICAgaWZhY2UgZXRoMCBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoMQogICAgICBhbGxvdy1ob3RwbHVnIGV0aDEKICAgICAgaWZhY2UgZXRoMSBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoMgogICAgICBhbGxvdy1ob3RwbHVnIGV0aDIKICAgICAgaWZhY2UgZXRoMiBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoMwogICAgICBhbGxvdy1ob3RwbHVnIGV0aDMKICAgICAgaWZhY2UgZXRoMyBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoNAogICAgICBhbGxvdy1ob3RwbHVnIGV0aDQKICAgICAgaWZhY2UgZXRoNCBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoNQogICAgICBhbGxvdy1ob3RwbHVnIGV0aDUKICAgICAgaWZhY2UgZXRoNSBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoNgogICAgICBhbGxvdy1ob3RwbHVnIGV0aDYKICAgICAgaWZhY2UgZXRoNiBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoNwogICAgICBhbGxvdy1ob3RwbHVnIGV0aDcKICAgICAgaWZhY2UgZXRoNyBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoOAogICAgICBhbGxvdy1ob3RwbHVnIGV0aDgKICAgICAgaWZhY2UgZXRoOCBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoOQogICAgICBhbGxvdy1ob3RwbHVnIGV0aDkKICAgICAgaWZhY2UgZXRoOSBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoMTAKICAgICAgYWxsb3ctaG90cGx1ZyBldGgxMAogICAgICBpZmFjZSBldGgxMCBpbmV0IGRoY3AKIyMj"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='user_data']"/> + <attributes name="occi.compute.userdata" value="I2Nsb3VkLWNvbmZpZwpwYWNrYWdlX3VwZ3JhZGU6IHRydWUKCndyaXRlX2ZpbGVzOgogIC0gcGF0aDogL2V0Yy9uZXR3b3JrL2ludGVyZmFjZXMuZC81MC1jbG91ZC1pbml0LmNmZwogICAgY29udGVudDogfAogICAgICBhdXRvIGxvCiAgICAgIGlmYWNlIGxvIGluZXQgbG9vcGJhY2sKICAgICAgCiAgICAgIGF1dG8gZXRoMAogICAgICBhbGxvdy1ob3RwbHVnIGV0aDAKICAgICAgaWZhY2UgZXRoMCBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoMQogICAgICBhbGxvdy1ob3RwbHVnIGV0aDEKICAgICAgaWZhY2UgZXRoMSBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoMgogICAgICBhbGxvdy1ob3RwbHVnIGV0aDIKICAgICAgaWZhY2UgZXRoMiBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoMwogICAgICBhbGxvdy1ob3RwbHVnIGV0aDMKICAgICAgaWZhY2UgZXRoMyBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoNAogICAgICBhbGxvdy1ob3RwbHVnIGV0aDQKICAgICAgaWZhY2UgZXRoNCBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoNQogICAgICBhbGxvdy1ob3RwbHVnIGV0aDUKICAgICAgaWZhY2UgZXRoNSBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoNgogICAgICBhbGxvdy1ob3RwbHVnIGV0aDYKICAgICAgaWZhY2UgZXRoNiBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoNwogICAgICBhbGxvdy1ob3RwbHVnIGV0aDcKICAgICAgaWZhY2UgZXRoNyBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoOAogICAgICBhbGxvdy1ob3RwbHVnIGV0aDgKICAgICAgaWZhY2UgZXRoOCBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoOQogICAgICBhbGxvdy1ob3RwbHVnIGV0aDkKICAgICAgaWZhY2UgZXRoOSBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoMTAKICAgICAgYWxsb3ctaG90cGx1ZyBldGgxMAogICAgICBpZmFjZSBldGgxMCBpbmV0IGRoY3AKIyMj"/> + </parts> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/swe#//@mixins[term='ubuntu_trustytahr']"/> + </parts> + <links xsi:type="infrastructure:Storagelink" id="urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b" title="storageLink" location="/storagelink/urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b/" target="//@resources.1"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storagelink']"/> + <attributes name="occi.core.id" value="urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b"/> + <attributes name="occi.core.title" value="storageLink"/> + <attributes name="occi.storagelink.deviceid" value=""/> + <attributes name="occi.storagelink.mountpoint" value=""/> + <attributes name="occi.storagelink.state" value="active"/> + <attributes name="occi.storagelink.state.message" value=""/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + <attributes name="occi.core.target" value="/storage/urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060/"/> + </links> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ag" title="link1" location="/networkinterface/urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ag/" target="//@resources.2" occiNetworkinterfaceInterface="" occiNetworkinterfaceMac="" occiNetworkinterfaceStateMessage=""> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ag"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.networkinterface.address" value="10.0.0.25"/> + <attributes name="occi.networkinterface.gateway" value="10.0.0.254"/> + <attributes name="occi.core.target" value="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.0.0.25" occiNetworkinterfaceGateway="10.0.0.254"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896" title="Java" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/" rlinks="//@resources.5/@links.1 //@resources.6/@links.0" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896"/> + <attributes name="occi.core.title" value="Java"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.0"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b919" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b919/" target="//@resources.3"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b919"/> + <attributes name="occi.core.title" value="link1"/> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897" title="Coarse" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897/" rlinks="//@resources.6/@links.1 //@resources.7/@links.0" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897"/> + <attributes name="occi.core.title" value="Coarse"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.1"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918/" target="//@resources.3"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.core.source" value="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897/"/> + <attributes name="occi.core.target" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3d" title="depends" location="/componentlink/urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3d" target="//@resources.4"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3d"/> + <attributes name="occi.core.title" value="depends"/> + </links> + </resources> + <resources xsi:type="platform:Application" id="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" title="CoarseApplication" location="/application/urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" occiAppName="" occiAppState="deployed"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='application']"/> + <attributes name="occi.core.id" value="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d"/> + <attributes name="occi.core.title" value="CoarseApplication"/> + <links xsi:type="platform:Componentlink" id="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ee" title="ComponentLink" location="/componentlink/urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ee" target="//@resources.4"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ee"/> + <attributes name="occi.core.title" value="ComponentLink"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ef" title="ComponentLink" location="/componentlink/urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ef" target="//@resources.5"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ef"/> + <attributes name="occi.core.title" value="ComponentLink"/> + </links> + </resources> + <resources xsi:type="workflow:Task" id="urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a" title="CoarseTask" location="/task/urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='task']"/> + <attributes name="occi.core.id" value="urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a"/> + <attributes name="occi.core.title" value="CoarseTask"/> + <links xsi:type="workflow:Executionlink" id="urn:uuid:097c5265-01ac-4beb-8cc5-8958ea4d1f3f" title="execLink" location="/executionlink/urn:uuid:097c5265-01ac-4beb-8cc5-8958ea4d1f3f" target="//@resources.5"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='executionlink']"/> + <attributes name="occi.core.id" value="urn:uuid:097c5265-01ac-4beb-8cc5-8958ea4d1f3f"/> + <attributes name="occi.core.title" value="execLink"/> + <attributes name="occi.core.target" value="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/"/> + <attributes name="occi.core.source" value="/task/urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a"/> + </links> + </resources> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf" title="vm2" location="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/" occiComputeCores="2" occiComputeHostname="vm2" occiComputeMemory="4096.0" occiComputeState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf"/> + <attributes name="occi.core.title" value="vm2"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.compute.architecture" value="x86"/> + <attributes name="occi.compute.cores" value="2"/> + <attributes name="occi.compute.hostname" value="vm2"/> + <attributes name="occi.compute.share" value="0"/> + <attributes name="occi.compute.speed" value="0"/> + <attributes name="occi.compute.memory" value="4096"/> + <attributes name="occi.compute.state" value="active"/> + <attributes name="occi.compute.state.message" value=""/> + <parts xsi:type="infrastructure:Ssh_key" occiCredentialsSshPublickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ssh_key']"/> + <attributes name="occi.credentials.ssh.publickey" value="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"/> + </parts> + <parts xsi:type="infrastructure:User_data" occiComputeUserdata="I2Nsb3VkLWNvbmZpZwpwYWNrYWdlX3VwZ3JhZGU6IHRydWUKCndyaXRlX2ZpbGVzOgogIC0gcGF0aDogL2V0Yy9uZXR3b3JrL2ludGVyZmFjZXMuZC81MC1jbG91ZC1pbml0LmNmZwogICAgY29udGVudDogfAogICAgICBhdXRvIGxvCiAgICAgIGlmYWNlIGxvIGluZXQgbG9vcGJhY2sKICAgICAgCiAgICAgIGF1dG8gZXRoMAogICAgICBhbGxvdy1ob3RwbHVnIGV0aDAKICAgICAgaWZhY2UgZXRoMCBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoMQogICAgICBhbGxvdy1ob3RwbHVnIGV0aDEKICAgICAgaWZhY2UgZXRoMSBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoMgogICAgICBhbGxvdy1ob3RwbHVnIGV0aDIKICAgICAgaWZhY2UgZXRoMiBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoMwogICAgICBhbGxvdy1ob3RwbHVnIGV0aDMKICAgICAgaWZhY2UgZXRoMyBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoNAogICAgICBhbGxvdy1ob3RwbHVnIGV0aDQKICAgICAgaWZhY2UgZXRoNCBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoNQogICAgICBhbGxvdy1ob3RwbHVnIGV0aDUKICAgICAgaWZhY2UgZXRoNSBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoNgogICAgICBhbGxvdy1ob3RwbHVnIGV0aDYKICAgICAgaWZhY2UgZXRoNiBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoNwogICAgICBhbGxvdy1ob3RwbHVnIGV0aDcKICAgICAgaWZhY2UgZXRoNyBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoOAogICAgICBhbGxvdy1ob3RwbHVnIGV0aDgKICAgICAgaWZhY2UgZXRoOCBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoOQogICAgICBhbGxvdy1ob3RwbHVnIGV0aDkKICAgICAgaWZhY2UgZXRoOSBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoMTAKICAgICAgYWxsb3ctaG90cGx1ZyBldGgxMAogICAgICBpZmFjZSBldGgxMCBpbmV0IGRoY3AKIyMj"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='user_data']"/> + <attributes name="occi.compute.userdata" value="I2Nsb3VkLWNvbmZpZwpwYWNrYWdlX3VwZ3JhZGU6IHRydWUKCndyaXRlX2ZpbGVzOgogIC0gcGF0aDogL2V0Yy9uZXR3b3JrL2ludGVyZmFjZXMuZC81MC1jbG91ZC1pbml0LmNmZwogICAgY29udGVudDogfAogICAgICBhdXRvIGxvCiAgICAgIGlmYWNlIGxvIGluZXQgbG9vcGJhY2sKICAgICAgCiAgICAgIGF1dG8gZXRoMAogICAgICBhbGxvdy1ob3RwbHVnIGV0aDAKICAgICAgaWZhY2UgZXRoMCBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoMQogICAgICBhbGxvdy1ob3RwbHVnIGV0aDEKICAgICAgaWZhY2UgZXRoMSBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoMgogICAgICBhbGxvdy1ob3RwbHVnIGV0aDIKICAgICAgaWZhY2UgZXRoMiBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoMwogICAgICBhbGxvdy1ob3RwbHVnIGV0aDMKICAgICAgaWZhY2UgZXRoMyBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoNAogICAgICBhbGxvdy1ob3RwbHVnIGV0aDQKICAgICAgaWZhY2UgZXRoNCBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoNQogICAgICBhbGxvdy1ob3RwbHVnIGV0aDUKICAgICAgaWZhY2UgZXRoNSBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoNgogICAgICBhbGxvdy1ob3RwbHVnIGV0aDYKICAgICAgaWZhY2UgZXRoNiBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoNwogICAgICBhbGxvdy1ob3RwbHVnIGV0aDcKICAgICAgaWZhY2UgZXRoNyBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoOAogICAgICBhbGxvdy1ob3RwbHVnIGV0aDgKICAgICAgaWZhY2UgZXRoOCBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoOQogICAgICBhbGxvdy1ob3RwbHVnIGV0aDkKICAgICAgaWZhY2UgZXRoOSBpbmV0IGRoY3AKICAgICAgCiAgICAgIGF1dG8gZXRoMTAKICAgICAgYWxsb3ctaG90cGx1ZyBldGgxMAogICAgICBpZmFjZSBldGgxMCBpbmV0IGRoY3AKIyMj"/> + </parts> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/swe#//@mixins[term='ubuntu_trustytahr']"/> + </parts> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ah" title="link1" location="/networkinterface/urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ah/" target="//@resources.2" occiNetworkinterfaceInterface="" occiNetworkinterfaceMac="" occiNetworkinterfaceStateMessage=""> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ah"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.networkinterface.interface" value=""/> + <attributes name="occi.networkinterface.mac" value=""/> + <attributes name="occi.networkinterface.state" value="active"/> + <attributes name="occi.networkinterface.state.message" value=""/> + <attributes name="occi.networkinterface.address" value="10.0.0.15"/> + <attributes name="occi.networkinterface.gateway" value="10.0.0.254"/> + <attributes name="occi.networkinterface.allocation" value="dynamic"/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/"/> + <attributes name="occi.core.target" value="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.0.0.15" occiNetworkinterfaceGateway="10.0.0.254"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + </resources> + <mixins name="java" scheme="http://schemas.modmacao.org/usermixins#"/> + <mixins name="coarse" scheme="http://schemas.modmacao.org/usermixins#"/> +</occi:Configuration> diff --git a/src/test/resources/occi/MLSProviderManagementNWU16.occic b/src/test/resources/occi/MLSProviderManagementNWU16.occic new file mode 100644 index 0000000000000000000000000000000000000000..fda33a07f9bdf3aef7e4b1d25cc9aa08a8e1815f --- /dev/null +++ b/src/test/resources/occi/MLSProviderManagementNWU16.occic @@ -0,0 +1,202 @@ +<?xml version="1.0" encoding="ASCII"?> +<occi:Configuration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:infrastructure="http://schemas.ogf.org/occi/infrastructure/ecore" xmlns:occi="http://schemas.ogf.org/occi/core/ecore" xmlns:placement="http://schemas.modmacao.org/placement/ecore" xmlns:platform="http://schemas.modmacao.org/occi/platform/ecore" xmlns:workflow="http://schemas.ugoe.cs.rwm/workflow/ecore"> + <use href="http://schemas.ogf.org/occi/core#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure#/"/> + <use href="http://schemas.modmacao.org/occi/platform#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure/compute/template/1.1#/"/> + <use href="http://schemas.modmacao.org/placement#/"/> + <use href="http://schemas.modmacao.org/openstack/runtime#/"/> + <use href="http://schemas.modmacao.org/modmacao#/"/> + <use href="http://schemas.modmacao.org/openstack/swe#/"/> + <use href="http://schemas.ugoe.cs.rwm/workflow#/"/> + <resources xsi:type="infrastructure:Network" id="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6" title="provider" location="/network/urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6/" occiNetworkState="inactive"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + <attributes name="occi.core.title" value="provider"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="inactive"/> + <attributes name="occi.network.state.message" value=""/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/runtime#//@mixins[term='runtimeid']"/> + <attributes name="openstack.runtime.id" value="d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + </parts> + </resources> + <resources xsi:type="infrastructure:Storage" id="urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060" title="storage" location="/storage/urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060/" rlinks="//@resources.3/@links.0" occiStorageSize="100.0"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storage']"/> + <attributes name="occi.core.id" value="urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060"/> + <attributes name="occi.core.title" value="storage"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.storage.size" value="100"/> + <attributes name="occi.storage.state" value="online"/> + <attributes name="occi.storage.state.message" value=""/> + </resources> + <resources xsi:type="infrastructure:Network" id="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590" title="management" location="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/" rlinks="//@resources.3/@links.1 //@resources.8/@links.0" occiNetworkState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590"/> + <attributes name="occi.core.title" value="management"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="active"/> + <attributes name="occi.network.state.message" value=""/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/runtime#//@mixins[term='runtimeid']"/> + <attributes name="openstack.runtime.id" value="718eaf4e-cc2b-4f19-9347-8ba8a045c515"/> + </parts> + </resources> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce" title="vm1" location="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/" rlinks="//@resources.5/@links.0 //@resources.4/@links.0" occiComputeCores="2" occiComputeHostname="vm2" occiComputeMemory="4096.0" occiComputeState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce"/> + <attributes name="occi.core.title" value="vm1"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.compute.architecture" value="x86"/> + <attributes name="occi.compute.cores" value="2"/> + <attributes name="occi.compute.hostname" value="vm1"/> + <attributes name="occi.compute.share" value="0"/> + <attributes name="occi.compute.speed" value="0"/> + <attributes name="occi.compute.memory" value="4096"/> + <attributes name="occi.compute.state" value="active"/> + <attributes name="occi.compute.state.message" value=""/> + <parts xsi:type="infrastructure:Ssh_key" occiCredentialsSshPublickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ssh_key']"/> + <attributes name="occi.credentials.ssh.publickey" value="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"/> + </parts> + <parts xsi:type="infrastructure:User_data" occiComputeUserdata="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='user_data']"/> + <attributes name="occi.compute.userdata" value="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"/> + </parts> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/swe#//@mixins[term='ubuntu_xenialxerus']"/> + </parts> + <links xsi:type="infrastructure:Storagelink" id="urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b" title="storageLink" location="/storagelink/urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b/" target="//@resources.1"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storagelink']"/> + <attributes name="occi.core.id" value="urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b"/> + <attributes name="occi.core.title" value="storageLink"/> + <attributes name="occi.storagelink.deviceid" value=""/> + <attributes name="occi.storagelink.mountpoint" value=""/> + <attributes name="occi.storagelink.state" value="active"/> + <attributes name="occi.storagelink.state.message" value=""/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + <attributes name="occi.core.target" value="/storage/urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060/"/> + </links> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ag" title="link1" location="/networkinterface/urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ag/" target="//@resources.2" occiNetworkinterfaceInterface="" occiNetworkinterfaceMac="" occiNetworkinterfaceStateMessage=""> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ag"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.networkinterface.address" value="10.0.0.25"/> + <attributes name="occi.networkinterface.gateway" value="10.0.0.254"/> + <attributes name="occi.core.target" value="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.0.0.25" occiNetworkinterfaceGateway="10.0.0.254"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896" title="Java" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/" rlinks="//@resources.5/@links.1 //@resources.6/@links.0" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896"/> + <attributes name="occi.core.title" value="Java"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.0"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b919" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b919/" target="//@resources.3"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b919"/> + <attributes name="occi.core.title" value="link1"/> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897" title="Coarse" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897/" rlinks="//@resources.6/@links.1 //@resources.7/@links.0" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897"/> + <attributes name="occi.core.title" value="Coarse"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.1"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918/" target="//@resources.3"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.core.source" value="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897/"/> + <attributes name="occi.core.target" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3d" title="depends" location="/componentlink/urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3d" target="//@resources.4"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3d"/> + <attributes name="occi.core.title" value="depends"/> + </links> + </resources> + <resources xsi:type="platform:Application" id="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" title="CoarseApplication" location="/application/urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" occiAppName="" occiAppState="deployed"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='application']"/> + <attributes name="occi.core.id" value="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d"/> + <attributes name="occi.core.title" value="CoarseApplication"/> + <links xsi:type="platform:Componentlink" id="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ee" title="ComponentLink" location="/componentlink/urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ee" target="//@resources.4"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ee"/> + <attributes name="occi.core.title" value="ComponentLink"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ef" title="ComponentLink" location="/componentlink/urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ef" target="//@resources.5"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ef"/> + <attributes name="occi.core.title" value="ComponentLink"/> + </links> + </resources> + <resources xsi:type="workflow:Task" id="urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a" title="CoarseTask" location="/task/urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='task']"/> + <attributes name="occi.core.id" value="urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a"/> + <attributes name="occi.core.title" value="CoarseTask"/> + <links xsi:type="workflow:Executionlink" id="urn:uuid:097c5265-01ac-4beb-8cc5-8958ea4d1f3f" title="execLink" location="/executionlink/urn:uuid:097c5265-01ac-4beb-8cc5-8958ea4d1f3f" target="//@resources.5"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='executionlink']"/> + <attributes name="occi.core.id" value="urn:uuid:097c5265-01ac-4beb-8cc5-8958ea4d1f3f"/> + <attributes name="occi.core.title" value="execLink"/> + <attributes name="occi.core.target" value="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/"/> + <attributes name="occi.core.source" value="/task/urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a"/> + </links> + </resources> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf" title="vm2" location="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/" occiComputeCores="2" occiComputeHostname="vm2" occiComputeMemory="4096.0" occiComputeState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf"/> + <attributes name="occi.core.title" value="vm2"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.compute.architecture" value="x86"/> + <attributes name="occi.compute.cores" value="2"/> + <attributes name="occi.compute.hostname" value="vm2"/> + <attributes name="occi.compute.share" value="0"/> + <attributes name="occi.compute.speed" value="0"/> + <attributes name="occi.compute.memory" value="4096"/> + <attributes name="occi.compute.state" value="active"/> + <attributes name="occi.compute.state.message" value=""/> + <parts xsi:type="infrastructure:Ssh_key" occiCredentialsSshPublickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ssh_key']"/> + <attributes name="occi.credentials.ssh.publickey" value="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"/> + </parts> + <parts xsi:type="infrastructure:User_data" occiComputeUserdata="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='user_data']"/> + <attributes name="occi.compute.userdata" value="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"/> + </parts> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/swe#//@mixins[term='ubuntu_xenialxerus']"/> + </parts> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ah" title="link1" location="/networkinterface/urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ah/" target="//@resources.2" occiNetworkinterfaceInterface="" occiNetworkinterfaceMac="" occiNetworkinterfaceStateMessage=""> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ah"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.networkinterface.interface" value=""/> + <attributes name="occi.networkinterface.mac" value=""/> + <attributes name="occi.networkinterface.state" value="active"/> + <attributes name="occi.networkinterface.state.message" value=""/> + <attributes name="occi.networkinterface.address" value="10.0.0.15"/> + <attributes name="occi.networkinterface.gateway" value="10.0.0.254"/> + <attributes name="occi.networkinterface.allocation" value="dynamic"/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/"/> + <attributes name="occi.core.target" value="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.0.0.15" occiNetworkinterfaceGateway="10.0.0.254"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + </resources> + <mixins name="java" scheme="http://schemas.modmacao.org/usermixins#"/> + <mixins name="coarse" scheme="http://schemas.modmacao.org/usermixins#"/> +</occi:Configuration> diff --git a/src/test/resources/occi/MLSProviderManagementNWU18.occic b/src/test/resources/occi/MLSProviderManagementNWU18.occic new file mode 100644 index 0000000000000000000000000000000000000000..eda3e4c47950837eedef83d2771bb85b3b6b3555 --- /dev/null +++ b/src/test/resources/occi/MLSProviderManagementNWU18.occic @@ -0,0 +1,202 @@ +<?xml version="1.0" encoding="ASCII"?> +<occi:Configuration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:infrastructure="http://schemas.ogf.org/occi/infrastructure/ecore" xmlns:occi="http://schemas.ogf.org/occi/core/ecore" xmlns:placement="http://schemas.modmacao.org/placement/ecore" xmlns:platform="http://schemas.modmacao.org/occi/platform/ecore" xmlns:workflow="http://schemas.ugoe.cs.rwm/workflow/ecore"> + <use href="http://schemas.ogf.org/occi/core#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure#/"/> + <use href="http://schemas.modmacao.org/occi/platform#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure/compute/template/1.1#/"/> + <use href="http://schemas.modmacao.org/placement#/"/> + <use href="http://schemas.modmacao.org/openstack/runtime#/"/> + <use href="http://schemas.modmacao.org/modmacao#/"/> + <use href="http://schemas.modmacao.org/openstack/swe#/"/> + <use href="http://schemas.ugoe.cs.rwm/workflow#/"/> + <resources xsi:type="infrastructure:Network" id="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6" title="provider" location="/network/urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6/" occiNetworkState="inactive"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + <attributes name="occi.core.title" value="provider"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="inactive"/> + <attributes name="occi.network.state.message" value=""/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/runtime#//@mixins[term='runtimeid']"/> + <attributes name="openstack.runtime.id" value="d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + </parts> + </resources> + <resources xsi:type="infrastructure:Storage" id="urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060" title="storage" location="/storage/urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060/" rlinks="//@resources.3/@links.0" occiStorageSize="100.0"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storage']"/> + <attributes name="occi.core.id" value="urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060"/> + <attributes name="occi.core.title" value="storage"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.storage.size" value="100"/> + <attributes name="occi.storage.state" value="online"/> + <attributes name="occi.storage.state.message" value=""/> + </resources> + <resources xsi:type="infrastructure:Network" id="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590" title="management" location="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/" rlinks="//@resources.3/@links.1 //@resources.8/@links.0" occiNetworkState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590"/> + <attributes name="occi.core.title" value="management"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="active"/> + <attributes name="occi.network.state.message" value=""/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/runtime#//@mixins[term='runtimeid']"/> + <attributes name="openstack.runtime.id" value="718eaf4e-cc2b-4f19-9347-8ba8a045c515"/> + </parts> + </resources> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce" title="vm1" location="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/" rlinks="//@resources.5/@links.0 //@resources.4/@links.0" occiComputeCores="2" occiComputeHostname="vm2" occiComputeMemory="4096.0" occiComputeState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce"/> + <attributes name="occi.core.title" value="vm1"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.compute.architecture" value="x86"/> + <attributes name="occi.compute.cores" value="2"/> + <attributes name="occi.compute.hostname" value="vm1"/> + <attributes name="occi.compute.share" value="0"/> + <attributes name="occi.compute.speed" value="0"/> + <attributes name="occi.compute.memory" value="4096"/> + <attributes name="occi.compute.state" value="active"/> + <attributes name="occi.compute.state.message" value=""/> + <parts xsi:type="infrastructure:Ssh_key" occiCredentialsSshPublickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ssh_key']"/> + <attributes name="occi.credentials.ssh.publickey" value="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"/> + </parts> + <parts xsi:type="infrastructure:User_data" occiComputeUserdata="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='user_data']"/> + <attributes name="occi.compute.userdata" value="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCndyaXRlX2ZpbGVzOgogIC0gcGF0aDogL2V0Yy9uZXRwbGFuLzUwLWNsb3VkLWluaXQueWFtbAogICAgY29udGVudDogfAogICAgICBuZXR3b3JrOgogICAgICAgIHZlcnNpb246IDIKICAgICAgICBldGhlcm5ldHM6CiAgICAgICAgICAgZW5zMzoKICAgICAgICAgICAgICAgZGhjcDQ6IHRydWUKICAgICAgICAgICBlbnMxOgogICAgICAgICAgICAgICBkaGNwNDogdHJ1ZQogICAgICAgICAgIGVuczI6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zNDoKICAgICAgICAgICAgICAgZGhjcDQ6IHRydWUKICAgICAgICAgICBlbnM1OgogICAgICAgICAgICAgICBkaGNwNDogdHJ1ZQogICAgICAgICAgIGVuczY6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zNzoKICAgICAgICAgICAgICAgZGhjcDQ6IHRydWUKICAgICAgICAgICBlbnM4OgogICAgICAgICAgICAgICBkaGNwNDogdHJ1ZQogICAgICAgICAgIGVuczk6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zMTA6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zMTE6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zMTI6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zMTM6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zMTQ6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zMTU6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zMTY6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zMTc6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zMTg6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCgpydW5jbWQ6CiAgLSBuZXRwbGFuIGFwcGx5CiMjIyMj"/> + </parts> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/swe#//@mixins[term='ubuntu_bionicbeaver_python']"/> + </parts> + <links xsi:type="infrastructure:Storagelink" id="urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b" title="storageLink" location="/storagelink/urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b/" target="//@resources.1"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storagelink']"/> + <attributes name="occi.core.id" value="urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b"/> + <attributes name="occi.core.title" value="storageLink"/> + <attributes name="occi.storagelink.deviceid" value=""/> + <attributes name="occi.storagelink.mountpoint" value=""/> + <attributes name="occi.storagelink.state" value="active"/> + <attributes name="occi.storagelink.state.message" value=""/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + <attributes name="occi.core.target" value="/storage/urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060/"/> + </links> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ag" title="link1" location="/networkinterface/urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ag/" target="//@resources.2" occiNetworkinterfaceInterface="" occiNetworkinterfaceMac="" occiNetworkinterfaceStateMessage=""> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ag"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.networkinterface.address" value="10.0.0.25"/> + <attributes name="occi.networkinterface.gateway" value="10.0.0.254"/> + <attributes name="occi.core.target" value="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.0.0.25" occiNetworkinterfaceGateway="10.0.0.254"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896" title="Java" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/" rlinks="//@resources.5/@links.1 //@resources.6/@links.0" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896"/> + <attributes name="occi.core.title" value="Java"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.0"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b919" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b919/" target="//@resources.3"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b919"/> + <attributes name="occi.core.title" value="link1"/> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897" title="Coarse" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897/" rlinks="//@resources.6/@links.1 //@resources.7/@links.0" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897"/> + <attributes name="occi.core.title" value="Coarse"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.1"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918/" target="//@resources.3"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.core.source" value="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897/"/> + <attributes name="occi.core.target" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3d" title="depends" location="/componentlink/urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3d" target="//@resources.4"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3d"/> + <attributes name="occi.core.title" value="depends"/> + </links> + </resources> + <resources xsi:type="platform:Application" id="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" title="CoarseApplication" location="/application/urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" occiAppName="" occiAppState="deployed"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='application']"/> + <attributes name="occi.core.id" value="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d"/> + <attributes name="occi.core.title" value="CoarseApplication"/> + <links xsi:type="platform:Componentlink" id="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ee" title="ComponentLink" location="/componentlink/urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ee" target="//@resources.4"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ee"/> + <attributes name="occi.core.title" value="ComponentLink"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ef" title="ComponentLink" location="/componentlink/urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ef" target="//@resources.5"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ef"/> + <attributes name="occi.core.title" value="ComponentLink"/> + </links> + </resources> + <resources xsi:type="workflow:Task" id="urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a" title="CoarseTask" location="/task/urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='task']"/> + <attributes name="occi.core.id" value="urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a"/> + <attributes name="occi.core.title" value="CoarseTask"/> + <links xsi:type="workflow:Executionlink" id="urn:uuid:097c5265-01ac-4beb-8cc5-8958ea4d1f3f" title="execLink" location="/executionlink/urn:uuid:097c5265-01ac-4beb-8cc5-8958ea4d1f3f" target="//@resources.5"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='executionlink']"/> + <attributes name="occi.core.id" value="urn:uuid:097c5265-01ac-4beb-8cc5-8958ea4d1f3f"/> + <attributes name="occi.core.title" value="execLink"/> + <attributes name="occi.core.target" value="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/"/> + <attributes name="occi.core.source" value="/task/urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a"/> + </links> + </resources> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf" title="vm2" location="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/" occiComputeCores="2" occiComputeHostname="vm2" occiComputeMemory="4096.0" occiComputeState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf"/> + <attributes name="occi.core.title" value="vm2"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.compute.architecture" value="x86"/> + <attributes name="occi.compute.cores" value="2"/> + <attributes name="occi.compute.hostname" value="vm2"/> + <attributes name="occi.compute.share" value="0"/> + <attributes name="occi.compute.speed" value="0"/> + <attributes name="occi.compute.memory" value="4096"/> + <attributes name="occi.compute.state" value="active"/> + <attributes name="occi.compute.state.message" value=""/> + <parts xsi:type="infrastructure:Ssh_key" occiCredentialsSshPublickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ssh_key']"/> + <attributes name="occi.credentials.ssh.publickey" value="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"/> + </parts> + <parts xsi:type="infrastructure:User_data" occiComputeUserdata="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='user_data']"/> + <attributes name="occi.compute.userdata" value="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCndyaXRlX2ZpbGVzOgogIC0gcGF0aDogL2V0Yy9uZXRwbGFuLzUwLWNsb3VkLWluaXQueWFtbAogICAgY29udGVudDogfAogICAgICBuZXR3b3JrOgogICAgICAgIHZlcnNpb246IDIKICAgICAgICBldGhlcm5ldHM6CiAgICAgICAgICAgZW5zMzoKICAgICAgICAgICAgICAgZGhjcDQ6IHRydWUKICAgICAgICAgICBlbnMxOgogICAgICAgICAgICAgICBkaGNwNDogdHJ1ZQogICAgICAgICAgIGVuczI6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zNDoKICAgICAgICAgICAgICAgZGhjcDQ6IHRydWUKICAgICAgICAgICBlbnM1OgogICAgICAgICAgICAgICBkaGNwNDogdHJ1ZQogICAgICAgICAgIGVuczY6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zNzoKICAgICAgICAgICAgICAgZGhjcDQ6IHRydWUKICAgICAgICAgICBlbnM4OgogICAgICAgICAgICAgICBkaGNwNDogdHJ1ZQogICAgICAgICAgIGVuczk6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zMTA6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zMTE6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zMTI6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zMTM6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zMTQ6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zMTU6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zMTY6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zMTc6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCiAgICAgICAgICAgZW5zMTg6CiAgICAgICAgICAgICAgIGRoY3A0OiB0cnVlCgpydW5jbWQ6CiAgLSBuZXRwbGFuIGFwcGx5CiMjIyMj"/> + </parts> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/swe#//@mixins[term='ubuntu_bionicbeaver_python']"/> + </parts> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ah" title="link1" location="/networkinterface/urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ah/" target="//@resources.2" occiNetworkinterfaceInterface="" occiNetworkinterfaceMac="" occiNetworkinterfaceStateMessage=""> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ah"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.networkinterface.interface" value=""/> + <attributes name="occi.networkinterface.mac" value=""/> + <attributes name="occi.networkinterface.state" value="active"/> + <attributes name="occi.networkinterface.state.message" value=""/> + <attributes name="occi.networkinterface.address" value="10.0.0.15"/> + <attributes name="occi.networkinterface.gateway" value="10.0.0.254"/> + <attributes name="occi.networkinterface.allocation" value="dynamic"/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/"/> + <attributes name="occi.core.target" value="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.0.0.15" occiNetworkinterfaceGateway="10.0.0.254"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + </resources> + <mixins name="java" scheme="http://schemas.modmacao.org/usermixins#"/> + <mixins name="coarse" scheme="http://schemas.modmacao.org/usermixins#"/> +</occi:Configuration> diff --git a/src/test/resources/occi/MLS_Hadoop.occic b/src/test/resources/occi/MLS_Hadoop.occic new file mode 100644 index 0000000000000000000000000000000000000000..54d5261d783e5fe7498ad432ccfb59af907276ae --- /dev/null +++ b/src/test/resources/occi/MLS_Hadoop.occic @@ -0,0 +1,494 @@ +<?xml version="1.0" encoding="ASCII"?> +<occi:Configuration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:infrastructure="http://schemas.ogf.org/occi/infrastructure/ecore" xmlns:occi="http://schemas.ogf.org/occi/core/ecore" xmlns:placement="http://schemas.modmacao.org/placement/ecore" xmlns:platform="http://schemas.modmacao.org/occi/platform/ecore" xmlns:workflow="http://schemas.ugoe.cs.rwm/workflow/ecore"> + <use href="http://schemas.ogf.org/occi/core#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure#/"/> + <use href="http://schemas.modmacao.org/occi/platform#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure/compute/template/1.1#/"/> + <use href="http://schemas.modmacao.org/placement#/"/> + <use href="http://schemas.modmacao.org/openstack/runtime#/"/> + <use href="http://schemas.modmacao.org/modmacao#/"/> + <use href="http://schemas.modmacao.org/openstack/swe#/"/> + <use href="http://schemas.ugoe.cs.rwm/workflow#/"/> + <resources xsi:type="infrastructure:Network" id="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6" title="provider" location="/network/urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6/" occiNetworkState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + <attributes name="occi.core.title" value="provider"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="active"/> + <attributes name="occi.network.state.message" value=""/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/runtime#//@mixins[term='runtimeid']"/> + <attributes name="openstack.runtime.id" value="d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + </parts> + </resources> + <resources xsi:type="infrastructure:Storage" id="urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060" title="storage" location="/storage/urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060/" rlinks="//@resources.3/@links.0" occiStorageSize="100.0"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storage']"/> + <attributes name="occi.core.id" value="urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060"/> + <attributes name="occi.core.title" value="storage"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.storage.size" value="100"/> + <attributes name="occi.storage.state" value="online"/> + <attributes name="occi.storage.state.message" value=""/> + </resources> + <resources xsi:type="infrastructure:Network" id="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590" title="management" location="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/" rlinks="//@resources.3/@links.1 //@resources.7/@links.0 //@resources.14/@links.1 //@resources.13/@links.1" occiNetworkState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590"/> + <attributes name="occi.core.title" value="management"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="active"/> + <attributes name="occi.network.state.message" value=""/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/runtime#//@mixins[term='runtimeid']"/> + <attributes name="openstack.runtime.id" value="718eaf4e-cc2b-4f19-9347-8ba8a045c515"/> + </parts> + </resources> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce" title="hadoop-master" location="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/" rlinks="//@resources.5/@links.0 //@resources.4/@links.0 //@resources.12/@links.0" occiComputeCores="2" occiComputeHostname="vm2" occiComputeMemory="4096.0" occiComputeState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce"/> + <attributes name="occi.core.title" value="hadoop-master"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.compute.architecture" value="x86"/> + <attributes name="occi.compute.cores" value="2"/> + <attributes name="occi.compute.hostname" value="hadoop-master"/> + <attributes name="occi.compute.share" value="0"/> + <attributes name="occi.compute.speed" value="0"/> + <attributes name="occi.compute.memory" value="4096"/> + <attributes name="occi.compute.state" value="active"/> + <attributes name="occi.compute.state.message" value=""/> + <parts xsi:type="infrastructure:Ssh_key" occiCredentialsSshPublickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ssh_key']"/> + <attributes name="occi.credentials.ssh.publickey" value="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"/> + </parts> + <parts xsi:type="infrastructure:User_data" occiComputeUserdata="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='user_data']"/> + <attributes name="occi.compute.userdata" value="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"/> + </parts> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/swe#//@mixins[term='ubuntu_xenialxerus']"/> + </parts> + <links xsi:type="infrastructure:Storagelink" id="urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b" title="storageLink" location="/storagelink/urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b/" target="//@resources.1"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storagelink']"/> + <attributes name="occi.core.id" value="urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b"/> + <attributes name="occi.core.title" value="storageLink"/> + <attributes name="occi.storagelink.deviceid" value=""/> + <attributes name="occi.storagelink.mountpoint" value=""/> + <attributes name="occi.storagelink.state" value="active"/> + <attributes name="occi.storagelink.state.message" value=""/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + <attributes name="occi.core.target" value="/storage/urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060/"/> + </links> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ag" title="link1" location="/networkinterface/urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ag/" target="//@resources.2" occiNetworkinterfaceInterface="" occiNetworkinterfaceMac="" occiNetworkinterfaceStateMessage=""> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ag"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.networkinterface.address" value="10.0.0.25"/> + <attributes name="occi.networkinterface.gateway" value="10.0.0.254"/> + <attributes name="occi.core.target" value="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.0.0.25" occiNetworkinterfaceGateway="10.0.0.254"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:ea482951-5c26-471d-aa1b-8e03b1e6096c" title="link3" location="/networkinterface/urn:uuid:ea482951-5c26-471d-aa1b-8e03b1e6096c" target="//@resources.10"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:ea482951-5c26-471d-aa1b-8e03b1e6096c"/> + <attributes name="occi.core.title" value="link3"/> + <attributes name="occi.networkinterface.address" value="10.254.1.5"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.254.1.5" occiNetworkinterfaceGateway="10.254.1.254"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896" title="Java1" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/" rlinks="//@resources.5/@links.1 //@resources.6/@links.0" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896"/> + <attributes name="occi.core.title" value="Java1"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.0"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b929" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b929/" target="//@resources.3"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b929"/> + <attributes name="occi.core.title" value="link1"/> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897" title="hMaster" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897/" rlinks="//@resources.6/@links.1" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897"/> + <attributes name="occi.core.title" value="hMaster"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.1"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b928" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b928/" target="//@resources.3"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b928"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.core.source" value="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897/"/> + <attributes name="occi.core.target" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3d" title="depends" location="/componentlink/urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3d" target="//@resources.4"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3d"/> + <attributes name="occi.core.title" value="depends"/> + </links> + </resources> + <resources xsi:type="platform:Application" id="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" title="hadoopcluster" location="/application/urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" rlinks="//@resources.11/@links.1" occiAppName="" occiAppState="deployed"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='application']"/> + <attributes name="occi.core.id" value="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d"/> + <attributes name="occi.core.title" value="hadoopcluster"/> + <links xsi:type="platform:Componentlink" id="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ee" title="ComponentLink" location="/componentlink/urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ee" target="//@resources.4"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ee"/> + <attributes name="occi.core.title" value="ComponentLink"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ef" title="ComponentLink" location="/componentlink/urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ef" target="//@resources.5"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ef"/> + <attributes name="occi.core.title" value="ComponentLink"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:a0df6656-99ed-42a7-a56f-e8fdf7366112" title="link3" location="/componentlink/urn:uuid:a0df6656-99ed-42a7-a56f-e8fdf7366112" target="//@resources.9"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:a0df6656-99ed-42a7-a56f-e8fdf7366112"/> + <attributes name="occi.core.title" value="link3"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:7890f02b-6f56-4809-865f-d8c686fd9da1" title="link4" location="/componentlink/urn:uuid:7890f02b-6f56-4809-865f-d8c686fd9da1" target="//@resources.8"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:7890f02b-6f56-4809-865f-d8c686fd9da1"/> + <attributes name="occi.core.title" value="link4"/> + </links> + </resources> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf" title="hadoop-worker-1" location="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/" rlinks="//@resources.8/@links.0 //@resources.9/@links.0" occiComputeCores="2" occiComputeHostname="vm2" occiComputeMemory="4096.0" occiComputeState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf"/> + <attributes name="occi.core.title" value="hadoop-worker-1"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.compute.architecture" value="x86"/> + <attributes name="occi.compute.cores" value="2"/> + <attributes name="occi.compute.hostname" value="hadoop-worker-1"/> + <attributes name="occi.compute.share" value="0"/> + <attributes name="occi.compute.speed" value="0"/> + <attributes name="occi.compute.memory" value="4096"/> + <attributes name="occi.compute.state" value="active"/> + <attributes name="occi.compute.state.message" value=""/> + <parts xsi:type="infrastructure:Ssh_key" occiCredentialsSshPublickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ssh_key']"/> + <attributes name="occi.credentials.ssh.publickey" value="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"/> + </parts> + <parts xsi:type="infrastructure:User_data" occiComputeUserdata="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='user_data']"/> + <attributes name="occi.compute.userdata" value="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"/> + </parts> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/swe#//@mixins[term='ubuntu_xenialxerus']"/> + </parts> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ah" title="link1" location="/networkinterface/urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ah/" target="//@resources.2" occiNetworkinterfaceInterface="" occiNetworkinterfaceMac="" occiNetworkinterfaceStateMessage=""> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ah"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.networkinterface.interface" value=""/> + <attributes name="occi.networkinterface.mac" value=""/> + <attributes name="occi.networkinterface.state" value="active"/> + <attributes name="occi.networkinterface.state.message" value=""/> + <attributes name="occi.networkinterface.address" value="10.0.0.15"/> + <attributes name="occi.networkinterface.gateway" value="10.0.0.254"/> + <attributes name="occi.networkinterface.allocation" value="dynamic"/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/"/> + <attributes name="occi.core.target" value="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.0.0.15" occiNetworkinterfaceGateway="10.0.0.254"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:c8c49905-3d5e-43b2-8d09-fabf92d29722" title="link2" location="/networkinterface/urn:uuid:c8c49905-3d5e-43b2-8d09-fabf92d29722" target="//@resources.10"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:c8c49905-3d5e-43b2-8d09-fabf92d29722"/> + <attributes name="occi.core.title" value="link2"/> + <attributes name="occi.networkinterface.address" value="10.254.1.8"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.254.1.8" occiNetworkinterfaceGateway="10.254.1.254"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255898" title="Worker" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255898/" rlinks="//@resources.6/@links.3" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255898"/> + <attributes name="occi.core.title" value="Worker"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.2"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b917" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b917/" target="//@resources.7"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b917"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.core.target" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8254896" title="Java2" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8254896/" rlinks="//@resources.6/@links.2" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.title" value="Java2"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8254896"/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.0"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b919" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b919/" target="//@resources.7"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b919"/> + <attributes name="occi.core.title" value="link1"/> + </links> + </resources> + <resources xsi:type="infrastructure:Network" id="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339591" title="hNetwork" location="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339591/" rlinks="//@resources.3/@links.2 //@resources.7/@links.1" occiNetworkState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339591"/> + <attributes name="occi.core.title" value="hNetwork"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="active"/> + <attributes name="occi.network.state.message" value=""/> + <parts> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetwork']"/> + <attributes name="occi.network.address" value="10.254.1.1/24"/> + </parts> + </resources> + <resources xsi:type="workflow:Task" id="urn:uuid:f685a757-c267-4d7f-8ae8-400d20037313" title="wordcountTask" location="/task/urn:uuid:f685a757-c267-4d7f-8ae8-400d20037313" rlinks="//@resources.20/@links.3 //@resources.21/@links.2"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='task']"/> + <attributes name="occi.core.id" value="urn:uuid:f685a757-c267-4d7f-8ae8-400d20037313"/> + <attributes name="occi.core.title" value="wordcountTask"/> + <links xsi:type="workflow:Executionlink" id="urn:uuid:ad69222c-a93f-4da2-91c5-e536fca49649" title="wcExecLink" location="/executionlink/urn:uuid:ad69222c-a93f-4da2-91c5-e536fca49649" target="//@resources.12"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='executionlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ad69222c-a93f-4da2-91c5-e536fca49649"/> + <attributes name="occi.core.title" value="wcExecLink"/> + </links> + <links xsi:type="workflow:Platformdependency" id="urn:uuid:ef46127e-6958-4a69-9952-38693ad1ad04" title="link2" location="/platformdependency/urn:uuid:ef46127e-6958-4a69-9952-38693ad1ad04" target="//@resources.6"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='platformdependency']"/> + <attributes name="occi.core.id" value="urn:uuid:ef46127e-6958-4a69-9952-38693ad1ad04"/> + <attributes name="occi.core.title" value="link2"/> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:c07ac076-1a58-46ed-a955-52220ab7ac4c" title="wordcount" location="/component/urn:uuid:c07ac076-1a58-46ed-a955-52220ab7ac4c" rlinks="//@resources.11/@links.0"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:c07ac076-1a58-46ed-a955-52220ab7ac4c"/> + <attributes name="occi.core.title" value="wordcount"/> + <parts mixin="//@mixins.3"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ed34060c-5c25-4ed2-9ef5-2bd53eb7172e" title="wcPlacementLink" location="/placementlink/urn:uuid:ed34060c-5c25-4ed2-9ef5-2bd53eb7172e" target="//@resources.3"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ed34060c-5c25-4ed2-9ef5-2bd53eb7172e"/> + <attributes name="occi.core.title" value="wcPlacementLink"/> + </links> + </resources> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:dba71fb8-b9b6-40c1-b2c9-f0d2d98f71c8" title="coarseVM" location="/compute/urn:uuid:dba71fb8-b9b6-40c1-b2c9-f0d2d98f71c8" rlinks="//@resources.16/@links.0 //@resources.18/@links.0" occiComputeState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:dba71fb8-b9b6-40c1-b2c9-f0d2d98f71c8"/> + <attributes name="occi.core.title" value="coarseVM"/> + <attributes name="occi.compute.hostname" value="coarseVM"/> + <attributes name="occi.compute.state" value="active"/> + <parts xsi:type="infrastructure:Ssh_key" occiCredentialsSshPublickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ssh_key']"/> + <attributes name="occi.credentials.ssh.publickey" value="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"/> + </parts> + <parts xsi:type="infrastructure:User_data" occiComputeUserdata="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='user_data']"/> + <attributes name="occi.compute.userdata" value="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"/> + </parts> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/swe#//@mixins[term='ubuntu_xenialxerus']"/> + </parts> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:8fb01635-9b4a-4245-81f7-4a42ab536c59" title="link1" location="/networkinterface/urn:uuid:8fb01635-9b4a-4245-81f7-4a42ab536c59" target="//@resources.15"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:8fb01635-9b4a-4245-81f7-4a42ab536c59"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.networkinterface.address" value="11.0.0.25"/> + <attributes name="occi.networkinterface.gateway" value="11.0.0.254"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="11.0.0.25" occiNetworkinterfaceGateway="11.0.0.254"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:5f2b1067-eeb0-4a10-824e-4db6a734c35d" title="link2" location="/networkinterface/urn:uuid:5f2b1067-eeb0-4a10-824e-4db6a734c35d" target="//@resources.2"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:5f2b1067-eeb0-4a10-824e-4db6a734c35d"/> + <attributes name="occi.core.title" value="link2"/> + <attributes name="occi.networkinterface.address" value="10.0.0.15"/> + <attributes name="occi.networkinterface.gateway" value="10.0.0.254"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.0.0.15" occiNetworkinterfaceGateway="10.0.0.254"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + </resources> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:d51f6053-0d70-4265-b7f4-7b9a00547c79" title="fineVM" location="/compute/urn:uuid:d51f6053-0d70-4265-b7f4-7b9a00547c79" rlinks="//@resources.17/@links.0 //@resources.19/@links.0" occiComputeState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:d51f6053-0d70-4265-b7f4-7b9a00547c79"/> + <attributes name="occi.core.title" value="fineVM"/> + <attributes name="occi.compute.hostname" value="fineVM"/> + <attributes name="occi.compute.state" value="active"/> + <parts xsi:type="infrastructure:Ssh_key" occiCredentialsSshPublickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ssh_key']"/> + <attributes name="occi.credentials.ssh.publickey" value="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"/> + </parts> + <parts xsi:type="infrastructure:User_data" occiComputeUserdata="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='user_data']"/> + <attributes name="occi.compute.userdata" value="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"/> + </parts> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/swe#//@mixins[term='ubuntu_xenialxerus']"/> + </parts> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:a9640c46-4992-48a6-a8ec-7e850c1b6141" title="link1" location="/networkinterface/urn:uuid:a9640c46-4992-48a6-a8ec-7e850c1b6141" target="//@resources.15"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:a9640c46-4992-48a6-a8ec-7e850c1b6141"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.networkinterface.address" value="11.0.0.15"/> + <attributes name="occi.networkinterface.gateway" value="11.0.0.254"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="11.0.0.15" occiNetworkinterfaceGateway="11.0.0.254"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:d9cbd653-709e-4a7e-a7d8-24483025d608" title="link2" location="/networkinterface/urn:uuid:d9cbd653-709e-4a7e-a7d8-24483025d608" target="//@resources.2"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:d9cbd653-709e-4a7e-a7d8-24483025d608"/> + <attributes name="occi.core.title" value="link2"/> + <attributes name="occi.networkinterface.address" value="10.0.0.15"/> + <attributes name="occi.networkinterface.gateway" value="10.0.0.254"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.0.0.15" occiNetworkinterfaceGateway="10.0.0.254"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + </resources> + <resources xsi:type="infrastructure:Network" id="urn:uuid:92a16ed7-b1b2-4158-bafb-619aeefea40f" title="MLSnetwork" location="/network/urn:uuid:92a16ed7-b1b2-4158-bafb-619aeefea40f" rlinks="//@resources.13/@links.0 //@resources.14/@links.0" occiNetworkState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:92a16ed7-b1b2-4158-bafb-619aeefea40f"/> + <attributes name="occi.core.title" value="MLSnetwork"/> + <attributes name="occi.network.state" value="active"/> + <parts> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetwork']"/> + <attributes name="occi.network.address" value="11.0.0.1/24"/> + </parts> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1b8355896" title="Java3" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1b8355896" rlinks="//@resources.22/@links.0" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1b8355896"/> + <attributes name="occi.core.title" value="Java3"/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.0"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:30869bc3-a6c3-421c-8cee-1cc58f0993cf" title="link1" location="/placementlink/urn:uuid:30869bc3-a6c3-421c-8cee-1cc58f0993cf" target="//@resources.13"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:30869bc3-a6c3-421c-8cee-1cc58f0993cf"/> + <attributes name="occi.core.title" value="link1"/> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8355896" title="Java4" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8355896" rlinks="//@resources.22/@links.1" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8355896"/> + <attributes name="occi.core.title" value="Java4"/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.0"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:c105821b-4268-42e2-9cfc-5ffa3da2bc9b" title="link1" location="/placementlink/urn:uuid:c105821b-4268-42e2-9cfc-5ffa3da2bc9b" target="//@resources.14"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:c105821b-4268-42e2-9cfc-5ffa3da2bc9b"/> + <attributes name="occi.core.title" value="link1"/> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8256997" title="Coarse" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8256997/" rlinks="//@resources.20/@links.1" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8256997"/> + <attributes name="occi.core.title" value="Coarse"/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.4"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:a75fdb70-8f02-4522-bf74-8ac078ec192f" title="link3" location="/placementlink/urn:uuid:a75fdb70-8f02-4522-bf74-8ac078ec192f" target="//@resources.13"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:a75fdb70-8f02-4522-bf74-8ac078ec192f"/> + <attributes name="occi.core.title" value="link3"/> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-9086-d9f1a8255898" title="Fine" location="/component/urn:uuid:f934d445-d0c8-4f2f-9086-d9f1a8255898/" rlinks="//@resources.21/@links.0" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-9086-d9f1a8255898"/> + <attributes name="occi.core.title" value="Fine"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.5"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:7f38e74d-2b57-4ff2-8b5c-d5c159925526" title="link2" location="/placementlink/urn:uuid:7f38e74d-2b57-4ff2-8b5c-d5c159925526" target="//@resources.14"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:7f38e74d-2b57-4ff2-8b5c-d5c159925526"/> + <attributes name="occi.core.title" value="link2"/> + </links> + </resources> + <resources xsi:type="workflow:Task" id="urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a" title="CoarseTask" location="/task/urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='task']"/> + <attributes name="occi.core.id" value="urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a"/> + <attributes name="occi.core.title" value="CoarseTask"/> + <links xsi:type="workflow:Controlflowlink" id="urn:uuid:49372ea2-03ff-4d19-8c49-f01757704fb4" title="loosecflow" location="/controlflowlink/urn:uuid:49372ea2-03ff-4d19-8c49-f01757704fb4" target="//@resources.21" taskDependencyIsloose="true"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='controlflowlink']"/> + <attributes name="occi.core.id" value="urn:uuid:49372ea2-03ff-4d19-8c49-f01757704fb4"/> + <attributes name="occi.core.title" value="loosecflow"/> + <attributes name="task.dependency.isloose" value="true"/> + </links> + <links xsi:type="workflow:Executionlink" id="urn:uuid:11d8d6d0-b853-4f53-8fa7-f7ac1deb1718" title="link2" location="/executionlink/urn:uuid:11d8d6d0-b853-4f53-8fa7-f7ac1deb1718" target="//@resources.18"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='executionlink']"/> + <attributes name="occi.core.id" value="urn:uuid:11d8d6d0-b853-4f53-8fa7-f7ac1deb1718"/> + <attributes name="occi.core.title" value="link2"/> + </links> + <links xsi:type="workflow:Platformdependency" id="urn:uuid:5e019b8a-847f-4de9-a003-39e9423e5465" title="link3" location="/platformdependency/urn:uuid:5e019b8a-847f-4de9-a003-39e9423e5465" target="//@resources.22"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='platformdependency']"/> + <attributes name="occi.core.id" value="urn:uuid:5e019b8a-847f-4de9-a003-39e9423e5465"/> + <attributes name="occi.core.title" value="link3"/> + </links> + <links xsi:type="workflow:Datalink" id="urn:uuid:357254f9-8c26-4445-a39d-748f48d35b25" title="link4" location="/datalink/urn:uuid:357254f9-8c26-4445-a39d-748f48d35b25" target="//@resources.11" taskDependencyIsloose="false"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='datalink']"/> + <attributes name="occi.core.id" value="urn:uuid:357254f9-8c26-4445-a39d-748f48d35b25"/> + <attributes name="occi.core.title" value="link4"/> + <parts> + <mixin href="http://schemas.ugoe.cs.rwm/workflow#//@mixins[term='networkcanal']"/> + <attributes name="task.datalink.network" value="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590"/> + </parts> + </links> + </resources> + <resources xsi:type="workflow:Task" id="urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635b" title="FineTask" location="/task/urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635b" rlinks="//@resources.20/@links.0"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='task']"/> + <attributes name="occi.core.id" value="urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635b"/> + <attributes name="occi.core.title" value="FineTask"/> + <links xsi:type="workflow:Executionlink" id="urn:uuid:dcf2123e-4948-4f51-978a-10970b90a5e0" title="link1" location="/executionlink/urn:uuid:dcf2123e-4948-4f51-978a-10970b90a5e0" target="//@resources.19"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='executionlink']"/> + <attributes name="occi.core.id" value="urn:uuid:dcf2123e-4948-4f51-978a-10970b90a5e0"/> + <attributes name="occi.core.title" value="link1"/> + </links> + <links xsi:type="workflow:Platformdependency" id="urn:uuid:de8915a8-95b2-49e4-b973-58234160ea65" title="link2" location="/platformdependency/urn:uuid:de8915a8-95b2-49e4-b973-58234160ea65" target="//@resources.22"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='platformdependency']"/> + <attributes name="occi.core.id" value="urn:uuid:de8915a8-95b2-49e4-b973-58234160ea65"/> + <attributes name="occi.core.title" value="link2"/> + </links> + <links xsi:type="workflow:Controlflowlink" id="urn:uuid:1ae1aeac-49fe-413c-ab3e-ff7446a2b719" title="link3" location="/controlflowlink/urn:uuid:1ae1aeac-49fe-413c-ab3e-ff7446a2b719" target="//@resources.11" taskDependencyIsloose="false"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='controlflowlink']"/> + <attributes name="occi.core.id" value="urn:uuid:1ae1aeac-49fe-413c-ab3e-ff7446a2b719"/> + <attributes name="occi.core.title" value="link3"/> + </links> + </resources> + <resources xsi:type="platform:Application" id="urn:uuid:74a4bd0a-e41b-4859-bdf5-ec2e31b7f92c" title="resource23" location="/application/urn:uuid:74a4bd0a-e41b-4859-bdf5-ec2e31b7f92c" rlinks="//@resources.20/@links.2 //@resources.21/@links.1"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='application']"/> + <attributes name="occi.core.id" value="urn:uuid:74a4bd0a-e41b-4859-bdf5-ec2e31b7f92c"/> + <attributes name="occi.core.title" value="resource23"/> + <links xsi:type="platform:Componentlink" id="urn:uuid:f52b2029-2de1-4d45-a846-411db4efa571" title="link1" location="/componentlink/urn:uuid:f52b2029-2de1-4d45-a846-411db4efa571" target="//@resources.16"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:f52b2029-2de1-4d45-a846-411db4efa571"/> + <attributes name="occi.core.title" value="link1"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:a2c441ea-6624-4421-b662-e2466023a164" title="link2" location="/componentlink/urn:uuid:a2c441ea-6624-4421-b662-e2466023a164" target="//@resources.17"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:a2c441ea-6624-4421-b662-e2466023a164"/> + <attributes name="occi.core.title" value="link2"/> + </links> + </resources> + <mixins name="java" scheme="http://schemas.modmacao.org/usermixins#" title="Java"/> + <mixins name="hMaster" scheme="http://schemas.modmacao.org/usermixins#" title="hMaster"/> + <mixins name="hWorker" scheme="http://schemas.modmacao.org/usermixins#" title="hWorker"/> + <mixins name="wordcount" scheme="http://schemas.modmacao.org/usermixins#" title="wordcount"/> + <mixins name="coarse2" scheme="http://schemas.modmacao.org/usermixins#" title="Coarse2"/> + <mixins name="fine2" scheme="http://schemas.modmacao.org/usermixins#" title="Fine2"/> +</occi:Configuration> diff --git a/src/test/resources/occi/MongoDB-Cluster.occic b/src/test/resources/occi/MongoDB-Cluster.occic new file mode 100755 index 0000000000000000000000000000000000000000..0a61febc63907d6cc8d6e5717d31e6c04280d115 --- /dev/null +++ b/src/test/resources/occi/MongoDB-Cluster.occic @@ -0,0 +1,292 @@ +<?xml version="1.0" encoding="ASCII"?> +<occi:Configuration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:occi="http://schemas.ogf.org/occi/core/ecore"> + <use href="http://schemas.modmacao.org/placement#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure#/"/> + <use href="http://schemas.modmacao.org/occi/platform#/"/> + <use href="./mongodb.occie#/"/> + <resources id="urn:uuid:ed0973fb-f6f2-4f76-84b1-2dccfbb0abf7" title="mongodb-cluster" summary="MongoDB Cluster"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='application']"/> + <attributes name="occi.core.id" value="urn:uuid:ed0973fb-f6f2-4f76-84b1-2dccfbb0abf7"/> + <attributes name="occi.core.title" value="mongodb-cluster"/> + <attributes name="occi.core.summary" value="MongoDB Cluster"/> + <attributes name="occi.app.name" value="My Cluster"/> + <attributes name="occi.app.url" value="mongodb.com"/> + <parts> + <mixin href="./mongodb.occie#//@mixins[term='cluster']"/> + </parts> + <links id="urn:uuid:700cc548-7091-45a2-8976-7ecc2f5c4d05" title="" target="//@resources.1"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:700cc548-7091-45a2-8976-7ecc2f5c4d05"/> + <attributes name="occi.core.title" value=""/> + </links> + <links id="urn:uuid:652e6b10-d0c5-4f17-ab5d-33132670f336" title="" target="//@resources.4"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:652e6b10-d0c5-4f17-ab5d-33132670f336"/> + <attributes name="occi.core.title" value=""/> + </links> + <links id="urn:uuid:530b9cfe-36c3-4352-8e94-3bb545263195" title="" target="//@resources.3"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:530b9cfe-36c3-4352-8e94-3bb545263195"/> + <attributes name="occi.core.title" value=""/> + </links> + <links id="urn:uuid:81382124-af2e-499b-aa7d-309595e2bb1b" title="" target="//@resources.2"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:81382124-af2e-499b-aa7d-309595e2bb1b"/> + <attributes name="occi.core.title" value=""/> + </links> + <links id="urn:uuid:6c5450f2-f504-4609-a834-dbb78d6ecae8" title="" target="//@resources.6"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:6c5450f2-f504-4609-a834-dbb78d6ecae8"/> + <attributes name="occi.core.title" value=""/> + </links> + </resources> + <resources id="urn:uuid:b6fc880a-0571-46ba-86db-a206c0d13675" title="router" summary="MongoDB cluster router" rlinks="//@resources.0/@links.0"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:b6fc880a-0571-46ba-86db-a206c0d13675"/> + <attributes name="occi.core.title" value="router"/> + <attributes name="occi.core.summary" value="MongoDB cluster router"/> + <parts> + <mixin href="./mongodb.occie#//@mixins[term='router']"/> + <attributes name="mongodb.replication.set.name" value="router"/> + <attributes name="modmacao.component.version" value=""/> + <attributes name="mongodb.port" value=""/> + <attributes name="mongodb.bindip" value=""/> + </parts> + <links id="urn:uuid:82d8693c-fdd9-45ef-b9d5-22c786a9a2b0" title="" target="//@resources.5"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:82d8693c-fdd9-45ef-b9d5-22c786a9a2b0"/> + <attributes name="occi.core.title" value=""/> + </links> + <links id="urn:uuid:4b9a6567-7cc8-4643-98a6-533068062b55" title="" target="//@resources.6"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:4b9a6567-7cc8-4643-98a6-533068062b55"/> + <attributes name="occi.core.title" value=""/> + <parts> + <mixin href="occi/mongodb.occie#//@mixins[term='configserverdependency']"/> + </parts> + </links> + </resources> + <resources id="urn:uuid:b6fc880a-0571-46ba-86db-a206c0d13678" title="shard3" summary="3rd MongoDB cluster shard" rlinks="//@resources.0/@links.3"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:b6fc880a-0571-46ba-86db-a206c0d13678"/> + <attributes name="occi.core.title" value="shard3"/> + <attributes name="occi.core.summary" value="3rd MongoDB cluster shard"/> + <parts> + <mixin href="./mongodb.occie#//@mixins[term='shard']"/> + <attributes name="mongodb.replication.set.name" value="shard3"/> + </parts> + <links id="urn:uuid:f170b1e6-1962-4946-8f86-d9f0a0ae15cb" title="" target="//@resources.9"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:f170b1e6-1962-4946-8f86-d9f0a0ae15cb"/> + <attributes name="occi.core.title" value=""/> + </links> + <links id="urn:uuid:014801d3-adff-460d-ba77-47e9c1e45aca" title="" target="//@resources.6"> + <kind href="http://schemas.ogf.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:014801d3-adff-460d-ba77-47e9c1e45aca"/> + <attributes name="occi.core.title" value=""/> + <parts> + <mixin href="./mongodb.occie#//@mixins[term='configserverdependency']"/> + </parts> + </links> + </resources> + <resources id="urn:uuid:b6fc880a-0571-46ba-86db-a206c0d13677" title="shard2" summary="2nd MongoDB cluster shard" rlinks="//@resources.0/@links.2"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:b6fc880a-0571-46ba-86db-a206c0d13677"/> + <attributes name="occi.core.title" value="shard2"/> + <attributes name="occi.core.summary" value="2nd MongoDB cluster shard"/> + <parts> + <mixin href="./mongodb.occie#//@mixins[term='shard']"/> + <attributes name="mongodb.replication.set.name" value="shard2"/> + </parts> + <links id="urn:uuid:dd97e5f2-7f97-4037-b668-cfc2d856eee1" title="" target="//@resources.8"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:dd97e5f2-7f97-4037-b668-cfc2d856eee1"/> + <attributes name="occi.core.title" value=""/> + </links> + <links id="urn:uuid:4ac35332-79f5-4363-969e-65e0462ea8eb" title="" target="//@resources.6"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:4ac35332-79f5-4363-969e-65e0462ea8eb"/> + <attributes name="occi.core.title" value=""/> + <parts> + <mixin href="./mongodb.occie#//@mixins[term='configserverdependency']"/> + </parts> + </links> + </resources> + <resources id="urn:uuid:b6fc880a-0571-46ba-86db-a206c0d13676" title="shard1" summary="1st MongoDB shard" rlinks="//@resources.0/@links.1"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:b6fc880a-0571-46ba-86db-a206c0d13676"/> + <attributes name="occi.core.title" value="shard1"/> + <attributes name="occi.core.summary" value="1st MongoDB shard"/> + <attributes name="occi.component.state" value=""/> + <attributes name="occi.component.state.message" value=""/> + <parts> + <mixin href="./mongodb.occie#//@mixins[term='shard']"/> + <attributes name="modmacao.component.version" value=""/> + <attributes name="mongodb.port" value=""/> + <attributes name="mongodb.bindip" value=""/> + <attributes name="mongodb.replication.set.name" value="shard1"/> + </parts> + <links id="urn:uuid:c423c383-2adf-49df-8c3e-725e564c1b4e" title="" target="//@resources.7"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:c423c383-2adf-49df-8c3e-725e564c1b4e"/> + <attributes name="occi.core.title" value=""/> + </links> + <links id="urn:uuid:ec281cd1-1657-43f8-b897-4228209b7461" title="" target="//@resources.6"> + <kind href="http://schemas.ogf.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ec281cd1-1657-43f8-b897-4228209b7461"/> + <attributes name="occi.core.title" value=""/> + <parts> + <mixin href="./mongodb.occie#//@mixins[term='configserverdependency']"/> + </parts> + </links> + </resources> + <resources id="urn:uuid:330dd44c-5af0-4ec0-a862-173774cd2592" title="vm1" rlinks="//@resources.1/@links.0"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:330dd44c-5af0-4ec0-a862-173774cd2592"/> + <attributes name="occi.core.title" value="vm1"/> + <attributes name="occi.core.summary" value="1st virtual machine"/> + <attributes name="occi.compute.architecture" value="x64"/> + <attributes name="occi.compute.cores" value="1"/> + <attributes name="occi.compute.hostname" value="host1"/> + <attributes name="occi.compute.speed" value="1"/> + <attributes name="occi.compute.memory" value="1"/> + <links id="urn:uuid:67170832-5522-4d69-a8b9-a00d3b55eb79" title="" target="//@resources.11"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:67170832-5522-4d69-a8b9-a00d3b55eb79"/> + <attributes name="occi.core.title" value=""/> + <attributes name="occi.networkinterface.interface" value="eth0"/> + <attributes name="occi.networkinterface.mac" value="aa:bb:cc:dd:ee:11"/> + <parts> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + <attributes name="occi.networkinterface.address" value="10.1.0.101/16"/> + <attributes name="occi.networkinterface.gateway" value="10.1.255.254"/> + <attributes name="occi.networkinterface.allocation" value="static"/> + </parts> + </links> + </resources> + <resources id="urn:uuid:b6fc880a-0571-46ba-86db-a206c0d13679" title="configserver" rlinks="//@resources.0/@links.4 //@resources.1/@links.1 //@resources.4/@links.1 //@resources.3/@links.1 //@resources.2/@links.1"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:b6fc880a-0571-46ba-86db-a206c0d13679"/> + <attributes name="occi.core.title" value="configserver"/> + <attributes name="occi.core.summary" value="MongoDB config server"/> + <parts> + <mixin href="./mongodb.occie#//@mixins[term='configserver']"/> + <attributes name="mongodb.replication.set.name" value="config"/> + </parts> + <links id="urn:uuid:e5cf79ab-9763-4ebb-b047-448574e33dc4" title="" target="//@resources.10"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:e5cf79ab-9763-4ebb-b047-448574e33dc4"/> + <attributes name="occi.core.title" value=""/> + </links> + </resources> + <resources id="urn:uuid:330dd44c-5af0-4ec0-a862-173774cd2593" title="vm2" summary="2nd virtual machine" rlinks="//@resources.4/@links.0"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.title" value="vm2"/> + <attributes name="occi.core.id" value="urn:uuid:330dd44c-5af0-4ec0-a862-173774cd2593"/> + <attributes name="occi.core.summary" value="2nd virtual machine"/> + <attributes name="occi.compute.architecture" value="x64"/> + <attributes name="occi.compute.cores" value="1"/> + <attributes name="occi.compute.hostname" value="host2"/> + <attributes name="occi.compute.speed" value="1"/> + <attributes name="occi.compute.memory" value="1"/> + <links id="urn:uuid:19c5d3c9-b074-4838-b9a0-f4bcf5c2e70d" title="" target="//@resources.11"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:19c5d3c9-b074-4838-b9a0-f4bcf5c2e70d"/> + <attributes name="occi.core.title" value=""/> + <attributes name="occi.networkinterface.interface" value="eth0"/> + <attributes name="occi.networkinterface.mac" value="aa:bb:cc:dd:ee:12"/> + <parts> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + <attributes name="occi.networkinterface.address" value="10.1.0.102/16"/> + <attributes name="occi.networkinterface.gateway" value="10.1.255.254"/> + <attributes name="occi.networkinterface.allocation" value="static"/> + </parts> + </links> + </resources> + <resources id="urn:uuid:24706888-533b-460c-9177-daafcf44d6e6" title="vm3" rlinks="//@resources.3/@links.0"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:24706888-533b-460c-9177-daafcf44d6e6"/> + <attributes name="occi.core.title" value="vm3"/> + <attributes name="occi.core.summary" value="3rd virtual machine"/> + <attributes name="occi.compute.architecture" value="x64"/> + <attributes name="occi.compute.cores" value="1"/> + <attributes name="occi.compute.hostname" value="host3"/> + <attributes name="occi.compute.speed" value="1"/> + <attributes name="occi.compute.memory" value="1"/> + <links id="urn:uuid:279bf06f-ec8d-483e-a85d-9a9dc9f4ef1e" title="" target="//@resources.11"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:279bf06f-ec8d-483e-a85d-9a9dc9f4ef1e"/> + <attributes name="occi.core.title" value=""/> + <attributes name="occi.networkinterface.interface" value="eth0"/> + <attributes name="occi.networkinterface.mac" value="aa:bb:cc:dd:ee:13"/> + <parts> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + <attributes name="occi.networkinterface.address" value="10.1.0.103/16"/> + <attributes name="occi.networkinterface.gateway" value="10.1.255.254"/> + <attributes name="occi.networkinterface.allocation" value="static"/> + </parts> + </links> + </resources> + <resources id="urn:uuid:e991175d-d19c-4fb6-a9dc-4106312b32b2" title="vm4" summary="4th virtual machine" rlinks="//@resources.2/@links.0"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:e991175d-d19c-4fb6-a9dc-4106312b32b2"/> + <attributes name="occi.core.title" value="vm4"/> + <attributes name="occi.core.summary" value="4th virtual machine"/> + <attributes name="occi.compute.architecture" value="x64"/> + <attributes name="occi.compute.cores" value="1"/> + <attributes name="occi.compute.hostname" value="host4"/> + <attributes name="occi.compute.speed" value="1"/> + <attributes name="occi.compute.memory" value="1"/> + <links id="urn:uuid:21290b2a-0857-4ae1-8423-4e384bf349d1" title="" target="//@resources.11"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:21290b2a-0857-4ae1-8423-4e384bf349d1"/> + <attributes name="occi.core.title" value=""/> + <attributes name="occi.networkinterface.interface" value="eth0"/> + <attributes name="occi.networkinterface.mac" value="aa:bb:cc:dd:ee:14"/> + <parts> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + <attributes name="occi.networkinterface.address" value="10.1.0.104/16"/> + <attributes name="occi.networkinterface.gateway" value="10.1.255.254"/> + <attributes name="occi.networkinterface.allocation" value="static"/> + </parts> + </links> + </resources> + <resources id="urn:uuid:29713f47-76b0-464b-9c0f-a02c4197b9e2" title="vm5" rlinks="//@resources.6/@links.0"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:29713f47-76b0-464b-9c0f-a02c4197b9e2"/> + <attributes name="occi.core.title" value="vm5"/> + <attributes name="occi.core.summary" value="5th virtual machine"/> + <attributes name="occi.compute.architecture" value="x64"/> + <attributes name="occi.compute.cores" value="1"/> + <attributes name="occi.compute.hostname" value="host5"/> + <attributes name="occi.compute.speed" value="1"/> + <attributes name="occi.compute.memory" value="1"/> + <links id="urn:uuid:1191d134-534c-4068-955d-62328389b580" title="" target="//@resources.11"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:1191d134-534c-4068-955d-62328389b580"/> + <attributes name="occi.core.title" value=""/> + <attributes name="occi.networkinterface.interface" value="eth0"/> + <attributes name="occi.networkinterface.mac" value="aa:bb:cc:dd:ee:14"/> + <parts> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + <attributes name="occi.networkinterface.address" value="10.1.0.105/16"/> + <attributes name="occi.networkinterface.gateway" value="10.1.255.254"/> + <attributes name="occi.networkinterface.allocation" value="static"/> + </parts> + </links> + </resources> + <resources id="urn:uuid:2d566092-7adc-4c11-acd5-eac9be9b131c" title="" summary="A private network" rlinks="//@resources.5/@links.0 //@resources.7/@links.0 //@resources.8/@links.0 //@resources.9/@links.0 //@resources.10/@links.0"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:2d566092-7adc-4c11-acd5-eac9be9b131c"/> + <attributes name="occi.core.title" value=""/> + <attributes name="occi.core.summary" value="A private network"/> + <attributes name="occi.network.vlan" value="12"/> + <attributes name="occi.network.label" value="private"/> + <parts> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetwork']"/> + <attributes name="occi.network.address" value="10.1.0.0/16"/> + <attributes name="occi.network.gateway" value="10.1.255.254"/> + <attributes name="occi.network.allocation" value="static"/> + </parts> + </resources> +</occi:Configuration> \ No newline at end of file diff --git a/src/test/resources/occi/Networks.occic b/src/test/resources/occi/Networks.occic new file mode 100644 index 0000000000000000000000000000000000000000..85910877311c08abb4e63d4f54f31f001f1d0eb1 --- /dev/null +++ b/src/test/resources/occi/Networks.occic @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="ASCII"?> +<occi:Configuration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:infrastructure="http://schemas.ogf.org/occi/infrastructure/ecore" xmlns:occi="http://schemas.ogf.org/occi/core/ecore"> + <use href="http://schemas.ogf.org/occi/core#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure#/"/> + <use href="http://schemas.modmacao.org/occi/platform#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure/compute/template/1.1#/"/> + <use href="http://schemas.modmacao.org/placement#/"/> + <use href="http://schemas.modmacao.org/openstack/runtime#/"/> + <use href="http://schemas.modmacao.org/modmacao#/"/> + <use href="http://schemas.modmacao.org/openstack/swe#/"/> + <use href="http://schemas.ugoe.cs.rwm/workflow#/"/> + <resources xsi:type="infrastructure:Network" id="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6" title="provider" location="/network/urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6/"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + <attributes name="occi.core.title" value="provider"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="inactive"/> + <attributes name="occi.network.state.message" value=""/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/runtime#//@mixins[term='runtimeid']"/> + <attributes name="openstack.runtime.id" value="d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + </parts> + </resources> + <resources xsi:type="infrastructure:Network" id="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590" title="management" location="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/" occiNetworkStateMessage=""> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590"/> + <attributes name="occi.core.title" value="management"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="active"/> + <attributes name="occi.network.state.message" value=""/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/runtime#//@mixins[term='runtimeid']"/> + <attributes name="openstack.runtime.id" value="75a4639e-9ce7-4058-b859-8a711b0e2e7b"/> + </parts> + </resources> +</occi:Configuration> diff --git a/src/test/resources/occi/PaaS.occic b/src/test/resources/occi/PaaS.occic new file mode 100644 index 0000000000000000000000000000000000000000..dff87835ba0872bae43dd1819ce9d7abf19f9240 --- /dev/null +++ b/src/test/resources/occi/PaaS.occic @@ -0,0 +1,113 @@ +<?xml version="1.0" encoding="ASCII"?> +<occi:Configuration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:infrastructure="http://schemas.ogf.org/occi/infrastructure/ecore" xmlns:occi="http://schemas.ogf.org/occi/core/ecore" xmlns:placement="http://schemas.modmacao.org/placement/ecore" xmlns:platform="http://schemas.modmacao.org/occi/platform/ecore"> + <use href="http://schemas.ogf.org/occi/core#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure#/"/> + <use href="http://schemas.modmacao.org/occi/platform#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure/compute/template/1.1#/"/> + <use href="http://schemas.modmacao.org/placement#/"/> + <use href="http://schemas.modmacao.org/openstack/runtime#/"/> + <use href="http://schemas.modmacao.org/modmacao#/"/> + <use href="http://schemas.modmacao.org/openstack/swe#/"/> + <resources xsi:type="infrastructure:Network" id="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6" title="provider" location="/network/urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6/" occiNetworkState="inactive"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + <attributes name="occi.core.title" value="provider"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="inactive"/> + <attributes name="occi.network.state.message" value=""/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/runtime#//@mixins[term='runtimeid']"/> + <attributes name="openstack.runtime.id" value="d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + </parts> + </resources> + <resources xsi:type="infrastructure:Storage" id="urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060" title="storage" location="/storage/urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060/" rlinks="//@resources.3/@links.0" occiStorageSize="100.0"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storage']"/> + <attributes name="occi.core.id" value="urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060"/> + <attributes name="occi.core.title" value="storage"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.storage.size" value="100"/> + <attributes name="occi.storage.state" value="online"/> + <attributes name="occi.storage.state.message" value=""/> + </resources> + <resources xsi:type="infrastructure:Network" id="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590" title="sampleNet" location="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/" rlinks="//@resources.3/@links.1" occiNetworkState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590"/> + <attributes name="occi.core.title" value="sampleNet"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="active"/> + <attributes name="occi.network.state.message" value=""/> + <parts xsi:type="infrastructure:Ipnetwork" occiNetworkAddress="10.0.0.0/24"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetwork']"/> + <attributes name="occi.network.address" value="10.0.0.0/24"/> + <attributes name="occi.network.gateway" value=""/> + <attributes name="occi.network.allocation" value="dynamic"/> + </parts> + </resources> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce" title="vm2" location="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/" rlinks="//@resources.4/@links.0" occiComputeCores="2" occiComputeHostname="vm2" occiComputeMemory="4096.0" occiComputeState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce"/> + <attributes name="occi.core.title" value="vm2"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.compute.architecture" value="x86"/> + <attributes name="occi.compute.cores" value="2"/> + <attributes name="occi.compute.hostname" value="vm2"/> + <attributes name="occi.compute.share" value="0"/> + <attributes name="occi.compute.speed" value="0"/> + <attributes name="occi.compute.memory" value="4096"/> + <attributes name="occi.compute.state" value="active"/> + <attributes name="occi.compute.state.message" value=""/> + <parts xsi:type="infrastructure:Ssh_key" occiCredentialsSshPublickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ssh_key']"/> + <attributes name="occi.credentials.ssh.publickey" value="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"/> + </parts> + <links xsi:type="infrastructure:Storagelink" id="urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b" title="storageLink" location="/storagelink/urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b/" target="//@resources.1"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storagelink']"/> + <attributes name="occi.core.id" value="urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b"/> + <attributes name="occi.core.title" value="storageLink"/> + <attributes name="occi.storagelink.deviceid" value=""/> + <attributes name="occi.storagelink.mountpoint" value=""/> + <attributes name="occi.storagelink.state" value="active"/> + <attributes name="occi.storagelink.state.message" value=""/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + <attributes name="occi.core.target" value="/storage/urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060/"/> + </links> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8af" title="link1" location="/networkinterface/urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8af/" target="//@resources.2" occiNetworkinterfaceInterface="" occiNetworkinterfaceMac="" occiNetworkinterfaceStateMessage=""> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8af"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.networkinterface.interface" value=""/> + <attributes name="occi.networkinterface.mac" value=""/> + <attributes name="occi.networkinterface.state" value="active"/> + <attributes name="occi.networkinterface.state.message" value=""/> + <attributes name="occi.networkinterface.address" value="10.0.0.35"/> + <attributes name="occi.networkinterface.gateway" value="10.0.0.1"/> + <attributes name="occi.networkinterface.allocation" value="dynamic"/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + <attributes name="occi.core.target" value="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.0.0.35" occiNetworkinterfaceGateway="10.0.0.1"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896" title="Apache" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896"/> + <attributes name="occi.core.title" value="Apache"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.0"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918/" target="//@resources.3"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.core.source" value="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/"/> + <attributes name="occi.core.target" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + </links> + </resources> + <mixins name="apache" scheme="http://schemas.modmacao.org/usermixins#"/> +</occi:Configuration> diff --git a/src/test/resources/occi/SugarCRM-Interop-Definitions-migrated.occic b/src/test/resources/occi/SugarCRM-Interop-Definitions-migrated.occic new file mode 100644 index 0000000000000000000000000000000000000000..c334b3286a138af5762b297a9b5f5ad34a18a1b7 --- /dev/null +++ b/src/test/resources/occi/SugarCRM-Interop-Definitions-migrated.occic @@ -0,0 +1,130 @@ +<?xml version="1.0" encoding="ASCII"?> +<occi:Configuration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:occi="http://schemas.ogf.org/occi/core/ecore"> + <resources id="urn:uuid:95ceca5e-e4b0-4c74-a797-1072a7b88c6e" title="Web Tier" location="" rlinks="//@resources.1/@links.0"> + <kind href="http://schemas.ogf.org/occi/core#//@kinds[term='resource']"/> + <attributes name="occi.core.id" value="urn:uuid:95ceca5e-e4b0-4c74-a797-1072a7b88c6e"/> + <attributes name="occi.core.title" value="Web Tier"/> + </resources> + <resources id="urn:uuid:VMApache" title="VM for Apache" rlinks="//@resources.2/@links.0"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:VMApache"/> + <attributes name="occi.core.title" value="VM for Apache"/> + <attributes name="occi.compute.cores" value="1"/> + <attributes name="occi.compute.memory" value="1024"/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/swe#//@mixins[term='swe_small']"/> + </parts> + <links id="urn:uuid:VmApache_HostedOn_WebTier" title="hosted on" target="//@resources.0"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:VmApache_HostedOn_WebTier"/> + <attributes name="occi.core.title" value="hosted on"/> + </links> + </resources> + <resources id="OsApache" title="OS for Apache" rlinks="//@resources.3/@links.0"> + <kind href="http://schemas.ogf.org/occi/core#//@kinds[term='resource']"/> + <attributes name="occi.core.id" value="OsApache"/> + <attributes name="occi.core.title" value="OS for Apache"/> + <links id="OsApache_HostedOn_VmApache" title="hosted on" target="//@resources.1"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="OsApache_HostedOn_VmApache"/> + <attributes name="occi.core.title" value="hosted on"/> + </links> + </resources> + <resources id="ApacheWebServer" title="Apache Web Server" rlinks="//@resources.4/@links.0 //@resources.5/@links.0"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="ApacheWebServer"/> + <attributes name="occi.core.title" value="Apache Web Server"/> + <attributes name="Httpdport" value="80"/> + <parts> + <mixin href="http://schemas.modmacao.org/ToscaSpecificTypes#//@mixins[term='apachewebserver']"/> + </parts> + <links id="Apache_HostedOn_OsApache" title="hosted on" target="//@resources.2"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + </links> + </resources> + <resources id="PhpModule" title="PHP Module" rlinks="//@resources.5/@links.1"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="PhpModule"/> + <attributes name="occi.core.title" value="PHP Module"/> + <parts> + <mixin href="http://schemas.modmacao.org/ToscaSpecificTypes#//@mixins[term='apachephpmodule']"/> + </parts> + <links id="PhpModule_HostedOn_Apache" title="hosted on" target="//@resources.3"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + </links> + </resources> + <resources id="SugarCrmApp" title="SugarCRM App"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="SugarCrmApp"/> + <attributes name="occi.core.title" value="SugarCRM App"/> + <attributes name="AdminUser" value="crmadmin"/> + <attributes name="AdminPassword" value="crm123"/> + <attributes name="SiteName" value="My CRM"/> + <attributes name="SitePath" value="sugarcrm"/> + <parts> + <mixin href="http://schemas.modmacao.org/modmacao#//@mixins[term='component']"/> + </parts> + <links id="SugarCrmApp_HostedOn_Apache" title="hosted on" target="//@resources.3"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + </links> + <links id="SugarCrmApp_DependsOn_PhpModule" title="depends on" target="//@resources.4"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + </links> + <links id="SugarCrmApp_ConnectsTo_SugarCrmDb" title="connects to" target="//@resources.10"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storagelink']"/> + </links> + </resources> + <resources id="DatabaseTier" title="Database Tier" rlinks="//@resources.7/@links.0"> + <kind href="http://schemas.ogf.org/occi/core#//@kinds[term='resource']"/> + <attributes name="occi.core.id" value="DatabaseTier"/> + <attributes name="occi.core.title" value="Database Tier"/> + </resources> + <resources id="VmMySql" title="VM for MySQL" rlinks="//@resources.8/@links.0"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="VmMySql"/> + <attributes name="occi.core.title" value="VM for MySQL"/> + <attributes name="occi.compute.cores" value="1"/> + <attributes name="occi.compute.memory" value="1024"/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/swe#//@mixins[term='swe_small']"/> + </parts> + <links id="VmMySQL_HostedOn_DatabaseTier" title="hosted on" target="//@resources.6"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + </links> + </resources> + <resources id="OsMySQL" title="OS for MySQL" rlinks="//@resources.9/@links.0"> + <kind href="http://schemas.ogf.org/occi/core#//@kinds[term='resource']"/> + <attributes name="occi.core.id" value="OsMySQL"/> + <attributes name="occi.core.title" value="OS for MySQL"/> + <links id="OsMySQL_HostedOn_VmMySQL" title="hosted on" target="//@resources.7"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + </links> + </resources> + <resources id="MySql" title="MySQL" rlinks="//@resources.10/@links.0"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="MySql"/> + <attributes name="occi.core.title" value="MySQL"/> + <attributes name="RootPassword" value="password"/> + <parts> + <mixin href="http://schemas.modmacao.org/ToscaSpecificTypes#//@mixins[term='mysql']"/> + </parts> + <links id="MySqlHostedOnOsMySQL" title="hosted on" target="//@resources.8"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + </links> + </resources> + <resources id="SugarCrmDb" title="SugarCRM DB" rlinks="//@resources.5/@links.2"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="SugarCrmDb"/> + <attributes name="occi.core.title" value="SugarCRM DB"/> + <attributes name="DBName" value="crmdb"/> + <attributes name="DBUser" value="crmadmin"/> + <attributes name="DBPassword" value="crmadmin"/> + <attributes name="DBPort" value="3306"/> + <parts> + <mixin href="http://schemas.modmacao.org/modmacao#//@mixins[term='component']"/> + </parts> + <links id="SugarCrmDb_HostedOn_MySql" title="hosted on" target="//@resources.9"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + </links> + </resources> +</occi:Configuration> diff --git a/src/test/resources/occi/SugarCRM-Interop-Definitions-migrated2.occic b/src/test/resources/occi/SugarCRM-Interop-Definitions-migrated2.occic new file mode 100644 index 0000000000000000000000000000000000000000..eb8d2976f5164d5c1275ecf5b2e0bbbe07a975cb --- /dev/null +++ b/src/test/resources/occi/SugarCRM-Interop-Definitions-migrated2.occic @@ -0,0 +1,124 @@ +<?xml version="1.0" encoding="ASCII"?> +<occi:Configuration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:occi="http://schemas.ogf.org/occi/core/ecore"> + <resources id="VmApache" title="VM for Apache" rlinks="//@resources.1/@links.0 //@resources.2/@links.0 //@resources.3/@links.0"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="VmApache"/> + <attributes name="occi.core.title" value="VM for Apache"/> + <attributes name="occi.compute.cores" value="1"/> + <attributes name="occi.compute.memory" value="1024"/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/swe#//@mixins[term='ubuntu_xenialxerus']"/> + </parts> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/swe#//@mixins[term='swe_small']"/> + </parts> + </resources> + <resources id="ApacheWebServer" title="Apache Web Server" rlinks="//@resources.2/@links.1 //@resources.3/@links.1"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="ApacheWebServer"/> + <attributes name="occi.core.title" value="Apache Web Server"/> + <attributes name="httpdport" value="80"/> + <parts> + <mixin href="http://schemas.modmacao.org/ToscaSpecificTypes#//@mixins[term='apachewebserver']"/> + </parts> + <links id="ApacheWebServer_placedOn_VmApache" target="//@resources.0"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="ApacheWebServer_placedOn_VmApache"/> + </links> + </resources> + <resources id="PhpModule" title="PHP Module" rlinks="//@resources.3/@links.2"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="PhpModule"/> + <attributes name="occi.core.title" value="PHP Module"/> + <parts> + <mixin href="http://schemas.modmacao.org/ToscaSpecificTypes#//@mixins[term='apachephpmodule']"/> + </parts> + <links id="PhpModule_placedOn_VmApache" target="//@resources.0"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="PhpModule_placedOn_VmApache"/> + </links> + <links id="PhpModule_HostedOn_Apache" title="hosted on" target="//@resources.1"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="PhpModule_HostedOn_Apache"/> + <attributes name="occi.core.title" value="hosted on"/> + </links> + </resources> + <resources id="SugarCrmApp" title="SugarCRM App"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="SugarCrmApp"/> + <attributes name="occi.core.title" value="SugarCRM App"/> + <attributes name="AdminUser" value="crmadmin"/> + <attributes name="AdminPassword" value="crm123"/> + <attributes name="SiteName" value="My CRM"/> + <attributes name="SitePath" value="sugarcrm"/> + <parts> + <mixin href="http://schemas.modmacao.org/SugarCRM#//@mixins[term='sugarcrmapplication']"/> + </parts> + <links id="SugarCrmApp_placedOn_VmApache" target="//@resources.0"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="SugarCrmApp_placedOn_VmApache"/> + </links> + <links id="SugarCrmApp_HostedOn_Apache" title="hosted on" target="//@resources.1"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="SugarCrmApp_HostedOn_Apache"/> + <attributes name="occi.core.title" value="hosted on"/> + </links> + <links id="SugarCrmApp_DependsOn_PhpModule" title="depends on" target="//@resources.2"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="SugarCrmApp_DependsOn_PhpModule"/> + <attributes name="occi.core.title" value="depends on"/> + </links> + <links id="SugarCrmApp_ConnectsTo_SugarCrmDb" title="connects to" target="//@resources.6"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storagelink']"/> + <attributes name="occi.core.id" value="SugarCrmApp_ConnectsTo_SugarCrmDb"/> + <attributes name="occi.core.title" value="connects to"/> + </links> + </resources> + <resources id="VmMySql" title="VM for MySQL" rlinks="//@resources.5/@links.0 //@resources.6/@links.0"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="VmMySql"/> + <attributes name="occi.core.title" value="VM for MySQL"/> + <attributes name="occi.compute.cores" value="1"/> + <attributes name="occi.compute.memory" value="1024"/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/swe#//@mixins[term='ubuntu_xenialxerus']"/> + </parts> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/swe#//@mixins[term='swe_small']"/> + </parts> + </resources> + <resources id="MySql" title="MySQL" rlinks="//@resources.6/@links.1"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="MySql"/> + <attributes name="occi.core.title" value="MySQL"/> + <attributes name="RootPassword" value="password"/> + <parts> + <mixin href="http://schemas.modmacao.org/ToscaSpecificTypes#//@mixins[term='mysql']"/> + </parts> + <links id="MySql_placedOn_VmMySql" target="//@resources.4"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="MySql_placedOn_VmMySql"/> + </links> + </resources> + <resources id="SugarCrmDb" title="SugarCRM DB" rlinks="//@resources.3/@links.3"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="SugarCrmDb"/> + <attributes name="occi.core.title" value="SugarCRM DB"/> + <attributes name="DBName" value="crmdb"/> + <attributes name="DBUser" value="crmadmin"/> + <attributes name="DBPassword" value="crmadmin"/> + <attributes name="DBPort" value="3306"/> + <parts> + <mixin href="http://schemas.modmacao.org/SugarCRM#//@mixins[term='sugarcrmdatabase']"/> + </parts> + <links id="SugarCrmDb_placedOn_VmMySql" target="//@resources.4"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="SugarCrmDb_placedOn_VmMySql"/> + </links> + <links id="SugarCrmDb_HostedOn_MySql" title="hosted on" target="//@resources.5"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="SugarCrmDb_HostedOn_MySql"/> + <attributes name="occi.core.title" value="hosted on"/> + </links> + </resources> +</occi:Configuration> diff --git a/src/test/resources/occi/WaaS.occic b/src/test/resources/occi/WaaS.occic new file mode 100644 index 0000000000000000000000000000000000000000..60376d176ebc199b5a7922575ca9126039c326c1 --- /dev/null +++ b/src/test/resources/occi/WaaS.occic @@ -0,0 +1,126 @@ +<?xml version="1.0" encoding="ASCII"?> +<occi:Configuration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:infrastructure="http://schemas.ogf.org/occi/infrastructure/ecore" xmlns:occi="http://schemas.ogf.org/occi/core/ecore" xmlns:placement="http://schemas.modmacao.org/placement/ecore" xmlns:platform="http://schemas.modmacao.org/occi/platform/ecore"> + <use href="http://schemas.ogf.org/occi/core#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure#/"/> + <use href="http://schemas.modmacao.org/occi/platform#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure/compute/template/1.1#/"/> + <use href="http://schemas.modmacao.org/placement#/"/> + <use href="http://schemas.modmacao.org/openstack/runtime#/"/> + <use href="http://schemas.modmacao.org/modmacao#/"/> + <use href="http://schemas.modmacao.org/openstack/swe#/"/> + <use href="http://schemas.ugoe.cs.rwm/workflow#/"/> + <resources xsi:type="infrastructure:Network" id="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6" title="provider" location="/network/urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6/"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + <attributes name="occi.core.title" value="provider"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="inactive"/> + <attributes name="occi.network.state.message" value=""/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/runtime#//@mixins[term='runtimeid']"/> + <attributes name="openstack.runtime.id" value="d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + </parts> + </resources> + <resources xsi:type="infrastructure:Storage" id="urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060" title="storage" location="/storage/urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060/" rlinks="//@resources.3/@links.0" occiStorageSize="100.0"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storage']"/> + <attributes name="occi.core.id" value="urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060"/> + <attributes name="occi.core.title" value="storage"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.storage.size" value="100"/> + <attributes name="occi.storage.state" value="online"/> + <attributes name="occi.storage.state.message" value=""/> + </resources> + <resources xsi:type="infrastructure:Network" id="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590" title="sampleNet" location="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/" rlinks="//@resources.3/@links.1" occiNetworkState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590"/> + <attributes name="occi.core.title" value="sampleNet"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="active"/> + <attributes name="occi.network.state.message" value=""/> + <parts xsi:type="infrastructure:Ipnetwork" occiNetworkAddress="10.0.0.0/24"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetwork']"/> + <attributes name="occi.network.address" value="10.0.0.0/24"/> + <attributes name="occi.network.gateway" value=""/> + <attributes name="occi.network.allocation" value="dynamic"/> + </parts> + </resources> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce" title="vm2" location="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/" rlinks="//@resources.4/@links.0" occiComputeCores="2" occiComputeHostname="vm2" occiComputeMemory="4096.0" occiComputeState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce"/> + <attributes name="occi.core.title" value="vm2"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.compute.architecture" value="x86"/> + <attributes name="occi.compute.cores" value="2"/> + <attributes name="occi.compute.hostname" value="vm2"/> + <attributes name="occi.compute.share" value="0"/> + <attributes name="occi.compute.speed" value="0"/> + <attributes name="occi.compute.memory" value="4096"/> + <attributes name="occi.compute.state" value="active"/> + <attributes name="occi.compute.state.message" value=""/> + <parts xsi:type="infrastructure:Ssh_key" occiCredentialsSshPublickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ssh_key']"/> + <attributes name="occi.credentials.ssh.publickey" value="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"/> + </parts> + <links xsi:type="infrastructure:Storagelink" id="urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b" title="storageLink" location="/storagelink/urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b/" target="//@resources.1"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storagelink']"/> + <attributes name="occi.core.id" value="urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b"/> + <attributes name="occi.core.title" value="storageLink"/> + <attributes name="occi.storagelink.deviceid" value=""/> + <attributes name="occi.storagelink.mountpoint" value=""/> + <attributes name="occi.storagelink.state" value="active"/> + <attributes name="occi.storagelink.state.message" value=""/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + <attributes name="occi.core.target" value="/storage/urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060/"/> + </links> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8af" title="link1" location="/networkinterface/urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8af/" target="//@resources.2" occiNetworkinterfaceInterface="" occiNetworkinterfaceMac="" occiNetworkinterfaceStateMessage=""> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8af"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.networkinterface.interface" value=""/> + <attributes name="occi.networkinterface.mac" value=""/> + <attributes name="occi.networkinterface.state" value="active"/> + <attributes name="occi.networkinterface.state.message" value=""/> + <attributes name="occi.networkinterface.address" value="10.0.0.35"/> + <attributes name="occi.networkinterface.gateway" value="10.0.0.1"/> + <attributes name="occi.networkinterface.allocation" value="dynamic"/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + <attributes name="occi.core.target" value="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.0.0.35" occiNetworkinterfaceGateway="10.0.0.1"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896" title="Apache" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/" rlinks="//@resources.5/@links.0" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896"/> + <attributes name="occi.core.title" value="Apache"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.0"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918/" target="//@resources.3"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.core.source" value="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/"/> + <attributes name="occi.core.target" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + </links> + </resources> + <resources id="urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a" title="Task" location="/task/urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='task']"/> + <attributes name="occi.core.id" value="urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a"/> + <attributes name="occi.core.title" value="Task"/> + <links id="urn:uuid:097c5265-01ac-4beb-8cc5-8958ea4d1f3f" title="execLink" location="/executionlink/urn:uuid:097c5265-01ac-4beb-8cc5-8958ea4d1f3f" target="//@resources.4"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='executionlink']"/> + <attributes name="occi.core.id" value="urn:uuid:097c5265-01ac-4beb-8cc5-8958ea4d1f3f"/> + <attributes name="occi.core.title" value="execLink"/> + <attributes name="occi.core.target" value="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/"/> + <attributes name="occi.core.source" value="/task/urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a"/> + </links> + </resources> + <mixins name="apache" scheme="http://schemas.modmacao.org/usermixins#"/> +</occi:Configuration> diff --git a/src/test/resources/occi/WaaSAction.occic b/src/test/resources/occi/WaaSAction.occic new file mode 100644 index 0000000000000000000000000000000000000000..2631088c14adfecb8a084a1fd7249913d35a4d32 --- /dev/null +++ b/src/test/resources/occi/WaaSAction.occic @@ -0,0 +1,85 @@ +<?xml version="1.0" encoding="ASCII"?> +<occi:Configuration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:infrastructure="http://schemas.ogf.org/occi/infrastructure/ecore" xmlns:occi="http://schemas.ogf.org/occi/core/ecore" xmlns:placement="http://schemas.modmacao.org/placement/ecore" xmlns:platform="http://schemas.modmacao.org/occi/platform/ecore"> + <use href="http://schemas.ogf.org/occi/core#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure#/"/> + <use href="http://schemas.modmacao.org/occi/platform#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure/compute/template/1.1#/"/> + <use href="http://schemas.modmacao.org/placement#/"/> + <use href="http://schemas.modmacao.org/openstack/runtime#/"/> + <use href="http://schemas.modmacao.org/modmacao#/"/> + <use href="http://schemas.modmacao.org/openstack/swe#/"/> + <use href="http://schemas.ugoe.cs.rwm/workflow#/"/> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce" title="vm2" location="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/" rlinks="//@resources.1/@links.0" occiComputeCores="2" occiComputeHostname="vm2" occiComputeMemory="4096.0" occiComputeState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce"/> + <attributes name="occi.core.title" value="vm2"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.compute.architecture" value="x86"/> + <attributes name="occi.compute.cores" value="2"/> + <attributes name="occi.compute.hostname" value="vm2"/> + <attributes name="occi.compute.share" value="0"/> + <attributes name="occi.compute.speed" value="0"/> + <attributes name="occi.compute.memory" value="4096"/> + <attributes name="occi.compute.state" value="active"/> + <attributes name="occi.compute.state.message" value=""/> + <parts xsi:type="infrastructure:Ssh_key" occiCredentialsSshPublickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ssh_key']"/> + <attributes name="occi.credentials.ssh.publickey" value="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"/> + </parts> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ag" title="link1" location="/networkinterface/urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ag/" target="//@resources.3" occiNetworkinterfaceInterface="" occiNetworkinterfaceMac="" occiNetworkinterfaceStateMessage=""> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ag"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.networkinterface.address" value="10.0.0.25"/> + <attributes name="occi.networkinterface.gateway" value="10.0.0.254"/> + <attributes name="occi.core.target" value="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/"/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.0.0.25" occiNetworkinterfaceGateway="10.0.0.254"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896" title="Apache" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/" rlinks="//@resources.2/@links.0" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896"/> + <attributes name="occi.core.title" value="Apache"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.0"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918/" target="//@resources.0"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.core.source" value="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/"/> + <attributes name="occi.core.target" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + </links> + </resources> + <resources id="urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a" title="Task" location="/task/urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='task']"/> + <attributes name="occi.core.id" value="urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a"/> + <attributes name="occi.core.title" value="Task"/> + <links id="urn:uuid:097c5265-01ac-4beb-8cc5-8958ea4d1f3f" title="execLink" location="/executionlink/urn:uuid:097c5265-01ac-4beb-8cc5-8958ea4d1f3f" target="//@resources.1"> + <kind href="http://schemas.ugoe.cs.rwm/workflow#//@kinds[term='executionlink']"/> + <attributes name="occi.core.id" value="urn:uuid:097c5265-01ac-4beb-8cc5-8958ea4d1f3f"/> + <attributes name="occi.core.title" value="execLink"/> + <attributes name="occi.core.target" value="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/"/> + <attributes name="occi.core.source" value="/task/urn:uuid:d3024b8d-d021-4bbd-abf4-0e4d44e8635a"/> + </links> + </resources> + <resources xsi:type="infrastructure:Network" id="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590" title="management" location="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/" rlinks="//@resources.0/@links.0" occiNetworkState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590"/> + <attributes name="occi.core.title" value="management"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="active"/> + <attributes name="occi.network.state.message" value=""/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/runtime#//@mixins[term='runtimeid']"/> + <attributes name="openstack.runtime.id" value="718eaf4e-cc2b-4f19-9347-8ba8a045c515"/> + </parts> + </resources> + <mixins name="apache" scheme="http://schemas.modmacao.org/usermixins#"/> +</occi:Configuration> diff --git a/src/test/resources/occi/WaaSArchitecture.occic b/src/test/resources/occi/WaaSArchitecture.occic new file mode 100644 index 0000000000000000000000000000000000000000..dff87835ba0872bae43dd1819ce9d7abf19f9240 --- /dev/null +++ b/src/test/resources/occi/WaaSArchitecture.occic @@ -0,0 +1,113 @@ +<?xml version="1.0" encoding="ASCII"?> +<occi:Configuration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:infrastructure="http://schemas.ogf.org/occi/infrastructure/ecore" xmlns:occi="http://schemas.ogf.org/occi/core/ecore" xmlns:placement="http://schemas.modmacao.org/placement/ecore" xmlns:platform="http://schemas.modmacao.org/occi/platform/ecore"> + <use href="http://schemas.ogf.org/occi/core#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure#/"/> + <use href="http://schemas.modmacao.org/occi/platform#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure/compute/template/1.1#/"/> + <use href="http://schemas.modmacao.org/placement#/"/> + <use href="http://schemas.modmacao.org/openstack/runtime#/"/> + <use href="http://schemas.modmacao.org/modmacao#/"/> + <use href="http://schemas.modmacao.org/openstack/swe#/"/> + <resources xsi:type="infrastructure:Network" id="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6" title="provider" location="/network/urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6/" occiNetworkState="inactive"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + <attributes name="occi.core.title" value="provider"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="inactive"/> + <attributes name="occi.network.state.message" value=""/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/runtime#//@mixins[term='runtimeid']"/> + <attributes name="openstack.runtime.id" value="d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + </parts> + </resources> + <resources xsi:type="infrastructure:Storage" id="urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060" title="storage" location="/storage/urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060/" rlinks="//@resources.3/@links.0" occiStorageSize="100.0"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storage']"/> + <attributes name="occi.core.id" value="urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060"/> + <attributes name="occi.core.title" value="storage"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.storage.size" value="100"/> + <attributes name="occi.storage.state" value="online"/> + <attributes name="occi.storage.state.message" value=""/> + </resources> + <resources xsi:type="infrastructure:Network" id="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590" title="sampleNet" location="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/" rlinks="//@resources.3/@links.1" occiNetworkState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590"/> + <attributes name="occi.core.title" value="sampleNet"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="active"/> + <attributes name="occi.network.state.message" value=""/> + <parts xsi:type="infrastructure:Ipnetwork" occiNetworkAddress="10.0.0.0/24"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetwork']"/> + <attributes name="occi.network.address" value="10.0.0.0/24"/> + <attributes name="occi.network.gateway" value=""/> + <attributes name="occi.network.allocation" value="dynamic"/> + </parts> + </resources> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce" title="vm2" location="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/" rlinks="//@resources.4/@links.0" occiComputeCores="2" occiComputeHostname="vm2" occiComputeMemory="4096.0" occiComputeState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce"/> + <attributes name="occi.core.title" value="vm2"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.compute.architecture" value="x86"/> + <attributes name="occi.compute.cores" value="2"/> + <attributes name="occi.compute.hostname" value="vm2"/> + <attributes name="occi.compute.share" value="0"/> + <attributes name="occi.compute.speed" value="0"/> + <attributes name="occi.compute.memory" value="4096"/> + <attributes name="occi.compute.state" value="active"/> + <attributes name="occi.compute.state.message" value=""/> + <parts xsi:type="infrastructure:Ssh_key" occiCredentialsSshPublickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ssh_key']"/> + <attributes name="occi.credentials.ssh.publickey" value="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"/> + </parts> + <links xsi:type="infrastructure:Storagelink" id="urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b" title="storageLink" location="/storagelink/urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b/" target="//@resources.1"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storagelink']"/> + <attributes name="occi.core.id" value="urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b"/> + <attributes name="occi.core.title" value="storageLink"/> + <attributes name="occi.storagelink.deviceid" value=""/> + <attributes name="occi.storagelink.mountpoint" value=""/> + <attributes name="occi.storagelink.state" value="active"/> + <attributes name="occi.storagelink.state.message" value=""/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + <attributes name="occi.core.target" value="/storage/urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060/"/> + </links> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8af" title="link1" location="/networkinterface/urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8af/" target="//@resources.2" occiNetworkinterfaceInterface="" occiNetworkinterfaceMac="" occiNetworkinterfaceStateMessage=""> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8af"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.networkinterface.interface" value=""/> + <attributes name="occi.networkinterface.mac" value=""/> + <attributes name="occi.networkinterface.state" value="active"/> + <attributes name="occi.networkinterface.state.message" value=""/> + <attributes name="occi.networkinterface.address" value="10.0.0.35"/> + <attributes name="occi.networkinterface.gateway" value="10.0.0.1"/> + <attributes name="occi.networkinterface.allocation" value="dynamic"/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + <attributes name="occi.core.target" value="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.0.0.35" occiNetworkinterfaceGateway="10.0.0.1"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896" title="Apache" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896"/> + <attributes name="occi.core.title" value="Apache"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.0"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918/" target="//@resources.3"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b918"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.core.source" value="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/"/> + <attributes name="occi.core.target" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + </links> + </resources> + <mixins name="apache" scheme="http://schemas.modmacao.org/usermixins#"/> +</occi:Configuration> diff --git a/src/test/resources/occi/deployedRuntime.occic b/src/test/resources/occi/deployedRuntime.occic new file mode 100755 index 0000000000000000000000000000000000000000..3618611c6fb0d091721d9c993688a2221a58c60a --- /dev/null +++ b/src/test/resources/occi/deployedRuntime.occic @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="ASCII"?> +<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:occi="http://schemas.ogf.org/occi/core/ecore"> + <occi:Configuration> + + </occi:Configuration> +</xmi:XMI> diff --git a/src/test/resources/occi/hadoopCluster.occic b/src/test/resources/occi/hadoopCluster.occic new file mode 100644 index 0000000000000000000000000000000000000000..ecb050f4d1d7fb13d66cb2d2c01d3a5ed5b3241f --- /dev/null +++ b/src/test/resources/occi/hadoopCluster.occic @@ -0,0 +1,266 @@ +<?xml version="1.0" encoding="ASCII"?> +<occi:Configuration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:infrastructure="http://schemas.ogf.org/occi/infrastructure/ecore" xmlns:occi="http://schemas.ogf.org/occi/core/ecore" xmlns:placement="http://schemas.modmacao.org/placement/ecore" xmlns:platform="http://schemas.modmacao.org/occi/platform/ecore"> + <use href="http://schemas.ogf.org/occi/core#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure#/"/> + <use href="http://schemas.modmacao.org/occi/platform#/"/> + <use href="http://schemas.ogf.org/occi/infrastructure/compute/template/1.1#/"/> + <use href="http://schemas.modmacao.org/placement#/"/> + <use href="http://schemas.modmacao.org/openstack/runtime#/"/> + <use href="http://schemas.modmacao.org/modmacao#/"/> + <use href="http://schemas.modmacao.org/openstack/swe#/"/> + <use href="http://schemas.ugoe.cs.rwm/workflow#/"/> + <resources xsi:type="infrastructure:Network" id="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6" title="provider" location="/network/urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6/" occiNetworkState="inactive"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + <attributes name="occi.core.title" value="provider"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="inactive"/> + <attributes name="occi.network.state.message" value=""/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/runtime#//@mixins[term='runtimeid']"/> + <attributes name="openstack.runtime.id" value="d52754e0-6729-4034-adbb-8f1f3800f2c6"/> + </parts> + </resources> + <resources xsi:type="infrastructure:Storage" id="urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060" title="storage" location="/storage/urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060/" rlinks="//@resources.3/@links.0" occiStorageSize="100.0"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storage']"/> + <attributes name="occi.core.id" value="urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060"/> + <attributes name="occi.core.title" value="storage"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.storage.size" value="100"/> + <attributes name="occi.storage.state" value="online"/> + <attributes name="occi.storage.state.message" value=""/> + </resources> + <resources xsi:type="infrastructure:Network" id="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590" title="management" location="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/" rlinks="//@resources.3/@links.1 //@resources.7/@links.0" occiNetworkState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590"/> + <attributes name="occi.core.title" value="management"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="active"/> + <attributes name="occi.network.state.message" value=""/> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/runtime#//@mixins[term='runtimeid']"/> + <attributes name="openstack.runtime.id" value="718eaf4e-cc2b-4f19-9347-8ba8a045c515"/> + </parts> + </resources> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce" title="hadoop-master" location="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/" rlinks="//@resources.5/@links.0 //@resources.4/@links.0" occiComputeCores="2" occiComputeHostname="vm2" occiComputeMemory="4096.0" occiComputeState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce"/> + <attributes name="occi.core.title" value="hadoop-master"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.compute.architecture" value="x86"/> + <attributes name="occi.compute.cores" value="2"/> + <attributes name="occi.compute.hostname" value="hadoop-master"/> + <attributes name="occi.compute.share" value="0"/> + <attributes name="occi.compute.speed" value="0"/> + <attributes name="occi.compute.memory" value="4096"/> + <attributes name="occi.compute.state" value="active"/> + <attributes name="occi.compute.state.message" value=""/> + <parts xsi:type="infrastructure:Ssh_key" occiCredentialsSshPublickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ssh_key']"/> + <attributes name="occi.credentials.ssh.publickey" value="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"/> + </parts> + <parts xsi:type="infrastructure:User_data" occiComputeUserdata="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='user_data']"/> + <attributes name="occi.compute.userdata" value="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"/> + </parts> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/swe#//@mixins[term='ubuntu_xenialxerus']"/> + </parts> + <links xsi:type="infrastructure:Storagelink" id="urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b" title="storageLink" location="/storagelink/urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b/" target="//@resources.1"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='storagelink']"/> + <attributes name="occi.core.id" value="urn:uuid:0f24a49b-3e80-4d65-96bc-80d6256e475b"/> + <attributes name="occi.core.title" value="storageLink"/> + <attributes name="occi.storagelink.deviceid" value=""/> + <attributes name="occi.storagelink.mountpoint" value=""/> + <attributes name="occi.storagelink.state" value="active"/> + <attributes name="occi.storagelink.state.message" value=""/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + <attributes name="occi.core.target" value="/storage/urn:uuid:a0646f23-4b3a-4298-b262-85fd92d10060/"/> + </links> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ag" title="link1" location="/networkinterface/urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ag/" target="//@resources.2" occiNetworkinterfaceInterface="" occiNetworkinterfaceMac="" occiNetworkinterfaceStateMessage=""> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ag"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.networkinterface.address" value="10.0.0.25"/> + <attributes name="occi.networkinterface.gateway" value="10.0.0.254"/> + <attributes name="occi.core.target" value="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.0.0.25" occiNetworkinterfaceGateway="10.0.0.254"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:ea482951-5c26-471d-aa1b-8e03b1e6096c" title="link3" location="/networkinterface/urn:uuid:ea482951-5c26-471d-aa1b-8e03b1e6096c" target="//@resources.10"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:ea482951-5c26-471d-aa1b-8e03b1e6096c"/> + <attributes name="occi.core.title" value="link3"/> + <attributes name="occi.networkinterface.address" value="10.254.1.5"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.254.1.5" occiNetworkinterfaceGateway="10.254.1.254"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896" title="Java" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/" rlinks="//@resources.5/@links.1 //@resources.6/@links.0" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896"/> + <attributes name="occi.core.title" value="Java"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.0"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b929" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b929/" target="//@resources.3"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b929"/> + <attributes name="occi.core.title" value="link1"/> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897" title="hMaster" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897/" rlinks="//@resources.6/@links.1" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897"/> + <attributes name="occi.core.title" value="hMaster"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.1"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b928" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b928/" target="//@resources.3"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b928"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.core.source" value="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897/"/> + <attributes name="occi.core.target" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3d" title="depends" location="/componentlink/urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3d" target="//@resources.4"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3d"/> + <attributes name="occi.core.title" value="depends"/> + </links> + </resources> + <resources xsi:type="platform:Application" id="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" title="hadoopcluster" location="/application/urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d" occiAppName="" occiAppState="deployed"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='application']"/> + <attributes name="occi.core.id" value="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d"/> + <attributes name="occi.core.title" value="hadoopcluster"/> + <links xsi:type="platform:Componentlink" id="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ee" title="ComponentLink" location="/componentlink/urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ee" target="//@resources.4"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ee"/> + <attributes name="occi.core.title" value="ComponentLink"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ef" title="ComponentLink" location="/componentlink/urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ef" target="//@resources.5"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ef"/> + <attributes name="occi.core.title" value="ComponentLink"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:a0df6656-99ed-42a7-a56f-e8fdf7366112" location="/componentlink/urn:uuid:a0df6656-99ed-42a7-a56f-e8fdf7366112" title="link3" target="//@resources.9"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:a0df6656-99ed-42a7-a56f-e8fdf7366112"/> + <attributes name="occi.core.title" value="link3"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:7890f02b-6f56-4809-865f-d8c686fd9da1" location="/componentlink/urn:uuid:7890f02b-6f56-4809-865f-d8c686fd9da1" title="link4" target="//@resources.8"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:7890f02b-6f56-4809-865f-d8c686fd9da1"/> + <attributes name="occi.core.title" value="link4"/> + </links> + </resources> + <resources xsi:type="infrastructure:Compute" id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf" title="hadoop-worker-1" location="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/" rlinks="//@resources.8/@links.0 //@resources.9/@links.0" occiComputeCores="2" occiComputeHostname="vm2" occiComputeMemory="4096.0" occiComputeState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='compute']"/> + <attributes name="occi.core.id" value="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf"/> + <attributes name="occi.core.title" value="hadoop-worker-1"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.compute.architecture" value="x86"/> + <attributes name="occi.compute.cores" value="2"/> + <attributes name="occi.compute.hostname" value="hadoop-worker-1"/> + <attributes name="occi.compute.share" value="0"/> + <attributes name="occi.compute.speed" value="0"/> + <attributes name="occi.compute.memory" value="4096"/> + <attributes name="occi.compute.state" value="active"/> + <attributes name="occi.compute.state.message" value=""/> + <parts xsi:type="infrastructure:Ssh_key" occiCredentialsSshPublickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ssh_key']"/> + <attributes name="occi.credentials.ssh.publickey" value="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova"/> + </parts> + <parts xsi:type="infrastructure:User_data" occiComputeUserdata="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='user_data']"/> + <attributes name="occi.compute.userdata" value="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"/> + </parts> + <parts> + <mixin href="http://schemas.modmacao.org/openstack/swe#//@mixins[term='ubuntu_xenialxerus']"/> + </parts> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ah" title="link1" location="/networkinterface/urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ah/" target="//@resources.2" occiNetworkinterfaceInterface="" occiNetworkinterfaceMac="" occiNetworkinterfaceStateMessage=""> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:0f3c22cd-35ea-4e31-a09b-d866aaf4a8ah"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.networkinterface.interface" value=""/> + <attributes name="occi.networkinterface.mac" value=""/> + <attributes name="occi.networkinterface.state" value="active"/> + <attributes name="occi.networkinterface.state.message" value=""/> + <attributes name="occi.networkinterface.address" value="10.0.0.15"/> + <attributes name="occi.networkinterface.gateway" value="10.0.0.254"/> + <attributes name="occi.networkinterface.allocation" value="dynamic"/> + <attributes name="occi.core.source" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/"/> + <attributes name="occi.core.target" value="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.0.0.15" occiNetworkinterfaceGateway="10.0.0.254"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + <links xsi:type="infrastructure:Networkinterface" id="urn:uuid:c8c49905-3d5e-43b2-8d09-fabf92d29722" title="link2" location="/networkinterface/urn:uuid:c8c49905-3d5e-43b2-8d09-fabf92d29722" target="//@resources.10"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='networkinterface']"/> + <attributes name="occi.core.id" value="urn:uuid:c8c49905-3d5e-43b2-8d09-fabf92d29722"/> + <attributes name="occi.core.title" value="link2"/> + <attributes name="occi.networkinterface.address" value="10.254.1.8"/> + <parts xsi:type="infrastructure:Ipnetworkinterface" occiNetworkinterfaceAddress="10.254.1.8" occiNetworkinterfaceGateway="10.254.1.254"> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetworkinterface']"/> + </parts> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255898" title="Worker" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255898/" rlinks="//@resources.6/@links.3" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255898"/> + <attributes name="occi.core.title" value="Worker"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.2"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b917" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b917/" target="//@resources.7"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b917"/> + <attributes name="occi.core.title" value="link1"/> + <attributes name="occi.core.target" value="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/"/> + </links> + <links xsi:type="platform:Componentlink" id="urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3e" title="depends" location="/componentlink/urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3e" target="//@resources.9"> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='componentlink']"/> + <attributes name="occi.core.id" value="urn:uuid:3441844f-3317-4f90-88b1-a3de96233e3e"/> + <attributes name="occi.core.title" value="depends"/> + </links> + </resources> + <resources xsi:type="platform:Component" id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8254896" title="Java" location="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8254896/" rlinks="//@resources.8/@links.1 //@resources.6/@links.2" occiComponentStateMessage=""> + <kind href="http://schemas.modmacao.org/occi/platform#//@kinds[term='component']"/> + <attributes name="occi.core.title" value="Java"/> + <attributes name="occi.core.id" value="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8254896"/> + <attributes name="occi.component.state" value="undeployed"/> + <attributes name="occi.component.state.message" value=""/> + <parts mixin="//@mixins.0"/> + <links xsi:type="placement:Placementlink" id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b919" title="link1" location="/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b919/" target="//@resources.7"> + <kind href="http://schemas.modmacao.org/placement#//@kinds[term='placementlink']"/> + <attributes name="occi.core.id" value="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b919"/> + <attributes name="occi.core.title" value="link1"/> + </links> + </resources> + <resources xsi:type="infrastructure:Network" id="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339591" title="hNetwork" location="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339591/" rlinks="//@resources.3/@links.2 //@resources.7/@links.1" occiNetworkState="active"> + <kind href="http://schemas.ogf.org/occi/infrastructure#//@kinds[term='network']"/> + <attributes name="occi.core.id" value="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339591"/> + <attributes name="occi.core.title" value="hNetwork"/> + <attributes name="occi.core.summary" value=""/> + <attributes name="occi.network.vlan" value="0"/> + <attributes name="occi.network.label" value=""/> + <attributes name="occi.network.state" value="active"/> + <attributes name="occi.network.state.message" value=""/> + <parts> + <mixin href="http://schemas.ogf.org/occi/infrastructure#//@mixins[term='ipnetwork']"/> + <attributes name="occi.network.address" value="10.254.1.1/24"/> + </parts> + </resources> + <mixins name="java" scheme="http://schemas.modmacao.org/usermixins#" title="Java"/> + <mixins name="hMaster" scheme="http://schemas.modmacao.org/usermixins#" title="Coarse"/> + <mixins name="hWorker" scheme="http://schemas.modmacao.org/usermixins#" title="Fine"/> +</occi:Configuration> diff --git a/src/test/resources/occi/mongodb.occie b/src/test/resources/occi/mongodb.occie new file mode 100644 index 0000000000000000000000000000000000000000..3d50fa2431d96d214237e0754098de33c92055a9 --- /dev/null +++ b/src/test/resources/occi/mongodb.occie @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="ASCII"?> +<occi:Extension xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:occi="http://schemas.ogf.org/occi/core/ecore" name="mongodb" scheme="http://schemas.modmacao.org/mongodb#"> + <import href="http://schemas.ogf.org/occi/core#/"/> + <import href="http://schemas.modmacao.org/modmacao#/"/> + <mixins name="MongoDBComponent" scheme="http://schemas.modmacao.org/mongodb#"> + <attributes name="mongodb.port" mutable="true"> + <type xsi:type="occi:NumericType" href="http://schemas.modmacao.org/modmacao#//@types.1"/> + </attributes> + <attributes name="mongodb.bindip" mutable="true"> + <type xsi:type="occi:StringType" href="http://schemas.ogf.org/occi/core#//@types.0"/> + </attributes> + <depends href="http://schemas.modmacao.org/modmacao#//@mixins[term='component']"/> + </mixins> + <mixins name="ConfigServer" scheme="http://schemas.modmacao.org/mongodb#" depends="//@mixins[term='replicablemongodbcomponent']"/> + <mixins name="Router" scheme="http://schemas.modmacao.org/mongodb#" depends="//@mixins[term='mongodbcomponent']"/> + <mixins name="Shard" scheme="http://schemas.modmacao.org/mongodb#" depends="//@mixins[term='replicablemongodbcomponent']"/> + <mixins name="Cluster" scheme="http://schemas.modmacao.org/mongodb#"> + <constraints name="OneOrMoreRouters" body="true"/> + <constraints name="OneOrMoreShards" body="true"/> + <constraints name="OneOrMoreConfigServers" body="true"/> + <depends href="http://schemas.modmacao.org/modmacao#//@mixins[term='cluster']"/> + </mixins> + <mixins name="ReplicableMongoDBComponent" scheme="http://schemas.modmacao.org/mongodb#" title="" depends="//@mixins[term='mongodbcomponent']"> + <attributes name="mongodb.replication.set.name" mutable="true" required="true"> + <type xsi:type="occi:StringType" href="http://schemas.ogf.org/occi/core#//@types.0"/> + </attributes> + </mixins> + <mixins name="ConfigServerDependency" scheme="http://schemas.modmacao.org/mongodb#"> + <constraints name="TargetMustBeConfigServer"/> + <depends href="http://schemas.modmacao.org/modmacao#//@mixins[term='executiondependency']"/> + </mixins> +</occi:Extension> diff --git a/src/test/resources/org.occiware.mart.jetty.jar b/src/test/resources/org.occiware.mart.jetty.jar new file mode 100755 index 0000000000000000000000000000000000000000..1d64c06b419f496f72c8012bf072aecb883534b4 Binary files /dev/null and b/src/test/resources/org.occiware.mart.jetty.jar differ diff --git a/src/test/resources/roles/hmaster/README.md b/src/test/resources/roles/hmaster/README.md new file mode 100755 index 0000000000000000000000000000000000000000..225dd44b9fc5b3abff7e9c68ff9e91d505cdd5f0 --- /dev/null +++ b/src/test/resources/roles/hmaster/README.md @@ -0,0 +1,38 @@ +Role Name +========= + +A brief description of the role goes here. + +Requirements +------------ + +Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. + +Role Variables +-------------- + +A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. + +Dependencies +------------ + +A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. + +Example Playbook +---------------- + +Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: + + - hosts: servers + roles: + - { role: username.rolename, x: 42 } + +License +------- + +BSD + +Author Information +------------------ + +An optional section for the role authors to include contact information, or a website (HTML is not allowed). diff --git a/src/test/resources/roles/hmaster/files/authorized_keys b/src/test/resources/roles/hmaster/files/authorized_keys new file mode 100755 index 0000000000000000000000000000000000000000..7ab09cc3c595f49597aaf7df374472ab79c58c41 --- /dev/null +++ b/src/test/resources/roles/hmaster/files/authorized_keys @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova diff --git a/src/test/resources/roles/hmaster/files/config b/src/test/resources/roles/hmaster/files/config new file mode 100755 index 0000000000000000000000000000000000000000..f30d239b63c035071dfae5327657bc23b66edbc4 --- /dev/null +++ b/src/test/resources/roles/hmaster/files/config @@ -0,0 +1,2 @@ +Host * + StrictHostKeyChecking no diff --git a/src/test/resources/roles/hmaster/files/hosts b/src/test/resources/roles/hmaster/files/hosts new file mode 100755 index 0000000000000000000000000000000000000000..e9c2c9d44444845c886c608c20f5f5184ec651f9 --- /dev/null +++ b/src/test/resources/roles/hmaster/files/hosts @@ -0,0 +1,3 @@ +10.254.1.5 hadoop-master +10.254.1.8 hadoop-worker-1 + diff --git a/src/test/resources/roles/hmaster/files/id_dsa b/src/test/resources/roles/hmaster/files/id_dsa new file mode 100755 index 0000000000000000000000000000000000000000..f076ef11a09025bae52b985f1092cf8776fe6a09 --- /dev/null +++ b/src/test/resources/roles/hmaster/files/id_dsa @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEowIBAAKCAQEAuh+2HYuOQUx4neKjaaRgIuZs4252YLe24usSxpmRvQoi5oTL +MTrpN2dOTZ/qZqDffKktHmPEtuNDz5OVTpWKgWNL3UQMK2Uhx2i3TKeiOwETayNi +q2mHbsHqs+2UMT10H8CHmMdhykMRBdq/uP/xaOFn4HQZC7rpb5fxsN01MyTUB74K +WojaPfjyOQmcnR52W41JEYpEtdqU/gmzSo/tECnkM7WwneNWisQ7+R9A45bVUXKT +6ab+HZolP86AgCJ4FiztTz4H2Fss3vGfSKMgU+0HYN9FPdU2GQbsc10eZauxYeuM +vyGf0o3TnUiLyLg47ZiQ1C0XSyc677m6ymPmBwIDAQABAoIBAAlYrFGBf4xB5dCv +39rfOUCnZ5JoKqOithlhCplUfuAKUURYKMf5GFsC4gi93gx3SaG98RkUk31HnlEf +LSE8Gy9yKA4da6sGMhMMbB/6Twg9fpcjuMG40+c476tHY+ixGFK73VNLt9prUcCE +gposqBfHMeswiU1wfmZvL+Dcyt4dhl2g5sBirAY+MzQOL/mvktmhFY6VdCK1MjsC +wjTMDfFWrhFKTksGFmK6+MIIC1DQMLO16tNmHpvpkXf09U/nKxkQzaA28hc8anhj +r24bwjmBBGszqErSDjhQr5XIN0+s0C4OsakaEO3potUcQPcKA63P0oEbbFbHYsaJ +AnlsZaECgYEA5+2vmTuKRwuJ8bfz7+IADjvJvJWFU3mYAyxSMYepvmaU1yoSgjoi +QhmRpIaWXLw5l5YLyB7XYrJWbZ1Eau+1ISOBgQrXKOBTThh7aJRz4sOUb6wZMga+ +CjSg0RYvijuLB7XcVvgwWmp7ji0BmtbTpUu+Unj+IoLtnYGhkZaMaFECgYEAzXEA +pNPlaujUK1hy8KZOhAi+ZnjURNhG2k0qxYyVOa2AP/208wMIxLlHeoKTDe/csghd +B+XOwDXPePmNBO2oTYRzrEkGT/sGakOcRBlzH5hW4yS0YPdHAgNxjKogMSYmlgB4 +FxEYeUrvSVkDBsfPrHXJGwvEgfOTByZkAN/rKtcCgYBWNDMrakT4KSLJlEz34XGR +2Mkf7hdTMoO80jFutXTzDx/NZZbhjogDN4u5skibCV8Cp8OTS1tVFOIo9eZjNNuH +CLJu6z+TsuVjxpfABEWaiIVYiIgI3xatpmgLrwpWf9EqOX8/WBpo0OFBtBq/mY+r +BZ8k+lHDNBTrkS4jdeiUMQKBgFQpVvovVGzXtROMyImNl9y/OEECfvM1JtGHi14i +mX9ndILCjL6BH7Z3sLCfjV7IRMEqa/IwUuKrKLOGiB7cvXYELN8Hi254h8hAqmO7 +iU4IOpATGVIf+xb4EixuBYIc/vG0f33zovMNn7mMnZDJimo8Voad64LRJgpnz9AL +62tBAoGBALJnXf4TqPvZLvJDuSpXMXENHTQxVcQq1c2NsrzT8IX5Li9Z82L1tSv8 +MBZgekr21piuZVyhaq0yYDABd3qETgKGKW3joT1kh5VT7M96l7g9Kptc3vKLAdph +uMKjX7mN+iwMQyKgyUmbPzq3IXtKTzP12i/gZWLsJApzkeLTRKgZ +-----END RSA PRIVATE KEY----- diff --git a/src/test/resources/roles/hmaster/files/slaves b/src/test/resources/roles/hmaster/files/slaves new file mode 100755 index 0000000000000000000000000000000000000000..40d8d9d849b3b1076b6dfaad9999b735528def16 --- /dev/null +++ b/src/test/resources/roles/hmaster/files/slaves @@ -0,0 +1,2 @@ +hadoop-worker-1 + diff --git a/src/test/resources/roles/hmaster/tasks/main.yml b/src/test/resources/roles/hmaster/tasks/main.yml new file mode 100755 index 0000000000000000000000000000000000000000..3bbfde97bdc4fa483b8284bfc2455aebfe5e3534 --- /dev/null +++ b/src/test/resources/roles/hmaster/tasks/main.yml @@ -0,0 +1,127 @@ +--- +# tasks file for simApp +- block: + - name: enable ubuntu group + group: name=ubuntu state=present + + - name: enable ubuntu user + user: name=ubuntu state=present shell=/bin/bash + + - name: make sure AllowUser statement is absent + lineinfile: + dest: /etc/ssh/sshd_config + regexp: '^AllowUsers*' + state: absent + + - name: download hadoop + get_url: url=http://artfiles.org/apache.org/hadoop/common/stable/hadoop-2.9.1.tar.gz dest=/root/hadoop-2.9.1.tar.gz + register: downloaded + + - name: unpack hadoop + shell: tar -xvf /root/hadoop-2.9.1.tar.gz + when: downloaded.changed + + - name: copy hadoop to target location + shell: cp -rf /home/ubuntu/hadoop-2.9.1 /opt/hadoop + when: downloaded.changed + + - name: make sure hadoop folder has the correct permissions + file: path=/opt/hadoop owner=ubuntu group=ubuntu recurse=yes + + - name: make sure sshd is restarted + service: name=ssh state=restarted + + when: task == "DEPLOY" + remote_user: ubuntu + +- block: + - name: edit core-site.xml configuration + shell: echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n + <?xml-stylesheet type=\"text/xsl\" href=\"configuration.xsl\"?>\n + <configuration>\n + \t<property>\n + \t\t<name>fs.defaultFS</name>\n + \t\t<value>hdfs://hadoop-master:9000</value>\n + \t</property>\n + </configuration>\n" > /opt/hadoop/etc/hadoop/core-site.xml + + - name: edit hdfs-site.xml configuration + shell: echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> + <?xml-stylesheet type=\"text/xsl\" href=\"configuration.xsl\"?> + <configuration> + <property> + <name>dfs.replication</name> + <value>3</value> + </property> + </configuration>" > /opt/hadoop/etc/hadoop/hdfs-site.xml + + - name: edit mapred-site.xml configuration + shell: echo "<?xml version=\"1.0\"?> + <configuration> + <property> + <name>mapreduce.framework.name</name> + <value>yarn</value> + </property> + </configuration>" > /opt/hadoop/etc/hadoop/mapred-site.xml + + - name: edit yarn-site.xml configuration + shell: echo "<?xml version=\"1.0\"?> + <configuration> + <property> + <name>yarn.nodemanager.aux-services</name> + <value>mapreduce_shuffle</value> + </property> + <property> + <name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name> + <value>org.apache.hadoop.mapred.ShuffleHandler</value> + </property> + <property> + <name>yarn.resourcemanager.resource-tracker.address</name> + <value>hadoop-master:8025</value> + </property> + <property> + <name>yarn.resourcemanager.scheduler.address</name> + <value>hadoop-master:8030</value> + </property> + <property> + <name>yarn.resourcemanager.address</name> + <value>hadoop-master:8040</value> + </property> + </configuration>" > /opt/hadoop/etc/hadoop/yarn-site.xml + + - name: copy hostfile to cluster instances + copy: src=hosts dest=/etc/hosts + + - name: set java home + lineinfile: dest=/opt/hadoop/etc/hadoop/hadoop-env.sh regexp="^export JAVA_HOME=" line="export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre" + + - name: make sure .ssh folder is present + file: dest=/home/ubuntu/.ssh state=directory owner=ubuntu group=ubuntu mode=700 + + - name: cp authorized_keys + copy: src=authorized_keys dest=/home/ubuntu/.ssh/authorized_keys owner=ubuntu group=ubuntu mode=600 + + - name: cp id_dsa + copy: src=id_dsa dest=/home/ubuntu/.ssh/id_dsa owner=ubuntu group=ubuntu mode=600 + + - name: cp ssh config + copy: src=config dest=/home/ubuntu/.ssh/config owner=ubuntu group=ubuntu mode=600 + + - name: set path variable for user ubuntu + lineinfile: dest=/home/ubuntu/.bashrc state=present line="export PATH=$PATH:/opt/hadoop/bin" + + - name: final configuration on master + copy: src=slaves dest=/opt/hadoop/etc/hadoop/slaves + + when: task == "CONFIGURE" + remote_user: ubuntu + +- block: + - name: Format HDFS + shell: yes "yes" | /opt/hadoop/bin/hdfs namenode -format + - name: Start HDFS + shell: yes "yes" | /opt/hadoop/sbin/start-dfs.sh + - name: Start Yarn + shell: yes "yes" | /opt/hadoop/sbin/start-yarn.sh + when: task == "START" + become_user: "ubuntu" diff --git a/src/test/resources/roles/hmaster/tests/inventory b/src/test/resources/roles/hmaster/tests/inventory new file mode 100755 index 0000000000000000000000000000000000000000..d18580b3c364645735235c667c2a546e28c273bb --- /dev/null +++ b/src/test/resources/roles/hmaster/tests/inventory @@ -0,0 +1 @@ +localhost \ No newline at end of file diff --git a/src/test/resources/roles/hmaster/tests/test.yml b/src/test/resources/roles/hmaster/tests/test.yml new file mode 100755 index 0000000000000000000000000000000000000000..f172f97adad9cd364bf4d37afcf250ceaac70e24 --- /dev/null +++ b/src/test/resources/roles/hmaster/tests/test.yml @@ -0,0 +1,5 @@ +--- +- hosts: localhost + remote_user: root + roles: + - hMaster diff --git a/src/test/resources/roles/hmaster/vars/main.yml b/src/test/resources/roles/hmaster/vars/main.yml new file mode 100755 index 0000000000000000000000000000000000000000..96b4ae48c2d94cecaea2bb3ee2603229ca10fe9f --- /dev/null +++ b/src/test/resources/roles/hmaster/vars/main.yml @@ -0,0 +1,16 @@ +usercredentials: + - { name: hadoopuser1, passphrase: $6$Kmmusz5wWq2wHc$mceMng/b4h0IEhuv1RXRkoBp8OXM2TDcAiNXkLU/fLBPQX08MmTkFlIFQModLIYPsXCyNdjettGNLCNGFrE3d0 } + - { name: hadoopuser2, passphrase: $6$Dwivb3Dth0Gq/DZ$TwsQF1L/kuCmHRIsdEwWPaMUUan9XNGuW6FmtC2A5nQ6xEfrqz39iSoVzdDzIjoKEDjXZD.3wYaUuOfZCjQtI0 } + - { name: hadoopuser3, passphrase: $6$5gaHpDhq$39aCwFQ0MbeNGUrNJDI5/.0Z4NMRlNSi9jXveis5/R4D4oY60wnP9wGEvDAAJliKGlSrz6DQDuvVcN1mAYPLp0 } + - { name: hadoopuser4, passphrase: $6$DUDVKiSsi9cHi0$bzICIIDqGp5TcuGsQhWQy0Pz/rAyMRVfO/wCi2EeC5emgNqItgCdeNw2sOTjqiqOn2pCRvnFltqMeTLI3qyTF0 } + - { name: hadoopuser5, passphrase: $6$BSNTmXM3$u2fvhhzwo0jAXSnqirc4uBmzrFBVLK7hGuO506Byye8tRyaa3Mb7e6nwx3SnNkk.StFt3Ex9wN4/SwB8GnC7d0 } + - { name: hadoopuser6, passphrase: $6$RGqhhl21$9Y90BEy08m8bNi7ljw3eGF.FHSjLelfGBHZzRkiCx.AIlr.ZqvVtJxkIlbkibdeBF5rMOl4307.ybRiCtFZe0/ } + - { name: hadoopuser7, passphrase: $6$ePF2eMmz9sD/yzU$ItmNll2rVQXjiM8gEIEdCi2B.nRu8oyqwA2G3.6syciUPNSdPHoxHZGSAAs1Nked/RUbszlo22YX8p3E0RTCb0 } + - { name: hadoopuser8, passphrase: $6$oNG65V.bHDc$cR5/P4m2QyrD8kbuMqlsfDxDw.nInaTY66HA2KyrWqpTDrLVqiu7OiNv3TY1XPnB1wqIkWze/kyMq4.2kY5ck/ } + - { name: hadoopuser9, passphrase: $6$fQ/xrsdJ2KqCy7jZ$l7u9GEhqCgrLYwAi0O2qHDnVpI3xfmdyOSFBAvB/XouUOvjWwF4Q7wtZF32OhZBtj.At8PQO0slLd4pG9CNc00 } + - { name: hadoopuser10, passphrase: $6$vx5nK2I76Feq$fxdTIb0GrWJ4Lx60YOmMQ5M8cFncNbJt/GaM87jUwpL.quOpgWyKUttuC9KPndYBPkIuj87/Th/7vWZYimd5g0 } + - { name: hadoopuser11, passphrase: $6$3bm4G9tP$Jx5hfKhQdhrqFeX4Ng7Dncj0j85MCMQv85vFH7ppPeQhlMtIrcwDROizindTWvedlnheAxgHmkcZGFsyoSMyn1 } + - { name: hadoopuser12, passphrase: $6$V85EHxLX37$08xRPg9FcTXQWih6qHMknKVtwIVYGMdmrc690qBdtdKYN5AvxKbCn7qF8V8W/d6o9xTHy7clUwfhod.uUHVib. } + - { name: hadoopuser13, passphrase: $6$E3tFP.AcI6$2j5sbEkq4bQJhm.fuyjM9IVqjDt.25IzEf8boVSOw8kLscjMnXFMPhCcYDevOp3dE2xl5lS7jctrF2nyGFL9P/ } + - { name: hadoopuser14, passphrase: $6$jhb0GmgVpN$vnMn6tR63j0I5aa2.VPj4kofUUbC6yumQo6QLEhcCcNL2gNwWrnge17FcGAkSkv18pWROgR80MaBg71SRy.iA1 } + - { name: hadoopuser15, passphrase: $6$brxpEwNsHEtW/g$pca.Wjm9WVMT016CsS6.dorwHl7cHZZggYx5z3HAj/oXzLJVAjADJ2Lomtkz1PXf50266VgJchiTIsTNtezT7. } diff --git a/src/test/resources/roles/hworker/README.md b/src/test/resources/roles/hworker/README.md new file mode 100755 index 0000000000000000000000000000000000000000..225dd44b9fc5b3abff7e9c68ff9e91d505cdd5f0 --- /dev/null +++ b/src/test/resources/roles/hworker/README.md @@ -0,0 +1,38 @@ +Role Name +========= + +A brief description of the role goes here. + +Requirements +------------ + +Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. + +Role Variables +-------------- + +A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. + +Dependencies +------------ + +A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. + +Example Playbook +---------------- + +Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: + + - hosts: servers + roles: + - { role: username.rolename, x: 42 } + +License +------- + +BSD + +Author Information +------------------ + +An optional section for the role authors to include contact information, or a website (HTML is not allowed). diff --git a/src/test/resources/roles/hworker/files/authorized_keys b/src/test/resources/roles/hworker/files/authorized_keys new file mode 100755 index 0000000000000000000000000000000000000000..7ab09cc3c595f49597aaf7df374472ab79c58c41 --- /dev/null +++ b/src/test/resources/roles/hworker/files/authorized_keys @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova diff --git a/src/test/resources/roles/hworker/files/config b/src/test/resources/roles/hworker/files/config new file mode 100755 index 0000000000000000000000000000000000000000..f30d239b63c035071dfae5327657bc23b66edbc4 --- /dev/null +++ b/src/test/resources/roles/hworker/files/config @@ -0,0 +1,2 @@ +Host * + StrictHostKeyChecking no diff --git a/src/test/resources/roles/hworker/files/hosts b/src/test/resources/roles/hworker/files/hosts new file mode 100755 index 0000000000000000000000000000000000000000..adf67e6efa1445d94f64aab9b5bdf7f9500e4767 --- /dev/null +++ b/src/test/resources/roles/hworker/files/hosts @@ -0,0 +1,2 @@ +10.254.1.5 hadoop-master +10.254.1.8 hadoop-worker-1 diff --git a/src/test/resources/roles/hworker/files/id_dsa b/src/test/resources/roles/hworker/files/id_dsa new file mode 100755 index 0000000000000000000000000000000000000000..f076ef11a09025bae52b985f1092cf8776fe6a09 --- /dev/null +++ b/src/test/resources/roles/hworker/files/id_dsa @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEowIBAAKCAQEAuh+2HYuOQUx4neKjaaRgIuZs4252YLe24usSxpmRvQoi5oTL +MTrpN2dOTZ/qZqDffKktHmPEtuNDz5OVTpWKgWNL3UQMK2Uhx2i3TKeiOwETayNi +q2mHbsHqs+2UMT10H8CHmMdhykMRBdq/uP/xaOFn4HQZC7rpb5fxsN01MyTUB74K +WojaPfjyOQmcnR52W41JEYpEtdqU/gmzSo/tECnkM7WwneNWisQ7+R9A45bVUXKT +6ab+HZolP86AgCJ4FiztTz4H2Fss3vGfSKMgU+0HYN9FPdU2GQbsc10eZauxYeuM +vyGf0o3TnUiLyLg47ZiQ1C0XSyc677m6ymPmBwIDAQABAoIBAAlYrFGBf4xB5dCv +39rfOUCnZ5JoKqOithlhCplUfuAKUURYKMf5GFsC4gi93gx3SaG98RkUk31HnlEf +LSE8Gy9yKA4da6sGMhMMbB/6Twg9fpcjuMG40+c476tHY+ixGFK73VNLt9prUcCE +gposqBfHMeswiU1wfmZvL+Dcyt4dhl2g5sBirAY+MzQOL/mvktmhFY6VdCK1MjsC +wjTMDfFWrhFKTksGFmK6+MIIC1DQMLO16tNmHpvpkXf09U/nKxkQzaA28hc8anhj +r24bwjmBBGszqErSDjhQr5XIN0+s0C4OsakaEO3potUcQPcKA63P0oEbbFbHYsaJ +AnlsZaECgYEA5+2vmTuKRwuJ8bfz7+IADjvJvJWFU3mYAyxSMYepvmaU1yoSgjoi +QhmRpIaWXLw5l5YLyB7XYrJWbZ1Eau+1ISOBgQrXKOBTThh7aJRz4sOUb6wZMga+ +CjSg0RYvijuLB7XcVvgwWmp7ji0BmtbTpUu+Unj+IoLtnYGhkZaMaFECgYEAzXEA +pNPlaujUK1hy8KZOhAi+ZnjURNhG2k0qxYyVOa2AP/208wMIxLlHeoKTDe/csghd +B+XOwDXPePmNBO2oTYRzrEkGT/sGakOcRBlzH5hW4yS0YPdHAgNxjKogMSYmlgB4 +FxEYeUrvSVkDBsfPrHXJGwvEgfOTByZkAN/rKtcCgYBWNDMrakT4KSLJlEz34XGR +2Mkf7hdTMoO80jFutXTzDx/NZZbhjogDN4u5skibCV8Cp8OTS1tVFOIo9eZjNNuH +CLJu6z+TsuVjxpfABEWaiIVYiIgI3xatpmgLrwpWf9EqOX8/WBpo0OFBtBq/mY+r +BZ8k+lHDNBTrkS4jdeiUMQKBgFQpVvovVGzXtROMyImNl9y/OEECfvM1JtGHi14i +mX9ndILCjL6BH7Z3sLCfjV7IRMEqa/IwUuKrKLOGiB7cvXYELN8Hi254h8hAqmO7 +iU4IOpATGVIf+xb4EixuBYIc/vG0f33zovMNn7mMnZDJimo8Voad64LRJgpnz9AL +62tBAoGBALJnXf4TqPvZLvJDuSpXMXENHTQxVcQq1c2NsrzT8IX5Li9Z82L1tSv8 +MBZgekr21piuZVyhaq0yYDABd3qETgKGKW3joT1kh5VT7M96l7g9Kptc3vKLAdph +uMKjX7mN+iwMQyKgyUmbPzq3IXtKTzP12i/gZWLsJApzkeLTRKgZ +-----END RSA PRIVATE KEY----- diff --git a/src/test/resources/roles/hworker/tasks/main.yml b/src/test/resources/roles/hworker/tasks/main.yml new file mode 100755 index 0000000000000000000000000000000000000000..75904bed897977ef1cb89e2d701ee6c4b51eb127 --- /dev/null +++ b/src/test/resources/roles/hworker/tasks/main.yml @@ -0,0 +1,115 @@ +--- +# tasks file for simApp +- block: + - name: enable ubuntu group + group: name=ubuntu state=present + + - name: enable ubuntu user + user: name=ubuntu state=present shell=/bin/bash + + - name: make sure AllowUser statement is absent + lineinfile: + dest: /etc/ssh/sshd_config + regexp: '^AllowUsers*' + state: absent + + - name: download hadoop + get_url: url=http://artfiles.org/apache.org/hadoop/common/stable/hadoop-2.9.1.tar.gz dest=/root/hadoop-2.9.1.tar.gz + register: downloaded + + - name: unpack hadoop + shell: tar -xvf /root/hadoop-2.9.1.tar.gz + when: downloaded.changed + + - name: copy hadoop to target location + shell: cp -rf /home/ubuntu/hadoop-2.9.1 /opt/hadoop + when: downloaded.changed + + - name: make sure hadoop folder has the correct permissions + file: path=/opt/hadoop owner=ubuntu group=ubuntu recurse=yes + + - name: make sure sshd is restarted + service: name=ssh state=restarted + + when: task == "DEPLOY" + remote_user: ubuntu + +- block: + - name: edit core-site.xml configuration + shell: echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n + <?xml-stylesheet type=\"text/xsl\" href=\"configuration.xsl\"?>\n + <configuration>\n + \t<property>\n + \t\t<name>fs.defaultFS</name>\n + \t\t<value>hdfs://hadoop-master:9000</value>\n + \t</property>\n + </configuration>\n" > /opt/hadoop/etc/hadoop/core-site.xml + + - name: edit hdfs-site.xml configuration + shell: echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> + <?xml-stylesheet type=\"text/xsl\" href=\"configuration.xsl\"?> + <configuration> + <property> + <name>dfs.replication</name> + <value>3</value> + </property> + </configuration>" > /opt/hadoop/etc/hadoop/hdfs-site.xml + + - name: edit mapred-site.xml configuration + shell: echo "<?xml version=\"1.0\"?> + <configuration> + <property> + <name>mapreduce.framework.name</name> + <value>yarn</value> + </property> + </configuration>" > /opt/hadoop/etc/hadoop/mapred-site.xml + + - name: edit yarn-site.xml configuration + shell: echo "<?xml version=\"1.0\"?> + <configuration> + <property> + <name>yarn.nodemanager.aux-services</name> + <value>mapreduce_shuffle</value> + </property> + <property> + <name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name> + <value>org.apache.hadoop.mapred.ShuffleHandler</value> + </property> + <property> + <name>yarn.resourcemanager.resource-tracker.address</name> + <value>hadoop-master:8025</value> + </property> + <property> + <name>yarn.resourcemanager.scheduler.address</name> + <value>hadoop-master:8030</value> + </property> + <property> + <name>yarn.resourcemanager.address</name> + <value>hadoop-master:8040</value> + </property> + </configuration>" > /opt/hadoop/etc/hadoop/yarn-site.xml + + - name: copy hostfile to cluster instances + copy: src=hosts dest=/etc/hosts + + - name: set java home + lineinfile: dest=/opt/hadoop/etc/hadoop/hadoop-env.sh regexp="^export JAVA_HOME=" line="export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre" + + - name: make sure .ssh folder is present + file: dest=/home/ubuntu/.ssh state=directory owner=ubuntu group=ubuntu mode=700 + + - name: cp authorized_keys + copy: src=authorized_keys dest=/home/ubuntu/.ssh/authorized_keys owner=ubuntu group=ubuntu mode=600 + + - name: cp id_dsa + copy: src=id_dsa dest=/home/ubuntu/.ssh/id_dsa owner=ubuntu group=ubuntu mode=600 + + - name: cp ssh config + copy: src=config dest=/home/ubuntu/.ssh/config owner=ubuntu group=ubuntu mode=600 + + - name: set path variable for user ubuntu + lineinfile: dest=/home/ubuntu/.bashrc state=present line="export PATH=$PATH:/opt/hadoop/bin" + + when: task == "CONFIGURE" + remote_user: ubuntu + diff --git a/src/test/resources/roles/hworker/tests/inventory b/src/test/resources/roles/hworker/tests/inventory new file mode 100755 index 0000000000000000000000000000000000000000..d18580b3c364645735235c667c2a546e28c273bb --- /dev/null +++ b/src/test/resources/roles/hworker/tests/inventory @@ -0,0 +1 @@ +localhost \ No newline at end of file diff --git a/src/test/resources/roles/hworker/tests/test.yml b/src/test/resources/roles/hworker/tests/test.yml new file mode 100755 index 0000000000000000000000000000000000000000..f172f97adad9cd364bf4d37afcf250ceaac70e24 --- /dev/null +++ b/src/test/resources/roles/hworker/tests/test.yml @@ -0,0 +1,5 @@ +--- +- hosts: localhost + remote_user: root + roles: + - hMaster diff --git a/src/test/resources/roles/hworker/vars/main.yml b/src/test/resources/roles/hworker/vars/main.yml new file mode 100755 index 0000000000000000000000000000000000000000..5b780b876f301ed87f0e0e3f9bb8c297d80e9dc4 --- /dev/null +++ b/src/test/resources/roles/hworker/vars/main.yml @@ -0,0 +1,17 @@ +--- +usercredentials: + - { name: hadoopuser1, passphrase: $6$Kmmusz5wWq2wHc$mceMng/b4h0IEhuv1RXRkoBp8OXM2TDcAiNXkLU/fLBPQX08MmTkFlIFQModLIYPsXCyNdjettGNLCNGFrE3d0 } + - { name: hadoopuser2, passphrase: $6$Dwivb3Dth0Gq/DZ$TwsQF1L/kuCmHRIsdEwWPaMUUan9XNGuW6FmtC2A5nQ6xEfrqz39iSoVzdDzIjoKEDjXZD.3wYaUuOfZCjQtI0 } + - { name: hadoopuser3, passphrase: $6$5gaHpDhq$39aCwFQ0MbeNGUrNJDI5/.0Z4NMRlNSi9jXveis5/R4D4oY60wnP9wGEvDAAJliKGlSrz6DQDuvVcN1mAYPLp0 } + - { name: hadoopuser4, passphrase: $6$DUDVKiSsi9cHi0$bzICIIDqGp5TcuGsQhWQy0Pz/rAyMRVfO/wCi2EeC5emgNqItgCdeNw2sOTjqiqOn2pCRvnFltqMeTLI3qyTF0 } + - { name: hadoopuser5, passphrase: $6$BSNTmXM3$u2fvhhzwo0jAXSnqirc4uBmzrFBVLK7hGuO506Byye8tRyaa3Mb7e6nwx3SnNkk.StFt3Ex9wN4/SwB8GnC7d0 } + - { name: hadoopuser6, passphrase: $6$RGqhhl21$9Y90BEy08m8bNi7ljw3eGF.FHSjLelfGBHZzRkiCx.AIlr.ZqvVtJxkIlbkibdeBF5rMOl4307.ybRiCtFZe0/ } + - { name: hadoopuser7, passphrase: $6$ePF2eMmz9sD/yzU$ItmNll2rVQXjiM8gEIEdCi2B.nRu8oyqwA2G3.6syciUPNSdPHoxHZGSAAs1Nked/RUbszlo22YX8p3E0RTCb0 } + - { name: hadoopuser8, passphrase: $6$oNG65V.bHDc$cR5/P4m2QyrD8kbuMqlsfDxDw.nInaTY66HA2KyrWqpTDrLVqiu7OiNv3TY1XPnB1wqIkWze/kyMq4.2kY5ck/ } + - { name: hadoopuser9, passphrase: $6$fQ/xrsdJ2KqCy7jZ$l7u9GEhqCgrLYwAi0O2qHDnVpI3xfmdyOSFBAvB/XouUOvjWwF4Q7wtZF32OhZBtj.At8PQO0slLd4pG9CNc00 } + - { name: hadoopuser10, passphrase: $6$vx5nK2I76Feq$fxdTIb0GrWJ4Lx60YOmMQ5M8cFncNbJt/GaM87jUwpL.quOpgWyKUttuC9KPndYBPkIuj87/Th/7vWZYimd5g0 } + - { name: hadoopuser11, passphrase: $6$3bm4G9tP$Jx5hfKhQdhrqFeX4Ng7Dncj0j85MCMQv85vFH7ppPeQhlMtIrcwDROizindTWvedlnheAxgHmkcZGFsyoSMyn1 } + - { name: hadoopuser12, passphrase: $6$V85EHxLX37$08xRPg9FcTXQWih6qHMknKVtwIVYGMdmrc690qBdtdKYN5AvxKbCn7qF8V8W/d6o9xTHy7clUwfhod.uUHVib. } + - { name: hadoopuser13, passphrase: $6$E3tFP.AcI6$2j5sbEkq4bQJhm.fuyjM9IVqjDt.25IzEf8boVSOw8kLscjMnXFMPhCcYDevOp3dE2xl5lS7jctrF2nyGFL9P/ } + - { name: hadoopuser14, passphrase: $6$jhb0GmgVpN$vnMn6tR63j0I5aa2.VPj4kofUUbC6yumQo6QLEhcCcNL2gNwWrnge17FcGAkSkv18pWROgR80MaBg71SRy.iA1 } + - { name: hadoopuser15, passphrase: $6$brxpEwNsHEtW/g$pca.Wjm9WVMT016CsS6.dorwHl7cHZZggYx5z3HAj/oXzLJVAjADJ2Lomtkz1PXf50266VgJchiTIsTNtezT7. } diff --git a/src/test/resources/startLocal.sh b/src/test/resources/startLocal.sh new file mode 100755 index 0000000000000000000000000000000000000000..b6dadd463dbfd9c80056cbf67bca2d70d579ebbf --- /dev/null +++ b/src/test/resources/startLocal.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +java -jar org.occiware.mart.jetty.jar +