---
name: "App::SD::Test"
section: "3pm"
platform: "linux"
package: "sd"
version: "0.74-1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/App::SD::Test"
---

# App::SD::Test(3pm)

### 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.
