Skip to content

Node app for accepting software from cf-mysql-release and cf-riakcs-release

License

Notifications You must be signed in to change notification settings

menicosia/cs-accept.node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Core Services Acceptance

When upgrading p-mysql we need to write test data and make sure that it is preserved across upgrades, etc. This small web utility makes that easy.

This app is very simple, it's basically one web page.

Install

cf create-service p-mysql 100mb acceptDB #(or whatever instance name you prefer)
cf push --no-start [--random-route] # use random route if someone has already claimed the default route
cf bind-service cs-accept acceptDB
cf restart cs-accept

Usage

Just visit the home page. For an un-initialized DB, you'll see a single entry field. As you enter keys, they'll be recorded using a timestmp as the value. From then on, every home page load will load the data set from the DB, showing that the data has been recorded in the database.

A common use-case is to deploy a version of cf-mysql or p-mysql, write a few records, then upgrade to a newer release. If the web page loads after upgrade, and the records are still there, then the data has been retained across upgrade.

API

Write a record

Retreive JSON of all the records

About

Node app for accepting software from cf-mysql-release and cf-riakcs-release

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published