-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: Add e2e tests for azure karpenter #573
Conversation
430e104
to
96c9f69
Compare
96c9f69
to
d30b48c
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #573 +/- ##
==========================================
+ Coverage 56.54% 58.19% +1.65%
==========================================
Files 30 30
Lines 2966 2978 +12
==========================================
+ Hits 1677 1733 +56
+ Misses 1191 1144 -47
- Partials 98 101 +3 ☔ View full report in Codecov by Sentry. |
@@ -53,13 +53,10 @@ az identity federated-credential create --name "${FED_NAME}" \ | |||
|
|||
if [[ "${COMPONENT_NAME}" == "azkarpenter" ]]; then | |||
echo "Creating role assignments for $COMPONENT_NAME ..." | |||
for role in "Virtual Machine Contributor" "Network Contributor" "Managed Identity Operator" "Contributor"; do | |||
for role in "Virtual Machine Contributor" "Network Contributor" "Managed Identity Operator"; do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! you were able to remove contributor acces
test/e2e/preset_test.go
Outdated
@@ -612,7 +573,12 @@ var _ = Describe("Workspace Preset", func() { | |||
defer cleanupResources(workspaceObj) | |||
time.Sleep(30 * time.Second) | |||
|
|||
validateMachineCreation(workspaceObj, numOfNode) | |||
if nodeProvisionerName == "azkarpenter" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make a common function for this to avoid code duplication in this file?
Signed-off-by: Heba Elayoty <hebaelayoty@gmail.com>
Signed-off-by: Heba Elayoty <hebaelayoty@gmail.com>
ba7220b
to
dffde52
Compare
Reason for Change:
Requirements
Issue Fixed:
Notes for Reviewers: