14 lines
396 B
Go
14 lines
396 B
Go
package domain_test
|
|
|
|
import (
|
|
"git.cin.su/m/Assistant/modules/work/domain"
|
|
"testing"
|
|
)
|
|
|
|
func TestConsequenceAdvisesMitigationWithoutCapabilityBlacklist(t *testing.T) {
|
|
a := domain.AssessConsequences("a", "database:a", 800, 800, 900, 300, 900, 1)
|
|
if !a.Valid() || !a.RequiresDryRun || !a.RequiresBackup || a.RecommendedConfirmation != "EXPLICIT_OWNER_CONFIRMATION" {
|
|
t.Fatalf("%#v", a)
|
|
}
|
|
}
|