Skip to content

tango-controls/rest-test-suite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

Tango REST API Test Suite

Download

A Test suite for Tango REST API

How to integrate this tests suite into a java project

{PROJECT_ROOT}/pom.xml

<dependency>
  <groupId>org.tango-controls</groupId>
  <artifactId>rest-test-suite</artifactId>
  <version>{LATEST}</version>
  <classifier>tests</classifier>
  <type>test-jar</type>
  <scope>test</scope>
</dependency>

{PROJECT_ROOT}/pom.xml or {M2_HOME}/settings.xml

<repository>
    <id>tango-controls-rest</id>
    <url>http://dl.bintray.com/tango-controls/rest</url>
</repository>

How to run the tests suite

$> git clone https://github.com/tango-controls/rest-api.git 
destination directory: rest-api
requesting all changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 2 changes to 2 files
updating to branch default
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
$> cd rest-api
$> mvn clean test \
    -Dtango.rest.url=http://localhost:8080/tango/rest \
    -Dtango.host=tango-cs \
    -Dtango.port=10000 \
    -Dtango.rest.auth.method=basic \
    -Dtango.rest.user={user} -Dtango.rest.password={password}

[INFO] Scanning for projects…
[…]
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.518 sec

Results :

Tests run: 13, Failures: 0, Errors: 0, Skipped: 0

[INFO] ————————————————————————
[INFO] BUILD SUCCESS
[INFO] ————————————————————————
[INFO] Total time: 3.289 s
[INFO] Finished at: 2015-12-17T18:40:41+01:00
[INFO] Final Memory: 14M/490M
[INFO] ————————————————————————
$> ^_^

About

A Test suite for Tango REST API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages