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

Cypress: Add Volume cases #331

Merged
merged 10 commits into from
Nov 9, 2022
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions cypress/constants/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ export class Constants {
public password = Cypress.env("password");
public setupUrl = '/auth/setup/';
public loginUrl = '/auth/login/';
public dashboardUrl = '/c/local/harvester/harvesterhci.io.dashboard';
public settingsUrl = '/c/local/harvester/harvesterhci.io.setting';
public uiSourceUrl = '/c/local/harvester/harvesterhci.io.setting/ui-source?mode=edit';
public hostsPage = '/c/local/harvester/harvesterhci.io.host';
public supportPage = '/c/local/harvester/support';
public vmPage = '/c/local/harvester/kubevirt.io.virtualmachine';
public settingBaseUrl = '/c/local/harvester/harvesterhci.io.setting';
public volumePage = '/c/local/harvester/harvesterhci.io.volume';
public imagePage = '/c/local/harvester/harvesterhci.io.virtualmachineimage';
public dashboardUrl = '/harvester/c/local/harvesterhci.io.dashboard';
DaiYuzeng marked this conversation as resolved.
Show resolved Hide resolved
public settingsUrl = '/harvester/c/local/harvesterhci.io.setting';
DaiYuzeng marked this conversation as resolved.
Show resolved Hide resolved
public uiSourceUrl = '/harvester/c/local/harvesterhci.io.setting/ui-source?mode=edit';
DaiYuzeng marked this conversation as resolved.
Show resolved Hide resolved
public hostsPage = '/harvester/c/local/harvesterhci.io.host';
public supportPage = '/harvester/c/local/support';
public vmPage = '/harvester/c/local/kubevirt.io.virtualmachine';
public settingBaseUrl = '/harvester/c/local/harvesterhci.io.setting';
public volumePage = '/harvester/c/local/harvesterhci.io.volume';
public imagePage = '/harvester/c/local/harvesterhci.io.virtualmachineimage';
}
1 change: 1 addition & 0 deletions cypress/constants/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ export const HCI = {
};

export const NETWORK_ATTACHMENT = 'k8s.cni.cncf.io.networkattachmentdefinition';
export const PVC = 'persistentvolumeclaim';
3 changes: 2 additions & 1 deletion cypress/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ export default defineConfig({
fixturesFolder: './fixtures',
viewportWidth: 1920,
viewportHeight: 1080,
numTestsKeptInMemory: 0,
numTestsKeptInMemory: 1,
defaultCommandTimeout: 60000,
requestTimeout: 30000,
responseTimeout: 30000,
chromeWebSecurity: false,
env: {
NODE_ENV: 'production',
username: 'admin',
Expand Down
9 changes: 6 additions & 3 deletions cypress/cypress.env.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@
}
]
},
"image":
{
"largeImage": {
DaiYuzeng marked this conversation as resolved.
Show resolved Hide resolved
"name": "openSUSE-Leap-15.3-3-DVD-x86_64-Build38.1-Media.iso",
"url": "https://download.opensuse.org/distribution/leap/15.3/iso/openSUSE-Leap-15.3-3-DVD-x86_64-Build38.1-Media.iso"
"url": "https://mirrors.bfsu.edu.cn/opensuse/distribution/leap/15.3/iso/openSUSE-Leap-15.3-3-DVD-x86_64-Build38.1-Media.iso"
},
"image": {
"name": "cirros-0.5.2-aarch64-disk.img",
"url": "https://github.com/cirros-dev/cirros/releases/download/0.5.2/cirros-0.5.2-aarch64-disk.img"
}
}
Loading