blob: 5a9543c5d5ec0b965450e18d2ee14d1ffb70f18b [file] [log] [blame]
#***************************************************************
# Licensed to the Apache Software Foundation (ASF) under one *
# or more contributor license agreements. See the NOTICE file *
# distributed with this work for additional information *
# regarding copyright ownership. The ASF licenses this file *
# to you under the Apache License, Version 2.0 (the *
# "License"); you may not use this file except in compliance *
# with the License. You may obtain a copy of the License at *
# *
# http://www.apache.org/licenses/LICENSE-2.0 *
# *
# Unless required by applicable law or agreed to in writing, *
# software distributed under the License is distributed on an *
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
# KIND, either express or implied. See the License for the *
# specific language governing permissions and limitations *
# under the License. *
# **************************************************************/
Feature: Mailbox deletion and shared mailbox
As a James user I don't want user to delete the mailbox I share to them
Background:
Given a domain named "domain.tld"
And a user "alice@domain.tld"
And a user "bob@domain.tld"
And "alice@domain.tld" has a mailbox "shared"
And "alice@domain.tld" shares her mailbox "shared" with "bob@domain.tld" with "aeilrwt" rights
Scenario: A sharee should receive a not destroyed response when trying to destroy a shared mailbox
Given "bob@domain.tld" deletes the mailbox "shared" owned by "alice@domain.tld"
Then mailbox "shared" owned by "alice@domain.tld" is not destroyed
Scenario: A sharee should not be able to delete a shared mailbox
Given "bob@domain.tld" deletes the mailbox "shared" owned by "alice@domain.tld"
When "alice@domain.tld" lists mailboxes
Then the mailboxes should contain "shared" in "Personal" namespace