Skip to content

Conversation

@Pedro-S-Abreu
Copy link
Collaborator

@Pedro-S-Abreu Pedro-S-Abreu commented Dec 19, 2025

📝 Links

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

📝 Description

  • Transfer network setting test automation

#2178 should be merged before this.

🎥 Demo

📝 CC://

@codecov-commenter
Copy link

codecov-commenter commented Dec 19, 2025

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

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 14.09%. Comparing base (13484d0) to head (989001f).
⚠️ Report is 940 commits behind head on main.

Files with missing lines Patch % Lines
...w/tabs/Settings/components/SettingsSelectInput.tsx 0.00% 4 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
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.
📢 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 changed the title [WIP] MTV-3649 Transfer network steeing test automation [WIP] MTV-3649 Transfer network setting test automation Dec 22, 2025
@Pedro-S-Abreu Pedro-S-Abreu force-pushed the transfer-network-test branch from 433e5fa to d01c5f6 Compare January 7, 2026 14:47
@Pedro-S-Abreu Pedro-S-Abreu changed the title [WIP] MTV-3649 Transfer network setting test automation MTV-3649 Transfer network setting test automation Jan 8, 2026
@Pedro-S-Abreu Pedro-S-Abreu marked this pull request as ready for review January 8, 2026 01:56
@Pedro-S-Abreu
Copy link
Collaborator Author

/retest

1 similar comment
@Pedro-S-Abreu
Copy link
Collaborator Author

/retest

@avivtur avivtur force-pushed the transfer-network-test branch from fd2ef68 to d8e79d4 Compare January 11, 2026 09:49
nad: V1NetworkAttachmentDefinition,
namespace: string,
): Promise<V1NetworkAttachmentDefinition | null> {
return createNad(page, nad as Parameters<typeof createNad>[1], namespace);
Copy link
Member

@avivtur avivtur Jan 12, 2026

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 = {
Copy link
Member

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 & {
Copy link
Member

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?

Copy link
Member

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>
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>
Comment on lines 50 to 52
if (testProviderData.useVddkAioOptimization === true) {
expect(providerResource?.spec?.settings?.useVddkAioOptimization).toBe('true');
}
if (!testProviderData.useVddkAioOptimization) {
} else if (testProviderData.useVddkAioOptimization === false) {
Copy link
Member

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 & {
Copy link
Member

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>
@Pedro-S-Abreu Pedro-S-Abreu requested a review from avivtur January 14, 2026 17:30
@sonarqubecloud
Copy link

@avivtur
Copy link
Member

avivtur commented Jan 14, 2026

LGTM

@avivtur avivtur added this pull request to the merge queue Jan 14, 2026
Merged via the queue into kubev2v:main with commit 7a873ce Jan 14, 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