Giter Club home page Giter Club logo

katello-api's Introduction

ABOUT

Java framework of Katello API/CLI Tests.

GRADLE USAGE

  • Install gradle from http://gradle.org
  • Run 'gradle eclipse' to generate the Eclipse files '.classpath' and '.project'
  • Because gradle provides dependencies, .classpath and .project SHOULD NOT be checked in.
  • If you install the gradle plugin in Eclipse, then you can use 'Convert to Gradle Project', and it will fully manage deps.

CONFIGURATION

  • cp katello-automation.properties automation.properties
    sed -i "s/^katello.server.hostname\s*=.*$/katello.server.hostname=<your_katello_server_fqdn>/" automation.properties
    sed -i "s/^katello.server.sshkey.private\s*=.*$/katello.server.sshkey.private=<.ssh\/your_private_key>/" automation.properties
    sed -i "s/^katello.client.hostname\s*=.*$/katello.client.hostname=<your_katello_client_fqdn>/" automation.properties
    sed -i "s/^katello.client.sshkey.private\s*=.*$/katello.client.sshkey.private=<.ssh\/your_private_key>/" automation.properties
    sed -i "s/^katello.engine\s*=.*$/katello.engine=<headpin|katello>/" automation.properties # (used for CLI calls)
    sed -i "s/^katello.product\s*=.*$/katello.product=<sam|cfse|katello|headpin>/" automation.properties # (used for API calls)

    then specify: -Dautomation.propertiesfile=${WORKSPACE}/automation.properties in java

or

  • specify
    JAVAARGS="${JAVAARGS} -Dkatello.server.hostname=<your_katello_server_fqdn>
    -Dkatello.client.hostname=<your_katello_client_fqdn> -Dkatello.server.sshkey.private=<.ssh\/your_private_key>
    -Dkatello.client.sshkey.private=<.ssh\/your_private_key> -Dkatello.product=<headpin|katello> -Dkatello.engine=<headpin|katello>"
    in java

JENKINS USAGE

JAVA_OPTS="-Dtestng.project.dir=$WORKSPACE/katello-api"
JAVA_OPTS="$JAVA_OPTS -Dworkspace.dir=$WORKSPACE/katello-api"
JAVA_OPTS="$JAVA_OPTS -Dorg.uncommons.reportng.escape-output=false"
JAVA_OPTS="$JAVA_OPTS -Dkatello.product=katello"
JAVA_OPTS="$JAVA_OPTS -Dkatello.engine=katello"
JAVA_OPTS="$JAVA_OPTS -Dkatello.server.hostname=$KATELLO_SERVER_HOSTNAME"
JAVA_OPTS="$JAVA_OPTS -Dkatello.client.hostname=$KATELLO_CLIENT_HOSTNAME"
JAVA_OPTS="$JAVA_OPTS -Dkatello.server.sshkey.private=.ssh/id_hudson_dsa"
JAVA_OPTS="$JAVA_OPTS -Dkatello.client.sshkey.private=.ssh/id_hudson_dsa"
JAVA_OPTS="$JAVA_OPTS -Dtestng.testnames=Smoke_Tests,CLI_Tests,E2E_Tests"
JAVA_OPTS="$JAVA_OPTS -Dtestng.excludegroups=openldap"

and then run gradle:
export JAVA_OPTS && /home/jenkins/gradle-1.0/bin/gradle run_katello

REFERENCES

EXAMPLES

Some usage samples could be found under: examples/

NOTES

katello-api's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.