Commit Graph

89 Commits

Author SHA1 Message Date
Aitor Magán 2e68c9b225 Use check_access function to check if users can read a dataset 2014-07-24 16:46:02 +02:00
Aitor Magán 619c7725c9 Private label is only shown where the user cannot read the package. Owner label is shown when the user is the owner (even if the dataset is public) 2014-07-24 15:38:44 +02:00
Aitor Magán 6838221f43 Cache is updated when the list of allowed users is updated 2014-07-17 13:25:03 +02:00
Aitor Magán 2ee2b077cc Avoid missing values checking the private value 2014-07-16 15:59:45 +02:00
Aitor Magán 5995a67576 Modify the way allowed users are obtained 2014-07-16 13:29:53 +02:00
Aitor Magán ee25e8f9a6 Improve tests 2014-07-15 17:28:17 +02:00
Aitor Magán 1376787a75 Add test for after_update properly 2014-07-15 14:10:32 +02:00
Aitor Magán 0dc1e10128 Add after_create and after_update tests 2014-07-15 14:05:01 +02:00
Aitor Magán 2fe84bd5cc Fix test 2014-07-15 12:59:00 +02:00
Aitor Magán f0bbd82325 Fix minor typo 2014-07-15 12:19:12 +02:00
Aitor Magán 5810c8d5e8 Check customer_name before resources. Add additional test for FiWare parser 2014-07-15 12:16:20 +02:00
Aitor Magán c7de2e3c91 Improve coverage. Add tests for DB. init_db is now idempotent 2014-07-15 11:52:09 +02:00
Aitor Magán bd2cc7c7c1 Change test_controller_api to test_actions 2014-07-15 10:32:19 +02:00
Aitor Magán 414bc46e59 Split plugin test. Minor bug fixes 2014-07-14 17:05:46 +02:00
Aitor Magán bdbc1372d5 Fix FiWare parser tests 2014-07-14 12:16:41 +02:00
Aitor Magán 11a0a349f9 Minor bugfixes 2014-07-08 15:40:27 +02:00
Aitor Magán 845d377b8f Add additional test for UI Controller 2014-07-08 12:47:57 +02:00
Aitor Magán 4ddef599a2 Create different files for each controller 2014-07-08 12:30:28 +02:00
Aitor Magán 6a35b8a777 Initial Adquired DS UI tests 2014-07-08 12:01:54 +02:00
Aitor Magán 92d4ff1f3b Create separate controllers: one for the API and another one for the User Interface. Fix minor bugs 2014-07-08 10:35:26 +02:00
Aitor Magán f667c9ff0d Fix test 2014-07-07 17:47:27 +02:00
Aitor Magán 1357b6d6a3 Fix minor typo 2014-07-07 10:11:46 +02:00
Aitor Magán 3e8dc4379e Change the way searchable datasets are stored 2014-07-07 09:30:51 +02:00
Aitor Magán 027958ebd4 Change labels: Adquire label is shown when the user has adquired a dataset. Private label is shown when the users has not adquired a dataset 2014-07-04 14:18:10 +02:00
Aitor Magán 8bf820a15e Users can choose if their datasets can or not be searched 2014-07-04 11:49:36 +02:00
Aitor Magán ed9359e251 Allow organizations to choose the users that can view their private datasets 2014-07-03 10:06:20 +02:00
Aitor Magán 3144e8de18 Readd auth_allow_anonymous_access to package_show. Add tests to check that "package_show" and "resource_show" have the decorator "auth_allow_anonymous_access" 2014-07-01 15:56:21 +02:00
Aitor Magán bd7630a372 Modify resource_show function to use the package_show function defined within the plugin 2014-07-01 15:56:21 +02:00
Aitor Magán 95cac2b653 Fix bug that allow anonymous users to access datasets without allowed users 2014-07-01 15:56:21 +02:00
Aitor Magán 2756bbd60f Allow new package_search to be accessed via a GET request 2014-06-30 16:46:09 +02:00
Aitor Magán f746754c24 Minor improvements 2014-06-30 13:31:11 +02:00
Aitor Magán 6d780ac38e Add exception name 2014-06-30 13:19:40 +02:00
Aitor Magán 3af8917175 Add complex tests to Controller test. Change add_user function name to add_users 2014-06-30 13:11:55 +02:00
Aitor Magán cb4c8ea314 Improve test by deleting useless code 2014-06-27 14:39:26 +02:00
Aitor Magán 53f314459a Add additional tests 2014-06-27 14:17:47 +02:00
Aitor Magán ca190e2827 Add Controller test (first version) 2014-06-27 14:09:14 +02:00
Aitor Magán 79a05a04f5 Improve tests readability 2014-06-27 10:41:28 +02:00
Aitor Magán ff4bdabf1d Minor bugfixes. Add plugin tests 2014-06-26 16:37:27 +02:00
Aitor Magán c8da0fb6bb Add FiWare parser test 2014-06-26 11:36:56 +02:00