Skip to content

Commit 5bcb2b3

Browse files
committed
chore(test): remove obsolete Mender v1.7.0 migration tests
Remove test_db_migration.py and its v1 legacy client fixtures from common_setup.py. These tests verified upgrading from Mender v1.7.0 (released 2017) to the current version. This migration path that is no longer supported. The fixtures were only used by this test file. Signed-off-by: Maciej Pasinski <maciej.pasinski@northern.tech> Signed-off-by: pasinskim <marcin.pasinski@northern.tech>
1 parent 6754923 commit 5bcb2b3

2 files changed

Lines changed: 0 additions & 316 deletions

File tree

tests/common_setup.py

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -169,30 +169,6 @@ def standard_setup_without_client(request):
169169
return env
170170

171171

172-
@pytest.fixture(scope="function")
173-
def setup_with_legacy_v1_client(request):
174-
# The legacy 1.7.0 client was only built for qemux86-64, so skip tests using
175-
# it when running other platforms.
176-
if conftest.machine_name != "qemux86-64":
177-
pytest.skip(
178-
"Test only works with qemux86-64, and this is %s" % conftest.machine_name
179-
)
180-
181-
env = container_factory.get_legacy_v1_client_setup()
182-
request.addfinalizer(env.teardown)
183-
184-
env.setup()
185-
186-
env.device = MenderDevice(env.get_mender_clients()[0])
187-
env.device.ssh_is_opened()
188-
189-
reset_mender_api(env)
190-
devauth.accept_devices(1)
191-
192-
env.auth = auth
193-
return env
194-
195-
196172
@pytest.fixture(scope="function")
197173
def setup_with_legacy_v3_client(request):
198174
env = container_factory.get_legacy_v3_client_setup()
@@ -496,26 +472,6 @@ def enterprise_with_short_lived_token(request):
496472
return env
497473

498474

499-
@pytest.fixture(scope="function")
500-
def enterprise_with_legacy_v1_client(request):
501-
env = container_factory.get_enterprise_legacy_v1_client_setup(num_clients=0)
502-
request.addfinalizer(env.teardown)
503-
504-
env.setup()
505-
reset_mender_api(env)
506-
507-
tenant = create_tenant(env)
508-
new_tenant_client(env, "mender-client", tenant["tenant_token"])
509-
env.device_group.ssh_is_opened()
510-
511-
devauth_tenant = DeviceAuthV2(env.auth)
512-
devauth_tenant.accept_devices(1)
513-
devices = devauth_tenant.get_devices_status("accepted")
514-
assert 1 == len(devices)
515-
516-
return env
517-
518-
519475
@pytest.fixture(scope="function")
520476
def enterprise_with_legacy_v3_client(request):
521477
env = container_factory.get_enterprise_legacy_v3_client_setup(num_clients=0)

tests/tests/test_db_migration.py

Lines changed: 0 additions & 272 deletions
This file was deleted.

0 commit comments

Comments
 (0)