-
Notifications
You must be signed in to change notification settings - Fork 41
MTV-3741 part 1 - Make test compatible with provider creation form changes #2178
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
MTV-3741 part 1 - Make test compatible with provider creation form changes #2178
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
269743e to
7c0056a
Compare
|
/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]>
7c0056a to
a004390
Compare
| expect(providerResource).not.toBeNull(); | ||
| expect(providerResource?.spec?.type).toBe(providerType); | ||
|
|
||
| if (testProviderData.useVddkAioOptimization === true) { |
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.
if (testProviderData.useVddkAioOptimization)
|
|
||
| if (testProviderData.useVddkAioOptimization === true) { | ||
| expect(providerResource?.spec?.settings?.useVddkAioOptimization).toBe('true'); | ||
| } else if (testProviderData.useVddkAioOptimization === false) { |
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.
no need else can be if (!testProviderData.useVddkAioOptimization)
| expect(providerResource?.spec?.settings?.useVddkAioOptimization).toBe('true'); | ||
| }, | ||
| ); | ||
| const providerTestScenarios: ProviderTestScenario[] = [ |
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.
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]>
|
/retest |
Resolves: None Signed-off-by: Pedro Abreu <[email protected]>
|
|
LGTM |



Resolves: MTV-3741
📝 Links
https://issues.redhat.com/browse/MTV-3741
📝 Description
🎥 Demo
📝 CC://