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

Add tests for the Kibana link checking changes in #2085 #2086

Merged
merged 2 commits into from
Mar 17, 2021

Conversation

gtback
Copy link
Member

@gtback gtback commented Mar 17, 2021

When tested against a version of this repo prior to when #2085 was merged, it fails with these errors:

rspec './integtest/spec/all_books_broken_link_detection_spec.rb[1:2:5:1]' # building all books when broken link detection is enabled when there is a link in kibana to the website outside the guide logs that all the links are ok
rspec './integtest/spec/all_books_broken_link_detection_spec.rb[1:2:6:1]' # building all books when broken link detection is enabled when there is a broken Elasticsearch reference link in Kibana logs there are bad cross document links
rspec './integtest/spec/all_books_broken_link_detection_spec.rb[1:2:6:2]' # building all books when broken link detection is enabled when there is a broken Elasticsearch reference link in Kibana logs the bad link

This confirms that the changes in #2085 fix this issue.

When tested against a version of this repo prior to when #2085 was merged, it fails with these errors:

```
rspec './integtest/spec/all_books_broken_link_detection_spec.rb[1:2:5:1]' # building all books when broken link detection is enabled when there is a link in kibana to the website outside the guide logs that all the links are ok
rspec './integtest/spec/all_books_broken_link_detection_spec.rb[1:2:6:1]' # building all books when broken link detection is enabled when there is a broken Elasticsearch reference link in Kibana logs there are bad cross document links
rspec './integtest/spec/all_books_broken_link_detection_spec.rb[1:2:6:2]' # building all books when broken link detection is enabled when there is a broken Elasticsearch reference link in Kibana logs the bad link
```
@gtback gtback added the link-checking Link Checking & Redirects label Mar 17, 2021
@olksdr
Copy link
Contributor

olksdr commented Mar 17, 2021

looks good, but there might be more places where tests are broken?

@gtback
Copy link
Member Author

gtback commented Mar 17, 2021

looks good, but there might be more places where tests are broken?

Yep, rubocop seems unhappy. Looks like I need to finally get a decent Ruby development environment set up rather than relying on running everything in Docker, or remembering to do that stuff before pushing 😁

@gtback gtback merged commit 47a509a into master Mar 17, 2021
@gtback gtback deleted the gtback/kibana-link-checking-tests branch March 17, 2021 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
link-checking Link Checking & Redirects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants