lösche dumme powershell scripte

This commit is contained in:
Robert Wartenberg committed 2026-08-28 21:37:12 +02:00
1 parent 6ef38aa7d2
commit de5895f558
2 files changed
-77

No files matched your search

@@ -1,32 +0,0 @@
$projectRoot = Split-Path -Parent $PSScriptRoot
$deployScriptPath = Join-Path $projectRoot 'scripts\Deploy-Perspektivwerk.ps1'
Describe 'Perspektivwerk deployment' {
It 'provides a deployment script for the static page' {
(Test-Path -LiteralPath $deployScriptPath) | Should Be $true
}
It 'uploads the static page and its nested booking assets with one scp invocation' {
$script = Get-Content -LiteralPath $deployScriptPath -Raw
$script | Should Match 'public[\\/]perspektivwerk'
$script | Should Not Match 'public[\\/]booking'
$script | Should Match 'boogie:/home/boogie/html/perspektivwerk/'
([regex]::Matches($script, '& scp')).Count | Should Be 1
$script | Should Not Match '& rsync'
}
It 'repairs read and traversal permissions with a separate SSH invocation' {
$script = Get-Content -LiteralPath $deployScriptPath -Raw
([regex]::Matches($script, '& ssh')).Count | Should Be 1
$script | Should Match 'chmod -R a\+rX /home/boogie/html/perspektivwerk'
}
It 'prints the complete static-page target directory' {
$script = Get-Content -LiteralPath $deployScriptPath -Raw
$script | Should Match 'Zielverzeichnisse auf dem Server'
$script | Should Match 'boogie:/home/boogie/html/perspektivwerk/'
}
}