mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 17:48:43 +02:00
Integration of the Czech translation provided by Lukáš Dvořák. Thanks a lot Lukáš !
SVN:trunk[3776]
This commit is contained in:
@@ -3872,6 +3872,73 @@ class TestLinkSetRecording_NN_WithDuplicates extends TestBizModel
|
||||
'history_removed' => 1,
|
||||
'history_modified' => 0,
|
||||
),
|
||||
array(
|
||||
'description' => 'Create one link from scratch, no port, to prepare for the next test case',
|
||||
'links' => array(
|
||||
array(
|
||||
'networkdevice_id' => $iDev2,
|
||||
'connectableci_id' => $iServer,
|
||||
'network_port' => '',
|
||||
'device_port' => '',
|
||||
),
|
||||
),
|
||||
'expected-res' => array (
|
||||
"$iDev2, test device B, unit test linkset, , , downlink, test device B",
|
||||
),
|
||||
'history_added' => 1,
|
||||
'history_removed' => 0,
|
||||
'history_modified' => 0,
|
||||
),
|
||||
array(
|
||||
'description' => 'Create a second link from scratch, pointing to the same server and no port, to prepare for the next test case',
|
||||
'links' => array(
|
||||
array(
|
||||
'id' => "SELECT lnkConnectableCIToNetworkDevice WHERE networkdevice_id = $iDev2 AND connectableci_id = $iServer",
|
||||
'networkdevice_id' => $iDev2,
|
||||
'connectableci_id' => $iServer,
|
||||
'network_port' => '',
|
||||
'device_port' => '',
|
||||
),
|
||||
array(
|
||||
'networkdevice_id' => $iDev2,
|
||||
'connectableci_id' => $iServer,
|
||||
'network_port' => 'X',
|
||||
'device_port' => '',
|
||||
),
|
||||
),
|
||||
'expected-res' => array (
|
||||
"$iDev2, test device B, unit test linkset, , , downlink, test device B",
|
||||
"$iDev2, test device B, unit test linkset, X, , downlink, test device B",
|
||||
),
|
||||
'history_added' => 1,
|
||||
'history_removed' => 0,
|
||||
'history_modified' => 0,
|
||||
),
|
||||
array(
|
||||
'description' => 'Create a second link from scratch, pointing to the same server and no port, to prepare for the next test case',
|
||||
'links' => array(
|
||||
array(
|
||||
'id' => "SELECT lnkConnectableCIToNetworkDevice WHERE networkdevice_id = $iDev2 AND connectableci_id = $iServer",
|
||||
'networkdevice_id' => $iDev2,
|
||||
'connectableci_id' => $iServer,
|
||||
'network_port' => '',
|
||||
'device_port' => '',
|
||||
),
|
||||
array(
|
||||
'networkdevice_id' => $iDev2,
|
||||
'connectableci_id' => $iServer,
|
||||
'network_port' => 'X',
|
||||
'device_port' => '',
|
||||
),
|
||||
),
|
||||
'expected-res' => array (
|
||||
"$iDev2, test device B, unit test linkset, , , downlink, test device B",
|
||||
"$iDev2, test device B, unit test linkset, X, , downlink, test device B",
|
||||
),
|
||||
'history_added' => 1,
|
||||
'history_removed' => 0,
|
||||
'history_modified' => 0,
|
||||
),
|
||||
array(
|
||||
'description' => 'Device B twice (same characteristics) - known issue #1145',
|
||||
'links' => array(
|
||||
|
||||
Reference in New Issue
Block a user