aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeLines
* Add reset action button.Heiko Bernloehr2016-01-27-1/+1
| | | | | Add new reset action to admin participant. Also introduced action buttons (delete and reset).
* WIP: subparticipants.Heiko Bernloehr2016-01-27-0/+112
|
* New resource /sys/configsHeiko Bernloehr2014-05-07-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Every participant could GET and POST to this resource. A GET might show this: curl ... -H 'Content-Type: application/json' \ -X GET https://ecs.host.com/sys/configs { "participant_events": "true", "resource_events": { "/campusconnect/glossaries": true, "/campusconnect/course_urls": true, "/campusconnect/course_members": true, "/campusconnect/wikis": true, "/campusconnect/directory_trees": true, "/campusconnect/learningmodules": true, "/campusconnect/groups": true, "/campusconnect/categories": true, "/campusconnect/courselinks": true, "/campusconnect/organisation_units": true, "/campusconnect/files": true, "/campusconnect/terms": true, "/campusconnect/courses": true, "/sys/auths": false }, "selfrouting": "false" } Only if participant_events and the appropriate resource_events are true, you will get an event. It's also possible to set the two attributes participant_events and selfrouting. Just make a POST such as: curl ... -H 'Content-Type: application/json' -X -X POST \ -d '{"participant_events":true}' https://ecs.host.com/sys/configs or curl ... -H 'Content-Type: application/json' -X -X POST \ -d '{"selfrouting":false}' https://ecs.host.com/sys/configs or curl ... -H 'Content-Type: application/json' -X -X POST \ -d '{"selfrouting":false, "participant_events":true}' \ https://ecs.host.com/sys/configs As you see, just set the attribute you want to set and make a POST. You don't have to provide a receiver header, because the receiver is implicitely the ECS.
* Missing headers when POST on resource queue.Heiko Bernloehr2013-06-04-0/+8
| | | | | | | | There were missing headers X-EcsSender and X-EcsReceiverCommunities when accessing a resource through a POST on its queue mode or a DELETE. This was caused by deleting the relationships between message memberships before composing the headers. To prevent a double rendering error it was also necessary to devide the show_render method.
* Prevent message deletion.Heiko Bernloehr2013-02-07-0/+28
| | | | | | | | | | Scenario: Owner deletes his message for which he is concurrently a receiver This should only be possible until he clears its receiver queue. Then the next DELETE operation removes the message from ECS and also destroys all other receiver references as it would be happened if the message owner had not even addressed itself.
* Moved gc auth code to auths model.Heiko Bernloehr2012-11-29-6/+64
| | | | Further made some testcode for auths handling.
* Changed security fix for redirects.Heiko Bernloehr2012-11-15-21/+8
| | | | | When creating authorization token the ECS only checks if exactly one of the realm or url parameter is present.
* Introduced security fix for redirects.Heiko Bernloehr2012-11-14-13/+179
| | | | | | | | | | | | Now redirects are integrity secured by sha1 message digest. A redirecting participant uses the /sys/auths resource realm attribute to store a message digest over all relevant redirect parameters (for details see [1]). The target participant uses this message digest again and verifies the integrity of the received redirect parameters (Location-Header). [1] see ECSA documentation at ECS->System resources->Auths
* Code shaping.Heiko Bernloehr2012-08-03-0/+9
| | | | | | | Introduced new exception names. Moved code from message controller to message model. New functional test for message controller testing forbidden deletion (not a receiver or owner/sender) of a message.
* Update operation now generates several events.Heiko Bernloehr2012-08-03-3/+41
| | | | | | | | | If X-EcsReceiverMemberships or X-EcsReceiverCommunities were changed following events will be generated: * New receivers get "created" event. * Removed receivers get "destroyed" event. * Old receivers get "updated" events.
* Code shaping.Heiko Bernloehr2012-07-18-0/+1
| | | | | | | | | | | | Function aliases in message model: alias destroy_as_receiver destroy_unlinked_and_not_postrouted alias destroy_as_sender destroy_ and code moved from messages_controller to message model. I have also removed the :dependent => :destroy declaration from the has_many :membership_messages declaration, because the deletion of the membership_messages will be done explicitely from the message model when deleting a message (via destroy_as_receive and destroy_as_sender). And this deletion *must* depend on the calling participant.
* Removed ressource_monitor.Heiko Bernloehr2012-06-24-50/+0
|
* New ECS configuration file introduced.Heiko Bernloehr2012-06-22-13/+3
| | | | It's a YAML configuration file for global ECS functionality.
* Fixed missing event generation for updates.Heiko Bernloehr2012-06-01-0/+20
|
* Removed buggy testcase.Heiko Bernloehr2011-03-10-10/+10
|
* New authorization.Heiko Bernloehr2011-03-08-0/+30
| | | | | The authorization resource (/sys/auths) functionality is now provided through the standard application resource infrastructure.
* Initial commit.Heiko Bernloehr2011-01-31-0/+1820