Skip to content

Latest commit

 

History

History
77 lines (59 loc) · 1.33 KB

README.md

File metadata and controls

77 lines (59 loc) · 1.33 KB

Test persistence

Build and deploy

make build
kubectl apply --kustomize k8s

Create files

curl -k -X 'POST' \
  'https://rancher-lb/persistence/api/v1/files' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F 'number_of_files=5' \
  -F 'size_in_bytes=10485760'

List files

curl -k -X 'GET' \
  'https://rancher-lb/persistence/api/v1/files' \
  -H 'accept: application/json'

Count files

curl -k -X 'GET' \
  'https://rancher-lb/persistence/api/v1/files/count' \
  -H 'accept: application/json'

Delete files

curl -k -X 'DELETE' \
  'https://rancher-lb/persistence/api/v1/files' \
  -H 'accept: application/json'

Create random data

curl -k -X 'POST' \
  'https://rancher-lb/persistence/api/v1/database' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F 'number_of_inserts=10'

List random data

curl -k -X 'GET' \
  'https://rancher-lb/persistence/api/v1/database' \
  -H 'accept: application/json'

Count random data

curl -k -X 'GET' \
  'https://rancher-lb/persistence/api/v1/database/count' \
  -H 'accept: application/json'

Delete random data

curl -k -X 'DELETE' \
  'https://rancher-lb/persistence/api/v1/database' \
  -H 'accept: application/json'