-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
variant: fcos | ||
version: 1.4.0 | ||
storage: | ||
files: | ||
- path: /etc/containers/systemd/test.container | ||
contents: | ||
inline: | | ||
[Unit] | ||
Description=A minimal container | ||
|
||
[Container] | ||
Image=registry.fedoraproject.org/fedora-minimal | ||
Volume=test.volume:/data | ||
Exec=sleep 60 | ||
|
||
[Service] | ||
Restart=always | ||
|
||
[Install] | ||
WantedBy=multi-user.target default.target | ||
- path: /etc/containers/systemd/test.volume | ||
contents: | ||
inline: | | ||
[Volume] | ||
User=root | ||
Group=root | ||
Label=org.test.Key=value | ||
- path: /etc/containers/systemd/test.network | ||
contents: | ||
inline: | | ||
[Network] | ||
Subnet=172.16.0.0/24 | ||
Gateway=172.16.0.1 | ||
IPRange=172.16.0.0/28 | ||
Label=org.test.Key=value |
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 @@ | ||
../../../data/commonlib.sh |
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,22 @@ | ||
#!/bin/bash | ||
## kola: | ||
## # We're pulling a container image from Quay.io | ||
## tags: "platform-independent needs-internet" | ||
# | ||
# Ensure that basic quadlet functionality works | ||
|
||
set -xeuo pipefail | ||
|
||
. $KOLA_EXT_DATA/commonlib.sh | ||
|
||
if [[ "$(podman inspect systemd-test | jq -r '.[0].ImageName')" != "registry.fedoraproject.org/fedora-minimal:latest" ]]; then | ||
fail "Container not correctly created" | ||
fi | ||
|
||
if [[ "$(podman volume inspect systemd-test | jq -r '.[0].Labels."org.test.Key"')" != "value" ]]; then | ||
fail "Volume not correctly created" | ||
fi | ||
|
||
podman network ls | ||
|
||
ok "Successfully test basic quadlet functionality" |