Skip to content

Commit

Permalink
Updated version to last docker image (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
compae authored Dec 15, 2016
1 parent e6d18e6 commit 49e3ea9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .jenkins.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ITSERVICES:
- RABBITMQ:
image: rabbitmq:3.6.1-management
image: rabbitmq:3-management
ITPARAMETERS: >
-Drabbitmq.hosts=%%RABBITMQ
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Changelog

## 0.4.0 (December 2016)
## 0.4.0

* Upgrade scala version to 2.11.8
* Upgrade to rabbitMQ library version 3.6.6
* Removed Array[Byte] in createStream API
* The library now run with Delivery message of RabbitMQ
* Added tests with Delivery message option
Expand Down
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ hose {

ITSERVICES = [
['RABBITMQ': [
'image': 'rabbitmq:3.6.1-management'
'image': 'rabbitmq:3-management'
]],
]

ITPARAMETERS = "-Drabbitmq.hosts=%%RABBITMQ"

DEV = { config ->
doCompile(config)
//doIT(config)
doIT(config)
doPackage(config)

parallel(QC: {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<scala.version>2.11.8</scala.version>
<scala.binary.version>2.11</scala.binary.version>
<rabbitmq.version>3.6.1</rabbitmq.version>
<rabbitmq.version>3.6.6</rabbitmq.version>
<joda.version>2.8.2</joda.version>
<scalatest.version>2.2.2</scalatest.version>
<junit.version>4.8.1</junit.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,12 @@
package org.apache.spark.streaming.rabbitmq

import org.apache.spark.Logging
import org.scalatest.concurrent.Timeouts
import org.scalatest.{FunSuite, Outcome}
import org.scalatest.FunSuite
import org.scalatest.concurrent.{TimeLimitedTests, Timeouts}
import org.scalatest.time.SpanSugar._

private[rabbitmq] trait RabbitMQSuite extends FunSuite with Timeouts with Logging {
private[rabbitmq] trait RabbitMQSuite extends FunSuite with Timeouts with Logging with TimeLimitedTests {

val timeLimit = 1 minutes

/**
* Log the suite name and the test name before and after each test.
*/
final protected override def withFixture(test: NoArgTest): Outcome = {
val testName = test.text
val suiteName = this.getClass.getName
val shortSuiteName = suiteName.replaceAll("org.apache.spark", "o.a.s")
try {
logInfo(s"\n\n===== TEST OUTPUT FOR $shortSuiteName: '$testName' =====\n")
test()
} finally {
logInfo(s"\n\n===== FINISHED $shortSuiteName: '$testName' =====\n")
}
}
}

0 comments on commit 49e3ea9

Please sign in to comment.