RedHatQE / katello.auto

Automated tests for katello
http://katello.org/
12 stars 15 forks source link

make katello-tests.permission-tests headpin friendly #102

Open els-pnw opened 12 years ago

els-pnw commented 12 years ago

Looks like in some manual test that the "administer" tab that we see when logged in as admin, will become hidden. This may be causing problems for the automation, at least for some of the permission-tests.

[{:org "Global Permissions", :permissions [{:name "akaccess", :verbs ["Read Activation Keys"], :resource-type "Activation Keys"}]}]

com.thoughtworks.selenium.SeleniumException: ERROR: Element link=Administer not found HttpCommandProcessor.java:112 com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError HttpCommandProcessor.java:106 com.thoughtworks.selenium.HttpCommandProcessor.doCommand DefaultSelenium.java:269 com.thoughtworks.selenium.DefaultSelenium.mouseOver


[{:org "Global Permissions", :permissions [{:name "stread", :verbs ["Read System Templates"], :resource-type "System Templates"}]}]

com.thoughtworks.selenium.SeleniumException: ERROR: Element link=Administer not found HttpCommandProcessor.java:112 com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError HttpCommandProcessor.java:106 com.thoughtworks.selenium.HttpCommandProcessor.doCommand DefaultSelenium.java:269 com.thoughtworks.selenium.DefaultSelenium.mouseOver ExtendedSelenium.java:257 com.redhat.qe.auto.selenium.ExtendedSelenium.mouseOver (Unknown Source)


[{:org "Global Permissions", :permissions [{:name "orgaccess", :verbs ["Read Organization"], :resource-type "Organizations"}]}]

com.thoughtworks.selenium.SeleniumException: ERROR: Element username not found HttpCommandProcessor.java:112 com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError HttpCommandProcessor.java:106 com.thoughtworks.selenium.HttpCommandProcessor.doCommand DefaultSelenium.java:317 com.thoughtworks.selenium.DefaultSelenium.type ExtendedSelenium.java:403 com.redhat.qe.auto.selenium.ExtendedSelenium.type ExtendedSelenium.java:429


[{:org "Global Permissions", :permissions [{:name "userdel", :verbs ["Delete Users"], :resource-type "Users"}]}]

com.thoughtworks.selenium.SeleniumException: ERROR: Element link=Administer not found HttpCommandProcessor.java:112 com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError HttpCommandProcessor.java:106 com.thoughtworks.selenium.HttpCommandProcessor.doCommand DefaultSelenium.java:269 com.thoughtworks.selenium.DefaultSelenium.mouseOver ExtendedSelenium.java:257 com.redhat.qe.auto.selenium.ExtendedSelenium.mouseOver (Unknown Source)


[{:org "ACME_Corporation", :permissions [{:name "orgaccess", :verbs ["Read Organization"], :resource-type "Organizations"}]}]

com.thoughtworks.selenium.SeleniumException: ERROR: Element link=Administer not found HttpCommandProcessor.java:112 com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError HttpCommandProcessor.java:106 com.thoughtworks.selenium.HttpCommandProcessor.doCommand DefaultSelenium.java:269 com.thoughtworks.selenium.DefaultSelenium.mouseOver ExtendedSelenium.java:257 com.redhat.qe.auto.selenium.ExtendedSelenium.mouseOver (Unknown Source)

els-pnw commented 12 years ago

Currently the permission tests are not in sam-tests, we need to get this resolved. In last run, more than half the tests failed requiring further investigation. I'll update once investigated; however, further investigation will have to wait until a bug is addressed that impacts headpin only. Bug in question is related to a user with limited access having difficulty handling a call to load :widgets where :widgets includes system_groups (system_groups are not applicable to SAM).

weissjeffm commented 12 years ago

i'm guessing that some of the actions the tests use to see if the permission works properly, are not available in headpin.

So we can probably just mark individual tests as katello only. and maybe add a few more if that doesn't leave enough coverage for headpin.