Skip to content

Commit

Permalink
Add a test for connection XO to hosts
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Reis <[email protected]>
  • Loading branch information
benjamreis committed Jan 25, 2024
1 parent 505e3b4 commit 1b8ba95
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/misc/test_xo_connection.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import logging

# This test is meant to test an XO connection.
#
# Requirements:
# - an XCP-ng host >= 8.2 with latest updates.
# - An XOA registered through `xo-cli`

def test_xo_connection(hosts_with_xo):
for h in hosts_with_xo:
logging.debug(f"Testing connection for host: {h.hostname_or_ip}")
assert h.xo_get_server_id() is not None

0 comments on commit 1b8ba95

Please sign in to comment.