Behat: example.org is unreliable for anti-spam
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Expired
|
Undecided
|
Unassigned |
Bug Description
This feature is failing on the main branch.
./mahara_behat.sh rundebug settings/
And I press "Register"
And I should be on "/register.php"
And I should see "You have successfully [...snip...] processed."
The text "You have successfully [...snip...] processed." was not found anywhere in the text of the current page.
I added a breakpoint and took a look at the page. The form does report the attached error, and the content of the form looks okay. The error doesn't indicate which field is the issue either.
I tried adding a second institution and selecting that just in case. It didn't change the outcome.
Further investigation has tracked this to the anti-spam we use. Turns out the domain 'example.org' may not be the best to test against.
On htdocs/
gold@shipnet:
Interactive mode enabled
php > $domain = 'example.org';
php > echo (checkdnsrr(
N
php > echo (checkdnsrr(
N
php > echo (checkdnsrr(
N
php > $domain = 'example.com';
php > echo (checkdnsrr(
N
php > echo (checkdnsrr(
Y
php > echo (checkdnsrr(
N
php >
At this point I would be inclined to be swapping out instances of `example.org` for `example.com` (or at least another domain we can rely on) in the behat tests.
description: | updated |
summary: |
- Behat: settings/register_configuration.feature + Behat: example.org is unreliable for anti-spam |
It's failing at the spamtrap check in htdocs/auth/lib.php line 3254 - so not an issue with the behat test but an issue with the spamtrap checker
I suspect one of the spam checkers is timing out and so causing the form validation to fail