Skip to content

Commit

Permalink
added an IT test for ~>0 version gems
Browse files Browse the repository at this point in the history
  • Loading branch information
jkutner committed Aug 20, 2014
1 parent 280ab9f commit 8069df6
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gem-proxy/src/it/load-heroku-gem/invoker.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
invoker.goals = clean gem:initialize
invoker.mavenOpts = -client

33 changes: 33 additions & 0 deletions gem-proxy/src/it/load-heroku-gem/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>load-railties-gems</artifactId>
<version>0.0.0</version>
<repositories>
<repository>
<id>rubygems-releases</id>
<url>http://localhost:8989/releases</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>rubygems</groupId>
<artifactId>heroku_hatchet</artifactId>
<version>1.3.4</version>
<type>gem</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>gem-maven-plugin</artifactId>
<version>@project.parent.version@</version>
<configuration>
<includeOpenSSL>false</includeOpenSSL>
</configuration>
</plugin>
</plugins>
</build>
</project>
10 changes: 10 additions & 0 deletions gem-proxy/src/it/load-heroku-gem/verify.bsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import java.io.*;
import org.codehaus.plexus.util.FileUtils;


String log = FileUtils.fileRead( new File( basedir, "build.log" ) );
String expected = "Successfully installed heroku_hatchet-1.3.4";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}

0 comments on commit 8069df6

Please sign in to comment.