-
Notifications
You must be signed in to change notification settings - Fork 41
MTV-3649 Transfer network setting test automation #2164
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
Conversation
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2164 +/- ##
===========================================
- Coverage 36.81% 14.09% -22.72%
===========================================
Files 158 1031 +873
Lines 2548 19101 +16553
Branches 599 3902 +3303
===========================================
+ Hits 938 2692 +1754
- Misses 1428 15766 +14338
- Partials 182 643 +461 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
39f61f3 to
433e5fa
Compare
433e5fa to
d01c5f6
Compare
|
/retest |
1 similar comment
|
/retest |
fd2ef68 to
d8e79d4
Compare
| nad: V1NetworkAttachmentDefinition, | ||
| namespace: string, | ||
| ): Promise<V1NetworkAttachmentDefinition | null> { | ||
| return createNad(page, nad as Parameters<typeof createNad>[1], namespace); |
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.
creating a function that calls a function with the same name looks a bit redundant to me why not using the inner createNad directly
| /** | ||
| * NetworkAttachmentDefinition type for CNI network configuration | ||
| */ | ||
| export type V1NetworkAttachmentDefinition = { |
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.
I already saw this definition, why twice?
| testData: ReturnType<typeof createPlanTestData>; | ||
| }; | ||
|
|
||
| export type TestNad = V1NetworkAttachmentDefinition & { |
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't use V1NetworkAttachmentDefinition directly?
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 we can use it directly please remove this type
- 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 <pabreu@redhat.com>
Resolves: MTV-3649 Signed-off-by: Pedro Abreu <pabreu@redhat.com>
Resolves: MTV-3649 Signed-off-by: Pedro Abreu <pabreu@redhat.com>
Resolves: MTV-3649 Signed-off-by: Pedro Abreu <pabreu@redhat.com>
Resolves: MTV-3649 Signed-off-by: Pedro Abreu <pabreu@redhat.com>
Resolves: MTV-3649 Signed-off-by: Pedro Abreu <pabreu@redhat.com>
d8e79d4 to
cd560c0
Compare
Resolves: MTV-3649 Signed-off-by: Pedro Abreu <pabreu@redhat.com>
Resolves: MTV-3649 Signed-off-by: Pedro Abreu <pabreu@redhat.com>
| if (testProviderData.useVddkAioOptimization === true) { | ||
| expect(providerResource?.spec?.settings?.useVddkAioOptimization).toBe('true'); | ||
| } | ||
| if (!testProviderData.useVddkAioOptimization) { | ||
| } 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 for explicit check for boolean and can remove else:
if (testProviderData.useVddkAioOptimization) {
expect(providerResource?.spec?.settings?.useVddkAioOptimization).toBe('true');
} if (!testProviderData.useVddkAioOptimization) { ...
| testData: ReturnType<typeof createPlanTestData>; | ||
| }; | ||
|
|
||
| export type TestNad = V1NetworkAttachmentDefinition & { |
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 we can use it directly please remove this type
Resolves: None Signed-off-by: Pedro Abreu <pabreu@redhat.com>
…n in createTestNad function Resolves: None Signed-off-by: Pedro Abreu <pabreu@redhat.com>
|
|
LGTM |



📝 Links
https://issues.redhat.com/browse/MTV-3649
📝 Description
#2178 should be merged before this.
🎥 Demo
📝 CC://