Skip to content

Commit

Permalink
fix: Added Test Case for Info Compare verification
Browse files Browse the repository at this point in the history
  • Loading branch information
a-spiker committed Oct 28, 2024
1 parent 134b6df commit 20da887
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ var testDiffArgs = []runTestDiff{
arguments: []string{},
expectError: true,
},
{
flags: []string{"--log-level", "debug"},
arguments: []string{"../testdata/expected/all_flash_cluster_cr.conf", "../testdata/expected/all_flash_cluster_cr_info_cap.conf"},
expectError: false,
},
}

func TestRunEDiff(t *testing.T) {
Expand Down
44 changes: 44 additions & 0 deletions testdata/expected/all_flash_cluster_cr_info_cap.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

logging {

console {
context any INFO
}
}

namespace test {
memory-size 3000000000
replication-factor 2

index-type flash {
mount /test/dev/xvdf-index
mounts-size-limit 4294967296
}

storage-engine device {
device /test/dev/xvdf
}
}

network {

fabric {
port 3001
}

heartbeat {
mode mesh
port 3002
}

service {
port 3000
}
}

security {
}

service {
feature-key-file /etc/aerospike/secret/features.conf
}

0 comments on commit 20da887

Please sign in to comment.