tests: mirror rights relogin flow in quota smoke
This commit is contained in:
@@ -103,20 +103,35 @@ GOTO END
|
||||
IF "%LGNTPWD%"=="" GOTO SKIPREL
|
||||
ECHO Creating local supervisor relogin helper. >> F:\DQTCMP\RUN.LOG
|
||||
ECHO @ECHO OFF> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO REM Generated by DQTSTA. Logs back in as SUPERVISOR and queues PART2.>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO REM Generated by DQTSTA. Mirrors the RIGHTS helper relogin flow.>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO C:>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO CD \DQTTMP>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO C:\DQTTMP\LOGIN SUPERVISOR /PWD:%LGNTPWD% ^> C:\DQTTMP\D04_LOGIN_SUP.OUT>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO ECHO DQTREL supervisor relogin helper started. ^>^> C:\DQTTMP\HELPER.TXT>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO F:>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO CD \>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO IF EXIST DQTSTA.BAT GOTO QUEUEP2>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO ECHO F:\DQTSTA.BAT missing after supervisor relogin. ^>^> C:\DQTTMP\HELPER.TXT>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO GOTO END>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO IF EXIST \LOGIN\LOGIN.EXE GOTO HAVELOGIN>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO ECHO F:\LOGIN\LOGIN.EXE not found before supervisor relogin. ^>^> C:\DQTTMP\HELPER.TXT>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO GOTO MANUAL>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO :HAVELOGIN>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO F:\LOGIN\LOGIN /NS SUPERVISOR /PWD:%LGNTPWD% ^> C:\DQTTMP\D04_LOGIN_SUP.OUT>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO F:>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO CD \>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO IF EXIST \DQTSTA.BAT GOTO QUEUEP2>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO ECHO F: not restored or \DQTSTA.BAT not visible after supervisor relogin. ^>^> C:\DQTTMP\HELPER.TXT>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO GOTO MANUAL>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO :QUEUEP2>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO C:>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO CD \DQTTMP>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO C:\DQTTMP\DLYSTRT /T:2 F:\DQTSTA.BAT PART2 ^> C:\DQTTMP\D05_P2.OUT>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO IF EXIST DLYSTRT.EXE GOTO HVDLY>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO ECHO C:\DQTTMP\DLYSTRT.EXE not found before PART2 queue. ^>^> C:\DQTTMP\HELPER.TXT>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO GOTO MANUAL>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO :HVDLY>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO DLYSTRT /T:2 F:\DQTSTA.BAT PART2 ^> C:\DQTTMP\D05_P2.OUT>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO ECHO DQTREL queued F:\DQTSTA.BAT PART2. ^>^> C:\DQTTMP\HELPER.TXT>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO GOTO END>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO :MANUAL>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO ECHO Manual steps required: LOGIN /NS SUPERVISOR, F:, DQTSTA PART2. ^>^> C:\DQTTMP\HELPER.TXT>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO ECHO Bitte manuell als SUPERVISOR einloggen und dann F:\DQTSTA PART2 starten.>> C:\DQTTMP\DQTREL.BAT
|
||||
ECHO :END>> C:\DQTTMP\DQTREL.BAT
|
||||
GOTO RELREADY
|
||||
:SKIPREL
|
||||
|
||||
@@ -62,3 +62,10 @@ Expected summary:
|
||||
```text
|
||||
PASS: DOS quota deny observed.
|
||||
```
|
||||
### Automatic relogin detail
|
||||
|
||||
The quota handoff follows the same pattern as the RIGHTS/GRANT/REVOKE DOS tests:
|
||||
`DQTSTA` copies the helper to `C:\DQTTMP`, starts it with `DLYSTRT`, and
|
||||
the helper uses a generated `DQTREL.BAT` to log back in as SUPERVISOR and
|
||||
queue `F:\DQTSTA.BAT PART2`. The relogin uses `LOGIN /NS SUPERVISOR
|
||||
/PWD:%LGNTPWD%` so the login script does not disturb the test mappings.
|
||||
|
||||
Reference in New Issue
Block a user