This repository has been archived by the owner on May 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from dpn-admin/okcomputer-app-version
Add the application semantic version to the OkComputer status details
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ branches: | |
services: | ||
- mysql | ||
- postgresql | ||
- redis | ||
|
||
env: | ||
- DB=sqlite | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright (c) 2015 The Regents of the University of Michigan. | ||
# All Rights Reserved. | ||
# Licensed according to the terms of the Revised BSD License | ||
# See LICENSE.md for details. | ||
|
||
require 'rails_helper' | ||
|
||
describe 'OkComputerStatus' do | ||
describe 'GET /status' do | ||
it 'returns application version' do | ||
get '/status/all.json' | ||
status_response = JSON.parse(response.body) | ||
expect(status_response.keys).to include 'app_version' | ||
message = status_response['app_version']['message'] | ||
expect(message).to include DPN::Server::Application::VERSION | ||
end | ||
end | ||
end |