From 4183111401376dbb10da795e85b8176fec336c26 Mon Sep 17 00:00:00 2001 From: dylan Date: Tue, 26 Mar 2024 16:00:31 -0700 Subject: [PATCH] add server 7.1 test case --- testdata/cases/server71/conf-tests.json | 12 ++++ testdata/cases/server71/server71.conf | 88 +++++++++++++++++++++++++ testdata/cases/server71/server71.yaml | 62 +++++++++++++++++ testdata/cases/server71/versions.json | 1 + testdata/cases/server71/yaml-tests.json | 12 ++++ 5 files changed, 175 insertions(+) create mode 100644 testdata/cases/server71/conf-tests.json create mode 100644 testdata/cases/server71/server71.conf create mode 100644 testdata/cases/server71/server71.yaml create mode 100644 testdata/cases/server71/versions.json create mode 100644 testdata/cases/server71/yaml-tests.json diff --git a/testdata/cases/server71/conf-tests.json b/testdata/cases/server71/conf-tests.json new file mode 100644 index 0000000..c85778b --- /dev/null +++ b/testdata/cases/server71/conf-tests.json @@ -0,0 +1,12 @@ +[ + { + "Source":"testdata/cases/server71/server71.conf", + "Destination":"testdata/cases/server71/server71-res-.yaml", + "Expected":"testdata/cases/server71/server71.yaml", + "Arguments":["convert","--aerospike-version","7.1.0.0","--format","asconfig","--output","testdata/cases/server71/server71-res-.yaml"], + "SkipServerTest":false, + "ServerErrorAllowList":null, + "ServerImage":"aerospike.jfrog.io/docker-remote/aerospike/aerospike-server-enterprise-rc:7.1.0.0-rc1", + "DockerAuth":{"Username":"ASC_DOCKER_USER","Password":"ASC_DOCKER_PASS"} + } +] \ No newline at end of file diff --git a/testdata/cases/server71/server71.conf b/testdata/cases/server71/server71.conf new file mode 100644 index 0000000..0938711 --- /dev/null +++ b/testdata/cases/server71/server71.conf @@ -0,0 +1,88 @@ + +service { + cluster-name cl1 + + user root + group root + pidfile /dummy/file/path1 +} + +logging { + console { + context any info + } +} + +network { + service { + address any + port 3000 + } + + heartbeat { + mode multicast + multicast-group 127.0.0.1 + port 9918 + + + + + interval 150 + timeout 10 + } + + fabric { + port 3001 + } + + info { + port 3003 + } +} + +namespace ns1 { + replication-factor 2 + + index-type shmem + sindex-type shmem + + evict-sys-memory-pct 80 + + batch-max-requests 1000 + + default-read-touch-ttl-pct 50 + + storage-engine memory { + data-size 32G + flush-size 10M + } + + nsup-period 2048 + + set s1 { + default-read-touch-ttl-pct -1 + } +} + +namespace ns2 { + replication-factor 2 + index-type shmem + sindex-type shmem + default-read-touch-ttl-pct 0 + storage-engine device { + device /dummy/mount/point1 + evict-used-pct 70 + stop-writes-used-pct 70 + stop-writes-avail-pct 20 + flush-size 10M + + } + + set s2 { + default-read-touch-ttl-pct 50 + } +} + +security { + default-password-file /dummy/file/path2 +} diff --git a/testdata/cases/server71/server71.yaml b/testdata/cases/server71/server71.yaml new file mode 100644 index 0000000..435fe32 --- /dev/null +++ b/testdata/cases/server71/server71.yaml @@ -0,0 +1,62 @@ +logging: + - any: info + name: console +namespaces: + - default-read-touch-ttl-pct: 0 + index-type: + type: shmem + name: ns2 + replication-factor: 2 + sets: + - default-read-touch-ttl-pct: 50 + name: s2 + sindex-type: + type: shmem + storage-engine: + devices: + - /dummy/mount/point1 + evict-used-pct: 70 + flush-size: 10485760 + stop-writes-avail-pct: 20 + stop-writes-used-pct: 70 + type: device + - batch-max-requests: 1000 + default-read-touch-ttl-pct: 50 + evict-sys-memory-pct: 80 + index-type: + type: shmem + name: ns1 + nsup-period: 2048 + replication-factor: 2 + sets: + - default-read-touch-ttl-pct: -1 + name: s1 + sindex-type: + type: shmem + storage-engine: + data-size: 34359738368 + flush-size: 10485760 + type: memory +network: + fabric: + port: 3001 + heartbeat: + interval: 150 + mode: multicast + multicast-groups: + - 127.0.0.1 + port: 9918 + timeout: 10 + info: + port: 3003 + service: + addresses: + - any + port: 3000 +security: + default-password-file: /dummy/file/path2 +service: + cluster-name: cl1 + group: root + pidfile: /dummy/file/path1 + user: root \ No newline at end of file diff --git a/testdata/cases/server71/versions.json b/testdata/cases/server71/versions.json new file mode 100644 index 0000000..d26ac25 --- /dev/null +++ b/testdata/cases/server71/versions.json @@ -0,0 +1 @@ +{"TestedVersion":"7.1.0.0-rc1","OriginallyUsedVersion":"7.1.0.0-rc1"} \ No newline at end of file diff --git a/testdata/cases/server71/yaml-tests.json b/testdata/cases/server71/yaml-tests.json new file mode 100644 index 0000000..782a22a --- /dev/null +++ b/testdata/cases/server71/yaml-tests.json @@ -0,0 +1,12 @@ +[ + { + "Source":"testdata/cases/server71/server71.yaml", + "Destination":"testdata/cases/server71/server71-res-.conf", + "Expected":"testdata/cases/server71/server71.conf", + "Arguments":["convert","--aerospike-version","7.1.0.0","--format","yaml","--output","testdata/cases/server71/server71-res-.conf"], + "SkipServerTest":false, + "ServerErrorAllowList":null, + "ServerImage":"aerospike.jfrog.io/docker-remote/aerospike/aerospike-server-enterprise-rc:7.1.0.0-rc1", + "DockerAuth":{"Username":"ASC_DOCKER_USER","Password":"ASC_DOCKER_PASS"} + } +] \ No newline at end of file