Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 5a31cad6e7
Fetching contributors…

Cannot retrieve contributors at this time

109 lines (97 sloc) 3.669 kb
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
bootstrap="bootstrap.php"
colors="false"
stopOnFailure="true"
verbose="true"
strict="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
>
<!--
convertErrorsToExceptions="false"
convertNoticesToExceptions="false"
convertWarningsToExceptions="false"
>
-->
<php>
<!--
The actual RouterOS machine and the port of the API service.
The router is expected to contain at least two entries in
"/queue/simple" and "/ip/arp", with those being HOSTNAME_INVALID and
HOSTNAME_SILENT.
-->
<const name="HOSTNAME" value="ros.example.com" />
<const name="PORT" value="8728" />
<!--
A server with a different service at the API port.
-->
<const name="HOSTNAME_INVALID" value="invalid.ros.example.com" />
<!--
A port on which there's a service for all HOSTNAME_* addresses,
but never the API one.
-->
<const name="PORT_INVALID" value="80" />
<!--
A device that doesn't answer at the API or the invalid port.
-->
<const name="HOSTNAME_SILENT" value="silent.ros.example.com" />
<!--
A port on which none of the hosts answers.
-->
<const name="PORT_SILENT" value="65534" />
<!--
A RouterOS username and password. Must have full privileges.
-->
<const name="USERNAME" value="apifull" />
<const name="PASSWORD" value="apifull" />
<!--
A RouterOS username and password. Must not have writing privileges.
-->
<const name="USERNAME2" value="api" />
<const name="PASSWORD2" value="api" />
<!--
A RouterOS username and password that uses non ASCII characters.
Does not need to have any privileges beyond accessing the router.
RouterOS forbids non ASCII usernames, but does not forbid non ASCII
passwords, which is why these credentials are required for a special
test.
-->
<const name="ANSI_USERNAME" value="api-ANSI" />
<const name="ANSI_PASSWORD" value="апи" />
<!--
The ANSI charset of the password. Should match the charset for the
locale of the device the password was defined from.
-->
<const name="ANSI_PASSWORD_CHARSET" value="windows-1251" />
<!--
A RouterOS username that doesn't exist.
-->
<const name="USERNAME_INVALID" value="tester" />
<!--
A RouterOS password that is not used by either valid RouterOS accounts.
-->
<const name="PASSWORD_INVALID" value="tester" />
<!--
A name for a test queue. It must be a name not currently in the list of
simple queues. It's also a good idea to keep it ASCII compatible,
because it's used in a charset test.
-->
<const name="TEST_QUEUE_NAME" value="TEST_QUEUE" />
</php>
<testsuites>
<testsuite name="All tests">
<file>ConnectionTest.php</file>
<file>RequestHandlingTest.php</file>
<file>ClientFeaturesTest.php</file>
<file>ClientPersistentFeaturesTest.php</file>
<file>StateAlteringFeaturesTest.php</file>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">../src/PEAR2/Net/RouterOS</directory>
</whitelist>
</filter>
</phpunit>
Jump to Line
Something went wrong with that request. Please try again.