feat(database): add Nacos Pulsar Qdrant and ZooKeeper recipes
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
services:
|
||||
database:
|
||||
image: docker.cnb.cool/znb/images/etcd:v3.7.0
|
||||
container_name: dbx-etcd-3.7
|
||||
command:
|
||||
- /usr/local/bin/etcd
|
||||
- --name=s1
|
||||
- --data-dir=/etcd-data
|
||||
- --listen-client-urls=http://0.0.0.0:2379
|
||||
- --advertise-client-urls=http://0.0.0.0:2379
|
||||
- --listen-peer-urls=http://0.0.0.0:2380
|
||||
- --initial-advertise-peer-urls=http://0.0.0.0:2380
|
||||
- --initial-cluster=s1=http://0.0.0.0:2380
|
||||
- --initial-cluster-token=tkn
|
||||
- --initial-cluster-state=new
|
||||
- --log-level=info
|
||||
- --logger=zap
|
||||
- --log-outputs=stderr
|
||||
ports:
|
||||
- "${DB_BIND_ADDRESS:-127.0.0.1}:${DB_PORT:-2380}:2379"
|
||||
- "${DB_BIND_ADDRESS:-127.0.0.1}:${ETCD_PEER_PORT:-2381}:2380"
|
||||
volumes:
|
||||
- data:/etcd-data
|
||||
healthcheck:
|
||||
test: ["CMD", "/usr/local/bin/etcdctl", "--endpoints=http://127.0.0.1:2379", "endpoint", "health"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 30
|
||||
start_period: 10s
|
||||
volumes:
|
||||
data:
|
||||
@@ -0,0 +1,3 @@
|
||||
# etcd 3.7 initialization
|
||||
|
||||
After the server is healthy, the recipe runner creates `root` with password `123456` (or `DB_PASSWORD`), grants it the `root` role, and enables etcd authentication. The named volume keeps the initialized authentication state.
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"database": "etcd",
|
||||
"name": "etcd",
|
||||
"version": "3.7.0",
|
||||
"displayVersion": "3.7",
|
||||
"image": "docker.cnb.cool/znb/images/etcd:v3.7.0",
|
||||
"platforms": ["linux/amd64", "linux/arm64"],
|
||||
"service": "database",
|
||||
"defaultPort": 2379,
|
||||
"connection": { "host": "127.0.0.1", "port": 2380, "username": "root", "password": "123456", "database": "dbx", "peerPort": 2381 },
|
||||
"bootstrap": {
|
||||
"check": { "command": ["/usr/local/bin/etcdctl", "--endpoints=http://127.0.0.1:2379", "--user", "root:${DB_PASSWORD}", "auth", "status"], "expect": "Authentication Status: true" },
|
||||
"steps": [
|
||||
{ "name": "create root user", "command": ["/usr/local/bin/etcdctl", "--endpoints=http://127.0.0.1:2379", "user", "add", "root:${DB_PASSWORD}"], "expect": "User root created" },
|
||||
{ "name": "create root role", "command": ["/usr/local/bin/etcdctl", "--endpoints=http://127.0.0.1:2379", "role", "add", "root"], "expect": "Role root created" },
|
||||
{ "name": "grant root role", "command": ["/usr/local/bin/etcdctl", "--endpoints=http://127.0.0.1:2379", "user", "grant-role", "root", "root"], "expect": "Role root is granted to user root" },
|
||||
{ "name": "enable authentication", "command": ["/usr/local/bin/etcdctl", "--endpoints=http://127.0.0.1:2379", "auth", "enable"], "expect": "Authentication Enabled" }
|
||||
]
|
||||
},
|
||||
"shell": ["/usr/local/bin/etcdctl", "--endpoints=http://127.0.0.1:2379", "--user", "root:${DB_PASSWORD}"],
|
||||
"smoke": { "steps": [{ "name": "write authenticated smoke key", "command": ["/usr/local/bin/etcdctl", "--endpoints=http://127.0.0.1:2379", "--user", "root:${DB_PASSWORD}", "put", "dbx:smoke", "DBX smoke"], "expect": "OK" }, { "name": "read authenticated smoke key", "command": ["/usr/local/bin/etcdctl", "--endpoints=http://127.0.0.1:2379", "--user", "root:${DB_PASSWORD}", "get", "dbx:smoke"], "expect": "DBX smoke" }] }
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
services:
|
||||
database:
|
||||
image: docker.cnb.cool/znb/images/kafka:4.3.1
|
||||
container_name: dbx-kafka-4.3
|
||||
ports:
|
||||
- "${DB_BIND_ADDRESS:-127.0.0.1}:${DB_PORT:-9093}:9092"
|
||||
environment:
|
||||
KAFKA_NODE_ID: 1
|
||||
KAFKA_PROCESS_ROLES: broker,controller
|
||||
KAFKA_LISTENERS: EXTERNAL://0.0.0.0:9092,CONTROLLER://0.0.0.0:9094,INTERNAL://0.0.0.0:9095
|
||||
KAFKA_ADVERTISED_LISTENERS: EXTERNAL://${KAFKA_ADVERTISED_HOST:-localhost}:${DB_PORT:-9093},INTERNAL://database:9095
|
||||
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
|
||||
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
|
||||
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,EXTERNAL:PLAINTEXT,INTERNAL:PLAINTEXT
|
||||
KAFKA_CONTROLLER_QUORUM_VOTERS: 1@database:9094
|
||||
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
|
||||
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
|
||||
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
|
||||
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
|
||||
KAFKA_NUM_PARTITIONS: 3
|
||||
volumes:
|
||||
- data:/var/lib/kafka/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "/opt/kafka/bin/kafka-broker-api-versions.sh --bootstrap-server database:9095 >/dev/null"]
|
||||
interval: 5s
|
||||
timeout: 10s
|
||||
retries: 30
|
||||
start_period: 20s
|
||||
volumes:
|
||||
data:
|
||||
@@ -0,0 +1,3 @@
|
||||
# Kafka 4.3 smoke data
|
||||
|
||||
Kafka runs in a single-node KRaft configuration. The `verify` command creates the `dbx-smoke` topic, publishes `DBX smoke`, and consumes it through the internal broker listener.
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"database": "kafka",
|
||||
"name": "Kafka",
|
||||
"version": "4.3.1",
|
||||
"displayVersion": "4.3",
|
||||
"image": "docker.cnb.cool/znb/images/kafka:4.3.1",
|
||||
"platforms": ["linux/amd64", "linux/arm64"],
|
||||
"service": "database",
|
||||
"defaultPort": 9092,
|
||||
"connection": { "host": "127.0.0.1", "port": 9093, "authentication": "none", "database": "dbx", "internalPort": 9095 },
|
||||
"shell": ["/bin/bash"],
|
||||
"smoke": { "steps": [{ "name": "create, produce, and consume a smoke message", "command": ["/bin/bash", "-ec", "/opt/kafka/bin/kafka-topics.sh --bootstrap-server database:9095 --create --if-not-exists --topic dbx-smoke --partitions 1 --replication-factor 1; printf 'DBX smoke\\n' | /opt/kafka/bin/kafka-console-producer.sh --bootstrap-server database:9095 --topic dbx-smoke; /opt/kafka/bin/kafka-console-consumer.sh --bootstrap-server database:9095 --topic dbx-smoke --from-beginning --max-messages 1 --timeout-ms 10000"], "expect": "DBX smoke" }] }
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
services:
|
||||
database:
|
||||
image: docker.cnb.cool/znb/images/nacos-server:v2.5.2
|
||||
container_name: dbx-nacos-2.5
|
||||
ports:
|
||||
- "${DB_BIND_ADDRESS:-127.0.0.1}:${DB_PORT:-8849}:8848"
|
||||
- "${DB_BIND_ADDRESS:-127.0.0.1}:${NACOS_GRPC_PORT:-9849}:9848"
|
||||
- "${DB_BIND_ADDRESS:-127.0.0.1}:${NACOS_RAFT_PORT:-9850}:9849"
|
||||
environment:
|
||||
MODE: standalone
|
||||
PREFER_HOST_MODE: hostname
|
||||
NACOS_AUTH_SYSTEM_TYPE: nacos
|
||||
NACOS_AUTH_ENABLE: "true"
|
||||
NACOS_AUTH_TOKEN: "bXlDdXN0b21TZWNyZXRLZXlGb3JOYWNvc1YzMTBNb3JlVGhhbjMyQ2hhcnM="
|
||||
NACOS_AUTH_IDENTITY_KEY: dbx_nacos_identity
|
||||
NACOS_AUTH_IDENTITY_VALUE: dbx_nacos_identity_value
|
||||
JVM_XMS: 256m
|
||||
JVM_XMX: 256m
|
||||
JVM_XMN: 128m
|
||||
volumes:
|
||||
- data:/home/nacos/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl --fail --silent http://localhost:8848/nacos/v1/console/health/readiness | grep -q OK"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 60
|
||||
start_period: 20s
|
||||
volumes:
|
||||
data:
|
||||
@@ -0,0 +1,3 @@
|
||||
# Nacos 2.5 initialization
|
||||
|
||||
After the Nacos service becomes healthy, the database environment command synchronously sets the first-run `nacos` administrator password to `123456` (or `DB_PASSWORD`) through the authentication API. Later starts verify those credentials without overwriting the account. The named data volume preserves the initialized account.
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"database": "nacos",
|
||||
"name": "Nacos",
|
||||
"version": "2.5.2",
|
||||
"displayVersion": "2.5",
|
||||
"image": "docker.cnb.cool/znb/images/nacos-server:v2.5.2",
|
||||
"platforms": ["linux/amd64", "linux/arm64"],
|
||||
"service": "database",
|
||||
"defaultPort": 8848,
|
||||
"connection": { "host": "127.0.0.1", "port": 8849, "username": "nacos", "password": "123456", "database": "dbx", "namespace": "public" },
|
||||
"bootstrap": {
|
||||
"check": { "command": ["curl", "--fail", "--silent", "--show-error", "--request", "POST", "http://127.0.0.1:8848/nacos/v1/auth/login", "--data-urlencode", "username=nacos", "--data-urlencode", "password=${DB_PASSWORD}"], "expect": "accessToken" },
|
||||
"steps": [{ "name": "initialize administrator password", "command": ["sh", "-ec", "curl --fail --silent --show-error --request POST --data-urlencode \"password=$1\" http://127.0.0.1:8848/nacos/v1/auth/users/admin >/dev/null; curl --fail --silent --show-error --request POST http://127.0.0.1:8848/nacos/v1/auth/login --data-urlencode username=nacos --data-urlencode \"password=$1\" | grep -q '\"accessToken\"'; printf 'administrator initialized\\n'", "sh", "${DB_PASSWORD}"], "expect": "administrator initialized" }]
|
||||
},
|
||||
"shell": ["curl", "--fail", "--silent", "--show-error", "--request", "POST", "http://127.0.0.1:8848/nacos/v1/auth/login", "--data-urlencode", "username=nacos", "--data-urlencode", "password=${DB_PASSWORD}"],
|
||||
"smoke": { "steps": [{ "name": "log in with initialized administrator credentials", "command": ["curl", "--fail", "--silent", "--show-error", "--request", "POST", "http://127.0.0.1:8848/nacos/v1/auth/login", "--data-urlencode", "username=nacos", "--data-urlencode", "password=${DB_PASSWORD}"], "expect": "accessToken" }] }
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
services:
|
||||
database:
|
||||
image: docker.cnb.cool/znb/images/nacos-server:v3.2.2
|
||||
container_name: dbx-nacos-3.2
|
||||
ports:
|
||||
- "${DB_BIND_ADDRESS:-127.0.0.1}:${NACOS_CONSOLE_PORT:-8010}:8080"
|
||||
- "${DB_BIND_ADDRESS:-127.0.0.1}:${DB_PORT:-8849}:8848"
|
||||
- "${DB_BIND_ADDRESS:-127.0.0.1}:${NACOS_GRPC_PORT:-9849}:9848"
|
||||
- "${DB_BIND_ADDRESS:-127.0.0.1}:${NACOS_RAFT_PORT:-9850}:9849"
|
||||
environment:
|
||||
MODE: standalone
|
||||
PREFER_HOST_MODE: hostname
|
||||
NACOS_AUTH_SYSTEM_TYPE: nacos
|
||||
NACOS_AUTH_ENABLE: "true"
|
||||
NACOS_AUTH_ADMIN_ENABLE: "true"
|
||||
NACOS_AUTH_CONSOLE_ENABLE: "true"
|
||||
NACOS_AUTH_TOKEN: "bXlDdXN0b21TZWNyZXRLZXlGb3JOYWNvc1YzMTBNb3JlVGhhbjMyQ2hhcnM="
|
||||
NACOS_AUTH_IDENTITY_KEY: dbx_nacos_identity
|
||||
NACOS_AUTH_IDENTITY_VALUE: dbx_nacos_identity_value
|
||||
JVM_XMS: 256m
|
||||
JVM_XMX: 256m
|
||||
JVM_XMN: 128m
|
||||
volumes:
|
||||
- data:/home/nacos/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "test \"$$(curl --silent --output /dev/null --write-out '%{http_code}' http://localhost:8848/nacos/v3/auth/user/admin)\" = 405"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 60
|
||||
start_period: 20s
|
||||
volumes:
|
||||
data:
|
||||
@@ -0,0 +1,3 @@
|
||||
# Nacos 3.2 initialization
|
||||
|
||||
After the Nacos service becomes healthy, the database environment command synchronously sets the first-run `nacos` administrator password to `123456` (or `DB_PASSWORD`) through the authentication API. Later starts verify those credentials without overwriting the account. The named data volume preserves the initialized account.
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"database": "nacos",
|
||||
"name": "Nacos",
|
||||
"version": "3.2.2",
|
||||
"displayVersion": "3.2",
|
||||
"image": "docker.cnb.cool/znb/images/nacos-server:v3.2.2",
|
||||
"platforms": ["linux/amd64", "linux/arm64"],
|
||||
"service": "database",
|
||||
"defaultPort": 8848,
|
||||
"connection": { "host": "127.0.0.1", "port": 8849, "username": "nacos", "password": "123456", "database": "dbx", "namespace": "public", "consolePort": 8010 },
|
||||
"bootstrap": {
|
||||
"check": { "command": ["curl", "--fail", "--silent", "--show-error", "--request", "POST", "http://127.0.0.1:8848/nacos/v3/auth/user/login", "--data-urlencode", "username=nacos", "--data-urlencode", "password=${DB_PASSWORD}"], "expect": "accessToken" },
|
||||
"steps": [{ "name": "initialize administrator password", "command": ["sh", "-ec", "curl --fail --silent --show-error --request POST --data-urlencode \"password=$1\" http://127.0.0.1:8848/nacos/v3/auth/user/admin >/dev/null; curl --fail --silent --show-error --request POST http://127.0.0.1:8848/nacos/v3/auth/user/login --data-urlencode username=nacos --data-urlencode \"password=$1\" | grep -q '\"accessToken\"'; printf 'administrator initialized\\n'", "sh", "${DB_PASSWORD}"], "expect": "administrator initialized" }]
|
||||
},
|
||||
"shell": ["curl", "--fail", "--silent", "--show-error", "--request", "POST", "http://127.0.0.1:8848/nacos/v3/auth/user/login", "--data-urlencode", "username=nacos", "--data-urlencode", "password=${DB_PASSWORD}"],
|
||||
"smoke": { "steps": [{ "name": "log in with initialized administrator credentials", "command": ["curl", "--fail", "--silent", "--show-error", "--request", "POST", "http://127.0.0.1:8848/nacos/v3/auth/user/login", "--data-urlencode", "username=nacos", "--data-urlencode", "password=${DB_PASSWORD}"], "expect": "accessToken" }] }
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
services:
|
||||
database:
|
||||
image: docker.cnb.cool/znb/images/pulsar:4.2.3
|
||||
container_name: dbx-pulsar-4.2
|
||||
command: ["bin/pulsar", "standalone", "--advertised-address", "localhost"]
|
||||
ports:
|
||||
- "${DB_BIND_ADDRESS:-127.0.0.1}:${DB_PORT:-6651}:6650"
|
||||
- "${DB_BIND_ADDRESS:-127.0.0.1}:${PULSAR_WEB_PORT:-8081}:8080"
|
||||
volumes:
|
||||
- data:/pulsar/data
|
||||
- conf:/pulsar/conf
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "bin/pulsar-admin brokers healthcheck"]
|
||||
interval: 10s
|
||||
timeout: 10s
|
||||
retries: 60
|
||||
start_period: 30s
|
||||
volumes:
|
||||
data:
|
||||
conf:
|
||||
@@ -0,0 +1,3 @@
|
||||
# Pulsar 4.2 smoke data
|
||||
|
||||
Pulsar standalone creates the `public/default` namespace automatically. The `verify` command publishes `DBX smoke` to `persistent://public/default/dbx-smoke`.
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"database": "pulsar",
|
||||
"name": "Pulsar",
|
||||
"version": "4.2.3",
|
||||
"displayVersion": "4.2",
|
||||
"image": "docker.cnb.cool/znb/images/pulsar:4.2.3",
|
||||
"platforms": ["linux/amd64", "linux/arm64"],
|
||||
"service": "database",
|
||||
"defaultPort": 6650,
|
||||
"connection": { "host": "127.0.0.1", "port": 6651, "authentication": "none", "database": "dbx", "namespace": "public/default", "webPort": 8081 },
|
||||
"shell": ["/bin/bash"],
|
||||
"smoke": { "steps": [{ "name": "produce a smoke message", "command": ["bin/pulsar-client", "produce", "persistent://public/default/dbx-smoke", "--messages", "DBX smoke"], "expect": "1 messages successfully produced" }] }
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
services:
|
||||
database:
|
||||
image: docker.cnb.cool/znb/images/qdrant:v1.8.3
|
||||
container_name: dbx-qdrant-1.8
|
||||
ports:
|
||||
- "${DB_BIND_ADDRESS:-127.0.0.1}:${DB_PORT:-6334}:6333"
|
||||
- "${DB_BIND_ADDRESS:-127.0.0.1}:${QDRANT_GRPC_PORT:-6335}:6334"
|
||||
environment:
|
||||
QDRANT__SERVICE__API_KEY: "${DB_PASSWORD:-123456}"
|
||||
volumes:
|
||||
- data:/qdrant/storage
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "bash -c '</dev/tcp/127.0.0.1/6333'"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 30
|
||||
start_period: 10s
|
||||
volumes:
|
||||
data:
|
||||
@@ -0,0 +1,3 @@
|
||||
# Qdrant 1.8 smoke data
|
||||
|
||||
Qdrant stores its vectors in the named `data` volume. The `verify` command sends an authenticated HTTP request using the configured admin API key (`123456` by default).
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"database": "qdrant",
|
||||
"name": "Qdrant",
|
||||
"version": "1.8.3",
|
||||
"displayVersion": "1.8",
|
||||
"image": "docker.cnb.cool/znb/images/qdrant:v1.8.3",
|
||||
"platforms": ["linux/amd64", "linux/arm64"],
|
||||
"service": "database",
|
||||
"defaultPort": 6333,
|
||||
"connection": { "host": "127.0.0.1", "port": 6334, "username": "", "password": "123456", "database": "dbx", "grpcPort": 6335 },
|
||||
"shell": ["bash"],
|
||||
"smoke": { "steps": [{ "name": "reject an unauthenticated collection request", "command": ["bash", "-c", "exec 3<>/dev/tcp/127.0.0.1/6333; printf 'GET /collections HTTP/1.1\\r\\nHost: localhost\\r\\nConnection: close\\r\\n\\r\\n' >&3; cat <&3"], "expect": "403 Forbidden" }, { "name": "query collections with the configured API key", "command": ["bash", "-c", "exec 3<>/dev/tcp/127.0.0.1/6333; printf 'GET /collections HTTP/1.1\\r\\nHost: localhost\\r\\napi-key: %s\\r\\nConnection: close\\r\\n\\r\\n' \"$1\" >&3; cat <&3", "bash", "${DB_PASSWORD}"], "expect": "collections" }] }
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
services:
|
||||
database:
|
||||
image: docker.cnb.cool/znb/images/zookeeper:3.9.5
|
||||
container_name: dbx-zookeeper-3.9
|
||||
ports:
|
||||
- "${DB_BIND_ADDRESS:-127.0.0.1}:${DB_PORT:-2182}:2181"
|
||||
volumes:
|
||||
- data:/data
|
||||
- datalog:/datalog
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "zkServer.sh status | grep -q 'Mode: standalone'"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 30
|
||||
start_period: 15s
|
||||
volumes:
|
||||
data:
|
||||
datalog:
|
||||
@@ -0,0 +1,3 @@
|
||||
# ZooKeeper 3.9 initialization
|
||||
|
||||
The recipe runner creates `/dbx` with a Digest ACL for `root` and password `123456` (or `DB_PASSWORD`). ZooKeeper does not have a global username/password login switch; clients must authenticate with `addauth digest root:<password>` before accessing this protected node.
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"database": "zookeeper",
|
||||
"name": "ZooKeeper",
|
||||
"version": "3.9.5",
|
||||
"displayVersion": "3.9",
|
||||
"image": "docker.cnb.cool/znb/images/zookeeper:3.9.5",
|
||||
"platforms": ["linux/amd64", "linux/arm64"],
|
||||
"service": "database",
|
||||
"defaultPort": 2181,
|
||||
"connection": { "host": "127.0.0.1", "port": 2182, "username": "root", "password": "123456", "database": "dbx", "authScheme": "digest" },
|
||||
"bootstrap": {
|
||||
"check": { "command": ["sh", "-ec", "printf 'addauth digest root:%s\\nget /dbx\\nquit\\n' \"$1\" | zkCli.sh -server 127.0.0.1:2181", "sh", "${DB_PASSWORD}"], "expect": "DBX smoke" },
|
||||
"steps": [{ "name": "create Digest-protected smoke node", "command": ["sh", "-ec", "printf 'addauth digest root:%s\\ncreate /dbx \"DBX smoke\" auth:root:%s:cdrwa\\nquit\\n' \"$1\" \"$1\" | zkCli.sh -server 127.0.0.1:2181", "sh", "${DB_PASSWORD}"], "expect": "Created /dbx" }]
|
||||
},
|
||||
"shell": ["zkCli.sh", "-server", "127.0.0.1:2181"],
|
||||
"smoke": { "steps": [{ "name": "reject anonymous access to protected node", "command": ["sh", "-ec", "printf 'get /dbx\\nquit\\n' | zkCli.sh -server 127.0.0.1:2181 || true"], "expect": "Insufficient permission" }, { "name": "read protected node with Digest credentials", "command": ["sh", "-ec", "printf 'addauth digest root:%s\\nget /dbx\\nquit\\n' \"$1\" | zkCli.sh -server 127.0.0.1:2181", "sh", "${DB_PASSWORD}"], "expect": "DBX smoke" }] }
|
||||
}
|
||||
Reference in New Issue
Block a user