canvas_oauth_engine 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/canvas_oauth/canvas_api.rb +4 -0
- data/lib/canvas_oauth/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +516 -0
- data/spec/lib/canvas_oauth/canvas_api_spec.rb +14 -0
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d66a225fd03c8734a9f4b39aca6625227689c207
|
4
|
+
data.tar.gz: 04d1c9e40173cd975a4d4d736cc48ec0a672441f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac97af15039693efa6eadfa28055eaa9584b4b10ab3951246663accc5e4c7371b15dc2de8b13d58a694d7c11bf35c8eab29f5c1466cc315595a9a473a687399e
|
7
|
+
data.tar.gz: 15c980b1cd0f21586d6afef28e9fde5ddf7d70be98c3970ee637ce29b24ce95d89a70433a694ec955dc7a31d7babcc342286a54266e64a55e370eebaad5e0dac
|
@@ -195,6 +195,10 @@ module CanvasOauth
|
|
195
195
|
authenticated_post "/api/v1/courses/#{course_id}/assignments", { body: { assignment: params } }
|
196
196
|
end
|
197
197
|
|
198
|
+
def update_assignment(course_id, assignment_id, params)
|
199
|
+
authenticated_put "/api/v1/courses/#{course_id}/assignments/#{assignment_id}", { body: { assignment: params } }
|
200
|
+
end
|
201
|
+
|
198
202
|
def grade_assignment(course_id, assignment_id, user_id, params)
|
199
203
|
authenticated_put "/api/v1/courses/#{course_id}/assignments/#{assignment_id}/submissions/#{user_id}", { body: params }
|
200
204
|
end
|
data/lib/canvas_oauth/version.rb
CHANGED
File without changes
|
@@ -0,0 +1,516 @@
|
|
1
|
+
Initializing Canvas using configuration in /Users/kgarner/instructure/canvas_oauth_engine/spec/dummy/config/canvas.yml
|
2
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
3
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11
|
+
[1m[35mCanvasOauth::Authorization Load (0.1ms)[0m SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" = 123 AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" = 'abc123' ORDER BY created_at DESC LIMIT 1
|
12
|
+
SQLite3::SQLException: no such table: canvas_oauth_authorizations: SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" = 123 AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" = 'abc123' ORDER BY created_at DESC LIMIT 1
|
13
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
14
|
+
[1m[35m (0.0ms)[0m begin transaction
|
15
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
16
|
+
[1m[35m (0.0ms)[0m begin transaction
|
17
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
18
|
+
[1m[35m (0.0ms)[0m begin transaction
|
19
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
20
|
+
[1m[35m (0.0ms)[0m begin transaction
|
21
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
22
|
+
[1m[35m (0.0ms)[0m begin transaction
|
23
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
24
|
+
[1m[35m (0.0ms)[0m begin transaction
|
25
|
+
Processing by CanvasOauth::CanvasController#oauth as HTML
|
26
|
+
Rendered text template (0.0ms)
|
27
|
+
Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
|
28
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
29
|
+
[1m[35m (0.0ms)[0m begin transaction
|
30
|
+
[1m[36mCanvasOauth::Authorization Load (0.1ms)[0m [1mSELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" IS NULL AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" IS NULL ORDER BY created_at DESC LIMIT 1[0m
|
31
|
+
SQLite3::SQLException: no such table: canvas_oauth_authorizations: SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" IS NULL AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" IS NULL ORDER BY created_at DESC LIMIT 1
|
32
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
33
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
34
|
+
[1m[35mCanvasOauth::Authorization Load (0.1ms)[0m SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" IS NULL AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" IS NULL ORDER BY created_at DESC LIMIT 1
|
35
|
+
SQLite3::SQLException: no such table: canvas_oauth_authorizations: SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" IS NULL AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" IS NULL ORDER BY created_at DESC LIMIT 1
|
36
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
37
|
+
[1m[35m (0.0ms)[0m begin transaction
|
38
|
+
Processing by CanvasOauth::CanvasController#oauth as HTML
|
39
|
+
Parameters: {"code"=>"valid"}
|
40
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
41
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
42
|
+
[1m[35m (0.0ms)[0m begin transaction
|
43
|
+
Processing by CanvasOauth::CanvasController#oauth as HTML
|
44
|
+
Parameters: {"code"=>"valid", "state"=>"zzyyxx"}
|
45
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
46
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
47
|
+
[1m[35m (0.0ms)[0m begin transaction
|
48
|
+
[1m[36mCanvasOauth::Authorization Load (0.1ms)[0m [1mSELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" IS NULL AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" IS NULL ORDER BY created_at DESC LIMIT 1[0m
|
49
|
+
SQLite3::SQLException: no such table: canvas_oauth_authorizations: SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" IS NULL AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" IS NULL ORDER BY created_at DESC LIMIT 1
|
50
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
51
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
52
|
+
[1m[35mCanvasOauth::Authorization Load (0.1ms)[0m SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" IS NULL AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" IS NULL ORDER BY created_at DESC LIMIT 1
|
53
|
+
SQLite3::SQLException: no such table: canvas_oauth_authorizations: SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" IS NULL AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" IS NULL ORDER BY created_at DESC LIMIT 1
|
54
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
55
|
+
[1m[35m (0.0ms)[0m begin transaction
|
56
|
+
[1m[36mCanvasOauth::Authorization Load (0.1ms)[0m [1mSELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" IS NULL AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" IS NULL ORDER BY created_at DESC LIMIT 1[0m
|
57
|
+
SQLite3::SQLException: no such table: canvas_oauth_authorizations: SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" IS NULL AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" IS NULL ORDER BY created_at DESC LIMIT 1
|
58
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
59
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
60
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
61
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
66
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
67
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
68
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
69
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
70
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
71
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
72
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
73
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
74
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
75
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
76
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
77
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
78
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
79
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
80
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
81
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
82
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
83
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
84
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
85
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
86
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
87
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
88
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
89
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
90
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
91
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
92
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
93
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
94
|
+
API call (0.03ms): put ["/api/v1/courses/1/assignments/2/submissions/3", {:body=>{}, :headers=>{}}]
|
95
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
96
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
97
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
98
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
99
|
+
API call (0.04ms): get ["/path", {:query=>"stuff", :headers=>{}}]
|
100
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
101
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
102
|
+
API call (0.05ms): get ["/path", {:headers=>{}}]
|
103
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
104
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
105
|
+
API call (0.02ms): get ["/path", {:headers=>{}}]
|
106
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
107
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
108
|
+
API call (0.08ms): get ["/api/v1/courses", {:query=>{:per_page=>50}, :headers=>{}}]
|
109
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
110
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
111
|
+
API call (0.02ms): get ["/api/v1/courses/123/students", {:query=>{:per_page=>50}, :headers=>{}}]
|
112
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
113
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
114
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
115
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
116
|
+
API call (0.02ms): get ["/api/v1/courses/123/sections", {:query=>{:include=>["students", "avatar_url", "enrollments"], :per_page=>50}, :headers=>{}}]
|
117
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
118
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
119
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
120
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
121
|
+
API call (0.02ms): get ["/api/v1/users/123/profile", {:headers=>{}}]
|
122
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
123
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
124
|
+
API call (0.02ms): get ["/api/v1/accounts/1/courses", {:query=>{:per_page=>50}, :headers=>{}}]
|
125
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
126
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
127
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
128
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
129
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
130
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
131
|
+
API call (0.04ms): get ["/api/v1/accounts/1/users", {:query=>{:per_page=>50}, :headers=>{}}]
|
132
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
133
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
134
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
135
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
136
|
+
API call (0.02ms): get ["/api/v1/courses/123/assignments", {:query=>{:per_page=>50}, :headers=>{}}]
|
137
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
138
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
139
|
+
API call (0.02ms): post ["/api/v1/courses/123/assignments", {:body=>{:assignment=>{:name=>"Assignment"}}, :headers=>{}}]
|
140
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
141
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
142
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
143
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
144
|
+
API call (0.02ms): get ["/api/v1/courses/123", {:headers=>{}}]
|
145
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
146
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
147
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
148
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
149
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
150
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
151
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
152
|
+
Initializing Canvas using configuration in /Users/kgarner/instructure/canvas_oauth_engine/spec/dummy/config/canvas.yml
|
153
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
154
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
155
|
+
Initializing Canvas using configuration in /Users/kgarner/instructure/canvas_oauth_engine/spec/dummy/config/canvas.yml
|
156
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
157
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
158
|
+
Initializing Canvas using configuration in /Users/kgarner/instructure/canvas_oauth_engine/spec/dummy/config/canvas.yml
|
159
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
160
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
161
|
+
Initializing Canvas using configuration in /Users/kgarner/instructure/canvas_oauth_engine/spec/dummy/config/canvas.yml
|
162
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
163
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
164
|
+
Initializing Canvas using configuration in /Users/kgarner/instructure/canvas_oauth_engine/spec/dummy/config/canvas.yml
|
165
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
166
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
167
|
+
Initializing Canvas using configuration in /Users/kgarner/instructure/canvas_oauth_engine/spec/dummy/config/canvas.yml
|
168
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
169
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
170
|
+
Initializing Canvas using configuration in /Users/kgarner/instructure/canvas_oauth_engine/spec/dummy/config/canvas.yml
|
171
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
172
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
173
|
+
Initializing Canvas using configuration in /Users/kgarner/instructure/canvas_oauth_engine/spec/dummy/config/canvas.yml
|
174
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
175
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
176
|
+
Initializing Canvas using configuration in /Users/kgarner/instructure/canvas_oauth_engine/spec/dummy/config/canvas.yml
|
177
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
178
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
179
|
+
Initializing Canvas using configuration in /Users/kgarner/instructure/canvas_oauth_engine/spec/dummy/config/canvas.yml
|
180
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
181
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
182
|
+
Initializing Canvas using configuration in /Users/kgarner/instructure/canvas_oauth_engine/spec/dummy/config/canvas.yml
|
183
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
184
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
185
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
186
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
187
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
188
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
189
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
190
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
191
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
192
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
193
|
+
Initializing Canvas using configuration in /Users/kgarner/instructure/canvas_oauth_engine/spec/dummy/config/canvas.yml
|
194
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
195
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
196
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
197
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
198
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
199
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
200
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
201
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
202
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
203
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
204
|
+
Initializing Canvas using configuration in /Users/kgarner/instructure/canvas_oauth_engine/spec/dummy/config/canvas.yml
|
205
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
206
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
207
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
208
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
209
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
210
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
211
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
212
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
213
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
214
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
215
|
+
Initializing Canvas using configuration in /Users/kgarner/instructure/canvas_oauth_engine/spec/dummy/config/canvas.yml
|
216
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
217
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
218
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
219
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
220
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
221
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
222
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
223
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
224
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
225
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
226
|
+
Initializing Canvas using configuration in /Users/kgarner/exempt/instructure/canvas_oauth_engine/spec/dummy/config/canvas.yml
|
227
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
228
|
+
API call (0.09ms): get ["/path", {:headers=>{}}]
|
229
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
230
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
231
|
+
API call (0.05ms): get ["/path", {:headers=>{}}]
|
232
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
233
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
234
|
+
API call (0.04ms): get ["/path", {:query=>"stuff", :headers=>{}}]
|
235
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
236
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
237
|
+
API call (0.03ms): get ["/api/v1/courses/123/sections", {:query=>{:include=>["students", "avatar_url", "enrollments"], :per_page=>50}, :headers=>{}}]
|
238
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
239
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
240
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
241
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
242
|
+
API call (0.08ms): get ["/api/v1/accounts/1/courses", {:query=>{:per_page=>50}, :headers=>{}}]
|
243
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
244
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
245
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
246
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
247
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
248
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
249
|
+
API call (0.03ms): put ["/api/v1/courses/123/assignments/345", {:body=>{:assignment=>{:omit_from_final_grade=>true}}, :headers=>{}}]
|
250
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
251
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
252
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
253
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
254
|
+
API call (0.03ms): get ["/api/v1/courses/123/assignments", {:query=>{:per_page=>50}, :headers=>{}}]
|
255
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
256
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
257
|
+
API call (0.07ms): post ["/api/v1/courses/123/assignments", {:body=>{:assignment=>{:name=>"Assignment"}}, :headers=>{}}]
|
258
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
259
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
260
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
261
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
262
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
263
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
264
|
+
API call (0.03ms): get ["/api/v1/courses", {:query=>{:per_page=>50}, :headers=>{}}]
|
265
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
266
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
267
|
+
API call (0.03ms): get ["/api/v1/users/123/profile", {:headers=>{}}]
|
268
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
269
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
270
|
+
API call (0.03ms): get ["/api/v1/courses/123", {:headers=>{}}]
|
271
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
272
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
273
|
+
API call (0.03ms): put ["/api/v1/courses/1/assignments/2/submissions/3", {:body=>{}, :headers=>{}}]
|
274
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
275
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
276
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
277
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
278
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
279
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
280
|
+
API call (0.07ms): get ["/api/v1/courses/123/students", {:query=>{:per_page=>50}, :headers=>{}}]
|
281
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
282
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
283
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
284
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
285
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
286
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
287
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
288
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
289
|
+
API call (0.12ms): get ["/api/v1/accounts/1/users", {:query=>{:per_page=>50}, :headers=>{}}]
|
290
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
291
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
292
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
293
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
294
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
295
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
296
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
297
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
298
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
299
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
300
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
301
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
302
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
303
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
304
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
305
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
306
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
307
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
308
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
309
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
310
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
311
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
312
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
313
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
314
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
315
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
316
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
317
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
318
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
319
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
320
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
321
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
322
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
323
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
324
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
325
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
326
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
327
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
328
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
329
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
330
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
331
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
332
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
333
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
334
|
+
Processing by CanvasOauth::CanvasController#oauth as HTML
|
335
|
+
Rendering text template
|
336
|
+
Rendered text template (0.0ms)
|
337
|
+
Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)
|
338
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
339
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
340
|
+
Processing by CanvasOauth::CanvasController#oauth as HTML
|
341
|
+
Parameters: {"code"=>"valid", "state"=>"zzyyxx"}
|
342
|
+
Rendering text template
|
343
|
+
Rendered text template (0.0ms)
|
344
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
345
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
346
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
347
|
+
Processing by CanvasOauth::CanvasController#oauth as HTML
|
348
|
+
Parameters: {"code"=>"valid"}
|
349
|
+
Rendering text template
|
350
|
+
Rendered text template (0.0ms)
|
351
|
+
Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
352
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
353
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
354
|
+
Processing by CanvasOauth::CanvasController#oauth as HTML
|
355
|
+
Parameters: {"code"=>"valid", "state"=>"mismatch"}
|
356
|
+
Rendering text template
|
357
|
+
Rendered text template (0.0ms)
|
358
|
+
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
359
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
360
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
361
|
+
Processing by CanvasOauth::CanvasController#oauth as HTML
|
362
|
+
Parameters: {"code"=>"valid", "state"=>"zzyyxx"}
|
363
|
+
Completed 500 Internal Server Error in 2ms (ActiveRecord: 1.6ms)
|
364
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
365
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
366
|
+
Processing by CanvasOauth::CanvasController#oauth as HTML
|
367
|
+
Parameters: {"code"=>"invalid"}
|
368
|
+
Rendering text template
|
369
|
+
Rendered text template (0.0ms)
|
370
|
+
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
371
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
372
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
373
|
+
Processing by CanvasOauth::CanvasController#oauth as HTML
|
374
|
+
Parameters: {"code"=>"valid"}
|
375
|
+
Rendering text template
|
376
|
+
Rendered text template (0.0ms)
|
377
|
+
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
378
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
379
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
380
|
+
Processing by CanvasOauth::CanvasController#oauth as HTML
|
381
|
+
Parameters: {"code"=>"valid"}
|
382
|
+
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)
|
383
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
384
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
385
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
386
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
387
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
388
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
389
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
390
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
391
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
392
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
393
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
394
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
395
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
396
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
397
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
398
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
399
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
400
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
401
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
402
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
403
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
404
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
405
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
406
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
407
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
408
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
409
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
410
|
+
Initializing Canvas using configuration in /Users/kgarner/exempt/instructure/canvas_oauth_engine/spec/dummy/config/canvas.yml
|
411
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
412
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
413
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
414
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
415
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
416
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
417
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
418
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
419
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
420
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
421
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
422
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
423
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
424
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
425
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
426
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
427
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
428
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
429
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
430
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
431
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
432
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
433
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
434
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
435
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
436
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
437
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
438
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
439
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
440
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
441
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
442
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
443
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
444
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
445
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
446
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
447
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
448
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
449
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
450
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
451
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
452
|
+
API call (0.06ms): get ["/api/v1/courses", {:query=>{:per_page=>50}, :headers=>{}}]
|
453
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
454
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
455
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
456
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
457
|
+
API call (0.03ms): put ["/api/v1/courses/123/assignments/345", {:body=>{:assignment=>{:omit_from_final_grade=>true}}, :headers=>{}}]
|
458
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
459
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
460
|
+
API call (0.03ms): get ["/api/v1/courses/123", {:headers=>{}}]
|
461
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
462
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
463
|
+
API call (0.09ms): post ["/api/v1/courses/123/assignments", {:body=>{:assignment=>{:name=>"Assignment"}}, :headers=>{}}]
|
464
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
465
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
466
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
467
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
468
|
+
API call (0.04ms): get ["/api/v1/users/123/profile", {:headers=>{}}]
|
469
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
470
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
471
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
472
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
473
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
474
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
475
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
476
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
477
|
+
API call (0.09ms): get ["/api/v1/accounts/1/courses", {:query=>{:per_page=>50}, :headers=>{}}]
|
478
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
479
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
480
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
481
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
482
|
+
API call (0.12ms): get ["/path", {:headers=>{}}]
|
483
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
484
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
485
|
+
API call (0.05ms): get ["/path", {:query=>"stuff", :headers=>{}}]
|
486
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
487
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
488
|
+
API call (0.07ms): get ["/path", {:headers=>{}}]
|
489
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
490
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
491
|
+
API call (0.05ms): get ["/api/v1/accounts/1/users", {:query=>{:per_page=>50}, :headers=>{}}]
|
492
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
493
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
494
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
495
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
496
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
497
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
498
|
+
API call (0.03ms): put ["/api/v1/courses/1/assignments/2/submissions/3", {:body=>{}, :headers=>{}}]
|
499
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
500
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
501
|
+
API call (0.04ms): get ["/api/v1/courses/123/assignments", {:query=>{:per_page=>50}, :headers=>{}}]
|
502
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
503
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
504
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
505
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
506
|
+
API call (0.05ms): get ["/api/v1/courses/123/sections", {:query=>{:include=>["students", "avatar_url", "enrollments"], :per_page=>50}, :headers=>{}}]
|
507
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
508
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
509
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
510
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
511
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
512
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
513
|
+
API call (0.03ms): get ["/api/v1/courses/123/students", {:query=>{:per_page=>50}, :headers=>{}}]
|
514
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
515
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
516
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
@@ -174,6 +174,20 @@ describe CanvasOauth::CanvasApi do
|
|
174
174
|
end
|
175
175
|
end
|
176
176
|
|
177
|
+
describe "update_assignment" do
|
178
|
+
it "puts to /api/v1/courses/:course_id/assignments/:id" do
|
179
|
+
expect(CanvasOauth::CanvasApi).to receive(:put).with('/api/v1/courses/123/assignments/345', anything())
|
180
|
+
canvas.update_assignment('123', '345', omit_from_final_grade: true)
|
181
|
+
end
|
182
|
+
|
183
|
+
it "sets the body of the request to the assignment params" do
|
184
|
+
expect(canvas).to receive(:authenticated_put).
|
185
|
+
with(anything(), { body: { assignment: { omit_from_final_grade: true }}})
|
186
|
+
|
187
|
+
canvas.update_assignment('123', '345', omit_from_final_grade: true)
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
177
191
|
describe "grade_assignment" do
|
178
192
|
it "puts to /api/v1/courses/:course_id/assignments/:assignment_id/submissions/:id" do
|
179
193
|
expect(CanvasOauth::CanvasApi).to receive(:put).with('/api/v1/courses/1/assignments/2/submissions/3', anything())
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: canvas_oauth_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Donahue
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-
|
13
|
+
date: 2019-11-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -264,6 +264,8 @@ files:
|
|
264
264
|
- spec/dummy/config/routes.rb
|
265
265
|
- spec/dummy/db/migrate/20160711200737_create_canvas_oauth_authorizations.canvas_oauth.rb
|
266
266
|
- spec/dummy/db/schema.rb
|
267
|
+
- spec/dummy/db/test.sqlite3
|
268
|
+
- spec/dummy/log/test.log
|
267
269
|
- spec/dummy/public/404.html
|
268
270
|
- spec/dummy/public/422.html
|
269
271
|
- spec/dummy/public/500.html
|
@@ -293,7 +295,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
293
295
|
version: '0'
|
294
296
|
requirements: []
|
295
297
|
rubyforge_project:
|
296
|
-
rubygems_version: 2.
|
298
|
+
rubygems_version: 2.6.14.4
|
297
299
|
signing_key:
|
298
300
|
specification_version: 4
|
299
301
|
summary: CanvasOauth is a mountable engine for handling the oauth workflow with canvas
|
@@ -327,7 +329,9 @@ test_files:
|
|
327
329
|
- spec/dummy/public/404.html
|
328
330
|
- spec/dummy/public/robots.txt
|
329
331
|
- spec/dummy/db/schema.rb
|
332
|
+
- spec/dummy/db/test.sqlite3
|
330
333
|
- spec/dummy/db/migrate/20160711200737_create_canvas_oauth_authorizations.canvas_oauth.rb
|
334
|
+
- spec/dummy/log/test.log
|
331
335
|
- spec/dummy/README.rdoc
|
332
336
|
- spec/models/canvas_oauth/authorization_spec.rb
|
333
337
|
- spec/lib/canvas_oauth/canvas_api_extensions_spec.rb
|