Merge pull request #340 from zmiklank/exit_oc_tests_if_login_fails
Exit oc tests gracefully if login fails
This commit is contained in:
parent
dd54a97b68
commit
5bfde53a71
51 changed files with 5345 additions and 0 deletions
11
test/test-binary/hw.js
Normal file
11
test/test-binary/hw.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
var http = require('http');
|
||||
var ip = process.env.OPENSHIFT_NODEJS_IP || '0.0.0.0';
|
||||
var port = process.env.PORT || process.env.port || process.env.OPENSHIFT_NODEJS_PORT || 8080;
|
||||
|
||||
var server = http.createServer(function(req, res) {
|
||||
res.writeHead(200);
|
||||
res.end('Hello World!');
|
||||
});
|
||||
server.listen(port);
|
||||
|
||||
console.log("Server running on " + ip + ":" + port);
|
||||
17
test/test-binary/package.json
Normal file
17
test/test-binary/package.json
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"name": "hello-world",
|
||||
"version": "0.0.1",
|
||||
"main": "hw.js",
|
||||
"engine": {
|
||||
"node": "*",
|
||||
"npm": "*"
|
||||
},
|
||||
"dependencies": {
|
||||
"node-rdkafka": "*"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node hw.js",
|
||||
"dev": "node hw.js"
|
||||
},
|
||||
"license": ""
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue