Skip to content

Commit

Permalink
Merge pull request #7838 from omril-redhat/verify-default-OS-template
Browse files Browse the repository at this point in the history
verify os template test
  • Loading branch information
openshift-merge-robot committed Jan 17, 2021
2 parents 13a53ac + 6c7f151 commit bd1811e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/* eslint-disable max-nested-callbacks */
import { isEqual } from 'lodash';
import { testName } from '@console/internal-integration-tests/protractor.conf';
import { resourceTitle } from '@console/internal-integration-tests/views/crud.view';
import { browser } from 'protractor';
import { appHost, testName } from '@console/internal-integration-tests/protractor.conf';
import { resourceTitle, isLoaded } from '@console/internal-integration-tests/views/crud.view';
import * as detailView from '../views/virtualMachine.view';

import {
removeLeakedResources,
withResource,
Expand Down Expand Up @@ -67,6 +69,12 @@ describe('Create VM from Template using wizard', () => {
);
}

it('ID(CNV=5655) [ui] verify os has default template with workload/flavor pre-define', async () => {
await browser.get(`${appHost}/k8s/ns/openshift/vmtemplates/rhel6-server-small`);
await isLoaded();
expect(detailView.defaultOS.getText()).toBe('template.kubevirt.io/default-os-variant');
});

it('ID(CNV-1847) Displays correct data on VM Template Details page', async () => {
const vmt = new VMTemplateBuilder(getBasicVMTBuilder())
.setProvisionSource(ProvisionSource.CONTAINER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ export const consoleNetworkInterfaceDropdownId = '#nic-dropdown';
const manualConnectionValues = $$('.manual-connection-pf-value');
export const rdpIpAddress = manualConnectionValues.first();
export const rdpPort = manualConnectionValues.last();
// Templates view
export const defaultOS = element(
by.xpath('//*[contains(text(),"template.kubevirt.io/default-os-variant")]'),
);

// VM detail view
export const vmDetailItemId = (namespace, vmName, itemName) =>
Expand Down

0 comments on commit bd1811e

Please sign in to comment.