From 3cdf262500ad2a85eda286b5679b0770c2dd84c5 Mon Sep 17 00:00:00 2001 From: Harshit Singhvi <89837129+harshitsinghvi22@users.noreply.github.com> Date: Mon, 5 Aug 2024 10:39:08 +0200 Subject: [PATCH] changes for block format (#345) --- internal/integration_tests/standalone.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/integration_tests/standalone.go b/internal/integration_tests/standalone.go index 8bc49ce1..78c725fc 100644 --- a/internal/integration_tests/standalone.go +++ b/internal/integration_tests/standalone.go @@ -1155,15 +1155,15 @@ func introduceInconsistency(t *testing.T, releaseName model.ReleaseName) error { } // corrupting the database - // echo “” > /var/lib/neo4j/data/databases/neo4j/neostore.relationshipstore.db + // echo “” > /var/lib/neo4j/data/databases/neo4j/block.relationship.xd.db cmd := []string{ "bash", "-c", - "cp /var/lib/neo4j/data/databases/neo4j/neostore.relationshipstore.db /tmp/neostore.relationshipstore.db && echo '' > /var/lib/neo4j/data/databases/neo4j/neostore.relationshipstore.db", + "cp /var/lib/neo4j/data/databases/neo4j/block.relationship.xd.db /tmp/block.relationship.xd.db && echo '' > /var/lib/neo4j/data/databases/neo4j/block.relationship.xd.db", } stdout, stderr, err := ExecInPod(releaseName, cmd, "") if err != nil { - return fmt.Errorf("error seen while executing command `echo \"\" > /var/lib/neo4j/data/databases/neo4j/neostore.relationshipstore.db' ,\n err :- %v", err) + return fmt.Errorf("error seen while executing command `echo \"\" > /var/lib/neo4j/data/databases/neo4j/block.relationship.xd.db' ,\n err :- %v", err) } if len(stderr) != 0 { return fmt.Errorf("found something in stderr while introducing inconsistency %v\n", stderr) @@ -1184,11 +1184,11 @@ func revertInconsistency(releaseName model.ReleaseName) error { cmd := []string{ "bash", "-c", - "mv /tmp/neostore.relationshipstore.db /var/lib/neo4j/data/databases/neo4j/neostore.relationshipstore.db", + "mv /tmp/block.relationship.xd.db /var/lib/neo4j/data/databases/neo4j/block.relationship.xd.db", } stdout, stderr, err := ExecInPod(releaseName, cmd, "") if err != nil { - return fmt.Errorf("error seen while executing command `mv /tmp/neostore.relationshipstore.db /var/lib/neo4j/data/databases/neo4j/neostore.relationshipstore.db' ,\n err :- %v", err) + return fmt.Errorf("error seen while executing command `mv /tmp/block.relationship.xd.db /var/lib/neo4j/data/databases/neo4j/block.relationship.xd.db' ,\n err :- %v", err) } if strings.TrimSpace(stderr) != "" { return fmt.Errorf("stderr is not empty while reverting inconsistency%v\n", stderr)