[openstreetmap/openstreetmap-website] Api element resources redaction tests (PR #5649)

Anton Khorev notifications at github.com
Tue Feb 11 04:28:13 UTC 2025


This PR changes redact/unredact tests for the reasons stated in #5645.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5649

-- Commit Summary --

  * Split api old element redacted index tests
  * Split api old element redacted show tests
  * Add show_redactions checks to api old element index tests
  * Test redacted element state after redaction action
  * Test api old element index accessed as moderator
  * Add show_redactions checks to api old element show tests
  * Test api old element show accessed as moderator
  * Remove do_redact_element methods from api old element redaction tests
  * Use fewer element versions in redaction tests
  * Check old element state instead of responses in unredaction tests
  * Rename old element variables in redaction tests
  * Test states of old elements after unsuccessful redactions
  * Move current version redaction tests above roles/scopes tests
  * Make user creation code in unredact test similar to redact tests

-- File Changes --

    M test/controllers/api/old_nodes_controller_test.rb (293)
    M test/controllers/api/old_relations_controller_test.rb (280)
    M test/controllers/api/old_ways_controller_test.rb (287)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5649.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5649.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5649
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5649 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250210/ee236a45/attachment-0001.htm>


More information about the rails-dev mailing list