-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: William Douglas <[email protected]>
- Loading branch information
Showing
16 changed files
with
153 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/usr/bin/env bats | ||
# Copyright (C) 2018 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
load ../utils | ||
load ../security | ||
|
||
@test "1191 test" { | ||
# start container first | ||
docker run --name valkey-server --detach ghcr.io/clearlinux/valkey | ||
run check_container_status valkey-server | ||
[ "$status" -eq 0 ] | ||
run Test_1191 ghcr.io/clearlinux/valkey | ||
[ "$output" == "pass" ] | ||
|
||
# stop the container | ||
docker rm -f valkey-server | ||
sleep 3 | ||
run check_container_status valkey-server | ||
[ "$status" -eq 1 ] | ||
} | ||
|
||
@test "1195 test" { | ||
# start container first | ||
docker run --name valkey-server --detach ghcr.io/clearlinux/valkey | ||
run check_container_status valkey-server | ||
[ "$status" -eq 0 ] | ||
run Test_1195 ghcr.io/clearlinux/valkey | ||
[ "$output" == "pass" ] | ||
|
||
# stop the container | ||
docker rm -f valkey-server | ||
sleep 3 | ||
run check_container_status valkey-server | ||
[ "$status" -eq 1 ] | ||
} | ||
|
||
@test "1215 test" { | ||
# start container first | ||
docker run --name valkey-server --detach --security-opt=no-new-privileges ghcr.io/clearlinux/valkey | ||
run check_container_status valkey-server | ||
[ "$status" -eq 0 ] | ||
run Test_1215 ghcr.io/clearlinux/valkey | ||
[ "$output" == "pass" ] | ||
|
||
# stop the container | ||
docker rm -f valkey-server | ||
sleep 3 | ||
run check_container_status valkey-server | ||
[ "$status" -eq 1 ] | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/usr/bin/env bats | ||
# Copyright (C) 2018 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
load ../utils | ||
|
||
@test "valkey LPUSH test" { | ||
# start the container first | ||
docker run --name valkey-server --rm -d ghcr.io/clearlinux/valkey valkey-server --protected-mode no | ||
sleep 5 | ||
run check_container_status valkey-server | ||
[ "$status" -eq 0 ] | ||
|
||
# get ip address | ||
run get_container_ip valkey-server | ||
[ "$status" -eq 0 ] | ||
ipaddr="$output" | ||
|
||
# push two integers | ||
docker run --rm ghcr.io/clearlinux/valkey redis-cli -h $ipaddr lpush mylist x | ||
docker run --rm ghcr.io/clearlinux/valkey redis-cli -h $ipaddr lpush mylist y | ||
|
||
# stop the container | ||
docker stop valkey-server | ||
sleep 3 | ||
run check_container_status valkey-server | ||
[ "$status" -eq 1 ] | ||
} | ||
|
||
@test "valkey LRANGE test" { | ||
# start tje container first | ||
docker run --name valkey-server --rm -d ghcr.io/clearlinux/valkey valkey-server --protected-mode no | ||
sleep 5 | ||
run check_container_status valkey-server | ||
[ "$status" -eq 0 ] | ||
|
||
# get ip address | ||
run get_container_ip valkey-server | ||
[ "$status" -eq 0 ] | ||
ipaddr="$output" | ||
|
||
# push two integers | ||
docker run --rm ghcr.io/clearlinux/valkey redis-cli -h $ipaddr lrange mylist 0 -1 | ||
|
||
# stop the container | ||
docker stop valkey-server | ||
sleep 3 | ||
run check_container_status valkey-server | ||
[ "$status" -eq 1 ] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.