Skip to content

Update t client.sh - #33

Open
flichtenheld wants to merge 4 commits into
mainfrom
update-t_client.sh
Open

Update t client.sh#33
flichtenheld wants to merge 4 commits into
mainfrom
update-t_client.sh

Conversation

@flichtenheld

Copy link
Copy Markdown
Member

No description provided.

@flichtenheld
flichtenheld requested review from uddr and a lite review from Copilot August 28, 2026 15:30
* Applies the the shfmt format changes
* Applies some fixes done due to code review

This is the state of https://gerrit.openvpn.net/c/openvpn/+/1882/1

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Now that we check the actual error message I discovered
that some of the tests were failing for unrelated reasons.
And some were matching for wrong strings.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
This avoids one case where we needed to change the server.conf
file on provisioning, creating an unclean git checkout.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
That installs mbedTLS 2.28, which is not supported by
current openvpn.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates the OpenVPN “t_server / t_client” testbed harness, primarily improving client test runner behavior around expected failures and refactoring how peer-fingerprint configuration is generated/consumed.

Changes:

  • Refactors t_client.sh control flow and output handling, and introduces new failure exit codes for “expected failure did not match”.
  • Moves the tun-udp-p2mp-hash-defscript peer-fingerprint block to a generated include file (fp.conf) and wires the server config to include it.
  • Adjusts a few test expectations/configs and updates the orchestration script to treat new failure return codes as test failures.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
t_server/tofu/modules/tserver_user_data/provision/install-openvpn-build-deps-rhel-9.sh Adjusts RHEL9 build dependency installation list.
t_server/tofu/modules/tserver_user_data/provision/28-setup-test-dependencies.sh Generates peer-fingerprint config file dynamically during provisioning.
t_server/original/t_server/tun-udp-p2mp-hash-defscript/server.conf Includes generated fp.conf instead of inline empty <peer-fingerprint> block.
t_server/original/t_server/tun-udp-p2mp-hash-defscript/.gitignore Ignores the generated fp.conf.
t_server/original/run_t_clients.sh Treats additional client return codes as test failures.
t_server/original/client_vm/t_client.master/t_client.rc Updates specific test configs/expected failure strings and key/cert selection.
t_server/original/client_vm/bin/t_client.sh Refactors formatting/logic and tightens expected-failure detection behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread t_server/original/t_server/tun-udp-p2mp-hash-defscript/server.conf
Comment thread t_server/original/client_vm/t_client.master/t_client.rc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants