Skip to content

Commit 39f4476

Browse files
committed
updated to newer ArangoDB version
1 parent 992d190 commit 39f4476

File tree

4 files changed

+5
-20
lines changed

4 files changed

+5
-20
lines changed

lib/triagens/ArangoDb/AdminHandler.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,17 +142,16 @@ public function getServerLog($options = array())
142142
* Flush the server's modules cache
143143
* The call triggers a flush of the modules cache on the server. See Modules Cache for details about this cache.
144144
*
145-
* This will throw if the modules cache cannot be flushed
145+
* This method does not exist on the server side since ArangoDB 2.3.0
146146
*
147147
* @throws Exception
148148
*
149-
* @return array
149+
* @return bool
150150
* @since 1.2
151+
* @deprecated
151152
*/
152153
public function flushServerModuleCache()
153154
{
154-
$this->getConnection()->POST(Urls::URL_ADMIN_MODULES_FLUSH, '');
155-
156155
return true;
157156
}
158157

lib/triagens/ArangoDb/Urls.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,6 @@ abstract class Urls
185185
*/
186186
const URL_ADMIN_ROUTING_RELOAD = '/_admin/routing/reload';
187187

188-
/**
189-
* base URL part for admin modules flush
190-
*/
191-
const URL_ADMIN_MODULES_FLUSH = '/_admin/modules/flush';
192-
193188
/**
194189
* base URL part for admin statistics
195190
*/

tests/AdminTest.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,6 @@ public function testGetServerLog()
138138
}
139139

140140

141-
/**
142-
* Test if we can get the server version
143-
*/
144-
public function testServerModuleCache()
145-
{
146-
$result = $this->adminHandler->flushServerModuleCache();
147-
$this->assertTrue($result, 'Should be true!');
148-
}
149-
150-
151141
/**
152142
* Test if we can get the server version
153143
*/

tests/travis/setup_arangodb.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
44
cd $DIR
55

6-
VERSION=2.2.0
6+
VERSION=2.2.6
77
NAME=ArangoDB-$VERSION
88

99
if [ ! -d "$DIR/$NAME" ]; then
@@ -37,6 +37,7 @@ ${ARANGOD} \
3737
--javascript.app-path ${ARANGODB_DIR}/js/apps \
3838
--javascript.startup-directory ${ARANGODB_DIR}/js \
3939
--database.maximal-journal-size 1048576 \
40+
--database.force-sync-properties false \
4041
--server.disable-authentication true &
4142

4243
sleep 2

0 commit comments

Comments
 (0)