Skip to content

Is it expected that tests require network connection to succeed? #4021

Closed Answered by camilamacedo86
davidxia asked this question in Support
Discussion options

You must be logged in to vote

Hi @davidxia,

I did the tests locally to troubleshoot this issue. Here are the steps:

Verifying that tests do not work well without a network and with the binaries installed:

(NOTE: I am using the testdata/project-v4 sample to do the tests)

  1. Run make test for ./testdata/project-v4/
  2. Check the binaries
  3. Check that the tests were executed fine
  4. Then, I turned off my WIFI and did the same and found that it fails.

WHY it fails? Why I cannot run make test without network?

Follow the steps to troubleshooting and understand how it works

You can start all binaries locally, so you need to start etcd first to be able to run kube-apiserver.

With an internet connection:

  1. Start etcd:
./testdata/project…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@davidxia
Comment options

@davidxia
Comment options

Comment options

You must be logged in to vote
1 reply
@camilamacedo86
Comment options

Answer selected by davidxia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants