From 926b7e2c8467c346e39943a96f41d910d162055f Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Tue, 17 Sep 2024 00:50:41 +0200 Subject: [PATCH] Deduplicate data in test matrix YAML Avoid repetitive definitions by utilizing anchors. Signed-off-by: Georg Pfuetzenreuter --- tests/matrix.yaml | 62 +++++++++-------------------------------------- 1 file changed, 11 insertions(+), 51 deletions(-) diff --git a/tests/matrix.yaml b/tests/matrix.yaml index f3522dc..ea1e6f2 100644 --- a/tests/matrix.yaml +++ b/tests/matrix.yaml @@ -5,102 +5,62 @@ user:user:r: read: true write: false execute: false - group: - null: - read: true - write: false - execute: false - mask: - null: - read: true - write: false - execute: false - other: + group: &null_ro null: read: true write: false execute: false + mask: *null_ro + other: *null_ro user:user:-w-: user: user: read: false write: true execute: false - group: - null: - read: true - write: false - execute: false + group: *null_ro mask: null: read: true write: true execute: false - other: - null: - read: true - write: false - execute: false + other: *null_ro user:user:--x: user: user: read: false write: false execute: true - group: - null: - read: true - write: false - execute: false + group: *null_ro mask: null: read: true write: false execute: true - other: - null: - read: true - write: false - execute: false + other: *null_ro user:user:r-x: user: user: read: true write: false execute: true - group: - null: - read: true - write: false - execute: false + group: *null_ro mask: null: read: true write: false execute: true - other: - null: - read: true - write: false - execute: false + other: *null_ro user:user:rwx: user: user: read: true write: true execute: true - group: - null: - read: true - write: false - execute: false + group: *null_ro mask: null: read: true write: true execute: true - other: - null: - read: true - write: false - execute: false + other: *null_ro