Skip to content

Commit e449e33

Browse files
committed
Fix: TEST kv store TTL, there was no key with TTL so no ttl to check
1 parent 74c8b53 commit e449e33

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

test/docker-files/docker-file-FEATURE-kv-store-ttl.txt

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ LABEL maintainer="Jean Gabes <naparuba@gmail.com>"
44

55
# We need to faketime to force day end in the container
66
RUN /apt_get_install faketime libfaketime
7+
RUN /apt_get_install curl # to put a key and so force a ttl
78

89
ADD . /root/opsbro-oss
910

test/test_feature_kv_store_ttl.sh

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ launch_as_start_of_day_day 01
3030

3131
# Must exists /var/lib/opsbro/kv_ttl/1549069200.ttl
3232

33+
sleep 2
34+
# Force to put a TTL key
35+
curl --unix-socket /var/lib/opsbro/opsbro.sock -X PUT http://localhost/kv/keykey?ttl=3600 -d 'AAAAAA' -H "Content-Type: application/json"
36+
3337
sleep 30
3438
echo "Looking at /var/lib/opsbro/kv_ttl/"
3539
ls -thor /var/lib/opsbro/kv_ttl/

0 commit comments

Comments
 (0)