canvas-lms/spec/observers
Nick Pitrak 8817e8ad94 add course completion live event
closes CAT-2293

test plan:
- add `:docker-compose/kinesis.override.yml` to your .env file
- do docker-compose up
- in another terminal window, type `AWS_ACCESS_KEY_ID=key
		AWS_SECRET_ACCESS_KEY=secret aws --endpoint-url
		http://kinesis.canvaslms.docker/ kinesis create-stream
		--stream-name=live-events --shard-count=1 --region=us-east-1`
- go to canvas.docker/plugins
- find the Live Events plugin
- select All Accounts and click Create Config
- deselect the Disable this Plugin checkbox
- enter the following information and save:
		Kinesis Stream Name	live-events
		AWS Region	us-east-1
		AWS Endpoint	http://kinesis:4567
		AWS Access Key ID	key
		AWS Secret Access Key	secret
- close and reopen docker-compose up
- create a course with a single student enrolled
- create an assignment with web text entry worth 10 points in a module
- create a requirement for the module to earn 10/10 on the assignment
- masquerade as the student
- submit the assignment
- stop masquerading
- type `docker-compose run --rm web script/tail_kinesis
		http://kinesis:4567 live-events` in another terminal window
- grade the assignment as a 10/10 for the student
- ensure an event appears with its event_name as "course_completed"

Change-Id: Iffd5d6148fadcb66da3f8eca3a4caa9355485a90
Reviewed-on: https://gerrit.instructure.com/161106
Tested-by: Jenkins
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
QA-Review: Dariusz Dzien <ddzien@instructure.com>
Product-Review: Neil Gupta <ngupta@instructure.com>
2018-08-28 22:09:46 +00:00
..
conditional_release_observer_spec.rb spec: mocha => rspec-mocks for observers 2017-07-26 00:22:26 +00:00
live_events_observer_spec.rb add course completion live event 2018-08-28 22:09:46 +00:00
stream_item_cache_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00