Skip to content

Commit

Permalink
#120: Update gremlin creds, update orient travis pwd
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wilson committed May 16, 2016
1 parent 29845fe commit 10fc530
Show file tree
Hide file tree
Showing 4 changed files with 284 additions and 272 deletions.
5 changes: 4 additions & 1 deletion tests/.env.docker
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ ORIENTDB_PASSWORD=rootpwd
NEO4J_HOSTNAME=neo4j
NEO4J_PORT=7474
NEO4J_USERNAME=neo4j
NEO4J_PASSWORD=j4oen
NEO4J_PASSWORD=j4oen

GREMLIN_HOSTNAME=gremlin
GREMLIN_PORT=8182
7 changes: 5 additions & 2 deletions tests/.env.travis
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
ORIENTDB_HOSTNAME=localhost
ORIENTDB_PORT=2424
ORIENTDB_USERNAME=root
ORIENTDB_PASSWORD=rootpwd
ORIENTDB_PASSWORD=root

NEO4J_HOSTNAME=localhost
NEO4J_PORT=7474
NEO4J_USERNAME=neo4j
NEO4J_PASSWORD=j4oen
NEO4J_PASSWORD=j4oen

GREMLIN_HOSTNAME=localhost
GREMLIN_PORT=8182
10 changes: 8 additions & 2 deletions tests/Fixtures/GremlinFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ class GremlinFixture extends DbFixture
{
public function load()
{
$host = getenv('GREMLIN_HOSTNAME');
$port = getenv('GREMLIN_PORT');

$client = new Connection();
$client->open('localhost:8182', 'graph');
$client->open("{$host}:{$port}", 'graph');

try{
$client->send("TinkerFactory.generateModern(graph)");
Expand All @@ -26,8 +29,11 @@ public function load()

public function unload()
{
$host = getenv('GREMLIN_HOSTNAME');
$port = getenv('GREMLIN_PORT');

$client = new Connection();
$client->open('localhost:8182', 'graph');
$client->open("{$host}:{$port}", 'graph');

try {
$client->send("g.V().drop().iterate()");
Expand Down

0 comments on commit 10fc530

Please sign in to comment.