This repository has been archived by the owner on Jan 12, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modified: pkg/qe-tests/cypress/integration/models/providerRhv.ts (#932)
modified: pkg/qe-tests/cypress/integration/models/providerVmware.ts modified: pkg/qe-tests/cypress/integration/tests/Rhv/config_separate_mapping_rhv.ts new file: pkg/qe-tests/cypress/integration/tests/Rhv/editProvider.ts modified: pkg/qe-tests/cypress/integration/tests/vmware/config_separate_mapping.ts new file: pkg/qe-tests/cypress/integration/tests/vmware/editProvider.ts modified: pkg/qe-tests/cypress/integration/types/types.ts modified: pkg/qe-tests/cypress/integration/models/providerRhv.ts modified: pkg/qe-tests/cypress/integration/models/providerVmware.ts modified: pkg/qe-tests/cypress/integration/tests/Rhv/config_separate_mapping_rhv.ts new file: pkg/qe-tests/cypress/integration/tests/Rhv/editProvider.ts modified: pkg/qe-tests/cypress/integration/tests/vmware/config_separate_mapping.ts new file: pkg/qe-tests/cypress/integration/tests/vmware/editProvider.ts modified: pkg/qe-tests/cypress/integration/types/types.ts modified: pkg/qe-tests/cypress/integration/models/providerRhv.ts modified: pkg/qe-tests/cypress/integration/models/providerVmware.ts modified: pkg/qe-tests/cypress/integration/tests/Rhv/config_separate_mapping_rhv.ts new file: pkg/qe-tests/cypress/integration/tests/Rhv/editProvider.ts modified: pkg/qe-tests/cypress/integration/tests/vmware/config_separate_mapping.ts new file: pkg/qe-tests/cypress/integration/tests/vmware/editProvider.ts modified: pkg/qe-tests/cypress/integration/types/types.ts Co-authored-by: Igor Braginsky <ibragins@redhat.com>
- Loading branch information
Showing
8 changed files
with
144 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
pkg/qe-tests/cypress/integration/tests/Rhv/editProvider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { incorrectProviderData, testData } from './config_separate_mapping_rhv'; | ||
import { login } from '../../../utils/utils'; | ||
import { providerRhv } from '../../models/providerRhv'; | ||
import { RhvProviderData } from '../../types/types'; | ||
|
||
describe('Creating CRUD operation', () => { | ||
const provider = new providerRhv(); | ||
const providerData: RhvProviderData = testData.planData.providerData; | ||
|
||
beforeEach(() => { | ||
login(testData.loginData); | ||
}); | ||
|
||
it('Create a RHV Provider and Edit existing provider', () => { | ||
provider.create(incorrectProviderData); | ||
}); | ||
|
||
it('Create a RHV Provider and Edit existing provider', () => { | ||
provider.edit(providerData); | ||
}); | ||
|
||
it('Login to MTV, find and delete provider', () => { | ||
provider.delete(providerData); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
pkg/qe-tests/cypress/integration/tests/vmware/editProvider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { incorrectProviderData, testData } from './config_separate_mapping'; | ||
import { login } from '../../../utils/utils'; | ||
import { ProviderVmware } from '../../models/providerVmware'; | ||
import { VmwareProviderData } from '../../types/types'; | ||
|
||
describe('Creating CRUD operation', () => { | ||
const provider = new ProviderVmware(); | ||
const providerData: VmwareProviderData = testData.planData.providerData; | ||
|
||
beforeEach(() => { | ||
login(testData.loginData); | ||
}); | ||
it('Create a vmware provider with incorrect credentials', () => { | ||
provider.create(incorrectProviderData); | ||
}); | ||
|
||
it('Edit the existing provider and validate', () => { | ||
provider.edit(providerData); | ||
}); | ||
|
||
it('Login to MTV, find and delete provider', () => { | ||
provider.delete(providerData); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters