Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
Change all crucible references to Inferno
Browse files Browse the repository at this point in the history
  • Loading branch information
notpace committed Aug 14, 2018
1 parent b8e4e7e commit caa1188
Show file tree
Hide file tree
Showing 18 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Crucible SMART on FHIR Test App [![Build Status](https://travis-ci.org/fhir-crucible/crucible_smart_app.svg?branch=master)](https://travis-ci.org/fhir-crucible/crucible_smart_app)
# Inferno

This application creates test clients that exercise the range of requirements of a
[SMART on FHIR](http://smarthealthit.org/smart-on-fhir/) server. These clients have tests for the
Expand Down
24 changes: 12 additions & 12 deletions deployment-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ It is important to open port `80` for HTTP and port `22` for SSH if you need to
"Review and Launch" button, click next button until you get to the Security Groups option. Ensure 80 is accessible from anywhere and 22 is
available from an IP range from which you will connect. Below is an example:

![Security Groups Configuration](https://raw.githubusercontent.com/fhir-crucible/crucible_smart_app/master/deployment-files/security-groups.png "Security Groups Configuration")
![Security Groups Configuration](https://raw.githubusercontent.com/siteadmin/inferno/master/deployment-files/security-groups.png "Security Groups Configuration")

After this step is done, launch the instance. Obtain your instance's IP or host name from the AWS console. Point a web browser to the instance using the IP address or host name.


Ubuntu 16.04 With Nginx and Unicorn Installation (Preferred Method)
-------------------------------------------------------------------

This section details how to configure the crucible_smart_app using Nginx
This section details how to configure Inferno using Nginx
and Unicorn on Ubuntu 16.

1. Remove Apache2 if already installed.
Expand All @@ -41,7 +41,7 @@ and Unicorn on Ubuntu 16.
sudo apt-get remove apache2


2. Setup the crucible_smart_app.
2. Setup Inferno.

TLS connection testing requires Ruby 2.5 or greater. To check to see what version of ruby is installed, type in the following command:

Expand All @@ -63,15 +63,15 @@ If you are not running version Ruby 2.5, you can install it using Ruby Version M



Now, issue the following commands to setup the crucible smart app.
Now, issue the following commands to setup Inferno.


sudo apt-get update
sudo apt-get install git ruby-bundler ruby-dev
sudo apt-get install sqlite3 libsqlite3-dev
sudo apt-get install build-essential patch zlib1g-dev liblzma-dev
git clone https://github.com/fhir-crucible/crucible_smart_app.git
cd crucible_smart_app
git clone https://github.com/siteadmin/inferno.git
cd inferno
bundle install


Expand All @@ -93,7 +93,7 @@ Install unicorn with gem

5. Create some directories Unicorn will need.

From within the `crucible_smart_app`, execute the following commands.
From within the `inferno` directory, execute the following commands.


mkdir tmp
Expand Down Expand Up @@ -122,7 +122,7 @@ Note: If you need to stop Unicorn use the following command.

Delete the contents of `/etc/nginx/nginx.conf` and replace with the content
found in deployment-files/nginx.conf.
(Please note to change all paths to `crucilbe_smart_app`, to your actual path.)
(Please note to change all paths to `inferno`, to your actual path.)

9. Restart Nginx

Expand Down Expand Up @@ -183,8 +183,8 @@ This section describes how to setup the tool using Apache2 using Passenger.
sudo apt-get install apache2 git ruby-bundler ruby-dev
sudo apt-get install sqlite3 libsqlite3-dev
sudo apt-get install build-essential patch zlib1g-dev liblzma-dev
git clone https://github.com/fhir-crucible/crucible_smart_app.git
cd crucible_smart_app
git clone https://github.com/siteadmin/inferno.git
cd inferno
bundle install


Expand Down Expand Up @@ -231,10 +231,10 @@ then update the `Servername` to match that of your DNS setting.
ServerName localhost

ServerAdmin webmaster@localhost
DocumentRoot /home/parallels/crucible_smart_app/public
DocumentRoot /home/parallels/inferno/public


<Directory /home/parallels/crucible_smart_app/public >
<Directory /home/parallels/inferno/public >
Require all granted
Allow from all
Options -MultiViews
Expand Down
2 changes: 1 addition & 1 deletion deployment-files/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Deployment Files

Heere are some handy files for deploying this application on a production server.

* start_unicirn.sh - A bash script that starts the crucible_smart_app using unicorn.
* start_unicirn.sh - A bash script that starts Inferno using unicorn.

* unicorn.rb - A unicorn configuration file.

Expand Down
4 changes: 2 additions & 2 deletions deployment-files/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ http {
# configure the virtual host
server {
# replace with your domain name
server_name crucible-smart-app.oauth2.io;
server_name inferno.oauth2.io;
# replace this with your static Sinatra app files, root + public
root /var/www/crucible_smart_app/public;
root /var/www/inferno/public;
# port to listen for requests on
listen 80;
# maximum accepted body size of client request
Expand Down
4 changes: 2 additions & 2 deletions deployment-files/start_unicorn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
# Start crucuble_smarrt_app with unicorn.
#
##########################################
echo "Starting the crucible_smart_app with unicorn."
echo "Starting Inferno with unicorn."
echo "Add rvm to path"
[[ -s "/home/ubuntu/.profile" ]] && source "/home/ubuntu/.profile" # Load the default .profile

[[ -s "/home/ubuntu/.rvm/scripts/rvm" ]] && source "/home/ubuntu/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

APP_NAME="crucible_smart_app"
APP_NAME="inferno"
APP_ROOT=/var/www/$APP_NAME
UNICORN_CONFIG=$APP_ROOT/deployment-files/unicorn.rb
echo "Unicorn config file is " $UNICORN_CONFIG
Expand Down
2 changes: 1 addition & 1 deletion deployment-files/unicorn
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e

# Feel free to change any of the following variables for your app:
TIMEOUT=${TIMEOUT-300}
APP_NAME=crucible_smart_app
APP_NAME=inferno
APP_ROOT=/var/www/$APP_NAME
CONFIG_PATH=$APP_ROOT/deployment-files/unicorn.rb
PID=$APP_ROOT/tmp/pids/unicorn.pid
Expand Down
4 changes: 2 additions & 2 deletions deployment-files/unicorn.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[program:unicorn]
command = /var/www/crucible_smart_app/deployment-files/start_unicorn.sh ; Command to start app
command = /var/www/inferno/deployment-files/start_unicorn.sh ; Command to start app
user = ubuntu ; User to run as
; stdout_logfile = /var/www/crucible_smart_app/tmp/unicorn_supervisor.log ; Where to write log messages
; stdout_logfile = /var/www/inferno/tmp/unicorn_supervisor.log ; Where to write log messages
stdout_logfile = /var/unicorn/unicorn_supervisor.log
redirect_stderr = true ; Save stderr in the same log
environment=LANG=en_US.UTF-8,LC_ALL=en_US.UTF-8 ; Set UTF-8 as default encoding
2 changes: 1 addition & 1 deletion deployment-files/unicorn.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# set path to app that will be used to configure unicorn,
# note the trailing slash in this example
@dir = "/var/www/crucible_smart_app/"
@dir = "/var/www/inferno/"
@log_dir = "/var/unicorn/"

worker_processes 2
Expand Down
2 changes: 1 addition & 1 deletion introspection client.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"client_id": "67b7f11c-13ff-48ae-a44f-3cc2e126a890",
"client_secret": "bF3f0yhNJ__ugoUwwU-k99zoMGtTlhVW9gEO2PK7xp6JfcfpA3m8Ixitcca2UeD04WweKDzOfcqxgyI6J8nmmg",
"client_name": "Crucible Introspection Resource",
"client_name": "Inferno Introspection Resource",
"client_uri": null,
"logo_uri": null,
"contacts": [],
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/dynamic_registration.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"client_id":"72e731c6-648c-4947-af23-4518a312c845","client_id_issued_at":1518316591,"registration_access_token":"eyJraWQiOiJyc2ExIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiI3MmU3MzFjNi02NDhjLTQ5NDctYWYyMy00NTE4YTMxMmM4NDUiLCJpc3MiOiJodHRwczpcL1wvc2ItYXV0aC5zbWFydGhlYWx0aGl0Lm9yZ1wvIiwiaWF0IjoxNTE4MzE2NTkxLCJqdGkiOiI3M2E3MmYyMS1lN2EzLTQyYWYtODc2Ni0yYTM4NWE5NGU2MGUifQ.E3rAYVXltDOkRyLJjUxHct_8AM7O-paxKpLZ3hEkUCXkHfec6zCrnfYYbUfAguJ645Ahl2_avMbI9YxP7oqfYSO_hgxHEoE5MXA_mnp7wjJvwQp_DKlh4OrOvFV8gxyusXTVoP3IBu7VN_kqZKmoV-4QzxaKN9_GqU0YN8SPbgZRgLoawmgLXlwmhjblEufUFjt5mPcQoFsx-hQ15HX3kzb2egPMGNAlv_DMpuHxxIUjRC5NY1_Hz9xI7JlVD4PHetq35m3pc-hleunb45mPH5Bk7gjwShXIPcHHDslWZawKFU3Ho3EGJpB9eGZgvhQ4gSntLvMsJUFJAVbPqxrkgw","registration_client_uri":"https://sb-auth.smarthealthit.org/register/72e731c6-648c-4947-af23-4518a312c845","redirect_uris":["http://localhost:4567/smart/4ffksQ/3mWi7k/redirect"],"client_name":"Crucible SMART-on-FHIR Test App","token_endpoint_auth_method":"none","scope":"launch/patient online_access openid profile launch user/*.* patient/*.*","grant_types":["authorization_code"],"response_types":["code"],"initiate_login_uri":"http://localhost:4567/smart/4ffksQ /3mWi7k/launch"}
{"client_id":"72e731c6-648c-4947-af23-4518a312c845","client_id_issued_at":1518316591,"registration_access_token":"eyJraWQiOiJyc2ExIiwiYWxnIjoiUlMyNTYifQ.eyJhdWQiOiI3MmU3MzFjNi02NDhjLTQ5NDctYWYyMy00NTE4YTMxMmM4NDUiLCJpc3MiOiJodHRwczpcL1wvc2ItYXV0aC5zbWFydGhlYWx0aGl0Lm9yZ1wvIiwiaWF0IjoxNTE4MzE2NTkxLCJqdGkiOiI3M2E3MmYyMS1lN2EzLTQyYWYtODc2Ni0yYTM4NWE5NGU2MGUifQ.E3rAYVXltDOkRyLJjUxHct_8AM7O-paxKpLZ3hEkUCXkHfec6zCrnfYYbUfAguJ645Ahl2_avMbI9YxP7oqfYSO_hgxHEoE5MXA_mnp7wjJvwQp_DKlh4OrOvFV8gxyusXTVoP3IBu7VN_kqZKmoV-4QzxaKN9_GqU0YN8SPbgZRgLoawmgLXlwmhjblEufUFjt5mPcQoFsx-hQ15HX3kzb2egPMGNAlv_DMpuHxxIUjRC5NY1_Hz9xI7JlVD4PHetq35m3pc-hleunb45mPH5Bk7gjwShXIPcHHDslWZawKFU3Ho3EGJpB9eGZgvhQ4gSntLvMsJUFJAVbPqxrkgw","registration_client_uri":"https://sb-auth.smarthealthit.org/register/72e731c6-648c-4947-af23-4518a312c845","redirect_uris":["http://localhost:4567/smart/4ffksQ/3mWi7k/redirect"],"client_name":"Inferno","token_endpoint_auth_method":"none","scope":"launch/patient online_access openid profile launch user/*.* patient/*.*","grant_types":["authorization_code"],"response_types":["code"],"initiate_login_uri":"http://localhost:4567/smart/4ffksQ /3mWi7k/launch"}
2 changes: 1 addition & 1 deletion test/sequence/additional_resources_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def setup
end

@instance = TestingInstance.new(url: 'http://www.example.com',
client_name: 'Crucible Smart App',
client_name: 'Inferno',
base_url: 'http://localhost:4567',
client_endpoint_key: SecureRandomBase62.generate(32),
client_id: SecureRandom.uuid,
Expand Down
2 changes: 1 addition & 1 deletion test/sequence/argonaut_query_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def setup
@patient_id = get_resources_from_bundle(@bundle,'Patient').first.id

@instance = TestingInstance.new(url: 'http://www.example.com',
client_name: 'Crucible Smart App',
client_name: 'Inferno',
base_url: 'http://localhost:4567',
client_endpoint_key: SecureRandomBase62.generate(32),
client_id: SecureRandom.uuid,
Expand Down
2 changes: 1 addition & 1 deletion test/sequence/dynamic_registration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class DynamicRegistrationSequenceTest < MiniTest::Unit::TestCase

def setup
@instance = TestingInstance.new(url: 'http://www.example.com',
client_name: 'Crucible Smart App',
client_name: 'Inferno',
base_url: 'http://localhost:4567',
client_endpoint_key: SecureRandomBase62.generate(32),
oauth_register_endpoint: 'https://oauth_reg.example.com/register',
Expand Down
2 changes: 1 addition & 1 deletion test/sequence/ehr_launch_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class EHRLaunchSequenceTest < MiniTest::Unit::TestCase

def setup
@instance = TestingInstance.new(url: 'http://www.example.com',
client_name: 'Crucible Smart App',
client_name: 'Inferno',
base_url: 'http://localhost:4567',
client_endpoint_key: SecureRandomBase62.generate(32),
client_id: SecureRandom.uuid,
Expand Down
2 changes: 1 addition & 1 deletion test/sequence/openid_connect_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def setup
@expired_id_token = @expired_id_token.sign(@key_pair, jwk['alg'])

@instance = TestingInstance.new(url: 'https://www.example.com/testing',
client_name: 'Crucible Smart App',
client_name: 'Inferno',
base_url: 'http://localhost:4567',
client_endpoint_key: SecureRandomBase62.generate(32),
client_id: client_id,
Expand Down
2 changes: 1 addition & 1 deletion test/sequence/standalone_launch_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class StandaloneLaunchSequenceTest < MiniTest::Unit::TestCase

def setup
@instance = TestingInstance.new(url: 'http://www.example.com',
client_name: 'Crucible Smart App',
client_name: 'Inferno',
base_url: 'http://localhost:4567',
client_endpoint_key: SecureRandomBase62.generate(32),
client_id: SecureRandom.uuid,
Expand Down
2 changes: 1 addition & 1 deletion test/sequence/token_introspection_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def setup
resource_secret = SecureRandom.hex(32)

@instance = TestingInstance.new(url: 'http://www.example.com',
client_name: 'Crucible Smart App',
client_name: 'Inferno',
base_url: 'http://localhost:4567',
scopes: 'launch openid patient/*.* profile',
oauth_introspection_endpoint: 'https://oauth_reg.example.com/introspect',
Expand Down
4 changes: 2 additions & 2 deletions views/details.erb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
</p>
<p>
For more information about usage of this application, please visit the
<a href="https://github.com/fhir-crucible/crucible_smart_app" class="alert-link" target="_blank">documentation.</a>
<a href="https://github.com/siteadmin/inferno" class="alert-link" target="_blank">documentation.</a>
</p>
<% else %>
<p>
Expand Down Expand Up @@ -169,7 +169,7 @@
</div>
<div class="form-group">
<label for="client_name">Client Name</label>
<input type="text" class="form-control" name="client_name" id="client_name" value="Crucible SMART-on-FHIR Test App" required>
<input type="text" class="form-control" name="client_name" id="client_name" value="Inferno" required>
</div>
<div class="form-group">
<label for="initiate_login_uri">Launch URI</label>
Expand Down

0 comments on commit caa1188

Please sign in to comment.