Skip to content

Commit

Permalink
remove rest, condense tests
Browse files Browse the repository at this point in the history
  • Loading branch information
creatorcary committed Sep 4, 2024
1 parent 7bbc159 commit f1bb577
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 58 deletions.
58 changes: 0 additions & 58 deletions tests/api2/test_290_mail.py

This file was deleted.

17 changes: 17 additions & 0 deletions tests/api2/test_mail.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from middlewared.test.integration.utils import call


def test_config_settings():
payload = {
"fromemail": "[email protected]",
"outgoingserver": "mail.ixsystems.com",
"pass": "changeme",
"port": 25,
"security": "PLAIN",
"smtp": True,
"user": "[email protected]"
}
call("mail.update", payload)
config = call("mail.config")
# test that payload is a subset of config
assert payload.items() <= config.items()

0 comments on commit f1bb577

Please sign in to comment.