File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,10 +14,20 @@ module.exports =
1414 'sudo /opt/koding/run socialworkertests'"
1515
1616
17+ nodejsServer : (publicIpAddress ) ->
18+
19+ return " ssh -o 'StrictHostKeyChecking no' \
20+ -i $KODING_DEPLOYMENT_KEY \
21+ ubuntu@#{ publicIpAddress} \
22+ 'sudo /opt/koding/run nodeservertests'"
23+
24+
1725 asArray : (publicIpAddress ) ->
1826
1927 return [
2028
2129 @get .socialWorker publicIpAddress
2230
31+ @get .nodejsServer publicIpAddress
32+
2333 ]
Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ querystring = require 'querystring'
44
55
66# deep extending one object from another, works only for objects
7- _ . deepObjectExtend = (target , source ) ->
7+ deepObjectExtend = (target , source ) ->
88
99 for prop of source
1010
1111 if source .hasOwnProperty (prop)
1212
1313 # recursive call to deep extend
1414 if target[prop] and typeof source[prop] == ' object'
15- _ . deepObjectExtend target[prop], source[prop]
15+ deepObjectExtend target[prop], source[prop]
1616 # overwriting property
1717 else
1818 target[prop] = source[prop]
@@ -72,7 +72,7 @@ class RegisterHandlerHelper
7272 @ getPostParams = (opts = {}) ->
7373
7474 defaultPostParams = RegisterHandlerHelper .getDefaultParams ()
75- postParams = _ . deepObjectExtend defaultPostParams, opts
75+ postParams = deepObjectExtend defaultPostParams, opts
7676 # after deep extending object, encodes body param to a query string
7777 postParams .body = querystring .stringify postParams .body
7878
Original file line number Diff line number Diff line change @@ -159,9 +159,9 @@ build:
159159 name : check connectivity
160160 code : scripts/wercker/check-connectivity $(pwd)/INSTANCE_DATA
161161 - script :
162- name : test social worker
162+ name : test nodejs
163163 code : |
164- echo "testing social worker"
164+ echo "testing nodejs ( social worker, nodejs web server) "
165165 scripts/node-testing/run-tests $(pwd)/INSTANCE_DATA
166166 - script :
167167 name : testing client started
You can’t perform that action at this time.
0 commit comments