Skip to content

Commit

Permalink
remove unnecessary test (#14952)
Browse files Browse the repository at this point in the history
  • Loading branch information
yocalebo authored Nov 14, 2024
1 parent 720b403 commit 830037f
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions tests/api2/test_legacy_websocket.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import logging

import pytest

from truenas_api_client import Client

from middlewared.test.integration.assets.api_key import api_key
from middlewared.test.integration.assets.cloud_sync import credential
from middlewared.test.integration.utils import call, mock, password, websocket_url

logger = logging.getLogger(__name__)
from middlewared.test.integration.utils import password, websocket_url


@pytest.fixture(scope="module")
Expand All @@ -34,10 +29,3 @@ def test_adapts_cloud_credentials(c):
}) as cred:
result = c.call("cloudsync.credentials.get_instance", cred["id"])
assert result["provider"] == "FTP"


def test_does_not_perform_output_validation_for_full_admin(c):
with api_key():
key = call("api_key.query")[0]
with mock("api_key.item_extend", return_value={**key, "invalid_field": 1}):
c.call("api_key.get_instance", key["id"])

0 comments on commit 830037f

Please sign in to comment.