Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ddurieux committed Apr 12, 2024
1 parent 3b9e1d6 commit f170625
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Unit/Deploy/DeployactionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ public function testAdd_item() {
'actionstype' => 'cmd',
'name' => 'Command ls',
'exec' => 'ls -lah',
'logLineLimit' => '100',
'logLineLimit' => 100,
'retChecks' => ['type' => 'okCode', 'values' => [127]],
];
$action->add_item($params);
$expected = '{"jobs":{"checks":[],"associatedFiles":[],"actions":[{"cmd":{"exec":"ls -lah","name":"Command ls","logLineLimit":"100"}}],"userinteractions":[]},"associatedFiles":[]}';
$expected = '{"jobs":{"checks":[],"associatedFiles":[],"actions":[{"cmd":{"exec":"ls -lah","name":"Command ls","logLineLimit":100}}],"userinteractions":[]},"associatedFiles":[]}';
$json = Toolbox::stripslashes_deep($action->getJson($packages_id));
$this->assertEquals($expected, $json);

Expand Down

0 comments on commit f170625

Please sign in to comment.