Commit a474453 1 parent c20d59f commit a474453 Copy full SHA for a474453
File tree 3 files changed +12
-15
lines changed
tests/kola/ignition/sysusers
3 files changed +12
-15
lines changed Original file line number Diff line number Diff line change 1
- ---
2
1
variant: fcos
3
- version: 1.0 .0
2
+ version: 1.4 .0
4
3
storage:
5
4
files:
6
- - path: /etc/zincati /config.d/00-dummy-placeholder.toml
5
+ - path: /etc/dnsmasq /config.d/00-dummy-placeholder.toml
7
6
mode: 0644
8
7
user:
9
- name: "zincati "
8
+ name: "dnsmasq "
10
9
contents:
11
10
inline: |
12
11
# 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/dnsmasq /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} " ! = ' dnsmasq ' ; 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 dnsmasq user"
You can’t perform that action at this time.
0 commit comments