Skip to content

Commit

Permalink
Ignore binary downloads in spider test
Browse files Browse the repository at this point in the history
You have to configure the app to server binaries, we do
not do this in the test envirnment. If you click on a .rpm
download you also will not find more links to spider...
  • Loading branch information
hennevogel committed Sep 16, 2019
1 parent e6bf24e commit e275d9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/test/functional/webui/spider_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def getlinks(baseuri, body)
next unless link.port == baseuri.port
link = link.to_s
next if link =~ %r{/mini-profiler-resources}
# we do not really serve binary packages in the test environment
next if link =~ %r{/package/binary/}
# that link is just a top ref
next if link.end_with?('/package/rdiff')
# admin can see even the hidden
Expand Down

0 comments on commit e275d9b

Please sign in to comment.