Add integration tests of instance creation and deletion

Bug #1414757 reported by Imran Hayder
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Won't Fix
Wishlist
Amogh

Bug Description

Currently we have integration tests for image and flavor creation/deletion.
It would be nice to follow similar suit like image creation, to create an instance from the image created from "http_image" in horizon.conf, and boot a test instance from that cirros image.
As a further extension, test the vnc console when the instance is running, vnc console status can be checked easily as its an iframe element and selenium allows driver to switch between frame elements , and get access to their elements
Source for selenium usage of frames : https://code.google.com/p/selenium/source/browse/py/selenium/webdriver/remote/switch_to.py
After vnc console is checked, delete the test vm in teardown.

summary: - Have integration tests of instance creation and deletion
+ Add integration tests of instance creation and deletion
Changed in horizon:
importance: Undecided → Wishlist
status: New → Confirmed
Alex Chan (alexc2-3)
Changed in horizon:
assignee: nobody → Alex Chan (alexc2-3)
Alex Chan (alexc2-3)
Changed in horizon:
status: Confirmed → In Progress
Revision history for this message
Charles V Bock (charles-v-bock) wrote :

Any Progress on this test?

Thanks.

Revision history for this message
Alex Chan (alexc2-3) wrote :

A large portion of this is done already but I had to put this on pause. I should be able to resume this again shortly.

Revision history for this message
Imran Hayder (hayderimran7) wrote :

I have worked on testing horizon vnc console using selenium before. When you upload your patch, i will add the vnc testing if required.

Revision history for this message
Timur Sufiev (tsufiev-x) wrote :

Alex, what's the progress with your work? You may upload the patch even if it's not fully ready, and the community would provide the valuable feedback.

Revision history for this message
Timur Sufiev (tsufiev-x) wrote :
Changed in horizon:
assignee: Alex Chan (alexc2-3) → Amogh (amogh-r-mavinagidad)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/241025

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by David Lyle (<email address hidden>) on branch: master
Review: https://review.openstack.org/241025
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

Integration tests have been abandoned all together by Horizon. This no longer applies.

Changed in horizon:
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.