Skip to content

Commit 84d7308

Browse files
committed
test(tmachine): configure client during scenario install
Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent c5b52b1 commit 84d7308

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎tests/ansible/playbooks/conformance/cli.yaml‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,6 @@
5353
- conformance_archive.stat.isreg | default(false)
5454
fail_msg: OpenShell conformance test bundle did not contain tests.tar.zst
5555

56-
# The archived candidate CLI runs in a fresh guest and needs an explicit
57-
# local gateway selection for its status and sandbox lifecycle commands.
58-
- name: Register OpenShell gateway
59-
ansible.builtin.command:
60-
argv:
61-
- /usr/local/bin/openshell
62-
- gateway
63-
- add
64-
- http://127.0.0.1:17670
65-
- --local
66-
- --name
67-
- tmachine
68-
6956
- name: Run OpenShell conformance archive
7057
ansible.builtin.command:
7158
argv:

‎tests/ansible/playbooks/gateway.yaml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,16 @@
77
gather_facts: false
88
roles:
99
- openshell_gateway
10+
post_tasks:
11+
# Archive tests use the guest user's persisted CLI configuration. Register
12+
# the scenario-local gateway once after the gateway role reports ready.
13+
- name: Register OpenShell gateway for tmachine test client
14+
ansible.builtin.command:
15+
argv:
16+
- /usr/local/bin/openshell
17+
- gateway
18+
- add
19+
- http://127.0.0.1:17670
20+
- --local
21+
- --name
22+
- tmachine

0 commit comments

Comments
 (0)