Merge pull request #78 from owncloud/tag-issue

[tests-only] tagged test example with the mail validation issue
This commit is contained in:
Artur Neumann
2020-08-04 15:49:05 +05:45
committed by GitHub
+3
View File
@@ -486,6 +486,8 @@ func TestUpdateAccount(t *testing.T) {
OnPremisesDistinguishedName: "54321",
UidNumber: 1000,
GidNumber: 1000,
// No email validation
// https://github.com/owncloud/ocis-accounts/issues/77
Mail: "1.2@3.c_@",
},
},
@@ -575,6 +577,7 @@ func TestUpdateNonUpdatableFieldsInAccount(t *testing.T) {
if errors.As(err, &e) {
assert.EqualValues(t, 400, e.Code)
assert.Equal(t, "Bad Request", e.Status)
errMsg := fmt.Sprintf("can not update field %s, either unknown or readonly", tt.updateMask[0])
assert.Equal(t, errMsg, e.Detail)
} else {