Anton Khorev
41e93bfb66
Make user creation code in unredact test similar to redact tests
2025-02-11 07:10:54 +03:00
Anton Khorev
319c9af975
Move current version redaction tests above roles/scopes tests
2025-02-11 05:41:18 +03:00
Anton Khorev
03ebd2ac5e
Test states of old elements after unsuccessful redactions
2025-02-11 05:38:36 +03:00
Anton Khorev
06cca3717a
Rename old element variables in redaction tests
2025-02-11 02:08:28 +03:00
Anton Khorev
0063727434
Check old element state instead of responses in unredaction tests
2025-02-11 02:08:28 +03:00
Anton Khorev
ef9d39ece0
Use fewer element versions in redaction tests
2025-02-11 02:08:28 +03:00
Anton Khorev
c134cabab2
Remove do_redact_element methods from api old element redaction tests
2025-02-11 02:08:28 +03:00
Anton Khorev
98a365c827
Test api old element show accessed as moderator
2025-02-11 02:08:28 +03:00
Anton Khorev
1b977454f7
Add show_redactions checks to api old element show tests
2025-02-11 02:08:28 +03:00
Anton Khorev
46113c9cba
Test api old element index accessed as moderator
2025-02-11 02:08:28 +03:00
Anton Khorev
d0c68c4041
Test redacted element state after redaction action
2025-02-11 02:08:28 +03:00
Anton Khorev
ddebb42a8e
Add show_redactions checks to api old element index tests
2025-02-11 02:08:28 +03:00
Anton Khorev
be020d1546
Split api old element redacted show tests
2025-02-11 02:08:28 +03:00
Anton Khorev
bd0f5a1932
Split api old element redacted index tests
2025-02-11 02:08:28 +03:00
Anton Khorev
b0afd3453a
Test api old node show action without integration
2025-02-10 22:25:21 +03:00
Anton Khorev
1da870fd48
Move api node version test to integration tests
2025-02-10 22:25:21 +03:00
Anton Khorev
f2ed3c1935
Make api old element show paths resourceful
2025-02-10 02:07:48 +03:00
Anton Khorev
98af87d1cb
Convert api element history actions to versions resources
2025-02-09 19:18:47 +03:00
Anton Khorev
8b024f48c1
Disable redactions with write_api scope
...
Requires write_redactions scope to redact. Previously it was possible to redact with either write_redactions or write_api.
2024-09-08 12:31:31 +03:00
Tom Hughes
4d221fd7a6
Simplify creation of bearer authorization headers
...
Uses the new features added to the bearer_authorization_header while
dropping basic authentication support to simplify the creation of bearer
authorization headers for API tests.
2024-09-03 18:54:05 +01:00
Tom Hughes
973d62a25e
Drop support for basic authentication
2024-09-02 19:00:57 +01:00
Tom Hughes
61c5011813
Update tests to avoid triggering changeset size limits
2024-06-19 00:46:35 +01:00
Anton Khorev
2f53c2520d
Simplify redact element paths in api tests
2024-04-02 15:49:40 +03:00
Anton Khorev
c073acf5b7
Simplify element history paths in api tests
2024-04-02 15:28:49 +03:00
Anton Khorev
0e50ff563e
Simplify old element show paths in api tests
2024-04-02 15:13:27 +03:00
Anton Khorev
ba2eb52054
Simplify element show paths in api tests
2024-04-02 14:53:17 +03:00
Anton Khorev
ad96da4518
Rename api element version path helper
2024-03-04 11:28:50 +03:00
Anton Khorev
cbf6b39464
Rename api element version action to show
2024-03-04 11:19:50 +03:00
Anton Khorev
daa2543511
Add oauth scope for redactions
2023-12-21 17:37:17 +03:00
Tom Hughes
460ed0c844
Fix new rubocop warnings
2022-10-25 19:19:57 +01:00
Andy Allan
561ee71129
Rubocop autofix: ambiguous operator precedence
...
This simply adds braces to clarify which mathematical operator comes
first.
2022-04-06 14:55:29 +01:00
Andy Allan
d07ce46929
Move the xml format test for old nodes to the controller test
...
This allows us to remove the model method
2021-09-15 17:05:34 +01:00
Tom Hughes
93e49daee2
Merge remote-tracking branch 'upstream/pull/2918' into master
2020-10-28 11:29:57 +00:00
Andy Allan
da2277505f
Ensure that test utility methods are marked as private
...
This allows us to enable the check for test method names.
2020-10-28 11:49:01 +01:00
Andy Allan
c04d05686f
Resolve some extra-long lines
2020-10-28 11:07:34 +01:00
Andy Allan
f84980f183
More controller test refactoring
2020-05-06 16:51:04 +02:00
mmd-osm
91b31f03de
Added unit tests
2020-01-08 19:57:21 +01:00
Andy Allan
4e7c0c3008
Move Node.to_xml and to_xml_node out of model and into tests
...
This code is only used in the tests for creating 'fixture' payloads,
so it shouldn't be kept in the models.
2019-11-13 17:01:40 +01:00
Tom Hughes
9f57f60b87
Fix new rubocop warnings
2019-04-23 09:33:34 +01:00
Andy Allan
b38343e5bd
Move node/way/relation/old_* controllers into the api namespace
2019-02-28 17:12:28 +01:00