Skip to content

Commit

Permalink
Updated examples based on the API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
amezng committed Apr 28, 2018
1 parent 8e1c80c commit 3187d8b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ class HBaseSuite extends TestPipeline {

client.upload("/from/file/path","/to/target/file/path")

client.download("","")

client.download("/source/","/download")


}
Expand All @@ -72,7 +71,7 @@ class HBaseSuite extends TestPipeline {

}

validate("check if tables are created",hbaseConf) { hbase =>
validate("check table properties",hbaseConf) { hbase =>

given(hbase.describe("infa:employee")) { desc =>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.jetprobe.sample
import akka.actor.ActorSystem
import com.jetprobe.core.TestPipeline
import com.jetprobe.core.annotation.PipelineMeta
import com.jetprobe.core.runner.Runner
import com.jetprobe.core.structure.PipelineBuilder

/**
Expand All @@ -21,18 +20,8 @@ class LocalCommandPipe extends TestPipeline{

runCmd("get maven version","mvn --version")

//show the node version
runCmd("yarn start","""C:\Users\samez\Documents\projects\jetprobe-gitlab\jetprobe-ui""")

//runCmd("mvn install -DskipTests",at = """C:\Users\samez\Perforce\match-nxt\code\match""")
runCmd("install the code","mvn install -DskipTests")

}
}

object LocalCommandPipeRun extends App {

implicit val system = ActorSystem("local-cmd")

Runner().run(new LocalCommandPipe().tasks.build())

}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import org.json4s.native.JsonMethods._
class MongoSuite extends TestPipeline with LazyLogging {


val mongoConf = new MongoDBConf("mongodb://<mongo.host.name>")
val mongoConf = new MongoDBConf("mongodb://${mongo.host.name}")

case class Person(_id: Long, name: String, age: Int)

Expand All @@ -26,7 +26,7 @@ class MongoSuite extends TestPipeline with LazyLogging {

task("Create Mongo Collection",mongoConf) { mongoDB =>

mongoDB.createCollection("foo", "bar",Seq("id","name"))
mongoDB.createCollection(db= "customer", collection = "purchase",indexFields = Seq("name","product"))
mongoDB.createCollection("zoo", "baz")

}
Expand Down

0 comments on commit 3187d8b

Please sign in to comment.