mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-13 00:34:43 +00:00
Prepare v6.0.0 release candidate
Tighten v5-to-v6 upgrade safety, release installability, provider MSP mode handling, AI cost accounting, metrics flushing, and frontend guardrails for the v6.0.0 GA candidate.
This commit is contained in:
parent
a73a24259c
commit
bd6f77e093
119 changed files with 4753 additions and 2046 deletions
|
|
@ -68,6 +68,28 @@ func TestInstallPS1AllowsMissingTokenForOptionalAuth(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestInstallPS1AgentDownloadIsServerVersionAware(t *testing.T) {
|
||||
content, err := os.ReadFile(repoFile("scripts", "install.ps1"))
|
||||
if err != nil {
|
||||
t.Fatalf("read install.ps1: %v", err)
|
||||
}
|
||||
|
||||
script := string(content)
|
||||
required := []string{
|
||||
`Invoke-WebRequest -Uri "$Url/api/version"`,
|
||||
`$versionInfo = $versionResponse.Content | ConvertFrom-Json`,
|
||||
`$ServerVersion = [string]$versionInfo.version`,
|
||||
`$escapedServerVersion = [Uri]::EscapeDataString($ServerVersion)`,
|
||||
`$DownloadUrl = "$DownloadUrl&serverVersion=$escapedServerVersion"`,
|
||||
`downloaded agent version ($DownloadedVersion) does not match Pulse server version ($ServerVersion)`,
|
||||
}
|
||||
for _, needle := range required {
|
||||
if !strings.Contains(script, needle) {
|
||||
t.Fatalf("install.ps1 missing version-aware agent download behavior: %s", needle)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestInstallPS1AllowsOptionalAuthUninstallWithoutToken(t *testing.T) {
|
||||
content, err := os.ReadFile(repoFile("scripts", "install.ps1"))
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue