Commit Graph

12 Commits

Author SHA1 Message Date
Christian Melchior 4cb9c77f46
Query-based sync as the default sync mode (#1830) 2018-05-30 12:54:51 +02:00
Kenneth Geisshirt c370ef4d86
Testing against ROS 3.0.0. (#1712)
* Testing against ROS 3.0.0.
* Adding Realm.Sync.Subscription.removeAllListeners. Refactor partial sync tests.
* Refactoring partial sync tests.
2018-03-21 18:18:37 +01:00
Thomas Goyne 9da59d8f04 Reformat permissions-tests.js to a consistent 4-space indent 2018-03-05 09:46:24 -08:00
Thomas Goyne d1a4e899d8 Fix the Permissions typescript definitions 2018-03-02 15:36:45 -08:00
Thomas Goyne 384f43c637 Make testOfferPermissions more reliable
The order of the permissions is undefined and will vary based on what order
things happen to resolve on the server.
2018-03-02 13:44:56 -08:00
Thomas Goyne 0047ffba13 Add object-level permissions tests 2018-03-01 16:16:58 -08:00
blagoev 7f75b72a09 fix permission tests 2017-11-20 13:26:47 +02:00
Thomas Goyne 8972a20459 Update tests to not use deprecated APIs
Switch to the newer promise-based APIs rather than the callback versions.
2017-11-10 18:12:21 -08:00
blagoev fe09dc0d5f disable failing permission test 2017-10-02 11:33:56 +03:00
Thomas Goyne e8e23bbee7 Make permission tests better handle server delays
Retry a few times if the request hasn't been processed yet rather than hoping
that a 100ms sleep will suffice.
2017-09-19 13:14:49 -07:00
blagoev 4d1762025f Fix possible sporadic test failure 2017-09-12 11:21:15 +03:00
Kristian Dupont 402bf48f88 Permissions api (#1244)
* Add basic permissions skeleton

* ...

* Update permissions api

* Wait for server to process management realm, add offer api

* Fix test of apply and get permissions, add offer test

* Accept permission offer

* Accept permission offer test

* Invalidate permission offer

* Add basic docs (still need some links etc)

* Refactor tests

* Only run permission tests where sync is enabled

* Use legal syntax for user name generation

* Add changelog entry

* Streamline permission tests

* Fix casing for access level names etc.

* Add basic definitions to index.d.ts

* Use settimeout for resolving promise from listener

* Complete typescript defs

* Improve docs

* Allow 'any' as default recipient in getGrantedPermissions

* Fix getSpecialPurposeRealm on iOS

* Response to PR comments

* Respond to PR comments

* Fix offer description

* Skip permission tests in chrome debugger :-/
2017-08-29 15:23:22 +02:00