Skip to content

Commit

Permalink
fix: Change the Test Cases Expects rather than Generated Values
Browse files Browse the repository at this point in the history
  • Loading branch information
a-spiker committed Sep 12, 2024
1 parent 2c5b104 commit d5a60c3
Showing 1 changed file with 38 additions and 68 deletions.
106 changes: 38 additions & 68 deletions asconfig/generate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,8 +586,8 @@ var namespaceTC = GenerateTC{
"storage-engine.direct-files": false,
"storage-engine.disable-odsync": false,
"storage-engine.enable-benchmarks-storage": false,
"storage-engine.encryption-key-file": "",
"storage-engine.encryption-old-key-file": "",
"storage-engine.encryption-key-file": "null",
"storage-engine.encryption-old-key-file": "null",
"storage-engine.file[0]": "/opt/aerospike/data/bar.dat",
"storage-engine.file[0].shadow": "/opt/aerospike/data/bar-shadow.dat",
"storage-engine.file[1]": "/opt/aerospike/data/foo.dat",
Expand Down Expand Up @@ -769,8 +769,6 @@ var namespaceTC = GenerateTC{
"direct-files": false,
"disable-odsync": false,
"enable-benchmarks-storage": false,
"encryption-key-file": "",
"encryption-old-key-file": "",
"files": []string{
"/opt/aerospike/data/bar.dat /opt/aerospike/data/bar-shadow.dat",
"/opt/aerospike/data/foo.dat /opt/aerospike/data/foo-shadow.dat",
Expand Down Expand Up @@ -899,7 +897,7 @@ var networkTC = GenerateTC{
"fabric.port": 3001,
"fabric.recv-rearm-threshold": 1024,
"fabric.send-threads": 8,
"fabric.tls-name": "",
"fabric.tls-name": "null",
"fabric.tls-port": 0,
"heartbeat.connect-timeout-ms": 500,
"heartbeat.interval": 150,
Expand All @@ -922,22 +920,22 @@ var networkTC = GenerateTC{
"service.tls-authenticate-client": false,
"service.tls-name": "aerospike-a-2.test-runner",
"service.tls-port": 4333,
"tls[0].ca-file": "",
"tls[0].ca-path": "",
"tls[0].cert-blacklist": "",
"tls[0].ca-file": "null",
"tls[0].ca-path": "null",
"tls[0].cert-blacklist": "null",
"tls[0].cert-file": "/data/certs/file0.pem",
"tls[0].cipher-suite": "",
"tls[0].cipher-suite": "null",
"tls[0].key-file": "/data/certs/key0.pem",
"tls[0].key-file-password": "",
"tls[0].key-file-password": "null",
"tls[0].name": "aerospike-a-0",
"tls[0].protocols": "TLSv1.2",
"tls[1].ca-file": "",
"tls[1].ca-path": "",
"tls[1].cert-blacklist": "",
"tls[1].ca-file": "null",
"tls[1].ca-path": "null",
"tls[1].cert-blacklist": "null",
"tls[1].cert-file": "/data/certs/file1.pem",
"tls[1].cipher-suite": "",
"tls[1].cipher-suite": "null",
"tls[1].key-file": "/data/certs/key1.pem",
"tls[1].key-file-password": "",
"tls[1].key-file-password": "null",
"tls[1].name": "aerospike-a-1",
"tls[1].protocols": "TLSv1.2",
},
Expand All @@ -963,7 +961,6 @@ var networkTC = GenerateTC{
"port": 3001,
"recv-rearm-threshold": 1024,
"send-threads": 8,
"tls-name": "",
"tls-port": 0,
},
"heartbeat": Conf{
Expand Down Expand Up @@ -995,26 +992,16 @@ var networkTC = GenerateTC{
},
"tls": []Conf{
{
"ca-file": "",
"ca-path": "",
"cert-blacklist": "",
"cert-file": "/data/certs/file0.pem",
"cipher-suite": "",
"key-file": "/data/certs/key0.pem",
"key-file-password": "",
"name": "aerospike-a-0",
"protocols": "TLSv1.2",
"cert-file": "/data/certs/file0.pem",
"key-file": "/data/certs/key0.pem",
"name": "aerospike-a-0",
"protocols": "TLSv1.2",
},
{
"ca-file": "",
"ca-path": "",
"cert-blacklist": "",
"cert-file": "/data/certs/file1.pem",
"cipher-suite": "",
"key-file": "/data/certs/key1.pem",
"key-file-password": "",
"name": "aerospike-a-1",
"protocols": "TLSv1.2",
"cert-file": "/data/certs/file1.pem",
"key-file": "/data/certs/key1.pem",
"name": "aerospike-a-1",
"protocols": "TLSv1.2",
},
},
},
Expand Down Expand Up @@ -1173,29 +1160,29 @@ var serviceTC = GenerateTC{
"migrate-threads": 1,
"min-cluster-size": 1,
"node-id": "BB9050011AC4202",
"node-id-interface": "",
"node-id-interface": "null",
"os-group-perms": false,
"pidfile": "",
"pidfile": "null",
"proto-fd-idle-ms": 0,
"proto-fd-max": 15000,
"query-max-done": 100,
"query-threads-limit": 128,
"run-as-daemon": true,
"salt-allocations": false,
"secrets-address-port": "",
"secrets-tls-context": "",
"secrets-address-port": "null",
"secrets-tls-context": "null",
"service-threads": 8,
"sindex-builder-threads": 4,
"sindex-gc-period": 10,
"stay-quiesced": false,
"ticker-interval": 10,
"transaction-max-ms": 1000,
"transaction-retry-ms": 1002,
"vault-ca": "",
"vault-namespace": "",
"vault-path": "",
"vault-token-file": "",
"vault-url": "",
"vault-ca": "null",
"vault-namespace": "null",
"vault-path": "null",
"vault-token-file": "null",
"vault-url": "null",
"work-directory": "/opt/aerospike",
},
},
Expand Down Expand Up @@ -1227,29 +1214,20 @@ var serviceTC = GenerateTC{
"migrate-threads": 1,
"min-cluster-size": 1,
"node-id": "BB9050011AC4202",
"node-id-interface": "",
"os-group-perms": false,
"pidfile": "",
"proto-fd-idle-ms": 0,
"proto-fd-max": 15000,
"query-max-done": 100,
"query-threads-limit": 128,
"run-as-daemon": true,
"salt-allocations": false,
"secrets-address-port": "",
"secrets-tls-context": "",
"service-threads": 8,
"sindex-builder-threads": 4,
"sindex-gc-period": 10,
"stay-quiesced": false,
"ticker-interval": 10,
"transaction-max-ms": 1000,
"transaction-retry-ms": 1002,
"vault-ca": "",
"vault-namespace": "",
"vault-path": "",
"vault-token-file": "",
"vault-url": "",
"work-directory": "/opt/aerospike",
},
},
Expand All @@ -1263,8 +1241,8 @@ var xdr5TC = GenerateTC{
"dcs": Conf{
"DC1": Conf{
"auth-mode": "none",
"auth-password-file": "",
"auth-user": "",
"auth-password-file": "null",
"auth-user": "null",
"connector": false,
"max-recoveries-interleaved": 0,
"namespaces": Conf{
Expand All @@ -1280,7 +1258,7 @@ var xdr5TC = GenerateTC{
"ignored-bins": "",
"ignored-sets": "",
"max-throughput": 100000,
"remote-namespace": "",
"remote-namespace": "null",
"sc-replication-wait-ms": 100,
"ship-bin-luts": false,
"ship-nsup-deletes": false,
Expand All @@ -1293,13 +1271,13 @@ var xdr5TC = GenerateTC{
},
"node-address-port": "",
"period-ms": 100,
"tls-name": "",
"tls-name": "null",
"use-alternate-access-address": false,
},
"DC2": Conf{
"auth-mode": "none",
"auth-password-file": "",
"auth-user": "",
"auth-password-file": "null",
"auth-user": "null",
"connector": false,
"max-recoveries-interleaved": 0,
"namespaces": Conf{
Expand All @@ -1316,7 +1294,7 @@ var xdr5TC = GenerateTC{
"ignored-bins": "tip,wip",
"ignored-sets": "zip,zap",
"max-throughput": 100000,
"remote-namespace": "",
"remote-namespace": "null",
"sc-replication-wait-ms": 100,
"ship-bin-luts": false,
"ship-nsup-deletes": false,
Expand All @@ -1329,7 +1307,7 @@ var xdr5TC = GenerateTC{
},
"node-address-port": "",
"period-ms": 100,
"tls-name": "",
"tls-name": "null",
"use-alternate-access-address": false,
},
},
Expand All @@ -1344,8 +1322,6 @@ var xdr5TC = GenerateTC{
{
"name": "DC1",
"auth-mode": "none",
"auth-password-file": "",
"auth-user": "",
"connector": false,
"max-recoveries-interleaved": 0,
"namespaces": []Conf{
Expand All @@ -1362,7 +1338,6 @@ var xdr5TC = GenerateTC{
"ignore-bins": []string{},
"ignore-sets": []string{},
"max-throughput": 100000,
"remote-namespace": "",
"sc-replication-wait-ms": 100,
"ship-bin-luts": false,
"ship-nsup-deletes": false,
Expand All @@ -1375,14 +1350,11 @@ var xdr5TC = GenerateTC{
},
"node-address-ports": []string{},
"period-ms": 100,
"tls-name": "",
"use-alternate-access-address": false,
},
{
"name": "DC2",
"auth-mode": "none",
"auth-password-file": "",
"auth-user": "",
"connector": false,
"max-recoveries-interleaved": 0,
"namespaces": []Conf{
Expand All @@ -1399,7 +1371,6 @@ var xdr5TC = GenerateTC{
"ignore-bins": []string{"tip", "wip"},
"ignore-sets": []string{"zip", "zap"},
"max-throughput": 100000,
"remote-namespace": "",
"sc-replication-wait-ms": 100,
"ship-bin-luts": false,
"ship-nsup-deletes": false,
Expand All @@ -1412,7 +1383,6 @@ var xdr5TC = GenerateTC{
},
"node-address-ports": []string{},
"period-ms": 100,
"tls-name": "",
"use-alternate-access-address": false,
},
},
Expand Down

0 comments on commit d5a60c3

Please sign in to comment.