Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
Depend on okcomputer-like behavior in dor-fetcher-service
Browse files Browse the repository at this point in the history
Required by sul-dlss-deprecated/dor-fetcher-service#75, which upgraded dor-fetcher-service to Rails 5.1 and replaced about_page and isitworking with okcomputer. Reflect this change in the implementation and the tests.
  • Loading branch information
mjgiarlo committed Dec 11, 2018
1 parent ba4ab92 commit fc469a1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 15 deletions.
8 changes: 1 addition & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,4 @@ sudo: false
language: ruby
script: rake rspec
rvm:
- 2.3.1
- 2.2.2
- 2.1.2
notifications:
email:
- pmangiafico@stanford.edu
- laneymcg@stanford.edu
- 2.5.3
2 changes: 1 addition & 1 deletion lib/dor-fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def service_info
# @return [Boolean] True for a service that responds, False for a service that does not.
def is_alive?
resp = @site.get
200.eql?(resp.code) && 'ok'.eql?(resp)
200.eql?(resp.code) && /PASSED/.match?(resp.body)
end

# Get a hash of all members of a collection and the collection itself
Expand Down
1 change: 1 addition & 0 deletions spec/fixtures/vcr_cassettes/.#good_heartbeat_check.yml
8 changes: 4 additions & 4 deletions spec/fixtures/vcr_cassettes/good_heartbeat_check.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions spec/fixtures/vcr_cassettes/version_info.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fc469a1

Please sign in to comment.