pixelated / puppet-pixelated

Puppet Module to setup the Pixelated User Agent

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

allow functional tests to register if host uses invite codes

cz8s opened this issue · comments

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.

commented

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.

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)

commented

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

commented

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

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?