Files
node-problem-detector/test/e2e
Xuewei Zhang 7d28dde8d8 Add e2e test for OOM kill and Docker hung
Also fixes two minor bugs:

1. Change default Boskos wait timeout to 2 minutes.
This is because the current test timeout is configured to 10 minutes.
Running each test case taks 1-2 minutes, and each node will run 1-2 test
cases. 5 minutes timeout on waiting for Boskos may cause a test timeout,
which we want to avoid.

2. Create artifact subdir with 0755 rather than 0644.
Because execution bit should be set on the directories.
2019-12-06 14:49:17 -08:00
..

Node Problem Detector End-To-End tests

NPD e2e tests are meant for testing the NPD on a VM environment.

Currently the tests only support Google Compute Engine (GCE) environment. Support for other vendors can be added in future.

Prerequisites

  1. Setup Google Application Default Credentials (ADC), which is required for authentication by the Compute Engine API.
  2. Setup a project-wide SSH key that can be used to SSH into the GCE VMs.

Running tests

From the node-problem-detector base directory, run:

export GOOGLE_APPLICATION_CREDENTIALS=[YOUR_ADC_PATH:~/.config/gcloud/application_default_credentials.json]
export ZONE=[ANY_GCE_ZONE:us-central1-a]
export PROJECT=[YOUR_PROJECT_ID]
export VM_IMAGE=[TESTED_OS_IMAGE:cos-73-11647-217-0]
export IMAGE_PROJECT=[TESTED_OS_IMAGE_PROJECT:cos-cloud]
export SSH_USER=${USER}
export SSH_KEY=~/.ssh/id_rsa
export ARTIFACTS=/tmp/npd
make e2e-test