-
Notifications
You must be signed in to change notification settings - Fork 935
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There was a test failure when I last pushed #14207 (https://github.com/canonical/lxd/actions/runs/11183415209/job/31092412149#step:12:64275) that led to me noticing a few things we could do better in this test: 1. When asserting that a truststore entry is added, we should grep for exactly what we expect (e.g. more than just the common name). 2. When asserting that a truststore entry has not been added, we shouldn't grep for anything (nothing to grep for, also what if a truststore entry is added with a name we don't expect). We should check that the number of entries is what is expected. 3. When in the subshell, we always should be talking to the LXD running in `LXD5_DIR`. The setting of `LXD_DIR="${LXD5_DIR}"` preceding a command was missed in some cases, meaning that we were checking the output of the wrong LXD. To fix these, `LXD5_DIR` is exported as `LXD_DIR` in the subshell.
- Loading branch information
Showing
1 changed file
with
33 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters