Commit 3af42d3 1 parent c20d59f commit 3af42d3 Copy full SHA for 3af42d3
File tree 3 files changed +14
-14
lines changed
tests/kola/ignition/sysusers
3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 1
- ---
2
1
variant: fcos
3
2
version: 1.0.0
3
+ passwd:
4
+ users:
5
+ - name: usertest
4
6
storage:
5
7
files:
6
- - path: /etc/zincati /config.d/00-dummy-placeholder.toml
8
+ - path: /etc/usertest /config.d/00-dummy-placeholder.toml
7
9
mode: 0644
8
10
user:
9
- name: "zincati "
11
+ name: "usertest "
10
12
contents:
11
13
inline: |
12
14
# Dummy placeholder
Original file line number Diff line number Diff line change
1
+ ../../../data/commonlib.sh
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
- set -euo pipefail
2
+ # # kola:
3
+ # # platforms: qemu
4
+ # # description: Verify file ownership can reference system users.
3
5
4
- ok () {
5
- echo " ok" " $@ "
6
- }
6
+ set -xeuo pipefail
7
7
8
- fatal () {
9
- echo " $@ " >&2
10
- exit 1
11
- }
8
+ . " $KOLA_EXT_DATA /commonlib.sh"
12
9
13
- TARGET=" /etc/zincati /config.d/00-dummy-placeholder.toml"
10
+ TARGET=" /etc/usertest /config.d/00-dummy-placeholder.toml"
14
11
OWNER=$( stat -c ' %U' " ${TARGET} " )
15
12
16
13
# make sure the placeholder file is owned by the proper system user.
17
- if test " ${OWNER} " ! = ' zincati ' ; then
14
+ if test " ${OWNER} " ! = ' usertest ' ; then
18
15
fatal " unexpected owner of ${TARGET} : ${OWNER} "
19
16
fi
20
- ok " placeholder file correctly owned by zincati user"
17
+ ok " placeholder file correctly owned by usertest user"
You can’t perform that action at this time.
0 commit comments