svc_tests package¶
Submodules¶
svc_tests.test_warp_svc_install module¶
- class svc_tests.test_warp_svc_install.TestClientInstallation¶
Bases:
object- test_client_installation_internet_access(warp: WarpActions)¶
Test that a system maintains internet connectivity as the client is installed, registered, and connected.
- Steps:
Confirm internet connectivity
Install the client
Confirm internet connectivity
Register the client
Connect the client
Confirm internet connectivity
- class svc_tests.test_warp_svc_install.TestMSIParameters¶
Bases:
object- pytestmark = [Mark(name='platform', args=(), kwargs={'platform': 'windows', 'codename': None, 'version': None, 'reason': None}), Mark(name='warp_zero_trust', args=(), kwargs={'organization': None, 'dynamic': False, 'enroll': 'token'}), Mark(name='warp_uninstalled', args=(), kwargs={}), Mark(name='parametrize', args=('kwargs', [ParameterSet(values=({},), marks=(), id=''), ParameterSet(values=({'support_url': 'support.fake', 'onboarding': False, 'switch_locked': True, 'service_mode': 'warp'},), marks=(), id='params')]), kwargs={})]¶
- test_install_email_setup(warp: WarpActions, kwargs)¶
Test installing WARP to setup for email enrollment
- test_install_mdm_auth(warp: WarpActions, kwargs)¶
Test installing WARP with AUTH_CLIENT_SECRET and AUTH_CLIENT_ID set
- static verify_mdm_config(warp: WarpActions, install_params: WarpParams)¶
Verify that given arguments were set properly by installer and propagated to the MDM file
- Parameters:
warp (fixture.warp) – WARP fixture
install_params (WarpParams) – WarpParams arguments to verify
svc_tests.test_warp_svc_restart module¶
- class svc_tests.test_warp_svc_restart.TestClientRestart¶
Bases:
objectSuite of tests to verify the client can be restarted and maintain connectivity
- test_client_restart_while_disconnected(warp: WarpActions, registration_type)¶
Test that the client service can be restarted when in a disconnected state. Then reconnect successfully.
Test Steps: 1. Connect WARP client and verify connection is established 2. Disconnect the WARP client 3. Verify client is disconnected 4. Restart the WARP client service while disconnected 5. Connect the WARP client again 6. Verify connection is re-established successfully
Parameters: - registration_type: “consumer” or “enterprise” (with AutoWARP organization)
Expected Result: - WARP client service should restart successfully even when disconnected - Client should be able to reconnect after service restart - No connection state corruption should occur
- test_client_service_restart(warp: WarpActions, registration_type, restart_count)¶
Test that the client is able to be restarted from a connected and running state. Expect that it will recover.
Test Steps: 1. Connect WARP client and verify connection is established 2. Perform service restart N times (where N = restart_count parameter)
Stop the WARP client service
Start the WARP client service
Wait for service to be running
Verify WARP connection is still working after all restarts
Parameters: - registration_type: “consumer” or “enterprise” (with AutoWARP organization) - restart_count: Number of restart cycles to perform (1, 5, or 10)
Expected Result: - WARP client should maintain connectivity after multiple service restarts - Connection should be automatically re-established after each restart
svc_tests.test_warp_svc_upgrade module¶
- class svc_tests.test_warp_svc_upgrade.TestWarpClientUpgrade¶
Bases:
objectTests for WARP client upgrade scenarios.
- test_consumer_upgrade_from_releases(warp: WarpActions, release_track: str)¶
Test consumer registration upgrade from release track versions.
- Steps:
For each version in the release track older than version under test: - Install version, register consumer, upgrade, verify registration
Collect all failures and raise ExceptionGroup at end
- test_consumer_upgrade_from_static_version(warp: WarpActions, initial_version: str)¶
Test consumer registration upgrade from static versions.
- Steps:
Install given version of WARP client
Register with consumer WARP
Upgrade to version under test
Verify registration persists
- test_identity_upgrade_from_releases(warp: WarpActions, release_track: str)¶
Test identity registration upgrade from release track versions.
- Steps:
For each version in the release track older than version under test: - Install version, register via identity, upgrade, verify registration
Collect all failures and raise ExceptionGroup at end
- test_identity_upgrade_from_static_version(warp: WarpActions, initial_version: str)¶
Test identity registration upgrade from static versions.
- Steps:
Install given version of WARP client
Register via identity (email)
Upgrade to version under test
Verify Zero Trust registration and connection persist
- test_mdm_upgrade_from_releases(warp: WarpActions, release_track: str)¶
Test MDM registration upgrade from release track versions.
- Steps:
For each version in the release track older than version under test: - Install version, register via MDM, upgrade, verify registration
Collect all failures and raise ExceptionGroup at end
- test_mdm_upgrade_from_static_version(warp: WarpActions, initial_version: str)¶
Test MDM registration upgrade from static versions.
- Steps:
Install given version of WARP client
Deploy MDM config and register via service token
Upgrade to version under test
Verify Zero Trust registration and connection persist