From bbea9342330ff020b8e3094c849db88719915132 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sat, 26 Dec 2020 12:54:42 +0100 Subject: Continued implementing config validation --- config/test_data/non_existant_menu.yaml | 72 +++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 config/test_data/non_existant_menu.yaml (limited to 'config/test_data/non_existant_menu.yaml') diff --git a/config/test_data/non_existant_menu.yaml b/config/test_data/non_existant_menu.yaml new file mode 100644 index 0000000..2890ee8 --- /dev/null +++ b/config/test_data/non_existant_menu.yaml @@ -0,0 +1,72 @@ +App: + WorkingDirectory: var/ + MaxUsers: 512 + AllowRegistration: true + MaxNickLen: 15 + MenuMaxIdleTime: 600 + PostLoginCommands: + - mkdir %w/userdata/%u + - mkdir %w/userdata/%u/dumplog + - mkdir %w/userdata/%u/ttyrec + +Menus: + anonymous: + Banner: 'Shell Game Launcher - Anonymous access%n======================================' + XOffset: 5 + YOffset: 2 + MenuEntries: + - Key: t + Label: test + Action: menu test + - Key: l + Label: login + Action: login + - Key: r + Label: register + Action: register + - Key: w + Label: watch + Action: watch_menu + - Key: q + Label: quit + Action: quit + logged_in: + Banner: 'Shell Game Launcher%n===================' + XOffset: 5 + YOffset: 2 + MenuEntries: + - Key: p + Label: play Nethack 3.7 + Action: play nethack3.7 + - Key: o + Label: edit game options + Action: menu invalid + - Key: w + Label: watch + Action: watch + - Key: r + Label: replay + Action: replay + - Key: c + Label: change password + Action: passwd + - Key: m + Label: change email + Action: chmail + - Key: q + Label: quit + Action: quit + +Games: + nethack3.7: + ChrootPath: /opt/nethack + FileMode: "0666" + ScoreCommands: + - exec /games/nethack -s all + - wait + Commands: + - cp /games/var/save/%u%n.gz /games/var/save/%u%n.gz.bak + - exec /games/nethack -u %n + Env: + NETHACKOPTIONS: "@%ruserdata/%n/%n.nhrc" + -- cgit v1.2.3