Files
test/resources/cloud_platform/images/node-hello-alpine/server.js
Andrew Vaillancourt df24154568 Add node-hello-alpine img for use in sanity tests
- Add node-hello-alpine resources:
  - node-hello-alpine container image (~57MB) in:
    - resources/cloud_platform/images/node-hello-alpine/
  - node-hello-alpine.tar.gz
  - Dockerfile
  - server.js

- Add new sanity tests:
  - test_pod_to_pod_connection
  - test_pod_to_service_connection
  - test_host_to_service_connection

- Add deploy_images_to_local_registry() for use by the above tests.

- Fix lint errors in test_sanity.py:
  - Remove unused import (AlarmListObject).
  - Fix F632: use ==/!= to compare constant literals.

- Superficial changes:
  - Numerous formatting changes by pre-commit hook.
  - Import sorting from  pre-commit hook.

Signed-off-by: Andrew Vaillancourt <andrew.vaillancourt@windriver.com>
Change-Id: I2c7261762f530d6010c5b95639f5094b61438e61
2025-01-31 19:03:17 -05:00

22 lines
858 B
JavaScript

// Copyright 2016, Google, Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
'use strict';
// [START all]
var http = require('http');
var handleRequest = function(request, response) {
response.writeHead(200);
response.end('Hello Kubernetes!');
};
var www = http.createServer(handleRequest);
www.listen(process.env.PORT || 8080);
// [END all]