Skip to content
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

Merged
merged 2 commits into from
Aug 22, 2024
Merged

Conversation

helayoty
Copy link
Collaborator

@helayoty helayoty commented Aug 21, 2024

Reason for Change:

  • Add Karpenter e2e tests
  • Add support for Azure Karpenter in the e2e workflow.
  • Organize e2e code base

Requirements

  • added unit tests and e2e tests (if applicable).

Issue Fixed:

Notes for Reviewers:

Copy link

codecov bot commented Aug 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.19%. Comparing base (3db011e) to head (d30b48c).
Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

@@ -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
Copy link
Collaborator

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

@@ -612,7 +573,12 @@ var _ = Describe("Workspace Preset", func() {
defer cleanupResources(workspaceObj)
time.Sleep(30 * time.Second)

validateMachineCreation(workspaceObj, numOfNode)
if nodeProvisionerName == "azkarpenter" {
Copy link
Collaborator

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>
@helayoty helayoty merged commit 6b4b86d into main Aug 22, 2024
4 of 7 checks passed
@helayoty helayoty deleted the helayoty/karpenter-e2e branch August 22, 2024 17:48
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