Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.
Open
Changes from all 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
133 changes: 107 additions & 26 deletions cfme/tests/migration_analytics/test_migration_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
"""
Expand Down Expand Up @@ -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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

testSteps?

"""
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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thoughts on parametrizing these attributes?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The 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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

testSteps?

"""
pass