replace static status definition by const
This commit is contained in:
@@ -27,8 +27,8 @@ func TestCreatePrincipal(t *testing.T) {
|
||||
if created.Name != "alice" {
|
||||
t.Fatalf("name = %q, attendu alice", created.Name)
|
||||
}
|
||||
if created.Status != "active" {
|
||||
t.Fatalf("status = %q, attendu active", created.Status)
|
||||
if created.Status != StatusActive {
|
||||
t.Fatalf("status = %q, attendu %q", created.Status, StatusActive)
|
||||
}
|
||||
if len(created.Groups) != 0 {
|
||||
t.Fatalf("groupes = %+v, attendu aucun", created.Groups)
|
||||
|
||||
Reference in New Issue
Block a user