Commit Graph
4 Commits
Author SHA1 Message Date
rosstimothy fc72fdcdc2 Update tests to inject modules instead of relying on modulestest.SetTestModules (#65976)
This is a pass on replacing modulestest.SetTestModules with supplying modules
where already possible. Some additional uses of modules.GetModules were also
replaced with localized modules injection to permit the removal of
modulestest.SetTestModules in tests. Most of the changes here are mechanical,
the one notable change is in TestSSHCommands. The test was not passing locally
because the shell (fish) builtin echo behaves differently. The easiest way
to produce expected output was to change the command invocation to use
/bin/echo to bypass any shell builtins for consistent behavior.

Inject modules into tool tests

Inject modules into integration tests

Inject modules into join server

Remove superflous enterprise modules in TestAuthenticationConfig_Parse_deviceTrustPB

Inject modules into signature algorithm config tests

Inject modules into TestGithubConnectorCRUDEventsEmitted

Inject modules into TestGetHierarchyForUser

Inject modules into kube proxy tests

Inject modules into controller tests

make fix-imports

add integration/app/fixture as test package
2026-04-22 17:38:51 +00:00
Noah Stride 591bfc8e2f Support enterprise/enterprise_id in github join method (#65655)
* Support enterprise_id/enterprise in gha

* Update various IaC

* Update reference

* Add explicit warning to docs and update reflect_legacy_test
2026-04-13 12:10:42 +00:00
Hugo Shaka c62aaef9e6 Add glob-style support to GHA joining (#65525) 2026-04-08 15:21:48 +00:00
Tim Buckley a03b77c27d Port github join method to new join service (#60898)
* Port `github` join method to new join service

This ports the `github` join method to the new join service, used to
join from GHA workflows.

* Add github to joinclient whitelist

* Test new joinclient

* Fix failing tests

- Resolves some TODOs
- Replaces `require.ErrorIs()` with `require.ErrorContains()` for
  compatibility with networked error responses which don't preserve
  the exact error chain.
- Adds missing bail on error for joinclient cases

* Fix lints and run checkAndSetDefaults()

* Fix batch of code review suggestions

* Fix additional review comments
2025-11-06 05:08:34 +00:00