Thomas Wood
76b6d7d876
Tests for [17838]
...
Why is our testing fixtures such a mess? It took me half an hour to find a useable node. And I'm still not sure if it's ok, since I want to get to bed. kthxbye
2009-09-29 03:58:33 +00:00
Štefan Baebler
93c592bbe4
tests for diary rss feeds
2009-08-19 05:07:26 +00:00
Tom Hughes
908a6ef409
Merge 16891:17044 from trunk.
2009-08-13 17:18:08 +00:00
Tom Hughes
565171486f
Add extra visibility options for GPS traces, and enhance the API call
...
that returns trace data to return more information if the owner of the
trace has allowed it. Based on a patch from Matt Amos.
2009-08-13 17:06:11 +00:00
Matt Amos
05e2120273
Merged 16488:16743 from trunk.
2009-07-31 10:42:06 +00:00
Matt Amos
44ec85fcad
fixed gps_point coordinates and tile. why was this passing the tests before?
2009-07-30 15:19:07 +00:00
Tom Hughes
f4571eeb7c
Revert r16046.
...
DO NOT COMMIT MAJOR ENHANCEMENTS TO TRUNK WITHOUT TALKING TO ME FIRST.
2009-06-23 02:48:38 +00:00
Matt Amos
b8f6dbd403
Adding initial version of the OAuth token authentication method. This adds basic OAuth support for registering apps, getting and revoking keys, etc... The tokens come with 6 separate permissions bits; read/write user preferences, write diaries, write API and read/write GPS traces. Needs more tests.
2009-06-22 16:54:37 +00:00
Tom Hughes
01e75a02dc
More diary test fixes.
2009-05-30 16:59:06 +00:00
Tom Hughes
dda2ccafe7
Fix a couple of diary tests.
2009-05-30 16:51:56 +00:00
Shaun McDonald
f183bd8ec8
Some test improvements
2009-05-26 14:45:30 +00:00
Shaun McDonald
d5d4adb2f9
Fix the fixtures. Related changeset 15184.
2009-05-26 13:12:42 +00:00
Shaun McDonald
53b4d645d8
First stage of i18n. Some migrations and extra plugins.
2009-05-22 18:36:17 +00:00
Shaun McDonald
d23d2c9d05
Extra little test, setting the language on the diary fixtures.
2009-05-15 15:41:45 +00:00
Matt Amos
66ae650c95
Oops. Fixed another Time/DateTime problem.
2009-05-14 13:13:09 +00:00
Matt Amos
71192daef2
Fixed problem with Time vs. DateTime classes in fixtures. Weirdly only affected mysql backend.
2009-05-14 11:52:15 +00:00
Matt Amos
1ceb4ab9ba
Fixed bug #1816 - the timeout updating logic should have been in a before_save handler, not in save_with_tags.
2009-05-12 13:54:37 +00:00
Tom Hughes
ed68d524de
Use a local lookup table for country bounding boxes rather than relying
...
on geonames.org being able to do it in a reasonable time.
2009-05-11 16:50:09 +00:00
Shaun McDonald
d10931effa
More trace tests
2009-05-06 14:58:48 +00:00
Shaun McDonald
44c5248c1a
couple of fixes to the changeset upload delete
2009-04-30 17:25:53 +00:00
Shaun McDonald
db17af19bb
fix more of the tests, particularly changeset controller. Needed more fixtures to fix them. The last failing changeset controller test needs some more work on the fixtures.
2009-04-29 22:25:49 +00:00
Shaun McDonald
dcca3ab0e9
More changeset test improvements. Another fixture was required for one of the tests
2009-04-29 17:29:58 +00:00
Shaun McDonald
f47ba4fb23
Fix the node and relation tests from when the users with data public=false were disallowed from editing. Needed extra fixtures.
2009-04-27 11:57:58 +00:00
Shaun McDonald
10fdeb2021
Make node update work with the new require data public to edit policy. Added convenience testing method for the require data public. Add 2 new fixtures that are owned by the public user.
2009-04-26 22:46:41 +00:00
Tom Hughes
77a34278ca
Backout broken attempt at making case insensitive authentication work
...
on Postgres. As implemented this forces a table scan to authenticate
users which is ridiculous to save people pressing the shift key.
2009-04-23 23:46:45 +00:00
Shaun McDonald
f1a0331081
Hack a way to make the email and display name case insensitive for logging in, based on a suggestion by firefishy to use ILIKE. Changes requested from users on mailing list. Includes some tests to check the case insensitivity of the username, and and e-mail address on login.
2009-04-23 19:20:08 +00:00
Shaun McDonald
38e94c6baa
fixing some of the relation tests. Some adjustments to the fixtures.
2009-04-22 00:42:23 +00:00
Matt Amos
0f111e7e2a
Fixed formatting and stuff in fixtures.
2009-04-21 18:37:24 +00:00
Shaun McDonald
b27e534b2e
Add new fixtures for testing multiple tags on a relation.
2009-04-21 17:54:59 +00:00
Shaun McDonald
0ad724bd92
Hopefully fix the old_node_controller tests.
2009-04-21 17:07:14 +00:00
Shaun McDonald
0dd0f1881d
Fixing some of the tests, adding the new tests to make sure that you can't edit when your not a public user
2009-04-18 17:17:22 +00:00
Shaun McDonald
08bd1688ee
Railsify the relation member model, type attribute, by putting it into class case, rather than lower case. Requires reload of postgres databases or manual change to the enum. Fixes the databrowser on postgres, however affects the rest of the codebase.
2009-04-15 14:49:21 +00:00
Matt Amos
568c05c548
Fixing failing potlatch tests. Someone who knows what the potlatch API is actually supposed to be doing should check these...
2009-03-25 17:54:21 +00:00
Tom Hughes
81835c55a0
Commit ACL related files from earlier merges as svn merge seems to
...
neglected to add them...
2009-03-08 16:13:00 +00:00
Matt Amos
76708eefcf
Fixed bug in changeset closing and querying where the number of elements exceeded the maximum. Added a fixture for this.
2009-02-07 17:45:27 +00:00
Thomas Wood
747d6f1d11
Revert last commit - too many test failures
2008-12-31 16:43:44 +00:00
Thomas Wood
898beb7b7f
DateTime => Time for consistency in changeset code, ok by shaun.
2008-12-31 16:33:02 +00:00
Matt Amos
a90be5e69a
Migration to add close-time to changesets. This replaces the boolean 'open' attribute. Added checks to ensure that the maximum lifetime and number of changes in a changeset are enforced. Added some tests.
2008-11-17 19:00:01 +00:00
Shaun McDonald
9a4ea6bfd0
Adding validations for the length of node tags, and the presence of the id (and version). More tests, including some boiler plate tests.
2008-11-17 18:53:09 +00:00
Matt Amos
28839fd150
Fixed some bugs in changeset query code. Added more test cases.
2008-11-17 14:32:15 +00:00
Shaun McDonald
6bca4b66d1
More unit test stubs
2008-11-14 17:28:16 +00:00
Shaun McDonald
c8b70c1c72
Adding some more unit test stubs that need filling out. Adding changeset tags fixture. Indentation fix in way model.
2008-11-14 02:06:04 +00:00
Andy Allan
fc99863df9
In YAML yes is a boolean keyword: also fix test that was erroneously asserting success
2008-11-10 11:32:17 +00:00
Andy Allan
46c0e364ee
correcting typo on gps_points fixtures
2008-11-08 18:59:06 +00:00
Shaun McDonald
c6592045c4
Adding some diary fixtures and test stubs
2008-11-08 11:34:58 +00:00
Matt Amos
b875d14b7c
Added a query method for querying bounding boxes, times and users of changesets. Needs (much) more testing.
2008-11-07 18:24:34 +00:00
Andy Allan
3cb759f085
users fixtures should all have creation times
2008-11-07 11:21:46 +00:00
Andy Allan
e156663723
Booleans should be true/false for compatibility with other db adapters
2008-11-07 11:20:25 +00:00
Shaun McDonald
9705105681
Starting the gpx trace testing with additional fixtures
2008-10-30 18:50:45 +00:00
Matt Amos
498d695064
Added test for relations_for_node where the relation had been deleted.
2008-10-21 11:38:13 +00:00