@@ -2,13 +2,13 @@ apply plugin: 'scala'
22apply plugin : ' eclipse'
33compileTestScala. options. encoding = ' UTF-8'
44
5+ evaluationDependsOn(' :whisktests' )
6+
57repositories {
68 mavenCentral()
79}
810
911tasks. withType(Test ) {
10- systemProperties(System . getProperties())
11-
1212 testLogging {
1313 events " passed" , " skipped" , " failed"
1414 showStandardStreams = true
@@ -17,63 +17,18 @@ tasks.withType(Test) {
1717 outputs. upToDateWhen { false } // force tests to run every time
1818}
1919
20- task testLean (type : Test ) {
21- exclude ' **/*Swift*'
22- exclude ' **/*Python*'
23- exclude ' **/*Java*'
24- exclude ' **/*ThrottleTests*'
25- exclude ' **/MaxActionDurationTests*'
26- exclude ' **/*ApiGwTests*'
27- }
28-
2920// Add all images needed for local testing here
3021test. dependsOn([
31- ' :core:nodejs6Action:distDocker' ,
32- ' :core:actionProxy:distDocker' ,
33- ' :core:pythonAction:distDocker' ,
34- ' :core:python2Action:distDocker' ,
35- ' :core:javaAction:distDocker' ,
36- ' :core:swift3Action:distDocker' ,
37- ' :core:swift3.1.1Action:distDocker' ,
38- ' :sdk:docker:distDocker' ,
3922 ' :tests:dat:blackbox:badaction:distDocker' ,
4023 ' :tests:dat:blackbox:badproxy:distDocker'
4124])
4225
4326dependencies {
4427 compile " org.scala-lang:scala-library:${ gradle.scala.version} "
45- compile ' org.apache.commons:commons-lang3:3.3.2'
46- compile ' org.apache.httpcomponents:httpclient:4.5.2:tests'
47- compile ' org.apache.httpcomponents:httpmime:4.3.6'
48- compile ' junit:junit:4.11'
49- compile ' com.jayway.restassured:rest-assured:2.6.0'
50- compile ' org.scalatest:scalatest_2.11:3.0.1'
51- compile ' com.typesafe.akka:akka-testkit_2.11:2.5.4'
52- compile ' com.google.code.gson:gson:2.3.1'
53- compile ' org.scalamock:scalamock-scalatest-support_2.11:3.4.2'
54- compile ' com.typesafe.akka:akka-testkit_2.11:2.4.16'
55- compile ' com.typesafe.akka:akka-http-testkit_2.11:10.0.10'
56- compile ' com.github.java-json-tools:json-schema-validator:2.2.8' ;
57-
58- compile project(' :common:scala' )
59- compile project(' :core:controller' )
60- compile project(' :core:invoker' )
28+ compile project(' :whisktests' )
29+ compile project(' :whisktests' ). sourceSets. test. output
6130}
6231
6332tasks. withType(ScalaCompile ) {
6433 scalaCompileOptions. additionalParameters = gradle. scala. compileFlags
6534}
66-
67- def keystorePath = new File (sourceSets. test. scala. outputDir, ' keystore' )
68- task deleteKeystore (type : Delete ) {
69- delete keystorePath
70- }
71- task createKeystore (dependsOn : deleteKeystore) {
72- doLast {
73- Properties props = new Properties ()
74- props. load(new FileInputStream (file(' ../whisk.properties' )))
75- def cmd = [' keytool' , ' -import' , ' -alias' , ' Whisk' , ' -noprompt' , ' -trustcacerts' , ' -file' , file(props[' whisk.ssl.cert' ]), ' -keystore' , keystorePath, ' -storepass' , ' openwhisk' ]
76- cmd. execute(). waitForProcessOutput(System . out, System . err)
77- }
78- }
79- compileTestScala. finalizedBy createKeystore
0 commit comments