Skip to content
This repository has been archived by the owner on Apr 7, 2019. It is now read-only.

Latest commit

 

History

History

tests

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Testing notes

Prerequisites

Install postgresql

brew update
brew install postgres

Install pgAdmin (optional, useful for debugging)

Download and install from here: https://www.pgadmin.org/download/macosx.php

Configuration (optional, useful for debugging)

Edit /usr/local/var/postgres/postgresql.conf and turn on verbose logging:

log_statement = 'all'

Setup

  1. Start postgresql:

     postgres -D /usr/local/var/postgres
    
  2. Open a new terminal window

  3. Get Steam:

     s3cmd get s3://steam-release/steam-master-darwin-amd64.tar.gz
     tar xvf steam-master-darwin-amd64.tar.gz
     cd steam-master-darwin-amd64
    
  4. Create application user (one-time only):

     createuser -P steam
    
  5. Create the Steam database:

     cd var/master/scripts
     ./create-database.sh
     cd ../../..
    
  6. Start the compilation service:

     java -jar var/master/assets/jetty-runner.jar var/master/assets/ROOT.war
    
  7. Open a new terminal window

  8. Start Steam

     ./steam serve master \
         --superuser-name=superuser \
         --superuser-password=superuser
    

Running tests

git clone https://github.com/h2oai/steam.git
cd steam/tests
python example.py

TODO: Add specifics

Teardown

  1. Drop the Steam database:

     cd steam-master-darwin-amd64
     ./var/master/scripts/drop-database.sh
    
  2. Ctrl+C on the steam, compilation service and postgres terminal windows.