docs(V5.4): 固化MySQL双环境配置基线
This commit is contained in:
@@ -3,7 +3,7 @@ $ErrorActionPreference = "Stop"
|
||||
$readmePath = "README.md"
|
||||
$configPath = "docs/configuration.md"
|
||||
$baselinePath = "docs/current-baseline.md"
|
||||
$expectedSpec = "V5.3.md"
|
||||
$expectedSpec = "V5.4.md"
|
||||
$expectedOrigin = "ssh://git@git.txyundm.cn:2222/panda/qipai.git"
|
||||
|
||||
foreach ($path in @($readmePath, $configPath, $baselinePath, $expectedSpec)) {
|
||||
@@ -28,7 +28,7 @@ $nextEngineeringLabel = [regex]::Unescape("\u4e0b\u4e00\u5de5\u7a0b\u76ee\u6807"
|
||||
$pendingWord = [regex]::Unescape("\u5f85")
|
||||
|
||||
$requiredSharedValues = @(
|
||||
"V5.3.md",
|
||||
"V5.4.md",
|
||||
"D:\qipai",
|
||||
"/mnt/d/qipai",
|
||||
$expectedOrigin,
|
||||
@@ -48,11 +48,11 @@ foreach ($value in $requiredSharedValues) {
|
||||
throw "README missing required value: $value"
|
||||
}
|
||||
if (-not $spec.Contains($value)) {
|
||||
throw "V5.3 missing required value: $value"
|
||||
throw "V5.4 missing required value: $value"
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($value in @("V5.3.md", $expectedOrigin, "admin123", "101.42.38.246:1883")) {
|
||||
foreach ($value in @("V5.4.md", $expectedOrigin, "admin123", "root123", "101.42.38.246:1883")) {
|
||||
if (-not $config.Contains($value)) {
|
||||
throw "configuration.md missing required value: $value"
|
||||
}
|
||||
@@ -98,4 +98,4 @@ if ($baseline -notmatch '(?m)^>\s*next_engineering_target:\s*\S') {
|
||||
throw "current-baseline.md must record next_engineering_target"
|
||||
}
|
||||
|
||||
Write-Host "PASS: README, V5.3 and configuration index are consistent."
|
||||
Write-Host "PASS: README, V5.4 and configuration index are consistent."
|
||||
|
||||
Reference in New Issue
Block a user