summaryrefslogtreecommitdiff
path: root/tests/plugins/kv/configs
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-04-22 14:41:50 +0300
committerValery Piashchynski <[email protected]>2021-04-22 14:41:50 +0300
commitabf606afd6fd9fbb0fd374ab5da41a8ee8d5a15d (patch)
treeb0cfdeb5c478463d853b8a7409e88cfa7219c3fa /tests/plugins/kv/configs
parente4d65a41ec90747a387cfe769f743327959f7105 (diff)
- Implement tests for the KV
- Implement Storage interface for the boltdb,memory,memcached drivers Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/plugins/kv/configs')
-rw-r--r--tests/plugins/kv/configs/.rr-boltdb.yaml15
-rw-r--r--tests/plugins/kv/configs/.rr-in-memory.yaml11
-rw-r--r--tests/plugins/kv/configs/.rr-kv-init.yaml4
-rw-r--r--tests/plugins/kv/configs/.rr-memcached.yaml12
4 files changed, 40 insertions, 2 deletions
diff --git a/tests/plugins/kv/configs/.rr-boltdb.yaml b/tests/plugins/kv/configs/.rr-boltdb.yaml
new file mode 100644
index 00000000..81b47715
--- /dev/null
+++ b/tests/plugins/kv/configs/.rr-boltdb.yaml
@@ -0,0 +1,15 @@
+rpc:
+ listen: tcp://127.0.0.1:6001
+
+logs:
+ mode: development
+ level: error
+
+kv:
+ boltdb-rr:
+ driver: boltdb
+ dir: "."
+ file: "rr.db"
+ bucket: "test"
+ permissions: 0666
+ interval: 1 # seconds
diff --git a/tests/plugins/kv/configs/.rr-in-memory.yaml b/tests/plugins/kv/configs/.rr-in-memory.yaml
new file mode 100644
index 00000000..c6c3f0f7
--- /dev/null
+++ b/tests/plugins/kv/configs/.rr-in-memory.yaml
@@ -0,0 +1,11 @@
+rpc:
+ listen: tcp://127.0.0.1:6001
+
+logs:
+ mode: development
+ level: error
+
+kv:
+ default:
+ driver: memory
+ interval: 1
diff --git a/tests/plugins/kv/configs/.rr-kv-init.yaml b/tests/plugins/kv/configs/.rr-kv-init.yaml
index 935b952d..34e22a4e 100644
--- a/tests/plugins/kv/configs/.rr-kv-init.yaml
+++ b/tests/plugins/kv/configs/.rr-kv-init.yaml
@@ -12,7 +12,7 @@ kv:
file: "rr.db"
bucket: "rr"
permissions: 0666
- ttl: 40s
+ interval: 1
boltdb-africa:
driver: boltdb
@@ -20,7 +20,7 @@ kv:
file: "africa.db"
bucket: "rr"
permissions: 0666
- ttl: 40
+ interval: 1
memcached:
driver: memcached
diff --git a/tests/plugins/kv/configs/.rr-memcached.yaml b/tests/plugins/kv/configs/.rr-memcached.yaml
new file mode 100644
index 00000000..68443bc4
--- /dev/null
+++ b/tests/plugins/kv/configs/.rr-memcached.yaml
@@ -0,0 +1,12 @@
+rpc:
+ listen: tcp://127.0.0.1:6001
+
+logs:
+ mode: development
+ level: error
+
+kv:
+ memcached-rr:
+ driver: memcached
+ addr:
+ - "localhost:11211"