LandRegistry/register-publisher

Name: register-publisher

Owner: HM Land Registry

Description: takes messages from the land register queue and forwards to the feeder queue

Created: 2015-02-12 13:13:59.0

Updated: 2016-02-05 12:28:10.0

Pushed: 2016-03-11 14:40:36.0

Homepage: null

Size: 160

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Register publisher

Beta version of the “Register Publisher”.

This service will forward messages from the “System of Record” queue to the “feeder” queue.

See the wiki for design notes, etc.

Dependencies:
environment

This application refers to the following environment variables:

|Name | Default 'Config' Value |Mandatory?| | ————- |————-| —–| |SETTINGS |“config.DevelopmentConfig” |YES| |LOG_THRESHOLD_LEVEL |ERROR |NO| |RP_HOSTNAME |“amqp://guest:guest@localhost:5672//” |NO| |INCOMING_QUEUE |“INCOMING_QUEUE” |NO| |OUTGOING_QUEUE |“OUTGOING_QUEUE” |NO|

N.B.:
Even though some of the environment variables are not required, the corresponding 'config' values will be set.
In particular, the default 'RP_HOSTNAME' value is for development purposes only and the e.v. should be set as appropriate.

Prerequisites
how to run in development

N.B.: for a Windows host m/c:

git config --global core.autocrlf false

Then use 'Git Bash' console.

Also, for 'vagrant' operation, ensure that “VBoxHeadless.exe” is added to the firewall rules ('private').

ant up
ant ssh

Supervisord has been configured to launch this application on start up, but if you want to stop Supervisord running it and run it yourself then:

 supervisorctl stop register-publisher
n.sh
Query the queue counts
 http://0.0.0.0:5009/outgoingcount
 http://0.0.0.0:5009/incomingcount
how to run tests

In virtual machine ('vagrant'):

if executing tests directly on host:

st.sh
How to manage rabbitmq:

Status of the server

ice rabbitmq-server status

Stop the server

ice rabbitmq-server stop

Start the server

ice rabbitmq-server start

Add a test message

itmqadmin publish exchange=amq.default routing_key=register-publisher payload="hello, world"
itmqadmin publish exchange=amq.default routing_key=system_of_record payload="hello, world"
Audit Requirements

From “Audit Requirements for the Migration Process”:

Activities to be logged:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.