This repository was archived by the owner on Apr 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 163
[WIPTEST][NOTEST] Add MA test coverage #10262
Open
ganeshhubale
wants to merge
1
commit into
ManageIQ:master
Choose a base branch
from
ganeshhubale:new-ma-test
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -10,32 +10,6 @@ | |
| ] | ||
|
|
||
|
|
||
| @pytest.mark.manual | ||
| @pytest.mark.smoke | ||
| def test_enable_migration_analytics(): | ||
| """ | ||
| Polarion: | ||
| assignee: ghubale | ||
| initialEstimate: 1/4h | ||
| startsin: 5.11 | ||
| casecomponent: MigrationAnalytics | ||
| testSteps: | ||
| 1. Navigate to configuration > Zones > Zone: Default Zone > Server | ||
| 2. Click on Advanced tab | ||
| 3. Update script as below: | ||
| :prototype: | ||
| :migration_analytics: | ||
| :enabled: true | ||
| 4. SSH to appliance and restart evmserverd(systemctl restart evmserverd) | ||
| expectedResults: | ||
| 1. | ||
| 2. | ||
| 3. | ||
| 4. Check in UI. You will have navigation to Migration > Migration Analytics | ||
| """ | ||
| pass | ||
|
|
||
|
|
||
| @pytest.mark.manual | ||
| def test_payload_generation_for_basic_data_without_ssa(): | ||
| """ | ||
|
|
@@ -213,3 +187,110 @@ def test_confirm_environment_summary_data(): | |
| 3. Check summary data | ||
| """ | ||
| pass | ||
|
|
||
|
|
||
| @pytest.mark.manual | ||
| @pytest.mark.meta(coverage=[1811226]) | ||
| def test_4k_vms_scan_one_appliance(): | ||
| """ | ||
| Bugzilla: | ||
| 1811226 | ||
|
|
||
| Polarion: | ||
| assignee: ghubale | ||
| initialEstimate: 1/4h | ||
| startsin: 5.11 | ||
| casecomponent: MigrationAnalytics | ||
| """ | ||
| pass | ||
|
|
||
|
|
||
| @pytest.mark.manual | ||
| @pytest.mark.meta(coverage=[1810217]) | ||
| def test_payload_building_with_non_ascii_char(): | ||
| """ | ||
| Bugzilla: | ||
| 1810217 | ||
|
|
||
| Polarion: | ||
| assignee: ghubale | ||
| initialEstimate: 1/4h | ||
| startsin: 5.11 | ||
| casecomponent: MigrationAnalytics | ||
| setup: | ||
| 1. Add a file to SSA profile that includes weird characters. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you also put a few examples of weird characters? |
||
| 2. Sample file used `/usr/java/latest/COPYRIGHT` of Oracle jdk 1.8.0 | ||
| testSteps: | ||
| 1. Install Oracle JDK 1.8.0 to a VM | ||
| 2. Add `/usr/java/latest/COPYRIGHT` file (with content) to the SSA default profile | ||
| 3. Run SSA | ||
| 4. Go to Migration Analytics page and try to obtain a payload. | ||
| expectedResults: | ||
| 1. | ||
| 2. | ||
| 3. | ||
| 4. Page with download link to obtain payload file | ||
| """ | ||
| pass | ||
|
|
||
|
|
||
| @pytest.mark.manual | ||
| @pytest.mark.meta(coverage=[1798054]) | ||
| def test_manifest_attributes(): | ||
| """ | ||
| Bugzilla: | ||
| 1798054 | ||
|
|
||
| Polarion: | ||
| assignee: ghubale | ||
| initialEstimate: 1/4h | ||
| startsin: 5.11 | ||
| casecomponent: MigrationAnalytics | ||
| testSteps: | ||
| 1. Download the payload file | ||
| 2. Check if below attributes are available in the file: | ||
| "cpu_affinity": null, | ||
| "memory_hot_add_enabled": null, | ||
| "cpu_hot_add_enabled": null, | ||
| "cpu_hot_remove_enabled": null, | ||
|
Comment on lines
252
to
255
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thoughts on parametrizing these attributes?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are in payoad json file, No need to parameterize |
||
| expectedResults: | ||
| 1. File is downloaded successfully. | ||
| 2. All the attributes are available in the file. | ||
| """ | ||
| pass | ||
|
|
||
|
|
||
| @pytest.mark.manual | ||
| @pytest.mark.meta(coverage=[1788730]) | ||
| def test_payload_download_button(): | ||
| """ | ||
| Bugzilla: | ||
| 1788730 | ||
|
|
||
| Polarion: | ||
| assignee: ghubale | ||
| initialEstimate: 1/4h | ||
| startsin: 5.11 | ||
| casecomponent: MigrationAnalytics | ||
| testSteps: | ||
| 1. Go to Migration Analytics payload download page | ||
| expectedResults: | ||
| 1. Download button should available | ||
| """ | ||
| pass | ||
|
|
||
|
|
||
| @pytest.mark.manual | ||
| @pytest.mark.meta(coverage=[1788729]) | ||
| def test_manifest_import_update(): | ||
| """ | ||
| Bugzilla: | ||
| 1788729 | ||
|
|
||
| Polarion: | ||
| assignee: ghubale | ||
| initialEstimate: 1/4h | ||
| startsin: 5.11 | ||
| casecomponent: MigrationAnalytics | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. testSteps? |
||
| """ | ||
| pass | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
testSteps?