Skip to content

Commit

Permalink
Remove --no-rollback from library tests; remove sudo usage from oauth…
Browse files Browse the repository at this point in the history
…2 bootstrap script
  • Loading branch information
jefflester committed Nov 22, 2024
1 parent 602868a commit 7a95acf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ repos:
rev: 24.10.0
hooks:
- id: black
always_run: true

- repo: local
hooks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ openssl s_client -connect oauth2-server:8100 2>/dev/null </dev/null \
> /tmp/oauth2-server.pem

echo "Adding OAuth2 server certificate to truststore..."
sudo keytool -import -noprompt -trustcacerts \
keytool -import -noprompt -trustcacerts \
-storepass changeit \
-alias oauth2-server \
-file /tmp/oauth2-server.pem \
Expand Down
6 changes: 2 additions & 4 deletions src/test/src/lib/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@ def run_tests(self, tests=[], workers=False):
"""Runs module tests."""

if not workers:
common.execute_command(
f"minitrino -v provision -m {self.module} --no-rollback"
)
common.execute_command(f"minitrino -v provision -m {self.module}")
else:
common.execute_command(
f"minitrino -v provision -m {self.module} --workers 1 --no-rollback"
f"minitrino -v provision -m {self.module} --workers 1"
)

for t in tests:
Expand Down

0 comments on commit 7a95acf

Please sign in to comment.