Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion tests/tests/test_autogenerate_delta.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ def do_test_update_with_autogenerated_delta(
"Thud branch and older from Yocto does not have R/O rootfs support"
)

# Configure delta auto-generation
# Configure delta auto-generation.
# White-box FIXTURE, not an assertion: deployments exposes tenant
# delta configuration only on its internal API (no public
# equivalent exists). The behavior this test asserts is the
# device-side delta download/apply below; per the test taxonomy
# internal calls are acceptable as setup only.
dc = ApiClient(
deployments.URL_INTERNAL,
host=get_container_manager().get_ip_of_service("mender-deployments")[0]
Expand Down
209 changes: 0 additions & 209 deletions tests/tests/test_os_ent_migration.py

This file was deleted.

11 changes: 6 additions & 5 deletions tests/tests/test_preauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,12 @@ class TestPreauth(TestPreauthBase):
def test_ok_preauth_and_bootstrap(self, standard_setup_one_docker_client):
self.do_test_ok_preauth_and_bootstrap(standard_setup_one_docker_client)

def test_ok_preauth_and_remove(self, standard_setup_one_docker_client):
self.do_test_ok_preauth_and_remove()

def test_fail_preauth_existing(self, standard_setup_one_docker_client):
self.do_test_fail_preauth_existing()
# test_ok_preauth_and_remove and test_fail_preauth_existing were
# removed: they assert pure device-auth API behavior with no real
# device involved, now owned by mender-server's integration:ng
# suite (TestPreauthFailDuplicate, TestAuthsetMgmtDeleteStatus).
# The enterprise variants below remain until equivalent
# enterprise-mode backend coverage exists.


class TestPreauthEnterprise(TestPreauthBase):
Expand Down
5 changes: 5 additions & 0 deletions testutils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ def create_user(
return User(uid, name, pwd)


# NOTE(test taxonomy): create_org drives tenantadm's internal API by
# container IP. There is no public org-creation API without the signup
# flow (recaptcha/stripe), so this remains an accepted white-box
# FIXTURE for enterprise setups; tests must not treat org creation
# itself as the behavior under test.
def create_org(
name: str,
username: str,
Expand Down