Write an admin crawler test

Created on 29 September 2014, over 10 years ago
Updated 7 August 2023, over 1 year ago

Problem/Motivation

Over the past few months, I've filed a number of issues in the form of "If you click this admin link from this page, you get an exception instead of the page".

So, I was wondering if we could build an admin crawler test that would detect these problems, and once they're fixed, prevent them from recurring.

Proposed resolution

This test would:

(a) Probably install using the Standard profile, as a shortcut.
(b) Enable all modules.
(c) On top of what the Standard profile provides, create some content and other stuff (nodes, blocks, etc.) so that every "List" admin page has at least one item on it that can be operated on.
(d) Crawl the site, starting on /admin. For each page encountered:
- Verify that it returns HTTP code 200
- Verify that there is not the word "Exception" on the page (or other words that would imply errors?) [there might be a few pages that are about error/exception handling that would have these keywords on them intentionally, so we'd need to allow for that in the test]
- Add any links found on the page to the list of URLs to check
- Keep checking pages until there are no new URLs encountered

Remaining tasks

(a) Write this test.

(b) See how long it takes to run. If it isn't too much of an added burden on the testing of every patch, add it to Core. If it is... at least run it periodically?

User interface changes

None.

API changes

None.

πŸ“Œ Task
Status

Closed: won't fix

Version

8.1 ⚰️

Component
OtherΒ  β†’

Last updated 2 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States jhodgdon Spokane, WA, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¬πŸ‡ͺGeorgia almador

    Does it possible to use this crawler just to make that all links from the Administration menu (admin/structure/menu/manage/admin) are opening without fatal errors? Any other module suggestions to crawl admin pages?

Production build 0.71.5 2024