Jesse Vincent > App-SD-0.73 > App::SD::Test

Download:
App-SD-0.73.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  13
Open  13
View/Report Bugs
Source   Latest Release: App-SD-0.75

create_ticket_ok ARGS

Creates a new ticket, passing ARGS along to the creation command (after the props separator).

Returns a list of the luid and uuid of the newly created ticket.

update_ticket_ok ID ARGS

Updates the ticket #ID, passing ARGS along to the update command.

Returns nothing interesting.

create_ticket_comment_ok ARGS

Creates a new ticket comment, passing ARGS along to the creation command.

Returns a list of the luid and uuid of the newly created comment.

create_ticket_ok luid

Takes a LUID and returns the corresponding UUID.

Returns undef if none can be found.

get_luid_for_uuid UUID

Takes a UUID and returns the corresponding LUID.

Returns undef if none can be found.

create_ticket_with_editor_ok [ '--verbose' ... ]

Creates a ticket and comment at the same time using a spawned editor. It's expected that $ENV{VISUAL} has been frobbed into something non-interactive, or this test will just hang forever. Any extra arguments passed in will be passed on to sd ticket create.

Returns a list of the ticket luid, ticket uuid, comment luid, and comment uuid.

update_ticket_with_editor_ok TICKET_LUID, TICKET_UUID [ '--verbose' ]

Updates the ticket given by TICKET_UUID using a spawned editor. It's expected that $ENV{VISUAL} has been frobbed into something non-interactive, or this test will just hang forever. Any extra arguments passed in will be passed on to sd ticket update.

Returns the luid and uuid of the comment created during the update (both will be undef if none is created).

update_ticket_comment_with_editor_ok COMMENT_LUID, COMMENT_UUID

Updates the ticket comment given by COMMENT_UUID using a spawned editor. It's expected that $ENV{VISUAL} has been frobbed into something non-interactive, or this test will just hang forever.

get_ticket_info LUID/UUID

Returns a hash reference with information about ticket.

syntax highlighting: