Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix link to e2e-tests.md in developer-guide #7201

Merged
merged 1 commit into from
Jun 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/developer-guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ FOCUS="no-auth-locations" make kind-e2e-test

Valid values are defined in the describe definition of the e2e tests like [Default Backend](https://github.com/kubernetes/ingress-nginx/blob/master/test/e2e/defaultbackend/default_backend.go#L29)

The complete list of tests can be found [here](e2e-tests.md)
The complete list of tests can be found [here](../e2e-tests.md)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not working. Have you ran this locally? Can you please check again the correct path, or maybe use the full path here?

Thanks :)

/lgtm cancel

Copy link
Contributor Author

@rctay rctay Jun 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I've ran this locally. Here's what I get:

  1. Run make live-docs, nothing notable in the output:
  +] Building 1.2s (9/9) FINISHED
 ...

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
INFO    -  Building documentation... 
WARNING -  Config value: 'dev_addr'. Warning: The use of the IP address '0.0.0.0' suggests a production environment or the use of a proxy to connect to the MkDocs server. However, the MkDocs' server is intended for local development purposes only. Please use a third party production-ready server instead. 
INFO    -  Cleaning site directory 
INFO    -  Documentation built in 5.99 seconds 
  1. Navigate to developer guide / getting started. Here's the output of make live-docs:
[I 210605 06:00:40 handlers:135] Browser Connected: http://localhost:8000/developer-guide/getting-started/
INFO    -  Browser Connected: http://localhost:8000/developer-guide/getting-started/
  1. Click link on the word here in The complete list of tests can be found here. I see the correct page, and output of make live-docs:
[I 210605 06:04:46 handlers:135] Browser Connected: http://localhost:8000/e2e-tests/
INFO    -  Browser Connected: http://localhost:8000/e2e-tests/

We can also see that the previous link doesn't work and the relative link in this PR works because this is the directory listing, one .. in developer-guide/getting-started brings us out and to a sibling of developer-guide/, and indeed e2e-tests.md and developer-guide/ are both siblings under docs/:

  • docs/
    • ...
    • e2e-tests.md
    • developer-guide/
      • getting-started.md

In contrast, on master branch, here's what I get:

  1. Run make live-docs, note the warning in the output (2nd last line):
  ±  |master → origin {2} ?:3 ✗| → make live-docs
[+] Building 2.8s (9/9) FINISHED
...

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
INFO    -  Building documentation... 
WARNING -  Config value: 'dev_addr'. Warning: The use of the IP address '0.0.0.0' suggests a production environment or the use of a proxy to connect to the MkDocs server. However, the MkDocs' server is intended for local development purposes only. Please use a third party production-ready server instead. 
INFO    -  Cleaning site directory 
WARNING -  Documentation file 'developer-guide/getting-started.md' contains a link to 'developer-guide/e2e-tests.md' which is not found in the documentation files. 
INFO    -  Documentation built in 5.75 seconds
  1. Navigate to developer guide / getting started. Here's the output of make live-docs:
[I 210605 06:00:40 handlers:135] Browser Connected: http://localhost:8000/developer-guide/getting-started/
INFO    -  Browser Connected: http://localhost:8000/developer-guide/getting-started/
  1. Click link on the word here in The complete list of tests can be found here. I get a 404 page, and output of make live-docs:
[W 210605 06:00:47 web:2239] 404 GET /developer-guide/getting-started/e2e-tests.md (172.17.0.1) 2.94ms
WARNING -  404 GET /developer-guide/getting-started/e2e-tests.md (172.17.0.1) 2.94ms
[I 210605 06:00:47 handlers:135] Browser Connected: http://localhost:8000/developer-guide/getting-started/e2e-tests.md
INFO    -  Browser Connected: http://localhost:8000/developer-guide/getting-started/e2e-tests.md


### Custom docker image

Expand Down