Skip to content

Conversation

@Pedro-S-Abreu
Copy link
Collaborator

Resolves: MTV-3741

📝 Links

https://issues.redhat.com/browse/MTV-3741

📝 Description

  • Make test compatible with provider creation form changes
  • Parametrize provider creation tests

🎥 Demo

📝 CC://

@Pedro-S-Abreu Pedro-S-Abreu changed the title MTV-3741 part 1 - Make test compatible with provider creation form changes [WIP] MTV-3741 part 1 - Make test compatible with provider creation form changes Jan 6, 2026
@codecov-commenter
Copy link

codecov-commenter commented Jan 6, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 14.09%. Comparing base (13484d0) to head (738f627).
⚠️ Report is 939 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2178       +/-   ##
===========================================
- Coverage   36.81%   14.09%   -22.72%     
===========================================
  Files         158     1031      +873     
  Lines        2548    19098    +16550     
  Branches      599     3887     +3288     
===========================================
+ Hits          938     2692     +1754     
- Misses       1428    15763    +14335     
- Partials      182      643      +461     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Pedro-S-Abreu Pedro-S-Abreu force-pushed the test-enhance-create-provider-form-1 branch 3 times, most recently from 269743e to 7c0056a Compare January 6, 2026 20:27
@Pedro-S-Abreu Pedro-S-Abreu marked this pull request as ready for review January 6, 2026 21:18
@Pedro-S-Abreu Pedro-S-Abreu changed the title [WIP] MTV-3741 part 1 - Make test compatible with provider creation form changes MTV-3741 part 1 - Make test compatible with provider creation form changes Jan 8, 2026
@Pedro-S-Abreu
Copy link
Collaborator Author

/retest

- Update CreateProviderPage selectors for new form structure
- Add provider-specific field methods (vSphere, OVA, OVirt)
- Parametrize provider creation tests using test scenarios
- Update StorageMapStep to correctly parse source storage column
- Update test data for current environment

Resolves: MTV-3741
Signed-off-by: Pedro Abreu <[email protected]>
@Pedro-S-Abreu Pedro-S-Abreu force-pushed the test-enhance-create-provider-form-1 branch from 7c0056a to a004390 Compare January 12, 2026 13:26
expect(providerResource).not.toBeNull();
expect(providerResource?.spec?.type).toBe(providerType);

if (testProviderData.useVddkAioOptimization === true) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

if (testProviderData.useVddkAioOptimization)


if (testProviderData.useVddkAioOptimization === true) {
expect(providerResource?.spec?.settings?.useVddkAioOptimization).toBe('true');
} else if (testProviderData.useVddkAioOptimization === false) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

no need else can be if (!testProviderData.useVddkAioOptimization)

expect(providerResource?.spec?.settings?.useVddkAioOptimization).toBe('true');
},
);
const providerTestScenarios: ProviderTestScenario[] = [
Copy link
Collaborator

Choose a reason for hiding this comment

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

worth extracting to a constant to make this file a bit more clear and to easily expand more scenrios

Resolves: MTV-3741
Signed-off-by: Pedro Abreu <[email protected]>
@Pedro-S-Abreu Pedro-S-Abreu requested a review from avivtur January 12, 2026 16:44
@Pedro-S-Abreu
Copy link
Collaborator Author

/retest

Resolves: None

Signed-off-by: Pedro Abreu <[email protected]>
@sonarqubecloud
Copy link

@avivtur
Copy link
Collaborator

avivtur commented Jan 12, 2026

LGTM

@avivtur avivtur added this pull request to the merge queue Jan 12, 2026
Merged via the queue into kubev2v:main with commit 0e307f9 Jan 12, 2026
10 checks passed
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