Skip to content

Commit 39484f8

Browse files
committed
fixed all thr basic-query tests and did a proper cleanup
1 parent 5f3809f commit 39484f8

22 files changed

+1299
-83
lines changed

Dockerfile.neo4j-okta

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM neo4j:5-enterprise
2+
3+
COPY ./neo4j-with-okta.conf /var/lib/neo4j/conf/neo4j.conf

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ services:
5353
- .env
5454
neo4j:
5555
<<: *common
56-
image: neo4j:5.23-community
56+
image: neo4j:5.23-enterprise
5757
hostname: neo4j
5858
networks:
5959
- neo4j
@@ -62,6 +62,7 @@ services:
6262
- "11474:7474"
6363
environment:
6464
<<: *common-env
65+
NEO4J_ACCEPT_LICENSE_AGREEMENT: 'yes' # Also add this
6566
NEO4J_server_bolt_advertised__address: neo4j:7687
6667
NEO4J_server_http_advertised__address: neo4j:7474
6768

neo4j-with-okta.conf

Lines changed: 829 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* This file is part of the Neo4j PHP Client and Driver package.
7+
*
8+
* (c) Nagels <https://nagels.tech>
9+
*
10+
* For the full copyright and license information, please view the LICENSE
11+
* file that was distributed with this source code.
12+
*/
13+
14+
namespace Laudis\Neo4j\Exception;
15+
16+
use RuntimeException;
17+
18+
final class SSLConnectionException extends RuntimeException
19+
{
20+
}

src/Exception/TimeoutException.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* This file is part of the Neo4j PHP Client and Driver package.
7+
*
8+
* (c) Nagels <https://nagels.tech>
9+
*
10+
* For the full copyright and license information, please view the LICENSE
11+
* file that was distributed with this source code.
12+
*/
13+
14+
namespace Laudis\Neo4j\Exception;
15+
16+
use RuntimeException;
17+
18+
class TimeoutException extends RuntimeException
19+
{
20+
}

test-basic.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
require_once 'vendor/autoload.php';
3+
4+
use Laudis\Neo4j\ClientBuilder;
5+
use Laudis\Neo4j\Authentication\Authenticate;
6+
7+
$client = ClientBuilder::create()
8+
->withDriver('bolt', 'bolt://localhost:7687',
9+
Authenticate::basic('neo4j', 'testtest')
10+
)
11+
->build();
12+
13+
try {
14+
$result = $client->run('RETURN "Hello World" as message');
15+
echo "Connection successful!\n";
16+
print_r($result->first()->get('message'));
17+
} catch (Exception $e) {
18+
echo "Connection failed: " . $e->getMessage() . "\n";
19+
}
20+
?>

testkit-backend.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
3+
docker compose up -d testkit_backend
4+
docker compose logs -f testkit_backend

testkit-backend/bookmarkHolder

Whitespace-only changes.

testkit-backend/bookmarkHolder,

Whitespace-only changes.

testkit-backend/connection,

Whitespace-only changes.

0 commit comments

Comments
 (0)