pixelated / puppet-pixelated

Puppet Module to setup the Pixelated User Agent
GNU Affero General Public License v3.0
13 stars 4 forks source link

allow functional tests to register if host uses invite codes #26

Closed cz8s closed 8 years ago

cz8s commented 8 years ago

the functional tests in the puppet-pixelated repo try to register an account. this fails if invite codes are enabled. We should add a functionality that the tests generate an invite code if needed. This should be possible because the tests run on the host itself.

varac commented 8 years ago

one argument for the importance of this is that today, the useragent on wazokazi is failing (black screen after login), and nagios was still all green.

ayoyoness commented 8 years ago

you can run locally, but you can't register user with invite: $ TESTHOST=staging.pixelated-project.org behave --tags ~@wip --tags @staging

to run in the server (and QA register user with invite): $ INVITE_CODE_ENABLED=true /usr/local/bin/behave --tags @staging --tags ~@wip --no-capture -k /srv/leap/tests_custom/functional-tests/

(you may need to deploy first)

varac commented 8 years ago

It would be good to actually QA this running regulary by nagios. Is it deployed somewhere?

varac commented 8 years ago

cool, i just saw it's actually deployed everywhere. And the nice thing is that we even have graphs from the metrics of the check, i.e.: https://unstable.pixelated-project.org/pnp4nagios/index.php/graph?host=dev1.dev.pixelated-project.i&srv=Job%20pixelated-functional-tests

caiocarrara commented 8 years ago

Hey @varac the functionals tests were failing last week on unstable. I've seen that functionals on unstable was trying to register users on staging (hard coded). Did you do anything to fix that?