ITSMConfigItem#

NAME#

Kernel::System::UnitTest::ITSMConfigItem - ITSMConfigItem unit test lib

SYNOPSIS#

All ITSMConfigItem functions

PUBLIC INTERFACE#

new()#

create an object

use Kernel::System::ObjectManager;
local $Kernel::OM = Kernel::System::ObjectManager->new();
my $UnitTestITSMConfigItemObject = $Kernel::OM->Get('Kernel::System::UnitTest::ITSMConfigItem');

ConfigItemCreate()#

Creates a config item and adds an initial version.

my $VersionRef = $UnitTestITSMConfigItemObject->ConfigItemCreate(
    Name          => 'Znuny Rack 42',
    ClassName     => 'Server',
    DeplStateName => 'Production',
    InciStateName => 'Operational',
    XMLData       => {
        OtherEquipment         => '...',
        Note                   => '...',
        SerialNumber           => '...',
        WarrantyExpirationDate => '2016-01-01',
        InstallDate            => '2016-01-01',
    },
);

$VersionRef = {
    VersionID        => '...',
    ConfigItemID     => '...',
    Number           => '...',
    ClassID          => '...',
    Class            => '...',
    LastVersionID    => '...',
    Name             => '...',
    DefinitionID     => '...',
    DeplStateID      => '...',
    DeplState        => '...',
    DeplStateType    => '...',
    CurDeplStateID   => '...',
    CurDeplState     => '...',
    CurDeplStateType => '...',
    InciStateID      => '...',
    InciState        => '...',
    InciStateType    => '...',
    CurInciStateID   => '...',
    CurInciState     => '...',
    CurInciStateType => '...',
    XMLDefinition    => '...',
    XMLData          => '...',
    CreateTime       => '...',
    CreateBy         => '...',
};