Skip to content

Commit

Permalink
Issue #1054: added a check of the new session id
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Jun 26, 2021
1 parent dffa78a commit 34ebec1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/test/GenericInterface/Operation/Ticket/TicketGet.t
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ my $WebserviceConfig = {
'Test for Ticket Connector using SOAP transport backend.',
Debugger => {
DebugThreshold => 'debug',
TestMode => 1,
TestMode => 1, # write no debug info in the table gi_debugger_entry_content
},
Provider => {
Transport => {
Expand Down Expand Up @@ -1145,7 +1145,12 @@ my $RequesterSessionResult = $RequesterSessionObject->Run(
},
);

# sanity check of the request for a new session
# e.g. 'wewB0FscgcXFLYDmoSgmAEcEP8n5wMAT'
my $NewSessionID = $RequesterSessionResult->{Data}->{SessionID};
note "got the new session ID: $NewSessionID";
ok( $NewSessionID, 'received a new session id' );
like( $NewSessionID, qr{^\w{32}$}, 'new session id looks sane, is 32 characters long' );

my @Tests = (
{
Expand Down Expand Up @@ -1857,7 +1862,7 @@ my @Tests = (
my $DebuggerObject = Kernel::GenericInterface::Debugger->new(
DebuggerConfig => {
DebugThreshold => 'debug',
TestMode => 1,
TestMode => 1, # write no debug info in the table gi_debugger_entry_content
},
WebserviceID => $WebserviceID,
CommunicationType => 'Provider',
Expand Down

0 comments on commit 34ebec1

Please sign in to comment.