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: minikube cluster e2e tests #355

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

amisskii
Copy link
Contributor

issue: #298

@amisskii amisskii requested review from benoitf and a team as code owners January 13, 2025 11:41
@amisskii amisskii requested review from cdrage, feloy and odockal and removed request for a team January 13, 2025 11:41
@amisskii amisskii linked an issue Jan 13, 2025 that may be closed by this pull request
@amisskii amisskii marked this pull request as draft January 13, 2025 12:59
@amisskii amisskii marked this pull request as ready for review January 16, 2025 11:43
@amisskii amisskii force-pushed the minikube-cluster-e2e-test branch 3 times, most recently from 5756668 to 5806a5a Compare January 16, 2025 14:52
if (containerRuntime) {
await playExpect(this.driverCombobox).toBeVisible();
const providerTypeOptions = await this.driverCombobox.locator('option').allInnerTexts();
if (providerTypeOptions.includes(containerRuntime)) {
Copy link

Choose a reason for hiding this comment

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

Same as above.

test('Uninstall Minikube extension', async ({ navigationBar }) => {
await navigationBar.openExtensions();
await playExpect(extensionsPage.header).toBeVisible();
const minikubeExtension = await extensionsPage.getInstalledExtension(EXTENSION_NAME, EXTENSION_LABEL);
await minikubeExtension.removeExtension();
});
});

async function createMinikubeCluster(page: Page, clusterName: string = 'minikube', usedefaultOptions: boolean = true, timeout: number = 300_000, { driver, containerRuntime, baseImage, mountDefinition }: MinikubeClusterOptions = {}): Promise<void> {
Copy link

Choose a reason for hiding this comment

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

maybe extract it into some local util file?

@odockal
Copy link

odockal commented Jan 17, 2025

@amisskii But otherwise it looks good, tests are even passing on gha runners.

@amisskii amisskii force-pushed the minikube-cluster-e2e-test branch 5 times, most recently from 19a56bf to 94c7ddd Compare January 20, 2025 16:29
Copy link
Contributor

@benoitf benoitf left a comment

Choose a reason for hiding this comment

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

issue: several files are missing the EOF/newline

Signed-off-by: Anton Misskii <[email protected]>
@amisskii amisskii force-pushed the minikube-cluster-e2e-test branch from c433a53 to 041f2f7 Compare January 23, 2025 16:22
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.

Create a minikube cluster e2e test
3 participants