diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2012-02-28 16:34:07 +1100 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2012-02-28 16:34:07 +1100 |
commit | c8031aa87653a45aa62f8db3bd1d34eda67578ec (patch) | |
tree | 22e01604f7ff18474a3ad9ac6b68f25315970648 /tests/scripts | |
parent | 3a0488018cbd380eb7c764e486f1a43e749d9c61 (diff) | |
download | lightdm-c8031aa87653a45aa62f8db3bd1d34eda67578ec.tar.gz |
Add tests for autologin when accounts are denied or expired
Diffstat (limited to 'tests/scripts')
-rw-r--r-- | tests/scripts/autologin-denied.conf | 34 | ||||
-rw-r--r-- | tests/scripts/autologin-expired.conf | 34 | ||||
-rw-r--r-- | tests/scripts/autologin-new-authtok.conf | 34 |
3 files changed, 102 insertions, 0 deletions
diff --git a/tests/scripts/autologin-denied.conf b/tests/scripts/autologin-denied.conf new file mode 100644 index 00000000..caf42ffd --- /dev/null +++ b/tests/scripts/autologin-denied.conf @@ -0,0 +1,34 @@ +# +# Check automatic login stops if an account is denied access +# + +[LightDM] +minimum-display-number=50 + +[SeatDefaults] +autologin-user=denied + +#?RUNNER DAEMON-START + +# X server starts +#?XSERVER :50 START +#?XSERVER :50 INDICATE-READY + +# LightDM connects to X server +#?XSERVER :50 ACCEPT-CONNECT + +# (Session fails) + +# Greeter starts +#?GREETER :50 START +#?XSERVER :50 ACCEPT-CONNECT +#?GREETER :50 CONNECT-XSERVER +#?GREETER :50 CONNECT-TO-DAEMON +#?GREETER :50 CONNECTED-TO-DAEMON + +# Cleanup +#?*STOP-DAEMON +# Don't know what order they will terminate +#?(GREETER :50 TERMINATE SIGNAL=15|XSERVER :50 TERMINATE SIGNAL=15) +#?(GREETER :50 TERMINATE SIGNAL=15|XSERVER :50 TERMINATE SIGNAL=15) +#?RUNNER DAEMON-EXIT STATUS=0 diff --git a/tests/scripts/autologin-expired.conf b/tests/scripts/autologin-expired.conf new file mode 100644 index 00000000..b04d6379 --- /dev/null +++ b/tests/scripts/autologin-expired.conf @@ -0,0 +1,34 @@ +# +# Check automatic login stops if an account is expired +# + +[LightDM] +minimum-display-number=50 + +[SeatDefaults] +autologin-user=expired + +#?RUNNER DAEMON-START + +# X server starts +#?XSERVER :50 START +#?XSERVER :50 INDICATE-READY + +# LightDM connects to X server +#?XSERVER :50 ACCEPT-CONNECT + +# (Session fails) + +# Greeter starts +#?GREETER :50 START +#?XSERVER :50 ACCEPT-CONNECT +#?GREETER :50 CONNECT-XSERVER +#?GREETER :50 CONNECT-TO-DAEMON +#?GREETER :50 CONNECTED-TO-DAEMON + +# Cleanup +#?*STOP-DAEMON +# Don't know what order they will terminate +#?(GREETER :50 TERMINATE SIGNAL=15|XSERVER :50 TERMINATE SIGNAL=15) +#?(GREETER :50 TERMINATE SIGNAL=15|XSERVER :50 TERMINATE SIGNAL=15) +#?RUNNER DAEMON-EXIT STATUS=0 diff --git a/tests/scripts/autologin-new-authtok.conf b/tests/scripts/autologin-new-authtok.conf new file mode 100644 index 00000000..04771909 --- /dev/null +++ b/tests/scripts/autologin-new-authtok.conf @@ -0,0 +1,34 @@ +# +# Check automatic login stops if a password change is required +# + +[LightDM] +minimum-display-number=50 + +[SeatDefaults] +autologin-user=new-authtok + +#?RUNNER DAEMON-START + +# X server starts +#?XSERVER :50 START +#?XSERVER :50 INDICATE-READY + +# LightDM connects to X server +#?XSERVER :50 ACCEPT-CONNECT + +# (Session fails) + +# Greeter starts +#?GREETER :50 START +#?XSERVER :50 ACCEPT-CONNECT +#?GREETER :50 CONNECT-XSERVER +#?GREETER :50 CONNECT-TO-DAEMON +#?GREETER :50 CONNECTED-TO-DAEMON + +# Cleanup +#?*STOP-DAEMON +# Don't know what order they will terminate +#?(GREETER :50 TERMINATE SIGNAL=15|XSERVER :50 TERMINATE SIGNAL=15) +#?(GREETER :50 TERMINATE SIGNAL=15|XSERVER :50 TERMINATE SIGNAL=15) +#?RUNNER DAEMON-EXIT STATUS=0 |