Commit Graph

92 Commits

Author SHA1 Message Date
Evan Prodromou
a7e5c58a82 Merge branch 'revertversion' into 0.9.x 2011-01-03 10:51:42 -08:00
Brion Vibber
80e2f4f529 Fix up edge case in nickname processing: overlong display forms should be rejected before normalization (storage of display forms will also have fields with limited length) 2010-12-30 17:11:16 -08:00
Brion Vibber
b00a3cd4e4 Make sure the UUIDs are unique too :) 2010-12-30 13:37:05 -08:00
Brion Vibber
63c95484bd Update ActivityCreationTests for our switch away from the obsolete <activity:actor> 2010-12-30 13:21:59 -08:00
Evan Prodromou
3b5c3d2c84 UUID-generation tools 2010-12-30 12:15:34 -08:00
Brion Vibber
fefd9056da AtomPub test cases: make sure the posted entry appears in the feed, and that it disappears after deletion 2010-12-14 14:07:25 -08:00
Brion Vibber
b7e3b06bb1 AtomPub tetss: confirming edit URL linked properly in individual entry return 2010-12-14 13:52:44 -08:00
Brion Vibber
247a494006 AtomPub tests: fix delete test 2010-12-14 13:25:22 -08:00
Brion Vibber
0bfeaa4559 AtomPub tests: fix for atom post check 2010-12-14 13:23:09 -08:00
Brion Vibber
0f26d6eb70 more fixins on AtomPub tests 2010-12-14 13:11:34 -08:00
Brion Vibber
56e72ec7a1 auth fix 2010-12-14 12:36:21 -08:00
Brion Vibber
3426f65736 Mostly-implemented basic AtomPub tests 2010-12-14 12:33:28 -08:00
Brion Vibber
654d1749da partial stub file for atompub tests 2010-12-13 17:48:23 -08:00
Brion Vibber
82799f675f Add Nickname test cases for @-reply regexes in common_find_mentions 2010-11-29 15:07:55 -08:00
Brion Vibber
fffc10a230 Nickname class to encapsulate validation & common regexes for nickname formats.
This provides initial infrastructure for decoupling display names from internal canonical names, but continues to have us storing and using the canonical forms.

