test: учитывать текущие UTM defaults владельца в stage CI #347
deploy-preland / deploy zoomstage.online (push) Successful in 1m0s
deploy-preland / deploy zoomstage.online (push) Successful in 1m0s
This commit is contained in:
1 parent
2970f990e0
commit
4a6683f335
2 files changed
+23
-4
No files matched your search
@@ -45,7 +45,10 @@ if ($params !== $expected) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if ($redirect_digits !== ['indpic'=>'1','theme'=>'1','degr'=>'1','reg'=>'2','banch'=>'2','tp'=>'2','cons'=>'2','focus'=>'1','part'=>'1']) {
|
||||
// Type-in следует текущим default владельца; фиксируем полный состав, не исторический набор значений.
|
||||
$expectedDigits=['indpic'=>'1','theme'=>'2','degr'=>'1','reg'=>'2','banch'=>'2','tp'=>'1','cons'=>'2','focus'=>'1','part'=>'1'];
|
||||
foreach ($expectedDigits as $key=>$fallback) $expectedDigits[$key]=(string)($config['utm'][$key]['default']??$fallback);
|
||||
if ($redirect_digits !== $expectedDigits) {
|
||||
throw new RuntimeException('Type-in обязан сохранить полный resolved numeric snapshot для handoff/recovery.');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user