January 6th, 2010

Books

Let's leverage RT's cli to create the test env by script

Some notes on the cli excerpted from my work on a build doc

Collapse )

#!/usr/bin/ruby -w

## Example:
## bin/rt create -t queue set name=NewestQ description="a newer still Q than thee"

test_queues = [
{ :qname => 'External', :qdesc => 'External ticket Queue for Rt testenv' },
{ :qname => 'Helpdesk', :qdesc => 'Helpdesk ticket Queue for Rt testenv' },
{ :qname => 'Oversight', :qdesc => 'Oversight ticket Queue for Rt testenv' },
]

test_queues.each { |tq|
`bin/rt create -t queue set name=\"#{tq[:qname]}\" description=\"#{tq[:qdesc]}\"`
}


and we should easily be able to do the same for some sample users, groups. Unfortunately we can't add scrips or templates this way, yet.


2 http://www.gossamer-threads.com/lists/rt/users/61505?do=post_view_threaded