diff --git a/apidocs/options b/apidocs/options index e101573..88aeb3c 100644 --- a/apidocs/options +++ b/apidocs/options @@ -1,7 +1,7 @@ -bootclasspath '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsfd.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Resources/Java/JavaRuntimeSupport.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/laf.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/sunrsasign.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsse.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jce.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/charsets.jar' -classpath -'/Users/greg/devel/thirdparty/rundeck-api-java-client/target/checkout/target/classes:/Users/greg/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar:/Users/greg/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/Users/greg/.m2/repository/org/apache/httpcomponents/httpclient/4.1.2/httpclient-4.1.2.jar:/Users/greg/.m2/repository/org/apache/httpcomponents/httpcore/4.1.2/httpcore-4.1.2.jar:/Users/greg/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar:/Users/greg/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar:/Users/greg/.m2/repository/commons-io/commons-io/2.1/commons-io-2.1.jar:/Users/greg/.m2/repository/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar:/Users/greg/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/Users/greg/.m2/repository/xom/xom/1.0/xom-1.0.jar:/Users/greg/.m2/repository/org/apache/httpcomponents/httpmime/4.1.2/httpmime-4.1.2.jar:/Users/greg/.m2/repository/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar:/Users/greg/.m2/repository/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar:/Users/greg/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar:/Users/greg/.m2/repository/xalan/xalan/2.6.0/xalan-2.6.0.jar:/Users/greg/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar' +'/Users/greg/devel/rundeck-api-java-client/target/checkout/target/classes:/Users/greg/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar:/Users/greg/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/Users/greg/.m2/repository/org/apache/httpcomponents/httpclient/4.1.2/httpclient-4.1.2.jar:/Users/greg/.m2/repository/org/apache/httpcomponents/httpcore/4.1.2/httpcore-4.1.2.jar:/Users/greg/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar:/Users/greg/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar:/Users/greg/.m2/repository/commons-io/commons-io/2.1/commons-io-2.1.jar:/Users/greg/.m2/repository/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar:/Users/greg/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/Users/greg/.m2/repository/xom/xom/1.0/xom-1.0.jar:/Users/greg/.m2/repository/org/apache/httpcomponents/httpmime/4.1.2/httpmime-4.1.2.jar:/Users/greg/.m2/repository/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar:/Users/greg/.m2/repository/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar:/Users/greg/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar:/Users/greg/.m2/repository/xalan/xalan/2.6.0/xalan-2.6.0.jar:/Users/greg/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar' -doclet 'com.google.doclava.Doclava' -docletpath @@ -9,10 +9,10 @@ -encoding 'UTF-8' -overview -'/Users/greg/devel/thirdparty/rundeck-api-java-client/target/checkout/src/main/javadoc/overview.html' +'/Users/greg/devel/rundeck-api-java-client/target/checkout/src/main/javadoc/overview.html' -protected -sourcepath -'/Users/greg/devel/thirdparty/rundeck-api-java-client/target/checkout/src/main/java:/Users/greg/devel/thirdparty/rundeck-api-java-client/target/checkout/src/main/javadoc' +'/Users/greg/devel/rundeck-api-java-client/target/checkout/src/main/java:/Users/greg/devel/rundeck-api-java-client/target/checkout/src/main/javadoc' -quiet -federate JDK http://download.oracle.com/javase/6/docs/api/index.html? -federationxml JDK http://doclava.googlecode.com/svn/static/api/openjdk-6.xml diff --git a/changes-report.html b/changes-report.html index 7188a98..7f2d181 100644 --- a/changes-report.html +++ b/changes-report.html @@ -1,5 +1,5 @@ - + @@ -13,7 +13,7 @@ - + @@ -51,8 +51,8 @@
  • Changelog
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/cpd.html b/cpd.html index 47aa2e1..84a15ca 100644 --- a/cpd.html +++ b/cpd.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • CPD Results
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/cpd.xml b/cpd.xml index a237f75..763fa03 100644 --- a/cpd.xml +++ b/cpd.xml @@ -1,8 +1,8 @@ - - + + - - + + - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • Project Dependencies
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • @@ -168,29 +168,29 @@ } } -

    Dependency Tree

    • org.rundeck:rundeck-api-java-client:jar:9.2-SNAPSHOT Information
      • org.apache.httpcomponents:httpclient:jar:4.1.2 (compile) Information
        • org.apache.httpcomponents:httpcore:jar:4.1.2 (compile) Information
        • commons-logging:commons-logging:jar:1.1.1 (compile) Information
        • commons-codec:commons-codec:jar:1.4 (compile) Information
      • com.ibm.icu:icu4j:jar:2.6.1 (compile) Information
  • junit:junit:jar:4.10 (test) Information
    • org.hamcrest:hamcrest-core:jar:1.1 (test) Information
  • com.github.robfletcher:betamax:jar:1.0 (test) Information
  • org.codehaus.groovy:groovy-all:jar:1.8.4 (test) Information
  • Licenses

    LGPL: xom

    BSD style: Hamcrest Core

    Eclipse Public License - Version 1.0: Jetty :: Continuation, Jetty :: Http Utility, Jetty :: IO Utility, Jetty :: Server Core, Jetty :: Utilities

    Unknown: Groovy, Unnamed - com.ibm.icu:icu4j:jar:2.6.1, Unnamed - javax.servlet:servlet-api:jar:2.5, Unnamed - jdom:jdom:jar:1.0, Unnamed - xalan:xalan:jar:2.6.0, Unnamed - xerces:xercesImpl:jar:2.6.2, Unnamed - xerces:xmlParserAPIs:jar:2.6.2, dom4j, jaxen

    Apache License: HttpClient, HttpCore, HttpMime

    Apache Software License - Version 2.0: Jetty :: Continuation, Jetty :: Http Utility, Jetty :: IO Utility, Jetty :: Server Core, Jetty :: Utilities

    Common Public License Version 1.0: JUnit

    The Apache Software License, Version 2.0: Apache Log4j, Betamax - An HTTP stubbing proxy for testing JVM applications., Commons Codec, Commons IO, Commons Lang, Commons Logging, RunDeck API - Java Client, XML Commons External Components XML APIs

    Apache License Version 2.0: SnakeYAML

    Dependency File Details

    FilenameSizeEntriesClassesPackagesJDK RevDebugSealed
    betamax-1.0.jar160.45 kB685971.5debug-
    icu4j-2.6.1.jar2.34 MB75564861.2debug-
    commons-codec-1.4.jar56.80 kB473051.4debug-
    commons-io-2.1.jar159.33 kB12210461.5debug-
    commons-lang-2.6.jar277.56 kB155133101.3debug-
    commons-logging-1.1.1.jar59.26 kB422821.1debug-
    dom4j-1.6.1.jar306.54 kB208190141.3debug-
    servlet-api-2.5.jar102.65 kB684221.5debug-
    jaxen-1.1.1.jar221.60 kB236214171.2debug-
    jdom-1.0.jar149.66 kB877581.1debug-
    junit-4.10.jar247.23 kB290252311.5debug-
    log4j-1.2.16.jar470.25 kB346308201.1debug-
    httpclient-4.1.2.jar344.00 kB309273221.5debug-
    httpcore-4.1.2.jar176.95 kB185163101.3debug-
    httpmime-4.1.2.jar26.26 kB311521.5debug-
    groovy-all-1.8.4.jar5.86 MB3,8723,686961.5debug-
    jetty-continuation-7.5.1.v20110908.jar19.72 kB231111.5debug-
    jetty-http-7.5.1.v20110908.jar110.53 kB674941.5debug-
    jetty-io-7.5.1.v20110908.jar90.57 kB695531.5debug-
    jetty-server-7.5.1.v20110908.jar296.87 kB17513991.5debug-
    jetty-util-7.5.1.v20110908.jar208.08 kB14012081.5debug-
    hamcrest-core-1.1.jar74.85 kB542131.5debug-
    snakeyaml-1.9.jar259.59 kB238202191.5debug-
    xalan-2.6.0.jar3.00 MB1,6251,548501.1debug-
    xercesImpl-2.6.2.jar986.99 kB845784371.1release-
    xmlParserAPIs-2.6.2.jar121.80 kB238207171.1release-
    xml-apis-1.0.b2.jar106.76 kB217184171.2release-
    xom-1.0.jar106.32 kB1089661.2releasesealed
    TotalSizeEntriesClassesPackagesJDK RevDebugSealed
    2816.22 MB10,6209,6364321.5241
    compile: 16compile: 8.37 MBcompile: 5,210compile: 4,692compile: 229-compile: 12compile: 1
    test: 12test: 7.85 MBtest: 5,410test: 4,944test: 203-test: 12-

    Dependency Repository Locations

    Repo IDURLReleaseSnapshot
    sonatype-snapshotshttp://oss.sonatype.org/content/groups/jettyYesYes-
    apache.snapshotshttp://people.apache.org/repo/m2-snapshot-repository-Yes-
    sonatype-nexus-snapshotshttps://oss.sonatype.org/content/repositories/snapshots-Yes-
    sonatype-public-gridhttp://repository.sonatype.org/content/groups/sonatype-public-grid/YesYes-
    centralhttp://repo1.maven.org/maven2Yes--

    Repository locations for each of the Dependencies.

    Artifactsonatype-snapshotsapache.snapshotssonatype-nexus-snapshotssonatype-public-gridcentral
    com.github.robfletcher:betamax:jar:1.0---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    com.ibm.icu:icu4j:jar:2.6.1---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    commons-codec:commons-codec:jar:1.4---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    commons-io:commons-io:jar:2.1---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    commons-lang:commons-lang:jar:2.6---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    commons-logging:commons-logging:jar:1.1.1---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    dom4j:dom4j:jar:1.6.1---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    javax.servlet:servlet-api:jar:2.5---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    jaxen:jaxen:jar:1.1.1---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    jdom:jdom:jar:1.0---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    junit:junit:jar:4.10---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    log4j:log4j:jar:1.2.16---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    org.apache.httpcomponents:httpclient:jar:4.1.2---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    org.apache.httpcomponents:httpcore:jar:4.1.2---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    org.apache.httpcomponents:httpmime:jar:4.1.2---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    org.codehaus.groovy:groovy-all:jar:1.8.4---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    org.eclipse.jetty:jetty-continuation:jar:7.5.1.v20110908Found at http://oss.sonatype.org/content/groups/jetty--Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    org.eclipse.jetty:jetty-http:jar:7.5.1.v20110908Found at http://oss.sonatype.org/content/groups/jetty--Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    org.eclipse.jetty:jetty-io:jar:7.5.1.v20110908Found at http://oss.sonatype.org/content/groups/jetty--Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    org.eclipse.jetty:jetty-server:jar:7.5.1.v20110908Found at http://oss.sonatype.org/content/groups/jetty--Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    org.eclipse.jetty:jetty-util:jar:7.5.1.v20110908Found at http://oss.sonatype.org/content/groups/jetty--Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    org.hamcrest:hamcrest-core:jar:1.1---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    org.yaml:snakeyaml:jar:1.9---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    xalan:xalan:jar:2.6.0---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    xerces:xercesImpl:jar:2.6.2---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    xerces:xmlParserAPIs:jar:2.6.2---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    xml-apis:xml-apis:jar:1.0.b2---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    xom:xom:jar:1.0---Found at http://repository.sonatype.org/content/groups/sonatype-public-grid/Found at http://repo1.maven.org/maven2
    Totalsonatype-snapshotsapache.snapshotssonatype-nexus-snapshotssonatype-public-gridcentral
    28 (compile: 16, test: 12)5002828
    diff --git a/dependency-updates-report.html b/dependency-updates-report.html index 9fba0c8..3ebe42d 100644 --- a/dependency-updates-report.html +++ b/dependency-updates-report.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • Dependency Updates Report
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/distribution-management.html b/distribution-management.html index 05cf87f..bdbf8cf 100644 --- a/distribution-management.html +++ b/distribution-management.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • Project Distribution Management
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/download.html b/download.html index a2e347d..7d4ecd7 100644 --- a/download.html +++ b/download.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/faq.html b/faq.html index 9b52067..6d53aba 100644 --- a/faq.html +++ b/faq.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • Frequently Asked Questions
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/findbugs.html b/findbugs.html index 5442bb0..a7e4b35 100644 --- a/findbugs.html +++ b/findbugs.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • FindBugs Bug Detector Report
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/groovy.html b/groovy.html index e70108b..7f3efca 100644 --- a/groovy.html +++ b/groovy.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/index.html b/index.html index 8cf5dc2..22e156f 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/integration.html b/integration.html index 4801ef3..42ca6b7 100644 --- a/integration.html +++ b/integration.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • Continuous Integration
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/issue-tracking.html b/issue-tracking.html index 68ba2e2..11ae0f0 100644 --- a/issue-tracking.html +++ b/issue-tracking.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • Issue Tracking
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/jruby.html b/jruby.html index c97bbf3..6211695 100644 --- a/jruby.html +++ b/jruby.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/jython.html b/jython.html index f90df71..2467951 100644 --- a/jython.html +++ b/jython.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/license.html b/license.html index 617366e..dd42c20 100644 --- a/license.html +++ b/license.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • Project License
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/mail-lists.html b/mail-lists.html index 9720ba1..aa1ac2f 100644 --- a/mail-lists.html +++ b/mail-lists.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • Project Mailing Lists
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/plugin-updates-report.html b/plugin-updates-report.html index 525cd84..89a8e44 100644 --- a/plugin-updates-report.html +++ b/plugin-updates-report.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • Plugin Updates Report
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/pmd.html b/pmd.html index 00937ef..d392dd2 100644 --- a/pmd.html +++ b/pmd.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • PMD Results
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/pmd.xml b/pmd.xml index 57e1fa8..4d26d9d 100644 --- a/pmd.xml +++ b/pmd.xml @@ -1,11 +1,11 @@ - - + + Avoid unused imports such as 'org.rundeck.api.domain.RundeckExecution.ExecutionStatus' - + Avoid unused imports such as 'org.dom4j.Element' @@ -13,12 +13,12 @@ Avoid unused imports such as 'org.dom4j.Element' Avoid empty catch blocks - + Avoid unused imports such as 'org.dom4j.Element' - + Avoid empty catch blocks diff --git a/project-info.html b/project-info.html index 365000d..1ac39e7 100644 --- a/project-info.html +++ b/project-info.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • Project Information
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/project-reports.html b/project-reports.html index 014d5ea..540c933 100644 --- a/project-reports.html +++ b/project-reports.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • Generated Reports
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/project-summary.html b/project-summary.html index e42e048..180e2e7 100644 --- a/project-summary.html +++ b/project-summary.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • Project Summary
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • @@ -151,7 +151,7 @@
    -

    Project Summary

    Project Information

    FieldValue
    NameRunDeck API - Java Client
    DescriptionJava client for the RunDeck REST API
    Homepagehttp://rundeck.github.com/rundeck-api-java-client

    Project Organization

    This project does not belong to an organization.

    Build Information

    FieldValue
    GroupIdorg.rundeck
    ArtifactIdrundeck-api-java-client
    Version9.2-SNAPSHOT
    Typejar
    JDK Rev1.6
    +

    Project Summary

    Project Information

    FieldValue
    NameRunDeck API - Java Client
    DescriptionJava client for the RunDeck REST API
    Homepagehttp://rundeck.github.com/rundeck-api-java-client

    Project Organization

    This project does not belong to an organization.

    Build Information

    FieldValue
    GroupIdorg.rundeck
    ArtifactIdrundeck-api-java-client
    Version9.2
    Typejar
    JDK Rev1.6
    diff --git a/property-updates-report.html b/property-updates-report.html index a1d5b93..0a8653d 100644 --- a/property-updates-report.html +++ b/property-updates-report.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • Property Updates Report
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/scripting.html b/scripting.html index d33746d..09b6243 100644 --- a/scripting.html +++ b/scripting.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/source-repository.html b/source-repository.html index eed7dfa..3756e09 100644 --- a/source-repository.html +++ b/source-repository.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • Source Repository
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/status.html b/status.html index 4254400..cba9f7a 100644 --- a/status.html +++ b/status.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/taglist.html b/taglist.html index 3e6e30e..b2b3b4d 100644 --- a/taglist.html +++ b/taglist.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • Tag List report
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/team-list.html b/team-list.html index 3ddc500..c2db47a 100644 --- a/team-list.html +++ b/team-list.html @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + @@ -50,8 +50,8 @@
  • Team list
  • -
  • Last Published: 2014-01-16
  • |
  • -
  • Version: 9.2-SNAPSHOT
  • +
  • Last Published: 2014-01-23
  • |
  • +
  • Version: 9.2
  • diff --git a/testapidocs/options b/testapidocs/options index ce75bcd..f98692c 100644 --- a/testapidocs/options +++ b/testapidocs/options @@ -1,7 +1,7 @@ -bootclasspath '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsfd.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Resources/Java/JavaRuntimeSupport.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/laf.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/sunrsasign.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsse.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jce.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/charsets.jar' -classpath -'/Users/greg/devel/thirdparty/rundeck-api-java-client/target/checkout/target/classes:/Users/greg/devel/thirdparty/rundeck-api-java-client/target/checkout/target/test-classes:/Users/greg/.m2/repository/org/codehaus/groovy/groovy-all/1.8.4/groovy-all-1.8.4.jar:/Users/greg/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar:/Users/greg/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar:/Users/greg/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/Users/greg/.m2/repository/org/apache/httpcomponents/httpcore/4.1.2/httpcore-4.1.2.jar:/Users/greg/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar:/Users/greg/.m2/repository/org/eclipse/jetty/jetty-io/7.5.1.v20110908/jetty-io-7.5.1.v20110908.jar:/Users/greg/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar:/Users/greg/.m2/repository/junit/junit/4.10/junit-4.10.jar:/Users/greg/.m2/repository/org/eclipse/jetty/jetty-server/7.5.1.v20110908/jetty-server-7.5.1.v20110908.jar:/Users/greg/.m2/repository/org/eclipse/jetty/jetty-http/7.5.1.v20110908/jetty-http-7.5.1.v20110908.jar:/Users/greg/.m2/repository/commons-io/commons-io/2.1/commons-io-2.1.jar:/Users/greg/.m2/repository/org/eclipse/jetty/jetty-continuation/7.5.1.v20110908/jetty-continuation-7.5.1.v20110908.jar:/Users/greg/.m2/repository/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar:/Users/greg/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/Users/greg/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar:/Users/greg/.m2/repository/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar:/Users/greg/.m2/repository/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar:/Users/greg/.m2/repository/org/eclipse/jetty/jetty-util/7.5.1.v20110908/jetty-util-7.5.1.v20110908.jar:/Users/greg/.m2/repository/org/apache/httpcomponents/httpclient/4.1.2/httpclient-4.1.2.jar:/Users/greg/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/Users/greg/.m2/repository/com/github/robfletcher/betamax/1.0/betamax-1.0.jar:/Users/greg/.m2/repository/org/yaml/snakeyaml/1.9/snakeyaml-1.9.jar:/Users/greg/.m2/repository/xom/xom/1.0/xom-1.0.jar:/Users/greg/.m2/repository/org/apache/httpcomponents/httpmime/4.1.2/httpmime-4.1.2.jar:/Users/greg/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar:/Users/greg/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar:/Users/greg/.m2/repository/xalan/xalan/2.6.0/xalan-2.6.0.jar' +'/Users/greg/devel/rundeck-api-java-client/target/checkout/target/classes:/Users/greg/devel/rundeck-api-java-client/target/checkout/target/test-classes:/Users/greg/.m2/repository/org/codehaus/groovy/groovy-all/1.8.4/groovy-all-1.8.4.jar:/Users/greg/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar:/Users/greg/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar:/Users/greg/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/Users/greg/.m2/repository/org/apache/httpcomponents/httpcore/4.1.2/httpcore-4.1.2.jar:/Users/greg/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar:/Users/greg/.m2/repository/org/eclipse/jetty/jetty-io/7.5.1.v20110908/jetty-io-7.5.1.v20110908.jar:/Users/greg/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar:/Users/greg/.m2/repository/junit/junit/4.10/junit-4.10.jar:/Users/greg/.m2/repository/org/eclipse/jetty/jetty-server/7.5.1.v20110908/jetty-server-7.5.1.v20110908.jar:/Users/greg/.m2/repository/org/eclipse/jetty/jetty-http/7.5.1.v20110908/jetty-http-7.5.1.v20110908.jar:/Users/greg/.m2/repository/commons-io/commons-io/2.1/commons-io-2.1.jar:/Users/greg/.m2/repository/org/eclipse/jetty/jetty-continuation/7.5.1.v20110908/jetty-continuation-7.5.1.v20110908.jar:/Users/greg/.m2/repository/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar:/Users/greg/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/Users/greg/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar:/Users/greg/.m2/repository/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar:/Users/greg/.m2/repository/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar:/Users/greg/.m2/repository/org/eclipse/jetty/jetty-util/7.5.1.v20110908/jetty-util-7.5.1.v20110908.jar:/Users/greg/.m2/repository/org/apache/httpcomponents/httpclient/4.1.2/httpclient-4.1.2.jar:/Users/greg/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/Users/greg/.m2/repository/com/github/robfletcher/betamax/1.0/betamax-1.0.jar:/Users/greg/.m2/repository/org/yaml/snakeyaml/1.9/snakeyaml-1.9.jar:/Users/greg/.m2/repository/xom/xom/1.0/xom-1.0.jar:/Users/greg/.m2/repository/org/apache/httpcomponents/httpmime/4.1.2/httpmime-4.1.2.jar:/Users/greg/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar:/Users/greg/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar:/Users/greg/.m2/repository/xalan/xalan/2.6.0/xalan-2.6.0.jar' -doclet 'com.google.doclava.Doclava' -docletpath @@ -10,7 +10,7 @@ 'UTF-8' -protected -sourcepath -'/Users/greg/devel/thirdparty/rundeck-api-java-client/target/checkout/src/test/java' +'/Users/greg/devel/rundeck-api-java-client/target/checkout/src/test/java' -quiet -federate JDK http://download.oracle.com/javase/6/docs/api/index.html? -federationxml JDK http://doclava.googlecode.com/svn/static/api/openjdk-6.xml diff --git a/testapidocs/proof-read.txt b/testapidocs/proof-read.txt index 9efac14..b7569bd 100644 --- a/testapidocs/proof-read.txt +++ b/testapidocs/proof-read.txt @@ -150,6 +150,7 @@ CONSTRUCTOR: RundeckClientTest METHOD: abortExecution METHOD: abortExecutionAsUser METHOD: abortExecutionAsUserUnauthorized +METHOD: apiVersionDefaultLatest METHOD: bulkDelete METHOD: bulkDeleteFailDNE METHOD: bulkDeleteFailUnauthorized diff --git a/testapidocs/reference/current.xml b/testapidocs/reference/current.xml index f321415..7b76bf9 100644 --- a/testapidocs/reference/current.xml +++ b/testapidocs/reference/current.xml @@ -56,6 +56,17 @@ + + - bulkDelete() + apiVersionDefaultLatest() @@ -548,6 +548,22 @@ Summary: + void + + + bulkDelete() + + + + + + + + + + + + void @@ -557,7 +573,7 @@ Summary: - + @@ -573,7 +589,7 @@ Summary: - + @@ -589,7 +605,7 @@ Summary: - + @@ -608,7 +624,7 @@ Summary: - + @@ -624,7 +640,7 @@ Summary: - + @@ -640,7 +656,7 @@ Summary: - + @@ -656,7 +672,7 @@ Summary: - + @@ -672,7 +688,7 @@ Summary: - + @@ -688,7 +704,7 @@ Summary: - + @@ -706,7 +722,7 @@ Summary: - + @@ -724,7 +740,7 @@ Summary: - + @@ -742,7 +758,7 @@ Summary: - + @@ -760,7 +776,7 @@ Summary: - + @@ -778,7 +794,7 @@ Summary: - + @@ -796,7 +812,7 @@ Summary: - + @@ -814,7 +830,7 @@ Summary: - + @@ -833,7 +849,7 @@ Summary: - + @@ -851,7 +867,7 @@ Summary: - + @@ -867,7 +883,7 @@ Summary: - + @@ -883,7 +899,7 @@ Summary: - + @@ -899,7 +915,7 @@ Summary: - + @@ -915,7 +931,7 @@ Summary: - + @@ -931,7 +947,7 @@ Summary: - + @@ -947,7 +963,7 @@ Summary: - + @@ -963,7 +979,7 @@ Summary: - + @@ -979,7 +995,7 @@ Summary: - + @@ -995,7 +1011,7 @@ Summary: - + @@ -1011,7 +1027,7 @@ Summary: - + @@ -1027,7 +1043,7 @@ Summary: - + @@ -1043,7 +1059,7 @@ Summary: - + @@ -1059,7 +1075,7 @@ Summary: - + @@ -1075,7 +1091,7 @@ Summary: - + @@ -1091,7 +1107,7 @@ Summary: - + @@ -1107,7 +1123,7 @@ Summary: - + @@ -1123,7 +1139,7 @@ Summary: - + @@ -1139,7 +1155,7 @@ Summary: - + @@ -1155,7 +1171,7 @@ Summary: - + @@ -1912,6 +1928,37 @@ From class + + +
    +

    + + public + + + + + void + + apiVersionDefaultLatest + () +

    +
    +
    + +
    + + + +
    +
    + +

    + +
    +
    + +
    diff --git a/xref-test/index.html b/xref-test/index.html index 5169ac7..9e82a3d 100644 --- a/xref-test/index.html +++ b/xref-test/index.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference + RunDeck API - Java Client 9.2 Reference diff --git a/xref-test/org/rundeck/api/RundeckClientTest.html b/xref-test/org/rundeck/api/RundeckClientTest.html index 913ec7a..6021633 100644 --- a/xref-test/org/rundeck/api/RundeckClientTest.html +++ b/xref-test/org/rundeck/api/RundeckClientTest.html @@ -72,989 +72,1001 @@ 62 private RundeckClient client; 63 64 @Test -65 @Betamax(tape = "get_projects") -66 public void getProjects() throws Exception { -67 List<RundeckProject> projects = client.getProjects(); -68 Assert.assertEquals(1, projects.size()); -69 Assert.assertEquals("test", projects.get(0).getName()); -70 Assert.assertNull(projects.get(0).getDescription()); -71 } -72 @Test -73 @Betamax(tape = "get_history") -74 public void getHistory() throws Exception { -75 final RundeckHistory test = client.getHistory("test"); -76 Assert.assertEquals(3, test.getCount()); -77 Assert.assertEquals(20, test.getMax()); -78 Assert.assertEquals(0, test.getOffset()); -79 Assert.assertEquals(5, test.getTotal()); -80 final List<RundeckEvent> events = test.getEvents(); -81 Assert.assertEquals(3, events.size()); -82 } -83 +65 public void apiVersionDefaultLatest() { +66 RundeckClient blah = createClient("blah", 0); +67 Assert.assertEquals("/api/" + RundeckClient.API_VERSION, blah.getApiEndpoint()); +68 Assert.assertEquals(RundeckClient.API_VERSION, blah.getApiVersion()); +69 blah.setApiVersion(0); +70 Assert.assertEquals(RundeckClient.API_VERSION, blah.getApiVersion()); +71 blah.setApiVersion(-1); +72 Assert.assertEquals(RundeckClient.API_VERSION, blah.getApiVersion()); +73 blah.setApiVersion(RundeckClient.Version.V9.getVersionNumber()); +74 Assert.assertEquals(RundeckClient.Version.V9.getVersionNumber(), blah.getApiVersion()); +75 } +76 @Test +77 @Betamax(tape = "get_projects") +78 public void getProjects() throws Exception { +79 List<RundeckProject> projects = client.getProjects(); +80 Assert.assertEquals(1, projects.size()); +81 Assert.assertEquals("test", projects.get(0).getName()); +82 Assert.assertNull(projects.get(0).getDescription()); +83 } 84 @Test -85 @Betamax(tape = "get_history_joblist", -86 match = {MatchRule.uri, MatchRule.method, MatchRule.path, MatchRule.query /*, MatchRule.body */}) -87 public void getHistoryJoblist() throws Exception { -88 final List<String> jobNames = Arrays.asList("malk/blah", "malk/blah2"); -89 final RundeckHistory test = client.getHistory("demo", null, null, jobNames, null, null, null, null, null); -90 Assert.assertEquals(2, test.getCount()); -91 Assert.assertEquals(20, test.getMax()); -92 Assert.assertEquals(0, test.getOffset()); -93 Assert.assertEquals(2, test.getTotal()); -94 final List<RundeckEvent> events = test.getEvents(); -95 Assert.assertEquals(2, events.size()); -96 final List<String> names = new ArrayList<String>(); -97 for (final RundeckEvent event : events) { -98 names.add(event.getTitle()); -99 } -100 Assert.assertEquals(Arrays.asList("malk/blah2", "malk/blah"), names); -101 } -102 -103 @Test -104 @Betamax(tape = "get_history_excludeJoblist", -105 match = {MatchRule.uri, MatchRule.method, MatchRule.path, MatchRule.query /*, MatchRule.body */}) -106 public void getHistoryExcludeJoblist() throws Exception { -107 final List<String> jobNames = Arrays.asList("malk/blah", "malk/blah2"); -108 final RundeckHistory test = client.getHistory("demo", null, null, null, jobNames, null, null, null, null); -109 Assert.assertEquals(2, test.getCount()); -110 Assert.assertEquals(20, test.getMax()); -111 Assert.assertEquals(0, test.getOffset()); -112 Assert.assertEquals(2, test.getTotal()); -113 final List<RundeckEvent> events = test.getEvents(); -114 Assert.assertEquals(2, events.size()); -115 final List<String> names = new ArrayList<String>(); -116 for (final RundeckEvent event : events) { -117 names.add(event.getTitle()); -118 } -119 Assert.assertEquals(Arrays.asList("fliff", "malk/blah3"), names); -120 } -121 -122 @Test -123 @Betamax(tape = "get_history_user", -124 match = {MatchRule.uri, MatchRule.method, MatchRule.path, MatchRule.query }) -125 public void getHistoryUser() throws Exception { -126 final RundeckHistory test = client.getHistory("demo", "bob", (String)null, (List)null, null, null, null, 1L, 0L); -127 Assert.assertEquals(1, test.getCount()); -128 Assert.assertEquals(20, test.getMax()); -129 Assert.assertEquals(0, test.getOffset()); -130 Assert.assertEquals(1, test.getTotal()); -131 final List<RundeckEvent> events = test.getEvents(); -132 Assert.assertEquals(1, events.size()); -133 final List<String> names = new ArrayList<String>(); -134 for (final RundeckEvent event : events) { -135 names.add(event.getUser()); -136 } -137 Assert.assertEquals(Arrays.asList("bob"), names); -138 } -139 -140 @Test -141 @Betamax(tape = "get_executions", -142 mode = TapeMode.READ_ONLY, -143 match = {MatchRule.uri, MatchRule.headers, MatchRule.method, MatchRule.path, MatchRule.query}) -144 public void getExecutions() throws Exception { -145 -146 RundeckClient client = createClient(TEST_TOKEN_1, 5); -147 -148 -149 final String projectName = "blah"; -150 final PagedResults<RundeckExecution> jobTest = client.getExecutions(ExecutionQuery.builder() -151 .project(projectName) -152 .job("test job") -153 .build(), -154 2L, -155 0L); -156 assertPageResults(jobTest, 2, 2, 2, 0, 2); -157 final PagedResults<RundeckExecution> jobExactTest = client.getExecutions(ExecutionQuery.builder() -158 .project(projectName) -159 .jobExact("test job") -160 .build(), -161 2L, -162 0L); -163 assertPageResults(jobExactTest, 2, 2, 2, 0, 2); -164 final PagedResults<RundeckExecution> excludeJobTest = client.getExecutions(ExecutionQuery.builder() -165 .project(projectName) -166 .excludeJob("test job") -167 .build(), -168 2L, -169 0L); -170 assertPageResults(excludeJobTest, 2, 2, 2, 0, 2); -171 final PagedResults<RundeckExecution> excludeJobExactTest = client.getExecutions(ExecutionQuery.builder() -172 .project(projectName) -173 .excludeJobExact("test job") -174 .build(), -175 2L, -176 0L); -177 assertPageResults(excludeJobExactTest, 2, 2, 2, 0, 2); -178 final PagedResults<RundeckExecution> descriptionTest = client.getExecutions(ExecutionQuery.builder() -179 .project(projectName) -180 .description("a description") -181 .build(), 2L, 0L); -182 assertPageResults(descriptionTest, 2, 2, 2, 0, 2); -183 final PagedResults<RundeckExecution> abortedbyTest = client.getExecutions(ExecutionQuery.builder() -184 .project(projectName) -185 .abortedby("admin") -186 .build(), -187 2L, -188 0L); -189 assertPageResults(abortedbyTest, 1, 1, 2, 0, 1); -190 final PagedResults<RundeckExecution> beginTest = client.getExecutions(ExecutionQuery.builder() -191 .project(projectName) -192 .begin(new Date(1347581178168L)) -193 .build(), 2L, 0L); -194 assertPageResults(beginTest, 2, 2, 2, 0, 2); -195 final PagedResults<RundeckExecution> endTest = client.getExecutions(ExecutionQuery.builder() -196 .project(projectName) -197 .end(new Date(1347581178168L)) -198 .build(), 2L, 0L); -199 assertPageResults(endTest, 2, 2, 2, 0, 2); -200 final List<String> excludeJobIdList = Arrays.asList("123", "456"); -201 final PagedResults<RundeckExecution> excludeJobIdListTest = client.getExecutions(ExecutionQuery.builder() -202 .project(projectName) -203 .excludeJobIdList(excludeJobIdList) -204 .build(), 2L, 0L); -205 assertPageResults(excludeJobIdListTest, 2, 2, 2, 0, 2); -206 final List<String> jobList = Arrays.asList("fruit/mango", "fruit/lemon"); -207 final PagedResults<RundeckExecution> jobListTest = client.getExecutions(ExecutionQuery.builder() -208 .project(projectName) -209 .jobList(jobList) -210 .build(), 2L, 0L); -211 assertPageResults(jobListTest, 2, 2, 2, 0, 2); -212 final List<String> excludeJobList = Arrays.asList("a/path/job1", "path/to/job2"); -213 final PagedResults<RundeckExecution> excludeJobListTest = client.getExecutions(ExecutionQuery.builder() -214 .project(projectName) -215 .excludeJobList(excludeJobList) -216 .build(), 2L, 0L); -217 assertPageResults(excludeJobListTest, 2, 2, 2, 0, 2); -218 final List<String> list = Arrays.asList("1f4415d7-3b52-4fc8-ba42-b6ac97508bff", -219 "d9fc5ee6-f1db-4d24-8808-feda18345bab"); -220 final PagedResults<RundeckExecution> jobIdListTest = client.getExecutions(ExecutionQuery.builder() -221 .project(projectName) -222 .jobIdList(list) -223 .build(), 2L, 0L); -224 assertPageResults(jobIdListTest, 2, 2, 2, 0, 2); -225 final PagedResults<RundeckExecution> groupPathTest = client.getExecutions(ExecutionQuery.builder() -226 .project(projectName) -227 .groupPath("fruit") -228 .build(), -229 2L, -230 0L); -231 assertPageResults(groupPathTest, 2, 2, 2, 0, 2); -232 final PagedResults<RundeckExecution> groupPathExactTest = client.getExecutions(ExecutionQuery.builder() -233 .project(projectName) -234 .groupPathExact("fruit") -235 .build(), 2L, 0L); -236 assertPageResults(groupPathExactTest, 2, 2, 2, 0, 2); -237 -238 final PagedResults<RundeckExecution> excludeGroupPathTest = client.getExecutions(ExecutionQuery.builder() -239 .project(projectName) -240 .excludeGroupPath("fruit") -241 .build(), -242 2L, -243 0L); -244 assertPageResults(excludeGroupPathTest, 2, 2, 2, 0, 2); -245 final PagedResults<RundeckExecution> excliudeGroupPathExactTest = client.getExecutions(ExecutionQuery.builder() -246 .project(projectName) -247 .excludeGroupPathExact("fruit") -248 .build(), 2L, 0L); -249 assertPageResults(excliudeGroupPathExactTest, 2, 2, 2, 0, 2); -250 -251 final PagedResults<RundeckExecution> recentTest = client.getExecutions(ExecutionQuery.builder() -252 .project(projectName) -253 .recent("1h").build(), 2L, 0L); -254 assertPageResults(recentTest, 2, 2, 2, 0, 2); -255 final PagedResults<RundeckExecution> statusTest = client.getExecutions(ExecutionQuery.builder() -256 .project(projectName) -257 .status(RundeckExecution.ExecutionStatus.SUCCEEDED) -258 .build(), 2L, 0L); -259 assertPageResults(statusTest, 2, 2, 2, 0, 2); -260 final PagedResults<RundeckExecution> adhocTest = client.getExecutions(ExecutionQuery.builder() -261 .project(projectName) -262 .adhoc(true) -263 .build(), 2L, 0L); -264 assertPageResults(adhocTest, 2, 2, 2, 0, 2); -265 } -266 -267 /** -268 * Test paging values from results -269 */ -270 @Test -271 @Betamax(tape = "get_executions_paging") -272 public void getExecutionsPaging() throws Exception{ -273 RundeckClient client = createClient(TEST_TOKEN_1, 5); -274 final String projectName = "blah"; -275 //2 max, 1 offset -276 final PagedResults<RundeckExecution> adhocTest = client.getExecutions(ExecutionQuery.builder() -277 .project(projectName) -278 .excludeGroupPathExact("fruit") -279 .build(), 2L, 1L); -280 //expect 2 count, 3 total -281 assertPageResults(adhocTest, 2, 2, 2, 1, 3); -282 -283 //FAKE results, testing paging attributes parsing -284 -285 //1 max, 1 offset -286 final PagedResults<RundeckExecution> test2 = client.getExecutions(ExecutionQuery.builder() -287 .project(projectName) -288 .excludeGroupPathExact("fruit") -289 .build(), 1L, 1L); -290 //expect no paging attributes -291 assertPageResults(test2, 2, -1, -1, -1, -1); -292 -293 //1 max, 2 offset -294 final PagedResults<RundeckExecution> test3 = client.getExecutions(ExecutionQuery.builder() -295 .project(projectName) -296 .excludeGroupPathExact("fruit") -297 .build(), 1L, 2L); -298 //invalid value for count -299 assertPageResults(test3, 2, -1, -1, -1, -1); -300 } -301 @Test -302 @Betamax(tape = "bulk_delete") -303 public void bulkDelete() throws Exception { -304 RundeckClient client = createClient(TEST_TOKEN_2, 5); -305 -306 final RundeckJobDeleteBulk deleteTest -307 = client.deleteJobs(Arrays.asList("0ce457b5-ba84-41ca-812e-02b31da355a4")); -308 Assert.assertTrue(deleteTest.isAllsuccessful()); -309 Assert.assertEquals(1, deleteTest.getRequestCount()); -310 Assert.assertEquals(1, deleteTest.getResults().size()); -311 -312 final RundeckJobDelete delete = deleteTest.getResults().get(0); -313 Assert.assertTrue(delete.isSuccessful()); -314 Assert.assertNull(delete.getError()); -315 Assert.assertNull(delete.getErrorCode()); -316 Assert.assertNotNull(delete.getMessage()); -317 Assert.assertEquals("0ce457b5-ba84-41ca-812e-02b31da355a4", delete.getId()); -318 } -319 @Test -320 @Betamax(tape = "bulk_delete_dne") -321 public void bulkDeleteFailDNE() throws Exception { -322 RundeckClient client = createClient(TEST_TOKEN_2, 5); +85 @Betamax(tape = "get_history") +86 public void getHistory() throws Exception { +87 final RundeckHistory test = client.getHistory("test"); +88 Assert.assertEquals(3, test.getCount()); +89 Assert.assertEquals(20, test.getMax()); +90 Assert.assertEquals(0, test.getOffset()); +91 Assert.assertEquals(5, test.getTotal()); +92 final List<RundeckEvent> events = test.getEvents(); +93 Assert.assertEquals(3, events.size()); +94 } +95 +96 @Test +97 @Betamax(tape = "get_history_joblist", +98 match = {MatchRule.uri, MatchRule.method, MatchRule.path, MatchRule.query /*, MatchRule.body */}) +99 public void getHistoryJoblist() throws Exception { +100 final List<String> jobNames = Arrays.asList("malk/blah", "malk/blah2"); +101 final RundeckHistory test = client.getHistory("demo", null, null, jobNames, null, null, null, null, null); +102 Assert.assertEquals(2, test.getCount()); +103 Assert.assertEquals(20, test.getMax()); +104 Assert.assertEquals(0, test.getOffset()); +105 Assert.assertEquals(2, test.getTotal()); +106 final List<RundeckEvent> events = test.getEvents(); +107 Assert.assertEquals(2, events.size()); +108 final List<String> names = new ArrayList<String>(); +109 for (final RundeckEvent event : events) { +110 names.add(event.getTitle()); +111 } +112 Assert.assertEquals(Arrays.asList("malk/blah2", "malk/blah"), names); +113 } +114 +115 @Test +116 @Betamax(tape = "get_history_excludeJoblist", +117 match = {MatchRule.uri, MatchRule.method, MatchRule.path, MatchRule.query /*, MatchRule.body */}) +118 public void getHistoryExcludeJoblist() throws Exception { +119 final List<String> jobNames = Arrays.asList("malk/blah", "malk/blah2"); +120 final RundeckHistory test = client.getHistory("demo", null, null, null, jobNames, null, null, null, null); +121 Assert.assertEquals(2, test.getCount()); +122 Assert.assertEquals(20, test.getMax()); +123 Assert.assertEquals(0, test.getOffset()); +124 Assert.assertEquals(2, test.getTotal()); +125 final List<RundeckEvent> events = test.getEvents(); +126 Assert.assertEquals(2, events.size()); +127 final List<String> names = new ArrayList<String>(); +128 for (final RundeckEvent event : events) { +129 names.add(event.getTitle()); +130 } +131 Assert.assertEquals(Arrays.asList("fliff", "malk/blah3"), names); +132 } +133 +134 @Test +135 @Betamax(tape = "get_history_user", +136 match = {MatchRule.uri, MatchRule.method, MatchRule.path, MatchRule.query }) +137 public void getHistoryUser() throws Exception { +138 final RundeckHistory test = client.getHistory("demo", "bob", (String)null, (List)null, null, null, null, 1L, 0L); +139 Assert.assertEquals(1, test.getCount()); +140 Assert.assertEquals(20, test.getMax()); +141 Assert.assertEquals(0, test.getOffset()); +142 Assert.assertEquals(1, test.getTotal()); +143 final List<RundeckEvent> events = test.getEvents(); +144 Assert.assertEquals(1, events.size()); +145 final List<String> names = new ArrayList<String>(); +146 for (final RundeckEvent event : events) { +147 names.add(event.getUser()); +148 } +149 Assert.assertEquals(Arrays.asList("bob"), names); +150 } +151 +152 @Test +153 @Betamax(tape = "get_executions", +154 mode = TapeMode.READ_ONLY, +155 match = {MatchRule.uri, MatchRule.headers, MatchRule.method, MatchRule.path, MatchRule.query}) +156 public void getExecutions() throws Exception { +157 +158 RundeckClient client = createClient(TEST_TOKEN_1, 5); +159 +160 +161 final String projectName = "blah"; +162 final PagedResults<RundeckExecution> jobTest = client.getExecutions(ExecutionQuery.builder() +163 .project(projectName) +164 .job("test job") +165 .build(), +166 2L, +167 0L); +168 assertPageResults(jobTest, 2, 2, 2, 0, 2); +169 final PagedResults<RundeckExecution> jobExactTest = client.getExecutions(ExecutionQuery.builder() +170 .project(projectName) +171 .jobExact("test job") +172 .build(), +173 2L, +174 0L); +175 assertPageResults(jobExactTest, 2, 2, 2, 0, 2); +176 final PagedResults<RundeckExecution> excludeJobTest = client.getExecutions(ExecutionQuery.builder() +177 .project(projectName) +178 .excludeJob("test job") +179 .build(), +180 2L, +181 0L); +182 assertPageResults(excludeJobTest, 2, 2, 2, 0, 2); +183 final PagedResults<RundeckExecution> excludeJobExactTest = client.getExecutions(ExecutionQuery.builder() +184 .project(projectName) +185 .excludeJobExact("test job") +186 .build(), +187 2L, +188 0L); +189 assertPageResults(excludeJobExactTest, 2, 2, 2, 0, 2); +190 final PagedResults<RundeckExecution> descriptionTest = client.getExecutions(ExecutionQuery.builder() +191 .project(projectName) +192 .description("a description") +193 .build(), 2L, 0L); +194 assertPageResults(descriptionTest, 2, 2, 2, 0, 2); +195 final PagedResults<RundeckExecution> abortedbyTest = client.getExecutions(ExecutionQuery.builder() +196 .project(projectName) +197 .abortedby("admin") +198 .build(), +199 2L, +200 0L); +201 assertPageResults(abortedbyTest, 1, 1, 2, 0, 1); +202 final PagedResults<RundeckExecution> beginTest = client.getExecutions(ExecutionQuery.builder() +203 .project(projectName) +204 .begin(new Date(1347581178168L)) +205 .build(), 2L, 0L); +206 assertPageResults(beginTest, 2, 2, 2, 0, 2); +207 final PagedResults<RundeckExecution> endTest = client.getExecutions(ExecutionQuery.builder() +208 .project(projectName) +209 .end(new Date(1347581178168L)) +210 .build(), 2L, 0L); +211 assertPageResults(endTest, 2, 2, 2, 0, 2); +212 final List<String> excludeJobIdList = Arrays.asList("123", "456"); +213 final PagedResults<RundeckExecution> excludeJobIdListTest = client.getExecutions(ExecutionQuery.builder() +214 .project(projectName) +215 .excludeJobIdList(excludeJobIdList) +216 .build(), 2L, 0L); +217 assertPageResults(excludeJobIdListTest, 2, 2, 2, 0, 2); +218 final List<String> jobList = Arrays.asList("fruit/mango", "fruit/lemon"); +219 final PagedResults<RundeckExecution> jobListTest = client.getExecutions(ExecutionQuery.builder() +220 .project(projectName) +221 .jobList(jobList) +222 .build(), 2L, 0L); +223 assertPageResults(jobListTest, 2, 2, 2, 0, 2); +224 final List<String> excludeJobList = Arrays.asList("a/path/job1", "path/to/job2"); +225 final PagedResults<RundeckExecution> excludeJobListTest = client.getExecutions(ExecutionQuery.builder() +226 .project(projectName) +227 .excludeJobList(excludeJobList) +228 .build(), 2L, 0L); +229 assertPageResults(excludeJobListTest, 2, 2, 2, 0, 2); +230 final List<String> list = Arrays.asList("1f4415d7-3b52-4fc8-ba42-b6ac97508bff", +231 "d9fc5ee6-f1db-4d24-8808-feda18345bab"); +232 final PagedResults<RundeckExecution> jobIdListTest = client.getExecutions(ExecutionQuery.builder() +233 .project(projectName) +234 .jobIdList(list) +235 .build(), 2L, 0L); +236 assertPageResults(jobIdListTest, 2, 2, 2, 0, 2); +237 final PagedResults<RundeckExecution> groupPathTest = client.getExecutions(ExecutionQuery.builder() +238 .project(projectName) +239 .groupPath("fruit") +240 .build(), +241 2L, +242 0L); +243 assertPageResults(groupPathTest, 2, 2, 2, 0, 2); +244 final PagedResults<RundeckExecution> groupPathExactTest = client.getExecutions(ExecutionQuery.builder() +245 .project(projectName) +246 .groupPathExact("fruit") +247 .build(), 2L, 0L); +248 assertPageResults(groupPathExactTest, 2, 2, 2, 0, 2); +249 +250 final PagedResults<RundeckExecution> excludeGroupPathTest = client.getExecutions(ExecutionQuery.builder() +251 .project(projectName) +252 .excludeGroupPath("fruit") +253 .build(), +254 2L, +255 0L); +256 assertPageResults(excludeGroupPathTest, 2, 2, 2, 0, 2); +257 final PagedResults<RundeckExecution> excliudeGroupPathExactTest = client.getExecutions(ExecutionQuery.builder() +258 .project(projectName) +259 .excludeGroupPathExact("fruit") +260 .build(), 2L, 0L); +261 assertPageResults(excliudeGroupPathExactTest, 2, 2, 2, 0, 2); +262 +263 final PagedResults<RundeckExecution> recentTest = client.getExecutions(ExecutionQuery.builder() +264 .project(projectName) +265 .recent("1h").build(), 2L, 0L); +266 assertPageResults(recentTest, 2, 2, 2, 0, 2); +267 final PagedResults<RundeckExecution> statusTest = client.getExecutions(ExecutionQuery.builder() +268 .project(projectName) +269 .status(RundeckExecution.ExecutionStatus.SUCCEEDED) +270 .build(), 2L, 0L); +271 assertPageResults(statusTest, 2, 2, 2, 0, 2); +272 final PagedResults<RundeckExecution> adhocTest = client.getExecutions(ExecutionQuery.builder() +273 .project(projectName) +274 .adhoc(true) +275 .build(), 2L, 0L); +276 assertPageResults(adhocTest, 2, 2, 2, 0, 2); +277 } +278 +279 /** +280 * Test paging values from results +281 */ +282 @Test +283 @Betamax(tape = "get_executions_paging") +284 public void getExecutionsPaging() throws Exception{ +285 RundeckClient client = createClient(TEST_TOKEN_1, 5); +286 final String projectName = "blah"; +287 //2 max, 1 offset +288 final PagedResults<RundeckExecution> adhocTest = client.getExecutions(ExecutionQuery.builder() +289 .project(projectName) +290 .excludeGroupPathExact("fruit") +291 .build(), 2L, 1L); +292 //expect 2 count, 3 total +293 assertPageResults(adhocTest, 2, 2, 2, 1, 3); +294 +295 //FAKE results, testing paging attributes parsing +296 +297 //1 max, 1 offset +298 final PagedResults<RundeckExecution> test2 = client.getExecutions(ExecutionQuery.builder() +299 .project(projectName) +300 .excludeGroupPathExact("fruit") +301 .build(), 1L, 1L); +302 //expect no paging attributes +303 assertPageResults(test2, 2, -1, -1, -1, -1); +304 +305 //1 max, 2 offset +306 final PagedResults<RundeckExecution> test3 = client.getExecutions(ExecutionQuery.builder() +307 .project(projectName) +308 .excludeGroupPathExact("fruit") +309 .build(), 1L, 2L); +310 //invalid value for count +311 assertPageResults(test3, 2, -1, -1, -1, -1); +312 } +313 @Test +314 @Betamax(tape = "bulk_delete") +315 public void bulkDelete() throws Exception { +316 RundeckClient client = createClient(TEST_TOKEN_2, 5); +317 +318 final RundeckJobDeleteBulk deleteTest +319 = client.deleteJobs(Arrays.asList("0ce457b5-ba84-41ca-812e-02b31da355a4")); +320 Assert.assertTrue(deleteTest.isAllsuccessful()); +321 Assert.assertEquals(1, deleteTest.getRequestCount()); +322 Assert.assertEquals(1, deleteTest.getResults().size()); 323 -324 final RundeckJobDeleteBulk deleteTest -325 = client.deleteJobs(Arrays.asList("does-not-exist")); -326 Assert.assertFalse(deleteTest.isAllsuccessful()); -327 Assert.assertEquals(1, deleteTest.getRequestCount()); -328 Assert.assertEquals(1, deleteTest.getResults().size()); -329 -330 final RundeckJobDelete delete = deleteTest.getResults().get(0); -331 Assert.assertFalse(delete.isSuccessful()); -332 Assert.assertNotNull(delete.getError()); -333 Assert.assertEquals("notfound", delete.getErrorCode()); -334 Assert.assertNull(delete.getMessage()); -335 Assert.assertEquals("does-not-exist", delete.getId()); -336 } -337 @Test -338 @Betamax(tape = "bulk_delete_unauthorized") -339 public void bulkDeleteFailUnauthorized() throws Exception { -340 RundeckClient client = createClient(TEST_TOKEN_2, 5); +324 final RundeckJobDelete delete = deleteTest.getResults().get(0); +325 Assert.assertTrue(delete.isSuccessful()); +326 Assert.assertNull(delete.getError()); +327 Assert.assertNull(delete.getErrorCode()); +328 Assert.assertNotNull(delete.getMessage()); +329 Assert.assertEquals("0ce457b5-ba84-41ca-812e-02b31da355a4", delete.getId()); +330 } +331 @Test +332 @Betamax(tape = "bulk_delete_dne") +333 public void bulkDeleteFailDNE() throws Exception { +334 RundeckClient client = createClient(TEST_TOKEN_2, 5); +335 +336 final RundeckJobDeleteBulk deleteTest +337 = client.deleteJobs(Arrays.asList("does-not-exist")); +338 Assert.assertFalse(deleteTest.isAllsuccessful()); +339 Assert.assertEquals(1, deleteTest.getRequestCount()); +340 Assert.assertEquals(1, deleteTest.getResults().size()); 341 -342 final RundeckJobDeleteBulk deleteTest -343 = client.deleteJobs(Arrays.asList("3a6d16be-4268-4d26-86a9-cebc1781f768")); -344 Assert.assertFalse(deleteTest.isAllsuccessful()); -345 Assert.assertEquals(1, deleteTest.getRequestCount()); -346 Assert.assertEquals(1, deleteTest.getResults().size()); -347 -348 final RundeckJobDelete delete = deleteTest.getResults().get(0); -349 Assert.assertFalse(delete.isSuccessful()); -350 Assert.assertNotNull(delete.getError()); -351 Assert.assertEquals("unauthorized", delete.getErrorCode()); -352 Assert.assertNull(delete.getMessage()); -353 Assert.assertEquals("3a6d16be-4268-4d26-86a9-cebc1781f768", delete.getId()); -354 } -355 @Test -356 @Betamax(tape = "trigger_job_basic") -357 public void triggerJobDeprecatedBasic() throws Exception { -358 RundeckClient client = createClient(TEST_TOKEN_3, 5); +342 final RundeckJobDelete delete = deleteTest.getResults().get(0); +343 Assert.assertFalse(delete.isSuccessful()); +344 Assert.assertNotNull(delete.getError()); +345 Assert.assertEquals("notfound", delete.getErrorCode()); +346 Assert.assertNull(delete.getMessage()); +347 Assert.assertEquals("does-not-exist", delete.getId()); +348 } +349 @Test +350 @Betamax(tape = "bulk_delete_unauthorized") +351 public void bulkDeleteFailUnauthorized() throws Exception { +352 RundeckClient client = createClient(TEST_TOKEN_2, 5); +353 +354 final RundeckJobDeleteBulk deleteTest +355 = client.deleteJobs(Arrays.asList("3a6d16be-4268-4d26-86a9-cebc1781f768")); +356 Assert.assertFalse(deleteTest.isAllsuccessful()); +357 Assert.assertEquals(1, deleteTest.getRequestCount()); +358 Assert.assertEquals(1, deleteTest.getResults().size()); 359 -360 final RundeckExecution test -361 = client.triggerJob("3170ba0e-6093-4b58-94d2-52988aefbfc9", null, null, null); -362 -363 Assert.assertEquals((Long) 19L, test.getId()); -364 Assert.assertEquals(null, test.getArgstring()); -365 Assert.assertEquals(null, test.getAbortedBy()); -366 Assert.assertEquals("echo hi there ${job.username} ; sleep 90", test.getDescription()); -367 Assert.assertEquals("admin", test.getStartedBy()); -368 Assert.assertEquals(RundeckExecution.ExecutionStatus.RUNNING, test.getStatus()); -369 -370 } -371 @Test -372 @Betamax(tape = "trigger_job_basic") -373 public void triggerJobBasic() throws Exception { -374 RundeckClient client = createClient(TEST_TOKEN_3, 5); -375 -376 final RundeckExecution test -377 = client.triggerJob(RunJobBuilder.builder().setJobId("3170ba0e-6093-4b58-94d2-52988aefbfc9").build()); -378 -379 Assert.assertEquals((Long) 19L, test.getId()); -380 Assert.assertEquals(null, test.getArgstring()); -381 Assert.assertEquals(null, test.getAbortedBy()); -382 Assert.assertEquals("echo hi there ${job.username} ; sleep 90", test.getDescription()); -383 Assert.assertEquals("admin", test.getStartedBy()); -384 Assert.assertEquals(RundeckExecution.ExecutionStatus.RUNNING, test.getStatus()); -385 -386 } -387 @Test -388 @Betamax(tape = "trigger_job_as_user") -389 public void triggerJobDeprecatedAsUser() throws Exception { -390 RundeckClient client = createClient(TEST_TOKEN_3, 5); -391 -392 final RundeckExecution test -393 = client.triggerJob("3170ba0e-6093-4b58-94d2-52988aefbfc9", null, null, "api-java-client-user-test1"); -394 -395 Assert.assertEquals((Long) 20L, test.getId()); -396 Assert.assertEquals(null, test.getArgstring()); -397 Assert.assertEquals(null, test.getAbortedBy()); -398 Assert.assertEquals("echo hi there ${job.username} ; sleep 90", test.getDescription()); -399 Assert.assertEquals("api-java-client-user-test1", test.getStartedBy()); -400 Assert.assertEquals(RundeckExecution.ExecutionStatus.RUNNING, test.getStatus()); -401 -402 } -403 @Test -404 @Betamax(tape = "trigger_job_as_user") -405 public void triggerJobAsUser() throws Exception { -406 RundeckClient client = createClient(TEST_TOKEN_3, 5); -407 -408 final RundeckExecution test -409 = client.triggerJob(RunJobBuilder.builder() -410 .setJobId("3170ba0e-6093-4b58-94d2-52988aefbfc9") -411 .setAsUser("api-java-client-user-test1") -412 .build()); +360 final RundeckJobDelete delete = deleteTest.getResults().get(0); +361 Assert.assertFalse(delete.isSuccessful()); +362 Assert.assertNotNull(delete.getError()); +363 Assert.assertEquals("unauthorized", delete.getErrorCode()); +364 Assert.assertNull(delete.getMessage()); +365 Assert.assertEquals("3a6d16be-4268-4d26-86a9-cebc1781f768", delete.getId()); +366 } +367 @Test +368 @Betamax(tape = "trigger_job_basic") +369 public void triggerJobDeprecatedBasic() throws Exception { +370 RundeckClient client = createClient(TEST_TOKEN_3, 5); +371 +372 final RundeckExecution test +373 = client.triggerJob("3170ba0e-6093-4b58-94d2-52988aefbfc9", null, null, null); +374 +375 Assert.assertEquals((Long) 19L, test.getId()); +376 Assert.assertEquals(null, test.getArgstring()); +377 Assert.assertEquals(null, test.getAbortedBy()); +378 Assert.assertEquals("echo hi there ${job.username} ; sleep 90", test.getDescription()); +379 Assert.assertEquals("admin", test.getStartedBy()); +380 Assert.assertEquals(RundeckExecution.ExecutionStatus.RUNNING, test.getStatus()); +381 +382 } +383 @Test +384 @Betamax(tape = "trigger_job_basic") +385 public void triggerJobBasic() throws Exception { +386 RundeckClient client = createClient(TEST_TOKEN_3, 5); +387 +388 final RundeckExecution test +389 = client.triggerJob(RunJobBuilder.builder().setJobId("3170ba0e-6093-4b58-94d2-52988aefbfc9").build()); +390 +391 Assert.assertEquals((Long) 19L, test.getId()); +392 Assert.assertEquals(null, test.getArgstring()); +393 Assert.assertEquals(null, test.getAbortedBy()); +394 Assert.assertEquals("echo hi there ${job.username} ; sleep 90", test.getDescription()); +395 Assert.assertEquals("admin", test.getStartedBy()); +396 Assert.assertEquals(RundeckExecution.ExecutionStatus.RUNNING, test.getStatus()); +397 +398 } +399 @Test +400 @Betamax(tape = "trigger_job_as_user") +401 public void triggerJobDeprecatedAsUser() throws Exception { +402 RundeckClient client = createClient(TEST_TOKEN_3, 5); +403 +404 final RundeckExecution test +405 = client.triggerJob("3170ba0e-6093-4b58-94d2-52988aefbfc9", null, null, "api-java-client-user-test1"); +406 +407 Assert.assertEquals((Long) 20L, test.getId()); +408 Assert.assertEquals(null, test.getArgstring()); +409 Assert.assertEquals(null, test.getAbortedBy()); +410 Assert.assertEquals("echo hi there ${job.username} ; sleep 90", test.getDescription()); +411 Assert.assertEquals("api-java-client-user-test1", test.getStartedBy()); +412 Assert.assertEquals(RundeckExecution.ExecutionStatus.RUNNING, test.getStatus()); 413 -414 Assert.assertEquals((Long)20L, test.getId()); -415 Assert.assertEquals(null, test.getArgstring()); -416 Assert.assertEquals(null, test.getAbortedBy()); -417 Assert.assertEquals("echo hi there ${job.username} ; sleep 90", test.getDescription()); -418 Assert.assertEquals("api-java-client-user-test1", test.getStartedBy()); -419 Assert.assertEquals(RundeckExecution.ExecutionStatus.RUNNING, test.getStatus()); -420 -421 } -422 @Test -423 @Betamax(tape = "trigger_job_as_user_unauthorized") -424 public void triggerJobDeprecatedAsUserUnauthorized() throws Exception { -425 RundeckClient client = createClient(TEST_TOKEN_3, 5); -426 -427 final RundeckExecution test; -428 try { -429 test = client.triggerJob("3170ba0e-6093-4b58-94d2-52988aefbfc9",null,null,"api-java-client-user-test2"); -430 Assert.fail("should not succeed"); -431 } catch (RundeckApiException e) { -432 Assert.assertEquals("Not authorized for action \"Run as User\" for Job ID 3170ba0e-6093-4b58-94d2-52988aefbfc9", e.getMessage()); -433 } -434 } -435 @Test -436 @Betamax(tape = "trigger_job_as_user_unauthorized") -437 public void triggerJobAsUserUnauthorized() throws Exception { -438 RundeckClient client = createClient(TEST_TOKEN_3, 5); -439 -440 final RundeckExecution test; -441 try { -442 test = client.triggerJob(RunJobBuilder.builder() -443 .setJobId("3170ba0e-6093-4b58-94d2-52988aefbfc9") -444 .setAsUser("api-java-client-user-test2") -445 .build()); -446 Assert.fail("should not succeed"); -447 } catch (RundeckApiException e) { -448 Assert.assertEquals("Not authorized for action \"Run as User\" for Job ID 3170ba0e-6093-4b58-94d2-52988aefbfc9", e.getMessage()); -449 } -450 } +414 } +415 @Test +416 @Betamax(tape = "trigger_job_as_user") +417 public void triggerJobAsUser() throws Exception { +418 RundeckClient client = createClient(TEST_TOKEN_3, 5); +419 +420 final RundeckExecution test +421 = client.triggerJob(RunJobBuilder.builder() +422 .setJobId("3170ba0e-6093-4b58-94d2-52988aefbfc9") +423 .setAsUser("api-java-client-user-test1") +424 .build()); +425 +426 Assert.assertEquals((Long)20L, test.getId()); +427 Assert.assertEquals(null, test.getArgstring()); +428 Assert.assertEquals(null, test.getAbortedBy()); +429 Assert.assertEquals("echo hi there ${job.username} ; sleep 90", test.getDescription()); +430 Assert.assertEquals("api-java-client-user-test1", test.getStartedBy()); +431 Assert.assertEquals(RundeckExecution.ExecutionStatus.RUNNING, test.getStatus()); +432 +433 } +434 @Test +435 @Betamax(tape = "trigger_job_as_user_unauthorized") +436 public void triggerJobDeprecatedAsUserUnauthorized() throws Exception { +437 RundeckClient client = createClient(TEST_TOKEN_3, 5); +438 +439 final RundeckExecution test; +440 try { +441 test = client.triggerJob("3170ba0e-6093-4b58-94d2-52988aefbfc9",null,null,"api-java-client-user-test2"); +442 Assert.fail("should not succeed"); +443 } catch (RundeckApiException e) { +444 Assert.assertEquals("Not authorized for action \"Run as User\" for Job ID 3170ba0e-6093-4b58-94d2-52988aefbfc9", e.getMessage()); +445 } +446 } +447 @Test +448 @Betamax(tape = "trigger_job_as_user_unauthorized") +449 public void triggerJobAsUserUnauthorized() throws Exception { +450 RundeckClient client = createClient(TEST_TOKEN_3, 5); 451 -452 @Test -453 @Betamax(tape = "trigger_adhoc_command") -454 public void triggerAdhocCommandDeprecated() throws Exception { -455 RundeckClient client = createClient(TEST_TOKEN_3, 5); -456 -457 final RundeckExecution test -458 = client.triggerAdhocCommand("test", "echo test trigger_adhoc_command"); -459 -460 Assert.assertEquals((Long) 23L, test.getId()); -461 Assert.assertEquals(null, test.getArgstring()); -462 Assert.assertEquals(null, test.getAbortedBy()); -463 Assert.assertEquals("echo test trigger_adhoc_command", test.getDescription()); -464 Assert.assertEquals("admin", test.getStartedBy()); -465 Assert.assertEquals(RundeckExecution.ExecutionStatus.SUCCEEDED, test.getStatus()); -466 } -467 -468 @Test -469 @Betamax(tape = "trigger_adhoc_command") -470 public void triggerAdhocCommand() throws Exception { -471 RundeckClient client = createClient(TEST_TOKEN_3, 5); -472 -473 final RundeckExecution test -474 = client.triggerAdhocCommand(RunAdhocCommandBuilder.builder() -475 .setProject("test") -476 .setCommand("echo test trigger_adhoc_command") -477 .build()); -478 -479 Assert.assertEquals((Long) 23L, test.getId()); -480 Assert.assertEquals(null, test.getArgstring()); -481 Assert.assertEquals(null, test.getAbortedBy()); -482 Assert.assertEquals("echo test trigger_adhoc_command", test.getDescription()); -483 Assert.assertEquals("admin", test.getStartedBy()); -484 Assert.assertEquals(RundeckExecution.ExecutionStatus.SUCCEEDED, test.getStatus()); -485 } -486 -487 @Test -488 @Betamax(tape = "trigger_adhoc_command_as_user") -489 public void triggerAdhocCommandDeprecatedAsUser() throws Exception { -490 RundeckClient client = createClient(TEST_TOKEN_3, 5); -491 -492 final RundeckExecution test -493 = client.triggerAdhocCommand("test", "echo test trigger_adhoc_command_as_user",null,null,null,"api-java-client-test-run-command-as-user1"); -494 -495 Assert.assertEquals((Long) 24L, test.getId()); -496 Assert.assertEquals(null, test.getArgstring()); -497 Assert.assertEquals(null, test.getAbortedBy()); -498 Assert.assertEquals("echo test trigger_adhoc_command_as_user", test.getDescription()); -499 Assert.assertEquals("api-java-client-test-run-command-as-user1", test.getStartedBy()); -500 Assert.assertEquals(RundeckExecution.ExecutionStatus.SUCCEEDED, test.getStatus()); -501 } -502 @Test -503 @Betamax(tape = "trigger_adhoc_command_as_user") -504 public void triggerAdhocCommandAsUser() throws Exception { -505 RundeckClient client = createClient(TEST_TOKEN_3, 5); +452 final RundeckExecution test; +453 try { +454 test = client.triggerJob(RunJobBuilder.builder() +455 .setJobId("3170ba0e-6093-4b58-94d2-52988aefbfc9") +456 .setAsUser("api-java-client-user-test2") +457 .build()); +458 Assert.fail("should not succeed"); +459 } catch (RundeckApiException e) { +460 Assert.assertEquals("Not authorized for action \"Run as User\" for Job ID 3170ba0e-6093-4b58-94d2-52988aefbfc9", e.getMessage()); +461 } +462 } +463 +464 @Test +465 @Betamax(tape = "trigger_adhoc_command") +466 public void triggerAdhocCommandDeprecated() throws Exception { +467 RundeckClient client = createClient(TEST_TOKEN_3, 5); +468 +469 final RundeckExecution test +470 = client.triggerAdhocCommand("test", "echo test trigger_adhoc_command"); +471 +472 Assert.assertEquals((Long) 23L, test.getId()); +473 Assert.assertEquals(null, test.getArgstring()); +474 Assert.assertEquals(null, test.getAbortedBy()); +475 Assert.assertEquals("echo test trigger_adhoc_command", test.getDescription()); +476 Assert.assertEquals("admin", test.getStartedBy()); +477 Assert.assertEquals(RundeckExecution.ExecutionStatus.SUCCEEDED, test.getStatus()); +478 } +479 +480 @Test +481 @Betamax(tape = "trigger_adhoc_command") +482 public void triggerAdhocCommand() throws Exception { +483 RundeckClient client = createClient(TEST_TOKEN_3, 5); +484 +485 final RundeckExecution test +486 = client.triggerAdhocCommand(RunAdhocCommandBuilder.builder() +487 .setProject("test") +488 .setCommand("echo test trigger_adhoc_command") +489 .build()); +490 +491 Assert.assertEquals((Long) 23L, test.getId()); +492 Assert.assertEquals(null, test.getArgstring()); +493 Assert.assertEquals(null, test.getAbortedBy()); +494 Assert.assertEquals("echo test trigger_adhoc_command", test.getDescription()); +495 Assert.assertEquals("admin", test.getStartedBy()); +496 Assert.assertEquals(RundeckExecution.ExecutionStatus.SUCCEEDED, test.getStatus()); +497 } +498 +499 @Test +500 @Betamax(tape = "trigger_adhoc_command_as_user") +501 public void triggerAdhocCommandDeprecatedAsUser() throws Exception { +502 RundeckClient client = createClient(TEST_TOKEN_3, 5); +503 +504 final RundeckExecution test +505 = client.triggerAdhocCommand("test", "echo test trigger_adhoc_command_as_user",null,null,null,"api-java-client-test-run-command-as-user1"); 506 -507 final RundeckExecution test -508 = client.triggerAdhocCommand( -509 RunAdhocCommandBuilder.builder() -510 .setProject("test") -511 .setCommand("echo test trigger_adhoc_command_as_user") -512 .setAsUser("api-java-client-test-run-command-as-user1") -513 .build() -514 ); -515 -516 Assert.assertEquals((Long) 24L, test.getId()); -517 Assert.assertEquals(null, test.getArgstring()); -518 Assert.assertEquals(null, test.getAbortedBy()); -519 Assert.assertEquals("echo test trigger_adhoc_command_as_user", test.getDescription()); -520 Assert.assertEquals("api-java-client-test-run-command-as-user1", test.getStartedBy()); -521 Assert.assertEquals(RundeckExecution.ExecutionStatus.SUCCEEDED, test.getStatus()); -522 } -523 @Test -524 @Betamax(tape = "trigger_adhoc_command_as_user_unauthorized") -525 public void triggerAdhocCommandDeprecatedAsUserUnauthorized() throws Exception { -526 RundeckClient client = createClient(TEST_TOKEN_3, 5); +507 Assert.assertEquals((Long) 24L, test.getId()); +508 Assert.assertEquals(null, test.getArgstring()); +509 Assert.assertEquals(null, test.getAbortedBy()); +510 Assert.assertEquals("echo test trigger_adhoc_command_as_user", test.getDescription()); +511 Assert.assertEquals("api-java-client-test-run-command-as-user1", test.getStartedBy()); +512 Assert.assertEquals(RundeckExecution.ExecutionStatus.SUCCEEDED, test.getStatus()); +513 } +514 @Test +515 @Betamax(tape = "trigger_adhoc_command_as_user") +516 public void triggerAdhocCommandAsUser() throws Exception { +517 RundeckClient client = createClient(TEST_TOKEN_3, 5); +518 +519 final RundeckExecution test +520 = client.triggerAdhocCommand( +521 RunAdhocCommandBuilder.builder() +522 .setProject("test") +523 .setCommand("echo test trigger_adhoc_command_as_user") +524 .setAsUser("api-java-client-test-run-command-as-user1") +525 .build() +526 ); 527 -528 final RundeckExecution test; -529 try { -530 test = client.triggerAdhocCommand("test", "echo test trigger_adhoc_command_as_user",null,null,null,"api-java-client-test-run-command-as-user1"); -531 Assert.fail("should not succeed"); -532 } catch (RundeckApiException e) { -533 Assert.assertEquals("Not authorized for action \"Run as User\" for Run Adhoc", e.getMessage()); -534 } -535 } -536 @Test -537 @Betamax(tape = "trigger_adhoc_command_as_user_unauthorized") -538 public void triggerAdhocCommandAsUserUnauthorized() throws Exception { -539 RundeckClient client = createClient(TEST_TOKEN_3, 5); -540 -541 final RundeckExecution test; -542 try { -543 test = client.triggerAdhocCommand( -544 RunAdhocCommandBuilder.builder() -545 .setProject("test") -546 .setCommand("echo test trigger_adhoc_command_as_user") -547 .setAsUser("api-java-client-test-run-command-as-user1") -548 .build() -549 ); -550 Assert.fail("should not succeed"); -551 } catch (RundeckApiException e) { -552 Assert.assertEquals("Not authorized for action \"Run as User\" for Run Adhoc", e.getMessage()); -553 } -554 } -555 -556 @Test -557 @Betamax(tape = "trigger_adhoc_script") -558 public void triggerAdhocScriptDeprecated() throws Exception { -559 RundeckClient client = createClient(TEST_TOKEN_3, 5); -560 String script = "#!/bin/bash\n" + -561 "echo test trigger_adhoc_script\n"; -562 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(script.getBytes()); -563 -564 final RundeckExecution test -565 = client.triggerAdhocScript("test", byteArrayInputStream,(Properties) null, null, null, null, null); -566 -567 Assert.assertEquals((Long) 25L, test.getId()); -568 Assert.assertEquals(null, test.getArgstring()); -569 Assert.assertEquals(null, test.getAbortedBy()); -570 Assert.assertEquals("#!/bin/bash\necho test trigger_adhoc_script", test.getDescription()); -571 Assert.assertEquals("admin", test.getStartedBy()); -572 Assert.assertEquals(RundeckExecution.ExecutionStatus.RUNNING, test.getStatus()); -573 } -574 @Test -575 @Betamax(tape = "trigger_adhoc_script") -576 public void triggerAdhocScript() throws Exception { -577 RundeckClient client = createClient(TEST_TOKEN_3, 5); -578 String script = "#!/bin/bash\n" + -579 "echo test trigger_adhoc_script\n"; -580 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(script.getBytes()); -581 -582 final RundeckExecution test -583 = client.triggerAdhocScript(RunAdhocScriptBuilder.builder().setProject("test").setScript -584 (byteArrayInputStream).build()); -585 -586 Assert.assertEquals((Long) 25L, test.getId()); -587 Assert.assertEquals(null, test.getArgstring()); -588 Assert.assertEquals(null, test.getAbortedBy()); -589 Assert.assertEquals("#!/bin/bash\necho test trigger_adhoc_script", test.getDescription()); -590 Assert.assertEquals("admin", test.getStartedBy()); -591 Assert.assertEquals(RundeckExecution.ExecutionStatus.RUNNING, test.getStatus()); -592 } -593 @Test -594 @Betamax(tape = "trigger_adhoc_script_as_user") -595 public void triggerAdhocScriptDeprecatedAsUser() throws Exception { -596 RundeckClient client = createClient(TEST_TOKEN_3, 5); -597 String script = "#!/bin/bash\n" + -598 "echo test trigger_adhoc_script\n"; -599 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(script.getBytes()); -600 -601 final RundeckExecution test -602 = client.triggerAdhocScript("test", byteArrayInputStream, (Properties) null, null, null, null, "api-java-client-test-adhoc-script-as-user1"); -603 -604 Assert.assertEquals((Long) 26L, test.getId()); -605 Assert.assertEquals(null, test.getArgstring()); -606 Assert.assertEquals(null, test.getAbortedBy()); -607 Assert.assertEquals("#!/bin/bash\necho test trigger_adhoc_script", test.getDescription()); -608 Assert.assertEquals("api-java-client-test-adhoc-script-as-user1", test.getStartedBy()); -609 Assert.assertEquals(RundeckExecution.ExecutionStatus.RUNNING, test.getStatus()); -610 } -611 @Test -612 @Betamax(tape = "trigger_adhoc_script_as_user") -613 public void triggerAdhocScriptAsUser() throws Exception { -614 RundeckClient client = createClient(TEST_TOKEN_3, 5); -615 String script = "#!/bin/bash\n" + -616 "echo test trigger_adhoc_script\n"; -617 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(script.getBytes()); -618 -619 final RundeckExecution test -620 = client.triggerAdhocScript(RunAdhocScriptBuilder.builder().setProject("test").setScript -621 (byteArrayInputStream).setAsUser("api-java-client-test-adhoc-script-as-user1").build()); -622 -623 Assert.assertEquals((Long) 26L, test.getId()); -624 Assert.assertEquals(null, test.getArgstring()); -625 Assert.assertEquals(null, test.getAbortedBy()); -626 Assert.assertEquals("#!/bin/bash\necho test trigger_adhoc_script", test.getDescription()); -627 Assert.assertEquals("api-java-client-test-adhoc-script-as-user1", test.getStartedBy()); -628 Assert.assertEquals(RundeckExecution.ExecutionStatus.RUNNING, test.getStatus()); -629 } -630 @Test -631 @Betamax(tape = "trigger_adhoc_script_as_user_unauthorized") -632 public void triggerAdhocScriptDeprecatedAsUserUnauthorized() throws Exception { -633 RundeckClient client = createClient(TEST_TOKEN_3, 5); -634 String script = "#!/bin/bash\n" + -635 "echo test trigger_adhoc_script\n"; -636 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(script.getBytes()); -637 -638 try{ -639 final RundeckExecution test -640 = client.triggerAdhocScript("test", byteArrayInputStream, (Properties) null, null, null, null, "api-java-client-test-adhoc-script-as-user1"); -641 Assert.fail("should not succeed"); -642 } catch (RundeckApiException e) { -643 Assert.assertEquals("Not authorized for action \"Run as User\" for Run Adhoc", e.getMessage()); -644 } -645 -646 } -647 @Test -648 @Betamax(tape = "trigger_adhoc_script_as_user_unauthorized") -649 public void triggerAdhocScriptAsUserUnauthorized() throws Exception { -650 RundeckClient client = createClient(TEST_TOKEN_3, 5); -651 String script = "#!/bin/bash\n" + -652 "echo test trigger_adhoc_script\n"; -653 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(script.getBytes()); -654 -655 try{ -656 final RundeckExecution test -657 = client.triggerAdhocScript(RunAdhocScriptBuilder.builder().setProject("test").setScript -658 (byteArrayInputStream).setAsUser("api-java-client-test-adhoc-script-as-user1").build()); -659 Assert.fail("should not succeed"); -660 } catch (RundeckApiException e) { -661 Assert.assertEquals("Not authorized for action \"Run as User\" for Run Adhoc", e.getMessage()); -662 } -663 -664 } -665 -666 @Test -667 @Betamax(tape = "trigger_adhoc_script_interpreter") -668 public void triggerAdhocScriptInpterpreter() throws Exception { -669 RundeckClient client = createClient(TEST_TOKEN_3, 8); -670 String script = "#!/bin/bash\n" + -671 "echo test trigger_adhoc_script\n"; -672 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(script.getBytes()); -673 final RundeckExecution test -674 = client.triggerAdhocScript(RunAdhocScriptBuilder.builder() -675 .setProject("test").setScript(byteArrayInputStream) -676 .setScriptInterpreter("sudo -c bob") -677 .build()); -678 -679 Assert.assertEquals((Long) 27L, test.getId()); -680 Assert.assertEquals(null, test.getArgstring()); -681 Assert.assertEquals(null, test.getAbortedBy()); -682 Assert.assertEquals("#!/bin/bash\necho test trigger_adhoc_script", test.getDescription()); -683 Assert.assertEquals("admin", test.getStartedBy()); -684 Assert.assertEquals(RundeckExecution.ExecutionStatus.RUNNING, test.getStatus()); -685 } -686 @Test -687 @Betamax(tape = "abort_execution") -688 public void abortExecution() throws Exception { -689 RundeckClient client = createClient(TEST_TOKEN_3, 5); +528 Assert.assertEquals((Long) 24L, test.getId()); +529 Assert.assertEquals(null, test.getArgstring()); +530 Assert.assertEquals(null, test.getAbortedBy()); +531 Assert.assertEquals("echo test trigger_adhoc_command_as_user", test.getDescription()); +532 Assert.assertEquals("api-java-client-test-run-command-as-user1", test.getStartedBy()); +533 Assert.assertEquals(RundeckExecution.ExecutionStatus.SUCCEEDED, test.getStatus()); +534 } +535 @Test +536 @Betamax(tape = "trigger_adhoc_command_as_user_unauthorized") +537 public void triggerAdhocCommandDeprecatedAsUserUnauthorized() throws Exception { +538 RundeckClient client = createClient(TEST_TOKEN_3, 5); +539 +540 final RundeckExecution test; +541 try { +542 test = client.triggerAdhocCommand("test", "echo test trigger_adhoc_command_as_user",null,null,null,"api-java-client-test-run-command-as-user1"); +543 Assert.fail("should not succeed"); +544 } catch (RundeckApiException e) { +545 Assert.assertEquals("Not authorized for action \"Run as User\" for Run Adhoc", e.getMessage()); +546 } +547 } +548 @Test +549 @Betamax(tape = "trigger_adhoc_command_as_user_unauthorized") +550 public void triggerAdhocCommandAsUserUnauthorized() throws Exception { +551 RundeckClient client = createClient(TEST_TOKEN_3, 5); +552 +553 final RundeckExecution test; +554 try { +555 test = client.triggerAdhocCommand( +556 RunAdhocCommandBuilder.builder() +557 .setProject("test") +558 .setCommand("echo test trigger_adhoc_command_as_user") +559 .setAsUser("api-java-client-test-run-command-as-user1") +560 .build() +561 ); +562 Assert.fail("should not succeed"); +563 } catch (RundeckApiException e) { +564 Assert.assertEquals("Not authorized for action \"Run as User\" for Run Adhoc", e.getMessage()); +565 } +566 } +567 +568 @Test +569 @Betamax(tape = "trigger_adhoc_script") +570 public void triggerAdhocScriptDeprecated() throws Exception { +571 RundeckClient client = createClient(TEST_TOKEN_3, 5); +572 String script = "#!/bin/bash\n" + +573 "echo test trigger_adhoc_script\n"; +574 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(script.getBytes()); +575 +576 final RundeckExecution test +577 = client.triggerAdhocScript("test", byteArrayInputStream,(Properties) null, null, null, null, null); +578 +579 Assert.assertEquals((Long) 25L, test.getId()); +580 Assert.assertEquals(null, test.getArgstring()); +581 Assert.assertEquals(null, test.getAbortedBy()); +582 Assert.assertEquals("#!/bin/bash\necho test trigger_adhoc_script", test.getDescription()); +583 Assert.assertEquals("admin", test.getStartedBy()); +584 Assert.assertEquals(RundeckExecution.ExecutionStatus.RUNNING, test.getStatus()); +585 } +586 @Test +587 @Betamax(tape = "trigger_adhoc_script") +588 public void triggerAdhocScript() throws Exception { +589 RundeckClient client = createClient(TEST_TOKEN_3, 5); +590 String script = "#!/bin/bash\n" + +591 "echo test trigger_adhoc_script\n"; +592 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(script.getBytes()); +593 +594 final RundeckExecution test +595 = client.triggerAdhocScript(RunAdhocScriptBuilder.builder().setProject("test").setScript +596 (byteArrayInputStream).build()); +597 +598 Assert.assertEquals((Long) 25L, test.getId()); +599 Assert.assertEquals(null, test.getArgstring()); +600 Assert.assertEquals(null, test.getAbortedBy()); +601 Assert.assertEquals("#!/bin/bash\necho test trigger_adhoc_script", test.getDescription()); +602 Assert.assertEquals("admin", test.getStartedBy()); +603 Assert.assertEquals(RundeckExecution.ExecutionStatus.RUNNING, test.getStatus()); +604 } +605 @Test +606 @Betamax(tape = "trigger_adhoc_script_as_user") +607 public void triggerAdhocScriptDeprecatedAsUser() throws Exception { +608 RundeckClient client = createClient(TEST_TOKEN_3, 5); +609 String script = "#!/bin/bash\n" + +610 "echo test trigger_adhoc_script\n"; +611 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(script.getBytes()); +612 +613 final RundeckExecution test +614 = client.triggerAdhocScript("test", byteArrayInputStream, (Properties) null, null, null, null, "api-java-client-test-adhoc-script-as-user1"); +615 +616 Assert.assertEquals((Long) 26L, test.getId()); +617 Assert.assertEquals(null, test.getArgstring()); +618 Assert.assertEquals(null, test.getAbortedBy()); +619 Assert.assertEquals("#!/bin/bash\necho test trigger_adhoc_script", test.getDescription()); +620 Assert.assertEquals("api-java-client-test-adhoc-script-as-user1", test.getStartedBy()); +621 Assert.assertEquals(RundeckExecution.ExecutionStatus.RUNNING, test.getStatus()); +622 } +623 @Test +624 @Betamax(tape = "trigger_adhoc_script_as_user") +625 public void triggerAdhocScriptAsUser() throws Exception { +626 RundeckClient client = createClient(TEST_TOKEN_3, 5); +627 String script = "#!/bin/bash\n" + +628 "echo test trigger_adhoc_script\n"; +629 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(script.getBytes()); +630 +631 final RundeckExecution test +632 = client.triggerAdhocScript(RunAdhocScriptBuilder.builder().setProject("test").setScript +633 (byteArrayInputStream).setAsUser("api-java-client-test-adhoc-script-as-user1").build()); +634 +635 Assert.assertEquals((Long) 26L, test.getId()); +636 Assert.assertEquals(null, test.getArgstring()); +637 Assert.assertEquals(null, test.getAbortedBy()); +638 Assert.assertEquals("#!/bin/bash\necho test trigger_adhoc_script", test.getDescription()); +639 Assert.assertEquals("api-java-client-test-adhoc-script-as-user1", test.getStartedBy()); +640 Assert.assertEquals(RundeckExecution.ExecutionStatus.RUNNING, test.getStatus()); +641 } +642 @Test +643 @Betamax(tape = "trigger_adhoc_script_as_user_unauthorized") +644 public void triggerAdhocScriptDeprecatedAsUserUnauthorized() throws Exception { +645 RundeckClient client = createClient(TEST_TOKEN_3, 5); +646 String script = "#!/bin/bash\n" + +647 "echo test trigger_adhoc_script\n"; +648 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(script.getBytes()); +649 +650 try{ +651 final RundeckExecution test +652 = client.triggerAdhocScript("test", byteArrayInputStream, (Properties) null, null, null, null, "api-java-client-test-adhoc-script-as-user1"); +653 Assert.fail("should not succeed"); +654 } catch (RundeckApiException e) { +655 Assert.assertEquals("Not authorized for action \"Run as User\" for Run Adhoc", e.getMessage()); +656 } +657 +658 } +659 @Test +660 @Betamax(tape = "trigger_adhoc_script_as_user_unauthorized") +661 public void triggerAdhocScriptAsUserUnauthorized() throws Exception { +662 RundeckClient client = createClient(TEST_TOKEN_3, 5); +663 String script = "#!/bin/bash\n" + +664 "echo test trigger_adhoc_script\n"; +665 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(script.getBytes()); +666 +667 try{ +668 final RundeckExecution test +669 = client.triggerAdhocScript(RunAdhocScriptBuilder.builder().setProject("test").setScript +670 (byteArrayInputStream).setAsUser("api-java-client-test-adhoc-script-as-user1").build()); +671 Assert.fail("should not succeed"); +672 } catch (RundeckApiException e) { +673 Assert.assertEquals("Not authorized for action \"Run as User\" for Run Adhoc", e.getMessage()); +674 } +675 +676 } +677 +678 @Test +679 @Betamax(tape = "trigger_adhoc_script_interpreter") +680 public void triggerAdhocScriptInpterpreter() throws Exception { +681 RundeckClient client = createClient(TEST_TOKEN_3, 8); +682 String script = "#!/bin/bash\n" + +683 "echo test trigger_adhoc_script\n"; +684 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(script.getBytes()); +685 final RundeckExecution test +686 = client.triggerAdhocScript(RunAdhocScriptBuilder.builder() +687 .setProject("test").setScript(byteArrayInputStream) +688 .setScriptInterpreter("sudo -c bob") +689 .build()); 690 -691 long executionId = 21L; -692 final RundeckAbort test = client.abortExecution(executionId); -693 -694 Assert.assertEquals((Long) executionId,test.getExecution().getId()); -695 Assert.assertEquals(RundeckAbort.AbortStatus.PENDING,test.getStatus()); -696 } -697 @Test -698 @Betamax(tape = "abort_execution_as_user") -699 public void abortExecutionAsUser() throws Exception { -700 RundeckClient client = createClient(TEST_TOKEN_3, 5); -701 -702 long executionId = 22L; -703 final RundeckAbort test = client.abortExecution(executionId,"api-java-client-test-abort-as-user1"); -704 -705 Assert.assertEquals((Long) executionId,test.getExecution().getId()); -706 Assert.assertEquals(RundeckAbort.AbortStatus.PENDING,test.getStatus()); -707 } -708 @Test -709 @Betamax(tape = "abort_execution_as_user_unauthorized") -710 public void abortExecutionAsUserUnauthorized() throws Exception { -711 RundeckClient client = createClient(TEST_TOKEN_3, 5); -712 -713 long executionId = 28L; -714 final RundeckAbort test = client.abortExecution(executionId, "api-java-client-test-abort-as-user1"); -715 Assert.assertEquals(RundeckAbort.AbortStatus.FAILED, test.getStatus()); -716 } -717 private void assertPageResults(PagedResults<RundeckExecution> jobTest, -718 final int size, -719 final int count, final int max, final int offset, final int total) { -720 Assert.assertEquals(size, jobTest.getResults().size()); -721 Assert.assertEquals(count, jobTest.getCount()); -722 Assert.assertEquals(max, jobTest.getMax()); -723 Assert.assertEquals(offset, jobTest.getOffset()); -724 Assert.assertEquals(total, jobTest.getTotal()); -725 } -726 -727 /** -728 * Import jobs, xml contains project context -729 * @throws Exception -730 */ -731 @Test -732 @Betamax(tape = "import_jobs_context_project") -733 public void importJobsContextProject() throws Exception { -734 final RundeckClient client = createClient(TEST_TOKEN_4, 8); -735 InputStream stream=new ByteArrayInputStream( -736 ("<joblist>\n" + -737 " <job>\n" + -738 " <loglevel>INFO</loglevel>\n" + -739 " <sequence keepgoing='false' strategy='node-first'>\n" + -740 " <command>\n" + -741 " <exec>echo hi</exec>\n" + -742 " </command>\n" + -743 " </sequence>\n" + -744 " <description></description>\n" + -745 " <name>job1</name>\n" + -746 " <context>\n" + -747 " <project>test</project>\n" + -748 " </context>\n" + -749 " </job>\n" + -750 "</joblist>").getBytes("utf-8")); -751 -752 final RundeckJobsImport jobsImport = RundeckJobsImportBuilder.builder() -753 .setStream(stream) -754 .setFileType(FileType.XML) -755 .setJobsImportMethod(RundeckJobsImportMethod.CREATE) -756 .build(); -757 RundeckJobsImportResult rundeckJobsImportResult = client.importJobs(jobsImport); -758 Assert.assertEquals(0,rundeckJobsImportResult.getFailedJobs().size()); -759 Assert.assertEquals(0,rundeckJobsImportResult.getSkippedJobs().size()); -760 Assert.assertEquals(1,rundeckJobsImportResult.getSucceededJobs().size()); -761 RundeckJob rundeckJob = rundeckJobsImportResult.getSucceededJobs().get(0); -762 Assert.assertEquals("job1", rundeckJob.getName()); -763 Assert.assertEquals("test", rundeckJob.getProject()); -764 } -765 /** -766 * Import jobs, xml no project defined -767 * @throws Exception -768 */ -769 @Test -770 @Betamax(tape = "import_jobs_no_project") -771 public void importJobsNoProject() throws Exception { -772 final RundeckClient client = createClient(TEST_TOKEN_4, 8); -773 InputStream stream=new ByteArrayInputStream( -774 ("<joblist>\n" + -775 " <job>\n" + -776 " <loglevel>INFO</loglevel>\n" + -777 " <sequence keepgoing='false' strategy='node-first'>\n" + -778 " <command>\n" + -779 " <exec>echo hi</exec>\n" + -780 " </command>\n" + -781 " </sequence>\n" + -782 " <description></description>\n" + -783 " <name>job2</name>\n" + -784 " </job>\n" + -785 "</joblist>").getBytes("utf-8")); -786 -787 final RundeckJobsImport jobsImport = RundeckJobsImportBuilder.builder() -788 .setStream(stream) -789 .setFileType(FileType.XML) -790 .setJobsImportMethod(RundeckJobsImportMethod.CREATE) -791 .build(); -792 RundeckJobsImportResult rundeckJobsImportResult = client.importJobs(jobsImport); -793 Assert.assertEquals(1,rundeckJobsImportResult.getFailedJobs().size()); -794 Assert.assertEquals(0,rundeckJobsImportResult.getSkippedJobs().size()); -795 Assert.assertEquals(0,rundeckJobsImportResult.getSucceededJobs().size()); -796 RundeckJob rundeckJob = rundeckJobsImportResult.getFailedJobs().entrySet().iterator().next().getKey(); -797 String reason = rundeckJobsImportResult.getFailedJobs().get(rundeckJob); -798 Assert.assertEquals("job2", rundeckJob.getName()); -799 Assert.assertEquals(null, rundeckJob.getProject()); -800 Assert.assertTrue(reason.contains("Project was not specified")); -801 } -802 /** -803 * Import jobs, using project parameter -804 * @throws Exception -805 */ -806 @Test -807 @Betamax(tape = "import_jobs_project_param") -808 public void importJobsProjectParam() throws Exception { -809 final RundeckClient client = createClient(TEST_TOKEN_4, 8); -810 InputStream stream=new ByteArrayInputStream( -811 ("<joblist>\n" + -812 " <job>\n" + -813 " <loglevel>INFO</loglevel>\n" + -814 " <sequence keepgoing='false' strategy='node-first'>\n" + -815 " <command>\n" + -816 " <exec>echo hi</exec>\n" + -817 " </command>\n" + -818 " </sequence>\n" + -819 " <description></description>\n" + -820 " <name>importJobsProjectParam</name>\n" + -821 " </job>\n" + -822 "</joblist>").getBytes("utf-8")); -823 -824 final RundeckJobsImport jobsImport = RundeckJobsImportBuilder.builder() -825 .setStream(stream) -826 .setFileType(FileType.XML) -827 .setJobsImportMethod(RundeckJobsImportMethod.CREATE) -828 .setProject("test") -829 .build(); -830 RundeckJobsImportResult rundeckJobsImportResult = client.importJobs(jobsImport); -831 Assert.assertEquals(0,rundeckJobsImportResult.getFailedJobs().size()); -832 Assert.assertEquals(0,rundeckJobsImportResult.getSkippedJobs().size()); -833 Assert.assertEquals(1,rundeckJobsImportResult.getSucceededJobs().size()); -834 RundeckJob rundeckJob = rundeckJobsImportResult.getSucceededJobs().get(0); -835 Assert.assertEquals("importJobsProjectParam", rundeckJob.getName()); -836 Assert.assertEquals("test", rundeckJob.getProject()); -837 } -838 /** -839 * Import jobs, project parameter overrides xml -840 * @throws Exception -841 */ -842 @Test -843 @Betamax(tape = "import_jobs_project_param_override") -844 public void importJobsProjectParamOverride() throws Exception { -845 final RundeckClient client = createClient(TEST_TOKEN_4, 8); -846 InputStream stream=new ByteArrayInputStream( -847 ("<joblist>\n" + -848 " <job>\n" + -849 " <loglevel>INFO</loglevel>\n" + -850 " <sequence keepgoing='false' strategy='node-first'>\n" + -851 " <command>\n" + -852 " <exec>echo hi</exec>\n" + -853 " </command>\n" + -854 " </sequence>\n" + -855 " <description></description>\n" + -856 " <name>importJobsProjectParamOverride</name>\n" + -857 " <context>\n" + -858 " <project>testXYZ</project>\n" + -859 " </context>\n" + -860 " </job>\n" + -861 "</joblist>").getBytes("utf-8")); -862 -863 final RundeckJobsImport jobsImport = RundeckJobsImportBuilder.builder() -864 .setStream(stream) -865 .setFileType(FileType.XML) -866 .setJobsImportMethod(RundeckJobsImportMethod.CREATE) -867 .setProject("test") -868 .build(); -869 RundeckJobsImportResult rundeckJobsImportResult = client.importJobs(jobsImport); -870 Assert.assertEquals(0,rundeckJobsImportResult.getFailedJobs().size()); -871 Assert.assertEquals(0,rundeckJobsImportResult.getSkippedJobs().size()); -872 Assert.assertEquals(1,rundeckJobsImportResult.getSucceededJobs().size()); -873 RundeckJob rundeckJob = rundeckJobsImportResult.getSucceededJobs().get(0); -874 Assert.assertEquals("importJobsProjectParamOverride", rundeckJob.getName()); -875 Assert.assertEquals("test", rundeckJob.getProject()); -876 } -877 /** -878 * Import jobs, project parameter v7 doesn' use parameter -879 * @throws Exception -880 */ -881 @Test -882 @Betamax(tape = "import_jobs_project_param_v7") -883 public void importJobsProjectParamV7() throws Exception { -884 final RundeckClient client = createClient(TEST_TOKEN_4, 7); -885 InputStream stream=new ByteArrayInputStream( -886 ("<joblist>\n" + -887 " <job>\n" + -888 " <loglevel>INFO</loglevel>\n" + -889 " <sequence keepgoing='false' strategy='node-first'>\n" + -890 " <command>\n" + -891 " <exec>echo hi</exec>\n" + -892 " </command>\n" + -893 " </sequence>\n" + -894 " <description></description>\n" + -895 " <name>importJobsProjectParamV7</name>\n" + -896 " <context>\n" + -897 " <project>testXYZ</project>\n" + -898 " </context>\n" + -899 " </job>\n" + -900 "</joblist>").getBytes("utf-8")); -901 -902 final RundeckJobsImport jobsImport = RundeckJobsImportBuilder.builder() -903 .setStream(stream) -904 .setFileType(FileType.XML) -905 .setJobsImportMethod(RundeckJobsImportMethod.CREATE) -906 .setProject("test") -907 .build(); -908 RundeckJobsImportResult rundeckJobsImportResult = client.importJobs(jobsImport); -909 Assert.assertEquals(0,rundeckJobsImportResult.getFailedJobs().size()); -910 Assert.assertEquals(0,rundeckJobsImportResult.getSkippedJobs().size()); -911 Assert.assertEquals(1,rundeckJobsImportResult.getSucceededJobs().size()); -912 RundeckJob rundeckJob = rundeckJobsImportResult.getSucceededJobs().get(0); -913 Assert.assertEquals("importJobsProjectParamV7", rundeckJob.getName()); -914 Assert.assertEquals("testXYZ", rundeckJob.getProject()); -915 } -916 /** -917 * Import jobs, project parameter v7 doesn' use parameter -918 * @throws Exception -919 */ -920 @Test -921 @Betamax(tape = "import_jobs_uuid_param_remove_v9") -922 public void importJobsUUIDParamRemoveV9() throws Exception { -923 final RundeckClient client = createClient(TEST_TOKEN_6, 9); -924 InputStream stream=new ByteArrayInputStream( -925 ("<joblist>\n" + -926 " <job>\n" + -927 " <uuid>testImportUUID</uuid>\n" + -928 " <loglevel>INFO</loglevel>\n" + -929 " <sequence keepgoing='false' strategy='node-first'>\n" + -930 " <command>\n" + -931 " <exec>echo hi</exec>\n" + -932 " </command>\n" + -933 " </sequence>\n" + -934 " <description></description>\n" + -935 " <name>importJobsUUIDParamRemoveV9</name>\n" + -936 " </job>\n" + -937 "</joblist>").getBytes("utf-8")); -938 -939 final RundeckJobsImport jobsImport = RundeckJobsImportBuilder.builder() -940 .setStream(stream) -941 .setFileType(FileType.XML) -942 .setJobsImportMethod(RundeckJobsImportMethod.CREATE) -943 .setUUIDImportBehavior(RundeckJobsUUIDImportBehavior.REMOVE) -944 .setProject("test") -945 .build(); -946 RundeckJobsImportResult rundeckJobsImportResult = client.importJobs(jobsImport); -947 Assert.assertEquals(0,rundeckJobsImportResult.getFailedJobs().size()); -948 Assert.assertEquals(0,rundeckJobsImportResult.getSkippedJobs().size()); -949 Assert.assertEquals(1,rundeckJobsImportResult.getSucceededJobs().size()); -950 RundeckJob rundeckJob = rundeckJobsImportResult.getSucceededJobs().get(0); -951 Assert.assertEquals("importJobsUUIDParamRemoveV9", rundeckJob.getName()); -952 Assert.assertFalse("testImportUUID".equals(rundeckJob.getId())); -953 Assert.assertEquals("b33c8bb1-4dfc-4661-a890-4164b264cc4a", rundeckJob.getId()); -954 } -955 /** -956 * Import jobs, project parameter v7 doesn' use parameter -957 * @throws Exception -958 */ -959 @Test -960 @Betamax(tape = "import_jobs_uuid_param_preserve_v9") -961 public void importJobsUUIDParamPreserveV9() throws Exception { -962 final RundeckClient client = createClient(TEST_TOKEN_6, 9); -963 InputStream stream=new ByteArrayInputStream( -964 ("<joblist>\n" + -965 " <job>\n" + -966 " <uuid>testImportUUID</uuid>\n" + -967 " <loglevel>INFO</loglevel>\n" + -968 " <sequence keepgoing='false' strategy='node-first'>\n" + -969 " <command>\n" + -970 " <exec>echo hi</exec>\n" + -971 " </command>\n" + -972 " </sequence>\n" + -973 " <description></description>\n" + -974 " <name>importJobsUUIDParamPreserveV9</name>\n" + -975 " </job>\n" + -976 "</joblist>").getBytes("utf-8")); -977 -978 final RundeckJobsImport jobsImport = RundeckJobsImportBuilder.builder() -979 .setStream(stream) -980 .setFileType(FileType.XML) -981 .setJobsImportMethod(RundeckJobsImportMethod.CREATE) -982 .setUUIDImportBehavior(RundeckJobsUUIDImportBehavior.PRESERVE) -983 .setProject("test") -984 .build(); -985 RundeckJobsImportResult rundeckJobsImportResult = client.importJobs(jobsImport); -986 Assert.assertEquals(0,rundeckJobsImportResult.getFailedJobs().size()); -987 Assert.assertEquals(0,rundeckJobsImportResult.getSkippedJobs().size()); -988 Assert.assertEquals(1,rundeckJobsImportResult.getSucceededJobs().size()); -989 RundeckJob rundeckJob = rundeckJobsImportResult.getSucceededJobs().get(0); -990 Assert.assertEquals("importJobsUUIDParamPreserveV9", rundeckJob.getName()); -991 Assert.assertEquals("testImportUUID", rundeckJob.getId()); -992 } -993 /** -994 * Running executions for all projects using API v9 -995 * @throws Exception -996 */ -997 @Test -998 @Betamax(tape = "running_executions_v9") -999 public void runningExecutionsV9() throws Exception { -1000 final RundeckClient client = createClient(TEST_TOKEN_5, 9); -1001 List<RundeckExecution> runningExecutions = client.getRunningExecutions(); -1002 Assert.assertEquals(2, runningExecutions.size()); -1003 RundeckExecution exec1 = runningExecutions.get(0); -1004 Assert.assertEquals("test", exec1.getProject()); -1005 RundeckExecution exec2 = runningExecutions.get(1); -1006 Assert.assertEquals("test2", exec2.getProject()); -1007 } -1008 -1009 /** -1010 * Running executions for all projects using API v8, which queries for project list and then individually -1011 * queries each project's now running -1012 * @throws Exception -1013 */ -1014 @Test -1015 @Betamax(tape = "running_executions_v8") -1016 public void runningExecutionsV8() throws Exception { -1017 final RundeckClient client = createClient(TEST_TOKEN_5, 8); -1018 List<RundeckExecution> runningExecutions = client.getRunningExecutions(); -1019 Assert.assertEquals(2, runningExecutions.size()); -1020 RundeckExecution exec1 = runningExecutions.get(0); -1021 Assert.assertEquals("test", exec1.getProject()); -1022 RundeckExecution exec2 = runningExecutions.get(1); -1023 Assert.assertEquals("test2", exec2.getProject()); -1024 } -1025 -1026 @Before -1027 public void setUp() throws Exception { -1028 // not that you can put whatever here, because we don't actually connect to the RunDeck instance -1029 // but instead use betamax as a proxy to serve the previously recorded tapes (in src/test/resources) -1030 client = createClient(TEST_TOKEN_0, 5); -1031 } -1032 -1033 private RundeckClient createClient(final String token, int version) { -1034 return createBuilder(token).version(version).build(); -1035 } -1036 -1037 private RundeckClient createClient(String token) { -1038 return createBuilder(token) -1039 .build(); -1040 } -1041 -1042 private RundeckClientBuilder createBuilder(String token) { -1043 return RundeckClient.builder().url("http://rundeck.local:4440") -1044 .token(token); -1045 } -1046 -1047 } +691 Assert.assertEquals((Long) 27L, test.getId()); +692 Assert.assertEquals(null, test.getArgstring()); +693 Assert.assertEquals(null, test.getAbortedBy()); +694 Assert.assertEquals("#!/bin/bash\necho test trigger_adhoc_script", test.getDescription()); +695 Assert.assertEquals("admin", test.getStartedBy()); +696 Assert.assertEquals(RundeckExecution.ExecutionStatus.RUNNING, test.getStatus()); +697 } +698 @Test +699 @Betamax(tape = "abort_execution") +700 public void abortExecution() throws Exception { +701 RundeckClient client = createClient(TEST_TOKEN_3, 5); +702 +703 long executionId = 21L; +704 final RundeckAbort test = client.abortExecution(executionId); +705 +706 Assert.assertEquals((Long) executionId,test.getExecution().getId()); +707 Assert.assertEquals(RundeckAbort.AbortStatus.PENDING,test.getStatus()); +708 } +709 @Test +710 @Betamax(tape = "abort_execution_as_user") +711 public void abortExecutionAsUser() throws Exception { +712 RundeckClient client = createClient(TEST_TOKEN_3, 5); +713 +714 long executionId = 22L; +715 final RundeckAbort test = client.abortExecution(executionId,"api-java-client-test-abort-as-user1"); +716 +717 Assert.assertEquals((Long) executionId,test.getExecution().getId()); +718 Assert.assertEquals(RundeckAbort.AbortStatus.PENDING,test.getStatus()); +719 } +720 @Test +721 @Betamax(tape = "abort_execution_as_user_unauthorized") +722 public void abortExecutionAsUserUnauthorized() throws Exception { +723 RundeckClient client = createClient(TEST_TOKEN_3, 5); +724 +725 long executionId = 28L; +726 final RundeckAbort test = client.abortExecution(executionId, "api-java-client-test-abort-as-user1"); +727 Assert.assertEquals(RundeckAbort.AbortStatus.FAILED, test.getStatus()); +728 } +729 private void assertPageResults(PagedResults<RundeckExecution> jobTest, +730 final int size, +731 final int count, final int max, final int offset, final int total) { +732 Assert.assertEquals(size, jobTest.getResults().size()); +733 Assert.assertEquals(count, jobTest.getCount()); +734 Assert.assertEquals(max, jobTest.getMax()); +735 Assert.assertEquals(offset, jobTest.getOffset()); +736 Assert.assertEquals(total, jobTest.getTotal()); +737 } +738 +739 /** +740 * Import jobs, xml contains project context +741 * @throws Exception +742 */ +743 @Test +744 @Betamax(tape = "import_jobs_context_project") +745 public void importJobsContextProject() throws Exception { +746 final RundeckClient client = createClient(TEST_TOKEN_4, 8); +747 InputStream stream=new ByteArrayInputStream( +748 ("<joblist>\n" + +749 " <job>\n" + +750 " <loglevel>INFO</loglevel>\n" + +751 " <sequence keepgoing='false' strategy='node-first'>\n" + +752 " <command>\n" + +753 " <exec>echo hi</exec>\n" + +754 " </command>\n" + +755 " </sequence>\n" + +756 " <description></description>\n" + +757 " <name>job1</name>\n" + +758 " <context>\n" + +759 " <project>test</project>\n" + +760 " </context>\n" + +761 " </job>\n" + +762 "</joblist>").getBytes("utf-8")); +763 +764 final RundeckJobsImport jobsImport = RundeckJobsImportBuilder.builder() +765 .setStream(stream) +766 .setFileType(FileType.XML) +767 .setJobsImportMethod(RundeckJobsImportMethod.CREATE) +768 .build(); +769 RundeckJobsImportResult rundeckJobsImportResult = client.importJobs(jobsImport); +770 Assert.assertEquals(0,rundeckJobsImportResult.getFailedJobs().size()); +771 Assert.assertEquals(0,rundeckJobsImportResult.getSkippedJobs().size()); +772 Assert.assertEquals(1,rundeckJobsImportResult.getSucceededJobs().size()); +773 RundeckJob rundeckJob = rundeckJobsImportResult.getSucceededJobs().get(0); +774 Assert.assertEquals("job1", rundeckJob.getName()); +775 Assert.assertEquals("test", rundeckJob.getProject()); +776 } +777 /** +778 * Import jobs, xml no project defined +779 * @throws Exception +780 */ +781 @Test +782 @Betamax(tape = "import_jobs_no_project") +783 public void importJobsNoProject() throws Exception { +784 final RundeckClient client = createClient(TEST_TOKEN_4, 8); +785 InputStream stream=new ByteArrayInputStream( +786 ("<joblist>\n" + +787 " <job>\n" + +788 " <loglevel>INFO</loglevel>\n" + +789 " <sequence keepgoing='false' strategy='node-first'>\n" + +790 " <command>\n" + +791 " <exec>echo hi</exec>\n" + +792 " </command>\n" + +793 " </sequence>\n" + +794 " <description></description>\n" + +795 " <name>job2</name>\n" + +796 " </job>\n" + +797 "</joblist>").getBytes("utf-8")); +798 +799 final RundeckJobsImport jobsImport = RundeckJobsImportBuilder.builder() +800 .setStream(stream) +801 .setFileType(FileType.XML) +802 .setJobsImportMethod(RundeckJobsImportMethod.CREATE) +803 .build(); +804 RundeckJobsImportResult rundeckJobsImportResult = client.importJobs(jobsImport); +805 Assert.assertEquals(1,rundeckJobsImportResult.getFailedJobs().size()); +806 Assert.assertEquals(0,rundeckJobsImportResult.getSkippedJobs().size()); +807 Assert.assertEquals(0,rundeckJobsImportResult.getSucceededJobs().size()); +808 RundeckJob rundeckJob = rundeckJobsImportResult.getFailedJobs().entrySet().iterator().next().getKey(); +809 String reason = rundeckJobsImportResult.getFailedJobs().get(rundeckJob); +810 Assert.assertEquals("job2", rundeckJob.getName()); +811 Assert.assertEquals(null, rundeckJob.getProject()); +812 Assert.assertTrue(reason.contains("Project was not specified")); +813 } +814 /** +815 * Import jobs, using project parameter +816 * @throws Exception +817 */ +818 @Test +819 @Betamax(tape = "import_jobs_project_param") +820 public void importJobsProjectParam() throws Exception { +821 final RundeckClient client = createClient(TEST_TOKEN_4, 8); +822 InputStream stream=new ByteArrayInputStream( +823 ("<joblist>\n" + +824 " <job>\n" + +825 " <loglevel>INFO</loglevel>\n" + +826 " <sequence keepgoing='false' strategy='node-first'>\n" + +827 " <command>\n" + +828 " <exec>echo hi</exec>\n" + +829 " </command>\n" + +830 " </sequence>\n" + +831 " <description></description>\n" + +832 " <name>importJobsProjectParam</name>\n" + +833 " </job>\n" + +834 "</joblist>").getBytes("utf-8")); +835 +836 final RundeckJobsImport jobsImport = RundeckJobsImportBuilder.builder() +837 .setStream(stream) +838 .setFileType(FileType.XML) +839 .setJobsImportMethod(RundeckJobsImportMethod.CREATE) +840 .setProject("test") +841 .build(); +842 RundeckJobsImportResult rundeckJobsImportResult = client.importJobs(jobsImport); +843 Assert.assertEquals(0,rundeckJobsImportResult.getFailedJobs().size()); +844 Assert.assertEquals(0,rundeckJobsImportResult.getSkippedJobs().size()); +845 Assert.assertEquals(1,rundeckJobsImportResult.getSucceededJobs().size()); +846 RundeckJob rundeckJob = rundeckJobsImportResult.getSucceededJobs().get(0); +847 Assert.assertEquals("importJobsProjectParam", rundeckJob.getName()); +848 Assert.assertEquals("test", rundeckJob.getProject()); +849 } +850 /** +851 * Import jobs, project parameter overrides xml +852 * @throws Exception +853 */ +854 @Test +855 @Betamax(tape = "import_jobs_project_param_override") +856 public void importJobsProjectParamOverride() throws Exception { +857 final RundeckClient client = createClient(TEST_TOKEN_4, 8); +858 InputStream stream=new ByteArrayInputStream( +859 ("<joblist>\n" + +860 " <job>\n" + +861 " <loglevel>INFO</loglevel>\n" + +862 " <sequence keepgoing='false' strategy='node-first'>\n" + +863 " <command>\n" + +864 " <exec>echo hi</exec>\n" + +865 " </command>\n" + +866 " </sequence>\n" + +867 " <description></description>\n" + +868 " <name>importJobsProjectParamOverride</name>\n" + +869 " <context>\n" + +870 " <project>testXYZ</project>\n" + +871 " </context>\n" + +872 " </job>\n" + +873 "</joblist>").getBytes("utf-8")); +874 +875 final RundeckJobsImport jobsImport = RundeckJobsImportBuilder.builder() +876 .setStream(stream) +877 .setFileType(FileType.XML) +878 .setJobsImportMethod(RundeckJobsImportMethod.CREATE) +879 .setProject("test") +880 .build(); +881 RundeckJobsImportResult rundeckJobsImportResult = client.importJobs(jobsImport); +882 Assert.assertEquals(0,rundeckJobsImportResult.getFailedJobs().size()); +883 Assert.assertEquals(0,rundeckJobsImportResult.getSkippedJobs().size()); +884 Assert.assertEquals(1,rundeckJobsImportResult.getSucceededJobs().size()); +885 RundeckJob rundeckJob = rundeckJobsImportResult.getSucceededJobs().get(0); +886 Assert.assertEquals("importJobsProjectParamOverride", rundeckJob.getName()); +887 Assert.assertEquals("test", rundeckJob.getProject()); +888 } +889 /** +890 * Import jobs, project parameter v7 doesn' use parameter +891 * @throws Exception +892 */ +893 @Test +894 @Betamax(tape = "import_jobs_project_param_v7") +895 public void importJobsProjectParamV7() throws Exception { +896 final RundeckClient client = createClient(TEST_TOKEN_4, 7); +897 InputStream stream=new ByteArrayInputStream( +898 ("<joblist>\n" + +899 " <job>\n" + +900 " <loglevel>INFO</loglevel>\n" + +901 " <sequence keepgoing='false' strategy='node-first'>\n" + +902 " <command>\n" + +903 " <exec>echo hi</exec>\n" + +904 " </command>\n" + +905 " </sequence>\n" + +906 " <description></description>\n" + +907 " <name>importJobsProjectParamV7</name>\n" + +908 " <context>\n" + +909 " <project>testXYZ</project>\n" + +910 " </context>\n" + +911 " </job>\n" + +912 "</joblist>").getBytes("utf-8")); +913 +914 final RundeckJobsImport jobsImport = RundeckJobsImportBuilder.builder() +915 .setStream(stream) +916 .setFileType(FileType.XML) +917 .setJobsImportMethod(RundeckJobsImportMethod.CREATE) +918 .setProject("test") +919 .build(); +920 RundeckJobsImportResult rundeckJobsImportResult = client.importJobs(jobsImport); +921 Assert.assertEquals(0,rundeckJobsImportResult.getFailedJobs().size()); +922 Assert.assertEquals(0,rundeckJobsImportResult.getSkippedJobs().size()); +923 Assert.assertEquals(1,rundeckJobsImportResult.getSucceededJobs().size()); +924 RundeckJob rundeckJob = rundeckJobsImportResult.getSucceededJobs().get(0); +925 Assert.assertEquals("importJobsProjectParamV7", rundeckJob.getName()); +926 Assert.assertEquals("testXYZ", rundeckJob.getProject()); +927 } +928 /** +929 * Import jobs, project parameter v7 doesn' use parameter +930 * @throws Exception +931 */ +932 @Test +933 @Betamax(tape = "import_jobs_uuid_param_remove_v9") +934 public void importJobsUUIDParamRemoveV9() throws Exception { +935 final RundeckClient client = createClient(TEST_TOKEN_6, 9); +936 InputStream stream=new ByteArrayInputStream( +937 ("<joblist>\n" + +938 " <job>\n" + +939 " <uuid>testImportUUID</uuid>\n" + +940 " <loglevel>INFO</loglevel>\n" + +941 " <sequence keepgoing='false' strategy='node-first'>\n" + +942 " <command>\n" + +943 " <exec>echo hi</exec>\n" + +944 " </command>\n" + +945 " </sequence>\n" + +946 " <description></description>\n" + +947 " <name>importJobsUUIDParamRemoveV9</name>\n" + +948 " </job>\n" + +949 "</joblist>").getBytes("utf-8")); +950 +951 final RundeckJobsImport jobsImport = RundeckJobsImportBuilder.builder() +952 .setStream(stream) +953 .setFileType(FileType.XML) +954 .setJobsImportMethod(RundeckJobsImportMethod.CREATE) +955 .setUUIDImportBehavior(RundeckJobsUUIDImportBehavior.REMOVE) +956 .setProject("test") +957 .build(); +958 RundeckJobsImportResult rundeckJobsImportResult = client.importJobs(jobsImport); +959 Assert.assertEquals(0,rundeckJobsImportResult.getFailedJobs().size()); +960 Assert.assertEquals(0,rundeckJobsImportResult.getSkippedJobs().size()); +961 Assert.assertEquals(1,rundeckJobsImportResult.getSucceededJobs().size()); +962 RundeckJob rundeckJob = rundeckJobsImportResult.getSucceededJobs().get(0); +963 Assert.assertEquals("importJobsUUIDParamRemoveV9", rundeckJob.getName()); +964 Assert.assertFalse("testImportUUID".equals(rundeckJob.getId())); +965 Assert.assertEquals("b33c8bb1-4dfc-4661-a890-4164b264cc4a", rundeckJob.getId()); +966 } +967 /** +968 * Import jobs, project parameter v7 doesn' use parameter +969 * @throws Exception +970 */ +971 @Test +972 @Betamax(tape = "import_jobs_uuid_param_preserve_v9") +973 public void importJobsUUIDParamPreserveV9() throws Exception { +974 final RundeckClient client = createClient(TEST_TOKEN_6, 9); +975 InputStream stream=new ByteArrayInputStream( +976 ("<joblist>\n" + +977 " <job>\n" + +978 " <uuid>testImportUUID</uuid>\n" + +979 " <loglevel>INFO</loglevel>\n" + +980 " <sequence keepgoing='false' strategy='node-first'>\n" + +981 " <command>\n" + +982 " <exec>echo hi</exec>\n" + +983 " </command>\n" + +984 " </sequence>\n" + +985 " <description></description>\n" + +986 " <name>importJobsUUIDParamPreserveV9</name>\n" + +987 " </job>\n" + +988 "</joblist>").getBytes("utf-8")); +989 +990 final RundeckJobsImport jobsImport = RundeckJobsImportBuilder.builder() +991 .setStream(stream) +992 .setFileType(FileType.XML) +993 .setJobsImportMethod(RundeckJobsImportMethod.CREATE) +994 .setUUIDImportBehavior(RundeckJobsUUIDImportBehavior.PRESERVE) +995 .setProject("test") +996 .build(); +997 RundeckJobsImportResult rundeckJobsImportResult = client.importJobs(jobsImport); +998 Assert.assertEquals(0,rundeckJobsImportResult.getFailedJobs().size()); +999 Assert.assertEquals(0,rundeckJobsImportResult.getSkippedJobs().size()); +1000 Assert.assertEquals(1,rundeckJobsImportResult.getSucceededJobs().size()); +1001 RundeckJob rundeckJob = rundeckJobsImportResult.getSucceededJobs().get(0); +1002 Assert.assertEquals("importJobsUUIDParamPreserveV9", rundeckJob.getName()); +1003 Assert.assertEquals("testImportUUID", rundeckJob.getId()); +1004 } +1005 /** +1006 * Running executions for all projects using API v9 +1007 * @throws Exception +1008 */ +1009 @Test +1010 @Betamax(tape = "running_executions_v9") +1011 public void runningExecutionsV9() throws Exception { +1012 final RundeckClient client = createClient(TEST_TOKEN_5, 9); +1013 List<RundeckExecution> runningExecutions = client.getRunningExecutions(); +1014 Assert.assertEquals(2, runningExecutions.size()); +1015 RundeckExecution exec1 = runningExecutions.get(0); +1016 Assert.assertEquals("test", exec1.getProject()); +1017 RundeckExecution exec2 = runningExecutions.get(1); +1018 Assert.assertEquals("test2", exec2.getProject()); +1019 } +1020 +1021 /** +1022 * Running executions for all projects using API v8, which queries for project list and then individually +1023 * queries each project's now running +1024 * @throws Exception +1025 */ +1026 @Test +1027 @Betamax(tape = "running_executions_v8") +1028 public void runningExecutionsV8() throws Exception { +1029 final RundeckClient client = createClient(TEST_TOKEN_5, 8); +1030 List<RundeckExecution> runningExecutions = client.getRunningExecutions(); +1031 Assert.assertEquals(2, runningExecutions.size()); +1032 RundeckExecution exec1 = runningExecutions.get(0); +1033 Assert.assertEquals("test", exec1.getProject()); +1034 RundeckExecution exec2 = runningExecutions.get(1); +1035 Assert.assertEquals("test2", exec2.getProject()); +1036 } +1037 +1038 @Before +1039 public void setUp() throws Exception { +1040 // not that you can put whatever here, because we don't actually connect to the RunDeck instance +1041 // but instead use betamax as a proxy to serve the previously recorded tapes (in src/test/resources) +1042 client = createClient(TEST_TOKEN_0, 5); +1043 } +1044 +1045 private RundeckClient createClient(final String token, int version) { +1046 return createBuilder(token).version(version).build(); +1047 } +1048 +1049 private RundeckClient createClient(String token) { +1050 return createBuilder(token) +1051 .build(); +1052 } +1053 +1054 private RundeckClientBuilder createBuilder(String token) { +1055 return RundeckClient.builder().url("http://rundeck.local:4440") +1056 .token(token); +1057 } +1058 +1059 }
    diff --git a/xref-test/org/rundeck/api/package-frame.html b/xref-test/org/rundeck/api/package-frame.html index 7875371..ee6abaf 100644 --- a/xref-test/org/rundeck/api/package-frame.html +++ b/xref-test/org/rundeck/api/package-frame.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference Package org.rundeck.api + RunDeck API - Java Client 9.2 Reference Package org.rundeck.api diff --git a/xref-test/org/rundeck/api/package-summary.html b/xref-test/org/rundeck/api/package-summary.html index 5c352a4..d4b650a 100644 --- a/xref-test/org/rundeck/api/package-summary.html +++ b/xref-test/org/rundeck/api/package-summary.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference Package org.rundeck.api + RunDeck API - Java Client 9.2 Reference Package org.rundeck.api diff --git a/xref-test/org/rundeck/api/parser/package-frame.html b/xref-test/org/rundeck/api/parser/package-frame.html index ea5dfb5..243c12a 100644 --- a/xref-test/org/rundeck/api/parser/package-frame.html +++ b/xref-test/org/rundeck/api/parser/package-frame.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference Package org.rundeck.api.parser + RunDeck API - Java Client 9.2 Reference Package org.rundeck.api.parser diff --git a/xref-test/org/rundeck/api/parser/package-summary.html b/xref-test/org/rundeck/api/parser/package-summary.html index c52e799..9e8338d 100644 --- a/xref-test/org/rundeck/api/parser/package-summary.html +++ b/xref-test/org/rundeck/api/parser/package-summary.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference Package org.rundeck.api.parser + RunDeck API - Java Client 9.2 Reference Package org.rundeck.api.parser diff --git a/xref-test/org/rundeck/api/util/package-frame.html b/xref-test/org/rundeck/api/util/package-frame.html index 8386b6b..56d3729 100644 --- a/xref-test/org/rundeck/api/util/package-frame.html +++ b/xref-test/org/rundeck/api/util/package-frame.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference Package org.rundeck.api.util + RunDeck API - Java Client 9.2 Reference Package org.rundeck.api.util diff --git a/xref-test/org/rundeck/api/util/package-summary.html b/xref-test/org/rundeck/api/util/package-summary.html index 92e715d..1a33407 100644 --- a/xref-test/org/rundeck/api/util/package-summary.html +++ b/xref-test/org/rundeck/api/util/package-summary.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference Package org.rundeck.api.util + RunDeck API - Java Client 9.2 Reference Package org.rundeck.api.util diff --git a/xref-test/overview-frame.html b/xref-test/overview-frame.html index 856e1b4..40630f3 100644 --- a/xref-test/overview-frame.html +++ b/xref-test/overview-frame.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference + RunDeck API - Java Client 9.2 Reference diff --git a/xref-test/overview-summary.html b/xref-test/overview-summary.html index cf26b9b..2ffe0f3 100644 --- a/xref-test/overview-summary.html +++ b/xref-test/overview-summary.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference + RunDeck API - Java Client 9.2 Reference @@ -24,7 +24,7 @@
    -

    RunDeck API - Java Client 9.2-SNAPSHOT Reference

    +

    RunDeck API - Java Client 9.2 Reference

    diff --git a/xref/index.html b/xref/index.html index 5169ac7..9e82a3d 100644 --- a/xref/index.html +++ b/xref/index.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference + RunDeck API - Java Client 9.2 Reference diff --git a/xref/org/rundeck/api/RundeckClient.html b/xref/org/rundeck/api/RundeckClient.html index 31040ec..0179353 100644 --- a/xref/org/rundeck/api/RundeckClient.html +++ b/xref/org/rundeck/api/RundeckClient.html @@ -167,15 +167,15 @@ 157 } 158159int getApiVersion() { -160return apiVersion; +160return (apiVersion > 0 ? apiVersion : API_VERSION); 161 } 162163void setApiVersion(int apiVersion) { -164this.apiVersion = apiVersion; +164this.apiVersion = (apiVersion > 0 ? apiVersion : API_VERSION); 165 } 166167void setApiVersion(Version apiVersion) { -168this.apiVersion = apiVersion.getVersionNumber(); +168 setApiVersion(apiVersion.getVersionNumber()); 169 } 170171 String getApiEndpoint() { diff --git a/xref/org/rundeck/api/domain/package-frame.html b/xref/org/rundeck/api/domain/package-frame.html index e62c68f..9c402e7 100644 --- a/xref/org/rundeck/api/domain/package-frame.html +++ b/xref/org/rundeck/api/domain/package-frame.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference Package org.rundeck.api.domain + RunDeck API - Java Client 9.2 Reference Package org.rundeck.api.domain diff --git a/xref/org/rundeck/api/domain/package-summary.html b/xref/org/rundeck/api/domain/package-summary.html index 29c5408..78d0a10 100644 --- a/xref/org/rundeck/api/domain/package-summary.html +++ b/xref/org/rundeck/api/domain/package-summary.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference Package org.rundeck.api.domain + RunDeck API - Java Client 9.2 Reference Package org.rundeck.api.domain diff --git a/xref/org/rundeck/api/package-frame.html b/xref/org/rundeck/api/package-frame.html index 0f1355f..157feea 100644 --- a/xref/org/rundeck/api/package-frame.html +++ b/xref/org/rundeck/api/package-frame.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference Package org.rundeck.api + RunDeck API - Java Client 9.2 Reference Package org.rundeck.api diff --git a/xref/org/rundeck/api/package-summary.html b/xref/org/rundeck/api/package-summary.html index a614611..e95b212 100644 --- a/xref/org/rundeck/api/package-summary.html +++ b/xref/org/rundeck/api/package-summary.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference Package org.rundeck.api + RunDeck API - Java Client 9.2 Reference Package org.rundeck.api diff --git a/xref/org/rundeck/api/parser/package-frame.html b/xref/org/rundeck/api/parser/package-frame.html index 3b304d1..5d3750e 100644 --- a/xref/org/rundeck/api/parser/package-frame.html +++ b/xref/org/rundeck/api/parser/package-frame.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference Package org.rundeck.api.parser + RunDeck API - Java Client 9.2 Reference Package org.rundeck.api.parser diff --git a/xref/org/rundeck/api/parser/package-summary.html b/xref/org/rundeck/api/parser/package-summary.html index 2480e89..3542bd7 100644 --- a/xref/org/rundeck/api/parser/package-summary.html +++ b/xref/org/rundeck/api/parser/package-summary.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference Package org.rundeck.api.parser + RunDeck API - Java Client 9.2 Reference Package org.rundeck.api.parser diff --git a/xref/org/rundeck/api/query/package-frame.html b/xref/org/rundeck/api/query/package-frame.html index 0e96a42..a869a1c 100644 --- a/xref/org/rundeck/api/query/package-frame.html +++ b/xref/org/rundeck/api/query/package-frame.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference Package org.rundeck.api.query + RunDeck API - Java Client 9.2 Reference Package org.rundeck.api.query diff --git a/xref/org/rundeck/api/query/package-summary.html b/xref/org/rundeck/api/query/package-summary.html index 0519afb..f83ba5a 100644 --- a/xref/org/rundeck/api/query/package-summary.html +++ b/xref/org/rundeck/api/query/package-summary.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference Package org.rundeck.api.query + RunDeck API - Java Client 9.2 Reference Package org.rundeck.api.query diff --git a/xref/org/rundeck/api/util/package-frame.html b/xref/org/rundeck/api/util/package-frame.html index 53237db..30e5b4a 100644 --- a/xref/org/rundeck/api/util/package-frame.html +++ b/xref/org/rundeck/api/util/package-frame.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference Package org.rundeck.api.util + RunDeck API - Java Client 9.2 Reference Package org.rundeck.api.util diff --git a/xref/org/rundeck/api/util/package-summary.html b/xref/org/rundeck/api/util/package-summary.html index 3dcdc2d..7340fc9 100644 --- a/xref/org/rundeck/api/util/package-summary.html +++ b/xref/org/rundeck/api/util/package-summary.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference Package org.rundeck.api.util + RunDeck API - Java Client 9.2 Reference Package org.rundeck.api.util diff --git a/xref/overview-frame.html b/xref/overview-frame.html index 11fc738..85ccbde 100644 --- a/xref/overview-frame.html +++ b/xref/overview-frame.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference + RunDeck API - Java Client 9.2 Reference diff --git a/xref/overview-summary.html b/xref/overview-summary.html index 063acc3..ed879c9 100644 --- a/xref/overview-summary.html +++ b/xref/overview-summary.html @@ -3,7 +3,7 @@ - RunDeck API - Java Client 9.2-SNAPSHOT Reference + RunDeck API - Java Client 9.2 Reference @@ -24,7 +24,7 @@ -

    RunDeck API - Java Client 9.2-SNAPSHOT Reference

    +

    RunDeck API - Java Client 9.2 Reference