It should be/become possible to provide mixed-case and underscore-containing names in links, @-mention, !-group, etc, but we don't store those alternate forms generally.
2010-11-29 14:46:10 -08:00
Brion Vibber
dc350b5463 Work in progress on nickname validation changes. lib/nickname.php appears to have been destroyed by NetBeans and will be rewritten shortly. Sigh. 2010-11-29 14:15:25 -08:00
Brion Vibber
b7e0078d10 Start on some nickname-validation test cases: several of these fail right now because we had regressions in 0.8 or 0.9 where we lost normalization of uppercase and some other chars. 2010-11-29 11:31:33 -08:00
Brion Vibber
0735ca86d2 Add some data integrity checks on oembed tests (shows a bug on identi.ca test case -- missing width/height in photo data) 2010-11-15 12:58:00 -08:00
Brion Vibber
727596f35d Test oEmbed lookups with oohembed both on and off explicitly 2010-11-15 12:32:29 -08:00
Brion Vibber
68ff57f230 Restructure oembed test sources 2010-11-15 12:25:44 -08:00
Brion Vibber
87114a5c30 Add some basic oEmbed lookup test cases; fixed a bug in discovery fallback. 2010-11-15 11:55:28 -08:00
Brion Vibber
e611ec5dee Fix option settings on oauth_post_notice.php 2010-10-20 16:16:00 -07:00
Brion Vibber
9d401e2b15 Fix --oauth-token-secret on oauth_verify_creds.php 2010-10-20 15:17:56 -07:00
Brion Vibber
067d37f864 Update URLDetectionTest.php for rel="nofollow external". There are still some broken tests due to bad quote splitting, which is unrelated. 2010-10-18 12:26:01 -07:00
Zach Copley
2291d68e70 Default to ssl in oauth tests examples config 2010-10-12 17:54:54 -07:00
Zach Copley
baa8ae778a Update OAuth test script README 2010-10-07 19:46:46 -07:00
Zach Copley
590d96f70e Rename oauth.ini example to oauth.ini.sample 2010-10-07 19:43:55 -07:00
Zach Copley
626f306600 Rename OAuth status update script 2010-10-07 19:41:05 -07:00
Zach Copley
3e0a1e3b88 Some fixups 2010-10-07 19:40:31 -07:00
Zach Copley
be1668a1bd Renamed the OAuth verify credentials test script 2010-10-07 19:24:24 -07:00
Zach Copley
474834a332 Some fixups to this the OAuth verify credentials test script 2010-10-07 19:23:43 -07:00
Zach Copley
46de847ce0 Rename OAuth token credential fetching script 2010-10-07 18:41:34 -07:00
Zach Copley
70cad11573 Update access token fetching test script to 1.0a 2010-10-07 18:33:14 -07:00
Zach Copley
b8f2cc4e6f Make the verifier pin display a little nicer 2010-10-07 13:51:47 -07:00
Zach Copley
82a0a1a74b More OAuthy name for temp credentials fetching test script 2010-10-07 12:01:00 -07:00
Zach Copley
9d5224e2b4 Change temp credential test script to use POST instead of GET (more
useful for testing in general)
2010-10-07 11:56:49 -07:00
Zach Copley
5d5c4e8344 Some more cleanup 2010-10-06 19:05:31 -07:00
Zach Copley
73a73c9362 - Update getrequesttoken test script to use 1.0a
- Some cleanup
2010-10-06 13:40:02 -07:00
Zach Copley
3053770078 A bit more work on the request token fetching test script 2010-10-06 13:40:01 -07:00
Zach Copley
82f05d0a61 Somewhat improved test script for fetching an OAuth request token 2010-10-06 13:40:00 -07:00
Evan Prodromou
b17fc0ca5b update tests to include 'mentioned' links 2010-08-03 16:04:19 -07:00
Evan Prodromou
744233c6dc add actor info to tests 2010-08-03 15:49:49 -07:00
Evan Prodromou
8d19162122 more tests for activity generation 2010-08-03 15:26:19 -07:00
Evan Prodromou
6756a752c4 add some more tests for replies and group posts 2010-08-03 14:17:36 -07:00
Evan Prodromou
1a6148f0e4 initial unit tests for activity generation 2010-08-03 13:41:44 -07:00
Brion Vibber
9c7b66984c Enhanced upload file type detection. If given an original filename, we'll attempt to detect type from the extension if we were unable to make a definitive match from content. Generic octet-stream, zip, and MS Office type are explicitly singled out for re-checks, which fixes OpenOffice and MS Office documents to come up with the proper types when misdetected.
File extensions can also be added to the upload type whitelist; they'll be normalized to types for the actual comparison, so only known extensions will work.
2010-06-28 08:59:47 -07:00
Brion Vibber
41d81b996f Test cases for MediaFile::getUploadedFileType() with OpenOffice, MS Office, and PDF sample files (as saved from OpenOffice 3.2)
Only 3 of 16 cases pass on my dev box with default config. Ouch!
2010-06-28 08:59:46 -07:00
Brion Vibber
50d5f5e04c Merge branch 'master' into testing 2010-04-29 15:12:02 -07:00
Brion Vibber
8fd0059bf6 Test cases and fixes for Atom and RSS content decoding.
Fix extraction of Atom <content type="text"> and <content type="html">; we were failing to escape plaintext source data to HTML, and doing an extraneous double-deescape on HTML source resulting in breakage of notices containing text that looks like HTML. Only <content type="xhtml"> was working correctly previously.
Fixes for RSS2 content processing: we were failing to load <content:encoded> at all due to using wrong element name, and were applying an extraneous de-escape for <description> rather than the escaping that is required to turn plaintext into HTML. (Per spec, <description> must be plaintext.)
2010-04-23 15:40:48 -07:00
Brion Vibber
0841fa712e Ticket #1281: JID validation now more or less follows spec instead of calling e-mail validator
Basic splitting/validation code submitted via http://status.net/wiki/XMPP/JID_validation -- Copyright 2009 Patrick Georgi <patrick@georgi-clan.de> Licensed under ISC-L, which is compatible with everything else that keeps the copyright notice intact.

Added PEAR Net_IDNA package to extlib to handle IDN normalization (also used by Validate's email verifier if present).

* added test suite, supplemented my own test cases with JID validation and normalization test cases from libpurple
* follows XMPP rules for validation of name part
* fixes for normalization with non-ASCII names
* will do domain checks if $config['email']['check_domain'] is on, checking for an XMPP-server SRV record or any lookup. (We don't actually need to ping those direct though.)
* some more obscure stringprep validation rules aren't quite followed yet, but we err on the side of permissiveness.
* we still don't actually let you save your address with a resource on it, as we strip resources when looking up users who've sent us presence or message updates. I would recommend saving the outgoing resource as a separate field if/when we add that..?
2010-03-30 17:35:27 -07:00