arangodb / arangodb-php

PHP ODM for ArangoDB
https://www.arangodb.com
Apache License 2.0
182 stars 46 forks source link

How can I run the test locally? #294

Open Sweetchuck opened 2 years ago

Sweetchuck commented 2 years ago

Latest commit from the devel branch:

commit 00e25f3ef0515310b2352151cba345f26af52460 (upstream/devel, upstream/HEAD, devel) Author: jsteemann jsteemann@users.noreply.github.com Date: 2022-02-07 09:45:57 +0100

fix metrics handling after server-side change

with arangodb/arangodb-preview:3.9.0-nightly

image ID: 9452756ce24c and 20036be3c259

docker run -e ARANGO_ROOT_PASSWORD="test" -p 8529:8529 arangodb/arangodb-preview:3.9.0-nightly arangod --database.extended-names-databases true
phpunit --configuration='./tests/phpunit-connection-close.xml' tests/AdminTest.php

There was 1 failure:

1) ArangoDBClient\AdminTest::testGetServerMetrics
Failed asserting that false is true.

/.../tests/AdminTest.php:261

with arangodb/arangodb:3.9.0-noavx

docker run -e ARANGO_ROOT_PASSWORD="test" -p 8529:8529 arangodb/arangodb:3.9.0-noavx arangod --database.extended-names-databases true
phpunit --configuration='./tests/phpunit-connection-close.xml' tests/AdminTest.php

There was 1 failure:

1) ArangoDBClient\AdminTest::testGetServerMetrics
Failed asserting that false is true.

/.../tests/AdminTest.php:261

with arangodb/arangodb:3.8.6

docker run -e ARANGO_ROOT_PASSWORD="test" -p 8529:8529 arangodb/arangodb:3.8.6 arangod
phpunit --configuration='./tests/phpunit-connection-close.xml' tests/AdminTest.php

There were 2 failures:

1) ArangoDBClient\AdminTest::testSetServerLogLevels
should not end up here
Failed asserting that false is true.

/.../tests/AdminTest.php:157

2) ArangoDBClient\AdminTest::testGetServerMetrics
Failed asserting that false is true.

/.../tests/AdminTest.php:261

with arangodb/arangodb:3.7.17

docker run -e ARANGO_ROOT_PASSWORD="test" -p 8529:8529 arangodb/arangodb:3.7.17 arangod
phpunit --configuration='./tests/phpunit-connection-close.xml' tests/AdminTest.php

There was 1 error:

1) ArangoDBClient\AdminTest::testGetServerLogEntries
ArangoDBClient\ServerException: superfluous suffix, expecting /_admin/log/level

/.../lib/ArangoDBClient/Connection.php:721
/.../lib/ArangoDBClient/Connection.php:213
/.../lib/ArangoDBClient/Connection.php:336
/.../lib/ArangoDBClient/Connection.php:214
/.../lib/ArangoDBClient/AdminHandler.php:204
/.../tests/AdminTest.php:169

--

There were 2 failures:

1) ArangoDBClient\AdminTest::testSetServerLogLevels
should not end up here
Failed asserting that false is true.

/.../tests/AdminTest.php:157

2) ArangoDBClient\AdminTest::testGetServerMetrics
Failed asserting that false is true.

/.../tests/AdminTest.php:261

https://app.travis-ci.com/github/arangodb/arangodb-php/jobs/565309583