mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +01:00
Improve TestUpgradeDescription.
This commit is contained in:
parent
abb90ce3b9
commit
4ad7c2f303
1 changed files with 18 additions and 2 deletions
|
@ -96,6 +96,22 @@ func TestUpgradeDescription(t *testing.T) {
|
||||||
t.Errorf("%v not equal: %v != %v", k, v1, v2)
|
t.Errorf("%v not equal: %v != %v", k, v1, v2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(d1.FallbackUsers) != len(d2.FallbackUsers) {
|
||||||
|
t.Errorf("length not equal: %v != %v",
|
||||||
|
len(d1.FallbackUsers), len(d2.FallbackUsers))
|
||||||
|
}
|
||||||
|
|
||||||
|
for k, v1 := range d1.FallbackUsers {
|
||||||
|
v2 := d2.FallbackUsers[k]
|
||||||
|
if !reflect.DeepEqual(v1.Password, v2.Password) ||
|
||||||
|
!permissionsEqual(
|
||||||
|
v1.Permissions.Permissions(&d1),
|
||||||
|
v2.Permissions.Permissions(&d2),
|
||||||
|
) {
|
||||||
|
t.Errorf("%v not equal: %v != %v", k, v1, v2)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestNonWritableGroups(t *testing.T) {
|
func TestNonWritableGroups(t *testing.T) {
|
||||||
|
|
Loading…
Reference in a new issue