GoogleCloudPlatform / k8s-cloud-provider

Support code for implementing a Kubernetes cloud provider for Google Cloud Platform
Apache License 2.0
37 stars 46 forks source link

e2e tests need a user guide. #233

Open briantkennedy opened 1 week ago

briantkennedy commented 1 week ago

Setting up for running the e2e tests is not entirely obvious. This needs a README.md with step-by-step commands that a user can follow to run the tests successfully.

briantkennedy commented 1 week ago

proposed guide:

  1. Create a project and save PROJECT_ID
  2. Enable Compute API: gcloud services enable compute.googleapis.com --project=${PROJECT_ID}
  3. create application default credentials: gcloud auth application-default login
  4. run tests: go test -timeout 60m -v ./e2e/... -args -project ${PROJECT_ID}
bowei commented 1 week ago

Probably cut and paste this from https://github.com/GoogleCloudPlatform/k8s-cloud-provider/blob/master/e2e/doc.go

to a README