adds error for list name exists
This commit is contained in:
parent
584fc21d36
commit
e3925732a7
@ -131,6 +131,8 @@ var (
|
||||
ErrResourceLocked = clues.New("resource has been locked and must be unlocked by an administrator")
|
||||
|
||||
ErrTokenExpired = clues.New("jwt token expired")
|
||||
|
||||
ErrNameAlreadyExistsConflict = clues.New("Name already exists")
|
||||
)
|
||||
|
||||
func IsErrApplicationThrottled(err error) bool {
|
||||
|
||||
@ -758,6 +758,7 @@ func (suite *ListsAPIIntgSuite) TestLists_PostList() {
|
||||
|
||||
_, err = acl.PostList(ctx, siteID, listName, oldListByteArray, fault.New(true))
|
||||
require.Error(t, err)
|
||||
assert.Equal(t, graph.ErrNameAlreadyExistsConflict, err)
|
||||
|
||||
newListItems := newList.GetItems()
|
||||
require.Less(t, 0, len(newListItems))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user