Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .mvn/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/extensions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
class SingleServerLoadTestIT extends ContainersTestTemplate {

@DisplayName("Single server load test")
@ParameterizedTest
@ParameterizedTest(name = "Load test with {0} protocol")
@EnumSource(DatabaseWrapper.Protocol.class)
void singleServerLoadTest(DatabaseWrapper.Protocol protocol) throws Exception {

Expand All @@ -58,6 +58,7 @@ void singleServerLoadTest(DatabaseWrapper.Protocol protocol) throws Exception {
int expectedFriendshipCount = numOfFriendship;
int expectedLikeCount = numOfLike;
LocalDateTime startedAt = LocalDateTime.now();
logger.info("Starting load test on protocol {}", protocol.name());
logger.info("Creating {} users using {} threads", expectedUsersCount, numOfThreads);
logger.info("Expected users: {} - photos: {} - friendships: {} - likes: {}", expectedUsersCount, expectedPhotoCount,
expectedFriendshipCount, expectedLikeCount);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
class SingleServerSimpleLoadTestIT extends ContainersTestTemplate {

@DisplayName("Single server load test")
@ParameterizedTest
@ParameterizedTest(name = "Load test with {0} protocol")
@EnumSource(DatabaseWrapper.Protocol.class)
//to eneable only one protocol use the following annotation
//@EnumSource(value = DatabaseWrapper.Protocol.class, names = "GRPC")
Expand All @@ -54,6 +54,7 @@ void singleServerLoadTest(DatabaseWrapper.Protocol protocol) throws Exception {
int expectedUsersCount = numOfUsers * numOfThreads;
int expectedPhotoCount = expectedUsersCount * numOfPhotos;

logger.info("Starting load test on protocol {}", protocol.name());
logger.info("Creating {} users using {} threads", expectedUsersCount, numOfThreads);
ExecutorService executor = Executors.newFixedThreadPool(numOfThreads);
for (int i = 0; i < numOfThreads; i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import com.arcadedb.test.BaseGraphServerTest;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import java.util.List;
Expand Down Expand Up @@ -108,6 +109,7 @@ public void endTest() {
}

@Test
@DisplayName("Query should return aliases (@rid, @type) and custom projection (author AS _author)")
void grpcQueryWithAliasesAndMetadata() {

String query = "SELECT *, @rid, @type, author AS _author FROM article";
Expand All @@ -123,6 +125,7 @@ void grpcQueryWithAliasesAndMetadata() {
}

@Test
@DisplayName("UPDATE with RETURN AFTER should return modified record with alias")
void grpcUpdateWithAlas() {
String update = """
UPDATE article SET title = "My third article updated" RETURN AFTER *, author AS _author WHERE id = 3
Expand All @@ -140,6 +143,7 @@ void grpcUpdateWithAlas() {
}

@Test
@DisplayName("INSERT with RETURN @this should return the newly created record")
void grpcInsertWithReturn() {
String command = """
INSERT INTO article CONTENT {
Expand Down Expand Up @@ -167,6 +171,7 @@ void grpcInsertWithReturn() {
}

@Test
@DisplayName("CREATE VERTEX should return the newly created vertex with all properties")
void grpcCreateVertexWithReturn() {
String command = """
CREATE VERTEX article CONTENT {
Expand Down
1 change: 1 addition & 0 deletions grpc/.mvn/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/extensions.xml
24 changes: 24 additions & 0 deletions grpc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,30 @@
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>io.github.ascopes</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<versionRange>[0,)</versionRange>
<goals>
<goal>generate</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore/>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>

</plugins>
</build>
Expand Down
Loading
Loading