Skip to content

Conversation

@volodymyrZotov
Copy link
Contributor

This PR improves the e2e tests workflow for Connect chart:

  • Includes separate tests case to test Operator authenticated with Connect and with Service Account
  • Adds additional tests case to check custom env vars feature (as an example how it can extended with more test cases)
  • Adds ability to run e2e tests locally
  • Introduces PR template similar to Kubernetes Operator and Injector
  • Updates github workflow to use Make command to install required tools and run tests

Copy link
Member

@edif2008 edif2008 left a comment

Choose a reason for hiding this comment

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

Functional review: ❓

Code review: ✅

Things look really nice. I like how we've extracted the testing so that we can also run it locally.

Other notes

If i accidentally provide wrong configuration details (e.g. wrong Connect token), I needed to clean the setup before running it again. Might be useful to document this.

Comment on lines +58 to +62
@if [ -z "$(OP_SECRET_VALUE)" ]; then \
echo "$(RED)Error: OP_SECRET_VALUE environment variable is required$(NC)"; \
echo "$(YELLOW)Set OP_SECRET_VALUE to the expected secret value for testing$(NC)"; \
exit 1; \
fi
Copy link
Member

Choose a reason for hiding this comment

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

[nit]

This can be extracted into a target that's not exposed. You can pass variable name, expected string name (e.g. "item ID") and the variable you want to verify to it.

Comment on lines +19 to +24
# Colors for output
RED := \033[0;31m
GREEN := \033[0;32m
YELLOW := \033[0;33m
BLUE := \033[0;34m
NC := \033[0m # No Color
Copy link
Member

Choose a reason for hiding this comment

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

[maybe non-blocking]
What if the terminal doesn't support colors? 🤔

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