Fix enos bats test errors (#2468)

* test(cli): Remove skips in CI for cli tests

* fix(enos): Fix enos bats tests

The tests still sometimes suffer from timing issues,
but I was able to run a successful run (setup, run, destroy)
of the tests from my machine at least once.

There were 2 issues:

- Some tests in groups.bats were hardcoding the default user id
- The default grants for a user in a project were missing
   the permission to connect to a target. We now add this
   explicitly.

Co-authored-by: Timothy Messier <tim.messier@gmail.com>
This commit is contained in:
Johan Brandhorst-SatzkornandTimothy Messier authored and GitHub committed 2022-09-20 14:39:28 -04:00
1 parent 01206eb586
commit 5dbcda512a
6 files changed
+25 -62

No files matched your search

+1 -2
View File
@@ -12,7 +12,6 @@ export DEFAULT_HOST_CATALOG="${DEFAULT_HOST_CATALOG:-hcst_1234567890}"
export DEFAULT_HOST="${DEFAULT_HOST:-hst_1234567890}"
export DEFAULT_USER="${DEFAULT_USER:-u_1234567890}"
export DEFAULT_UNPRIVILEGED_USER="${DEFAULT_UNPRIVILEGED_USER:-u_0987654321}"
export SKIP_FAILING_TESTS_IN_CI="${SKIP_FAILING_TESTS_IN_CI:-false}"
function strip() {
echo "$1" | tr -d '"'
@@ -32,4 +31,4 @@ function has_status_code() {
diag() {
echo "$@" | sed -e 's/^/# /' >&3 ;
}
}