mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2025-12-21 15:20:02 -05:00
* Set up test infrastructure with local registry and custom images. * Updated travis docker version and usage of new test infra. * Made acc tests constantly output test results. * Tmp acc test files are ignored. * Fixed tests with new infra. * Allowing insecure registries for acc tests. Added fallback for v1 registries. * Added private image cleanup after tests. * Refined acc test structure to confirm tf provider standards with make testacc.
20 lines
567 B
JavaScript
20 lines
567 B
JavaScript
var http = require('http');
|
|
var configs = require('./configs')
|
|
var secrets = require('./secrets')
|
|
|
|
var handleRequest = function(request, response) {
|
|
console.log('Received request for URL: ' + request.url);
|
|
|
|
if(request.url === '/health') {
|
|
response.writeHead(200);
|
|
response.end('ok');
|
|
} else if(request.url === '/newroute') {
|
|
response.writeHead(200);
|
|
response.end('new Route!');
|
|
} else {
|
|
response.writeHead(200);
|
|
response.end(configs.prefix + ' - Hello World!');
|
|
}
|
|
};
|
|
var www = http.createServer(handleRequest);
|
|
www.listen(8080);
|