bearcat 1.4.5 → 1.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bearcat.gemspec +2 -0
- data/lib/bearcat/client/file_helper.rb +36 -33
- data/lib/bearcat/client/folders.rb +31 -3
- data/lib/bearcat/client/outcome_imports.rb +48 -0
- data/lib/bearcat/client/tabs.rb +15 -0
- data/lib/bearcat/client.rb +13 -80
- data/lib/bearcat/spec_helpers.rb +20 -8
- data/lib/bearcat/version.rb +1 -1
- metadata +164 -162
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29d44295c93c7eb13d7acf83e253608348e36da68fcba2b0d5c20e24cf88865b
|
4
|
+
data.tar.gz: 9606edfa90070ccc346f522d1706cc054a31209170ccc7349486ef1c55a66ee7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86f25e018a97f17dafa030706effa894291c21df682d83c54c40f181dca2202f10aa3fff762ae2bab14c6bf75a50221bd7c325dbf278a1030caa082799fdcf9f
|
7
|
+
data.tar.gz: 4fa13cb93bd6d6c537685f2d8d1894c6411165d1bc17ec9e7b13cc18eb648f67bcde8637c9477a733cbb5ebff047197f14bca74211b136ed28b0103c265d4ad3
|
data/bearcat.gemspec
CHANGED
@@ -26,5 +26,7 @@ Gem::Specification.new do |gem|
|
|
26
26
|
|
27
27
|
gem.add_dependency "activesupport"
|
28
28
|
gem.add_dependency "footrest", ">= 0.2.2"
|
29
|
+
# gem.add_dependency "faraday_middleware"
|
30
|
+
# gem.add_dependency "logging", ">= 2.2.2"
|
29
31
|
gem.add_dependency "paul_walker", "~> 0.1.1"
|
30
32
|
end
|
@@ -1,40 +1,43 @@
|
|
1
|
-
module
|
1
|
+
module Bearcat
|
2
|
+
class Client < Footrest::Client
|
3
|
+
module FileHelper
|
4
|
+
def file_params(file_path)
|
5
|
+
{
|
6
|
+
size: File.open(file_path).size,
|
7
|
+
name: File.basename(file_path)
|
8
|
+
}
|
9
|
+
end
|
2
10
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
name: File.basename(file_path)
|
7
|
-
}
|
8
|
-
end
|
9
|
-
|
10
|
-
def declare_file(api_path, params)
|
11
|
-
post(api_path, params)
|
12
|
-
end
|
11
|
+
def declare_file(api_path, params)
|
12
|
+
post(api_path, params)
|
13
|
+
end
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
15
|
+
def post_file(url, params, file_path)
|
16
|
+
params['Filename'] = File.basename(file_path)
|
17
|
+
params['file'] = Faraday::UploadIO.new(file_path, params['content-type'])
|
18
|
+
response = upload_connection.post(url, params)
|
19
|
+
if [201, 302, 303].include? response.status #success if it is a redirect or 201
|
20
|
+
response.headers['Location']
|
21
|
+
else
|
22
|
+
raise 'FailedFileUpload'
|
23
|
+
end
|
24
|
+
end
|
24
25
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
26
|
+
def confirm_file_upload(url)
|
27
|
+
uri = URI(url)
|
28
|
+
query = uri.query
|
29
|
+
query.blank? ? get(uri.path) : get(uri.path, CGI::parse(query))
|
30
|
+
end
|
30
31
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
32
|
+
def upload_connection
|
33
|
+
Faraday.new do |f|
|
34
|
+
f.options[:open_timeout] = ENV.fetch('FARADAY_OPEN_TIMEOUT', 60).to_i
|
35
|
+
f.options[:timeout] = ENV.fetch('FARADAY_TIMEOUT', 60).to_i
|
36
|
+
f.request :multipart
|
37
|
+
f.request :url_encoded
|
38
|
+
f.adapter :net_http
|
39
|
+
end
|
40
|
+
end
|
38
41
|
end
|
39
42
|
end
|
40
43
|
end
|
@@ -2,7 +2,7 @@ module Bearcat
|
|
2
2
|
class Client < Footrest::Client
|
3
3
|
module Folders
|
4
4
|
|
5
|
-
def
|
5
|
+
def get_course_folder(course, folder, params = {})
|
6
6
|
get("/api/v1/courses/#{course}/folders/#{folder}", params)
|
7
7
|
end
|
8
8
|
|
@@ -10,11 +10,15 @@ module Bearcat
|
|
10
10
|
get("/api/v1/courses/#{course}/folders", params)
|
11
11
|
end
|
12
12
|
|
13
|
+
def resolve_path_for_course(course, full_path = nil, params)
|
14
|
+
get("/api/v1/courses/#{course}/folders/by_path#{full_path == nil ? "" : "/#{full_path}"}", params)
|
15
|
+
end
|
16
|
+
|
13
17
|
def create_course_folder(course, params = {})
|
14
18
|
post("/api/v1/courses/#{course}/folders", params)
|
15
19
|
end
|
16
20
|
|
17
|
-
def get_user_folder(user, folder, params)
|
21
|
+
def get_user_folder(user, folder, params = {})
|
18
22
|
get("/api/v1/users/#{user}/folders/#{folder}", params)
|
19
23
|
end
|
20
24
|
|
@@ -22,11 +26,15 @@ module Bearcat
|
|
22
26
|
get("/api/v1/users/#{user}/folders", params)
|
23
27
|
end
|
24
28
|
|
29
|
+
def resolve_path_for_user(user, full_path = nil, params = {})
|
30
|
+
get("/api/v1/users/#{user}/folders/by_path#{full_path == nil ? "" : "/#{full_path}"}", params)
|
31
|
+
end
|
32
|
+
|
25
33
|
def create_user_folder(user, params = {})
|
26
34
|
post("/api/v1/users/#{user}/folders", params)
|
27
35
|
end
|
28
36
|
|
29
|
-
def get_group_folder(group, folder, params)
|
37
|
+
def get_group_folder(group, folder, params = {})
|
30
38
|
get("/api/v1/groups/#{group}/folders/#{folder}", params)
|
31
39
|
end
|
32
40
|
|
@@ -34,9 +42,29 @@ module Bearcat
|
|
34
42
|
get("/api/v1/groups/#{group}/folders", params)
|
35
43
|
end
|
36
44
|
|
45
|
+
def resolve_path_for_group(group, full_path = nil, params = {})
|
46
|
+
get("/api/v1/groups/#{group}/folders/by_path#{full_path == nil ? "" : "/#{full_path}"}", params)
|
47
|
+
end
|
48
|
+
|
37
49
|
def create_group_folder(group, params = {})
|
38
50
|
post("/api/v1/groups/#{group}/folders", params)
|
39
51
|
end
|
52
|
+
|
53
|
+
def update_folder(folder, params = {})
|
54
|
+
put("/api/v1/folders/#{folder}", params)
|
55
|
+
end
|
56
|
+
|
57
|
+
def delete_folder(folder, params = {})
|
58
|
+
delete("/api/v1/folders/#{folder}", params)
|
59
|
+
end
|
60
|
+
|
61
|
+
def copy_folder(destination_folder, params = {})
|
62
|
+
post("/api/v1/folders/#{destination_folder}/copy_folder", params)
|
63
|
+
end
|
64
|
+
|
65
|
+
def copy_file_to_folder(destination_folder, params = {})
|
66
|
+
post("/api/v1/folders/#{destination_folder}/copy_file", params)
|
67
|
+
end
|
40
68
|
end
|
41
69
|
end
|
42
70
|
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
module Bearcat
|
2
|
+
class Client < Footrest::Client
|
3
|
+
module OutcomeImports
|
4
|
+
|
5
|
+
def import_outcomes(file_path, params={})
|
6
|
+
params = params.with_indifferent_access
|
7
|
+
params['attachment'] = Faraday::UploadIO.new(file_path, 'text/csv')
|
8
|
+
url = "api/v1/#{outcome_import_context_slug(params)}"
|
9
|
+
url += "group/#{params[:group]}/" if params[:group].present?
|
10
|
+
params.delete(:group)
|
11
|
+
post(url, params)
|
12
|
+
end
|
13
|
+
|
14
|
+
def outcome_import_status(id, params={})
|
15
|
+
params = params.with_indifferent_access
|
16
|
+
get("api/v1/#{outcome_import_context_slug(params)}#{id}", params)
|
17
|
+
end
|
18
|
+
|
19
|
+
def outcome_import_created_group_ids(id, params={})
|
20
|
+
params = params.with_indifferent_access
|
21
|
+
get("api/v1/#{outcome_import_context_slug(params)}#{id}/created_group_ids", params)
|
22
|
+
end
|
23
|
+
|
24
|
+
protected
|
25
|
+
|
26
|
+
def outcome_import_context_slug(params)
|
27
|
+
context_hash = params.select { |k, _| k == "account" || k == "course" }
|
28
|
+
|
29
|
+
if context_hash.keys.count > 1
|
30
|
+
raise ArgumentError, "cannot have account and course in params"
|
31
|
+
elsif context_hash.empty?
|
32
|
+
"accounts/self/outcome_imports/"
|
33
|
+
else
|
34
|
+
context_hash_key = context_hash.keys.first
|
35
|
+
case context_hash_key
|
36
|
+
when 'account'
|
37
|
+
params.delete(:account)
|
38
|
+
"accounts/#{context_hash[context_hash_key]}/outcome_imports/"
|
39
|
+
when 'course'
|
40
|
+
params.delete(:course)
|
41
|
+
"courses/#{context_hash[context_hash_key]}/outcome_imports/"
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Bearcat
|
2
|
+
class Client < Footrest::Client
|
3
|
+
module Tabs
|
4
|
+
|
5
|
+
def get_tabs(course, params={})
|
6
|
+
get("/api/v1/courses/#{course}/tabs", params)
|
7
|
+
end
|
8
|
+
|
9
|
+
def update_tab(id, course, params={})
|
10
|
+
put("/api/v1/courses/#{course}/tabs/#{id}", params)
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/bearcat/client.rb
CHANGED
@@ -1,91 +1,24 @@
|
|
1
1
|
require 'active_support/core_ext/hash'
|
2
|
+
require 'faraday_middleware'
|
2
3
|
require 'footrest/client'
|
3
4
|
require 'paul_walker'
|
4
5
|
|
5
6
|
module Bearcat
|
6
7
|
class Client < Footrest::Client
|
7
8
|
require 'bearcat/api_array'
|
8
|
-
require 'bearcat/client/file_helper'
|
9
|
-
require 'bearcat/client/assignments'
|
10
|
-
require 'bearcat/client/blueprint_courses'
|
11
|
-
require 'bearcat/client/courses'
|
12
|
-
require 'bearcat/client/enrollments'
|
13
|
-
require 'bearcat/client/outcome_groups'
|
14
|
-
require 'bearcat/client/outcomes'
|
15
|
-
require 'bearcat/client/sections'
|
16
|
-
require 'bearcat/client/o_auth2'
|
17
|
-
require 'bearcat/client/groups'
|
18
|
-
require 'bearcat/client/group_categories'
|
19
|
-
require 'bearcat/client/group_memberships'
|
20
|
-
require 'bearcat/client/conferences'
|
21
|
-
require 'bearcat/client/users'
|
22
|
-
require 'bearcat/client/reports'
|
23
|
-
require 'bearcat/client/accounts'
|
24
|
-
require 'bearcat/client/submissions'
|
25
|
-
require 'bearcat/client/conversations'
|
26
|
-
require 'bearcat/client/modules'
|
27
|
-
require 'bearcat/client/canvas_files'
|
28
|
-
require 'bearcat/client/calendar_events'
|
29
|
-
require 'bearcat/client/discussions'
|
30
|
-
require 'bearcat/client/search'
|
31
|
-
require 'bearcat/client/quizzes'
|
32
|
-
require 'bearcat/client/assignment_groups'
|
33
|
-
require 'bearcat/client/pages'
|
34
|
-
require 'bearcat/client/files'
|
35
|
-
require 'bearcat/client/folders'
|
36
|
-
require 'bearcat/client/graph_ql'
|
37
|
-
require 'bearcat/client/analytics'
|
38
|
-
require 'bearcat/client/module_items'
|
39
|
-
require 'bearcat/client/content_migrations'
|
40
|
-
require 'bearcat/client/content_exports'
|
41
|
-
require 'bearcat/client/custom_gradebook_columns'
|
42
|
-
require 'bearcat/client/external_tools'
|
43
|
-
require 'bearcat/client/roles'
|
44
|
-
require 'bearcat/client/rubric'
|
45
|
-
require 'bearcat/client/rubric_assessment'
|
46
|
-
require 'bearcat/client/rubric_association'
|
47
|
-
require 'bearcat/client/progresses'
|
48
9
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
include GroupMemberships
|
62
|
-
include Conferences
|
63
|
-
include Users
|
64
|
-
include Reports
|
65
|
-
include Submissions
|
66
|
-
include Conversations
|
67
|
-
include Modules
|
68
|
-
include CanvasFiles
|
69
|
-
include CalendarEvents
|
70
|
-
include Discussions
|
71
|
-
include FileHelper
|
72
|
-
include Search
|
73
|
-
include Quizzes
|
74
|
-
include AssignmentGroups
|
75
|
-
include Pages
|
76
|
-
include Files
|
77
|
-
include Folders
|
78
|
-
include GraphQL
|
79
|
-
include ModuleItems
|
80
|
-
include ContentMigrations
|
81
|
-
include ContentExports
|
82
|
-
include CustomGradebookColumns
|
83
|
-
include ExternalTools
|
84
|
-
include Roles
|
85
|
-
include Rubric
|
86
|
-
include RubricAssessment
|
87
|
-
include RubricAssociation
|
88
|
-
include Progresses
|
10
|
+
Dir[File.join(__dir__, 'client', '*.rb')].each do |mod|
|
11
|
+
mname = File.basename(mod, '.*').camelize
|
12
|
+
mname = 'GraphQL' if mname == 'GraphQl'
|
13
|
+
require mod
|
14
|
+
include "Bearcat::Client::#{mname}".constantize
|
15
|
+
end
|
16
|
+
|
17
|
+
def set_connection(config)
|
18
|
+
super
|
19
|
+
# connection.builder.delete(Faraday::Request::Multipart)
|
20
|
+
# connection.builder.insert(0, FaradayMiddleware::EncodeJson)
|
21
|
+
end
|
89
22
|
|
90
23
|
# Override Footrest request for ApiArray support
|
91
24
|
def request(method, &block)
|
data/lib/bearcat/spec_helpers.rb
CHANGED
@@ -7,13 +7,15 @@ require 'bearcat'
|
|
7
7
|
# - `config.include Bearcat::SpecHelpers`
|
8
8
|
# This helper requires `gem 'method_source'` in your test group
|
9
9
|
module Bearcat::SpecHelpers
|
10
|
+
extend ActiveSupport::Concern
|
11
|
+
|
10
12
|
SOURCE_REGEX = /(?<method>get|post|delete|put)\((?<quote>\\?('|"))(?<url>.*)\k<quote>/
|
11
13
|
|
12
14
|
# Helper method to Stub Bearcat requests.
|
13
15
|
# Automagically parses the Bearcat method source to determine the correct URL to stub.
|
14
16
|
# Accepts optional keyword parameters to interpolate specific values into the URL.
|
15
17
|
# Returns a mostly-normal Webmock stub (:to_return has been overridden to allow :body to be set to a Hash)
|
16
|
-
def stub_bearcat(endpoint, prefix: nil, **kwargs)
|
18
|
+
def stub_bearcat(endpoint, prefix: nil, method: :auto, **kwargs)
|
17
19
|
url = case endpoint
|
18
20
|
when Symbol
|
19
21
|
ruby_method = Bearcat::Client.instance_method(endpoint)
|
@@ -43,16 +45,26 @@ module Bearcat::SpecHelpers
|
|
43
45
|
end
|
44
46
|
|
45
47
|
url = Regexp.escape(resolve_prefix(prefix)) + url
|
46
|
-
stub = stub_request(match[:method].to_sym, Regexp.new(url))
|
48
|
+
stub = stub_request(method == :auto ? (match ? match[:method].to_sym : :get) : method, Regexp.new(url))
|
47
49
|
|
48
50
|
# Override the to_return method to accept a Hash as body:
|
49
|
-
stub.define_singleton_method(:to_return, ->(*resps) {
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
51
|
+
stub.define_singleton_method(:to_return, ->(*resps, &blk) {
|
52
|
+
if blk
|
53
|
+
super do |*args|
|
54
|
+
resp = blk.call(*args)
|
55
|
+
resp[:headers] ||= {}
|
56
|
+
resp[:headers]["Content-Type"] ||= "application/json"
|
57
|
+
resp[:body] = resp[:body].to_json
|
58
|
+
resp
|
59
|
+
end
|
60
|
+
else
|
61
|
+
resps.map do |resp|
|
62
|
+
resp[:headers] ||= {}
|
63
|
+
resp[:headers]["Content-Type"] ||= "application/json"
|
64
|
+
resp[:body] = resp[:body].to_json
|
65
|
+
end
|
66
|
+
super(*resps)
|
54
67
|
end
|
55
|
-
super(*resps)
|
56
68
|
})
|
57
69
|
|
58
70
|
stub
|
data/lib/bearcat/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bearcat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Mills, Jake Sorce
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -162,6 +162,7 @@ files:
|
|
162
162
|
- lib/bearcat/client/modules.rb
|
163
163
|
- lib/bearcat/client/o_auth2.rb
|
164
164
|
- lib/bearcat/client/outcome_groups.rb
|
165
|
+
- lib/bearcat/client/outcome_imports.rb
|
165
166
|
- lib/bearcat/client/outcomes.rb
|
166
167
|
- lib/bearcat/client/pages.rb
|
167
168
|
- lib/bearcat/client/progresses.rb
|
@@ -174,6 +175,7 @@ files:
|
|
174
175
|
- lib/bearcat/client/search.rb
|
175
176
|
- lib/bearcat/client/sections.rb
|
176
177
|
- lib/bearcat/client/submissions.rb
|
178
|
+
- lib/bearcat/client/tabs.rb
|
177
179
|
- lib/bearcat/client/users.rb
|
178
180
|
- lib/bearcat/spec_helpers.rb
|
179
181
|
- lib/bearcat/version.rb
|
@@ -363,10 +365,10 @@ files:
|
|
363
365
|
- spec/fixtures/user_page_views.json
|
364
366
|
- spec/fixtures/user_profile.json
|
365
367
|
- spec/helper.rb
|
366
|
-
homepage:
|
368
|
+
homepage:
|
367
369
|
licenses: []
|
368
370
|
metadata: {}
|
369
|
-
post_install_message:
|
371
|
+
post_install_message:
|
370
372
|
rdoc_options: []
|
371
373
|
require_paths:
|
372
374
|
- lib
|
@@ -381,194 +383,194 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
381
383
|
- !ruby/object:Gem::Version
|
382
384
|
version: '0'
|
383
385
|
requirements: []
|
384
|
-
rubygems_version: 3.
|
385
|
-
signing_key:
|
386
|
+
rubygems_version: 3.0.3
|
387
|
+
signing_key:
|
386
388
|
specification_version: 4
|
387
389
|
summary: Canvas API
|
388
390
|
test_files:
|
389
391
|
- spec/bearcat_spec.rb
|
392
|
+
- spec/helper.rb
|
390
393
|
- spec/bearcat/client_spec.rb
|
391
|
-
- spec/bearcat/group_memberships_spec.rb
|
392
394
|
- spec/bearcat/api_array_spec.rb
|
393
|
-
- spec/bearcat/client/
|
394
|
-
- spec/bearcat/client/
|
395
|
-
- spec/bearcat/client/
|
396
|
-
- spec/bearcat/client/
|
395
|
+
- spec/bearcat/client/external_tools_spec.rb
|
396
|
+
- spec/bearcat/client/groups_spec.rb
|
397
|
+
- spec/bearcat/client/outcomes_spec.rb
|
398
|
+
- spec/bearcat/client/submissions_spec.rb
|
399
|
+
- spec/bearcat/client/sections_spec.rb
|
400
|
+
- spec/bearcat/client/blueprint_courses_spec.rb
|
397
401
|
- spec/bearcat/client/outcome_groups_spec.rb
|
398
|
-
- spec/bearcat/client/
|
399
|
-
- spec/bearcat/client/
|
400
|
-
- spec/bearcat/client/rubric_association_spec.rb
|
401
|
-
- spec/bearcat/client/o_auth2_spec.rb
|
402
|
+
- spec/bearcat/client/quizzes_spec.rb
|
403
|
+
- spec/bearcat/client/conferences_spec.rb
|
402
404
|
- spec/bearcat/client/search_spec.rb
|
403
|
-
- spec/bearcat/client/
|
404
|
-
- spec/bearcat/client/pages_spec.rb
|
405
|
-
- spec/bearcat/client/modules_spec.rb
|
406
|
-
- spec/bearcat/client/discussions_spec.rb
|
407
|
-
- spec/bearcat/client/files_spec.rb
|
408
|
-
- spec/bearcat/client/roles_spec.rb
|
409
|
-
- spec/bearcat/client/graph_ql_spec.rb
|
405
|
+
- spec/bearcat/client/reports_spec.rb
|
410
406
|
- spec/bearcat/client/group_categories_spec.rb
|
411
|
-
- spec/bearcat/client/rubric_assessment_spec.rb
|
412
|
-
- spec/bearcat/client/blueprint_courses_spec.rb
|
413
|
-
- spec/bearcat/client/submissions_spec.rb
|
414
|
-
- spec/bearcat/client/module_items_spec.rb
|
415
407
|
- spec/bearcat/client/content_migrations_spec.rb
|
416
|
-
- spec/bearcat/client/
|
417
|
-
- spec/bearcat/client/
|
408
|
+
- spec/bearcat/client/assignments_spec.rb
|
409
|
+
- spec/bearcat/client/group_membership_spec.rb
|
418
410
|
- spec/bearcat/client/analytics_spec.rb
|
419
|
-
- spec/bearcat/client/
|
420
|
-
- spec/bearcat/client/
|
411
|
+
- spec/bearcat/client/module_items_spec.rb
|
412
|
+
- spec/bearcat/client/modules_spec.rb
|
413
|
+
- spec/bearcat/client/rubric_association_spec.rb
|
414
|
+
- spec/bearcat/client/roles_spec.rb
|
415
|
+
- spec/bearcat/client/rubric_assessment_spec.rb
|
416
|
+
- spec/bearcat/client/folders_spec.rb
|
421
417
|
- spec/bearcat/client/rubric_spec.rb
|
418
|
+
- spec/bearcat/client/files_spec.rb
|
422
419
|
- spec/bearcat/client/accounts_spec.rb
|
423
|
-
- spec/bearcat/client/
|
420
|
+
- spec/bearcat/client/canvas_files_spec.rb
|
421
|
+
- spec/bearcat/client/pages_spec.rb
|
422
|
+
- spec/bearcat/client/content_exports_spec.rb
|
423
|
+
- spec/bearcat/client/graph_ql_spec.rb
|
424
|
+
- spec/bearcat/client/o_auth2_spec.rb
|
424
425
|
- spec/bearcat/client/courses_spec.rb
|
425
|
-
- spec/bearcat/client/
|
426
|
+
- spec/bearcat/client/custom_gradebook_columns_spec.rb
|
427
|
+
- spec/bearcat/client/enrollments_spec.rb
|
428
|
+
- spec/bearcat/client/conversations_spec.rb
|
426
429
|
- spec/bearcat/client/users_spec.rb
|
427
|
-
- spec/bearcat/client/
|
428
|
-
- spec/bearcat/client/
|
429
|
-
- spec/bearcat/client/
|
430
|
-
- spec/bearcat/
|
431
|
-
- spec/
|
432
|
-
- spec/fixtures/
|
433
|
-
- spec/fixtures/add_custom_user_data.json
|
430
|
+
- spec/bearcat/client/calendar_events_spec.rb
|
431
|
+
- spec/bearcat/client/assignment_groups_spec.rb
|
432
|
+
- spec/bearcat/client/discussions_spec.rb
|
433
|
+
- spec/bearcat/group_memberships_spec.rb
|
434
|
+
- spec/fixtures/add_user.json
|
435
|
+
- spec/fixtures/calendar_event.json
|
434
436
|
- spec/fixtures/assignment_group.json
|
435
|
-
- spec/fixtures/
|
436
|
-
- spec/fixtures/
|
437
|
-
- spec/fixtures/
|
438
|
-
- spec/fixtures/
|
439
|
-
- spec/fixtures/
|
440
|
-
- spec/fixtures/course_files.json
|
441
|
-
- spec/fixtures/assignment_section_override.json
|
442
|
-
- spec/fixtures/delete_course.json
|
437
|
+
- spec/fixtures/outcome_result.json
|
438
|
+
- spec/fixtures/pages.json
|
439
|
+
- spec/fixtures/course_grading_standards.json
|
440
|
+
- spec/fixtures/user_avatars.json
|
441
|
+
- spec/fixtures/account_user.json
|
443
442
|
- spec/fixtures/course_folder.json
|
444
|
-
- spec/fixtures/
|
445
|
-
- spec/fixtures/
|
446
|
-
- spec/fixtures/course_sections.json
|
447
|
-
- spec/fixtures/merge_user.json
|
448
|
-
- spec/fixtures/bearcat.jpg
|
449
|
-
- spec/fixtures/create_group_discussion.json
|
450
|
-
- spec/fixtures/course_enrollments.json
|
451
|
-
- spec/fixtures/account_users.json
|
452
|
-
- spec/fixtures/no_custom_data.json
|
453
|
-
- spec/fixtures/communication_channels.json
|
443
|
+
- spec/fixtures/rubric_association.json
|
444
|
+
- spec/fixtures/outcome_group_import.json
|
454
445
|
- spec/fixtures/edited_group_category.json
|
455
|
-
- spec/fixtures/
|
456
|
-
- spec/fixtures/
|
457
|
-
- spec/fixtures/
|
458
|
-
- spec/fixtures/
|
459
|
-
- spec/fixtures/
|
460
|
-
- spec/fixtures/
|
461
|
-
- spec/fixtures/
|
462
|
-
- spec/fixtures/
|
463
|
-
- spec/fixtures/content_migration_files/content_migration.json
|
464
|
-
- spec/fixtures/content_migration_files/response.json
|
465
|
-
- spec/fixtures/created_assignment.json
|
466
|
-
- spec/fixtures/course_conferences.json
|
467
|
-
- spec/fixtures/create_outcome_in_group.json
|
468
|
-
- spec/fixtures/delete_custom_data_scope.json
|
446
|
+
- spec/fixtures/course_copy.json
|
447
|
+
- spec/fixtures/single_account.json
|
448
|
+
- spec/fixtures/module.json
|
449
|
+
- spec/fixtures/blueprint_update_assocations_success.json
|
450
|
+
- spec/fixtures/account_admin_create.json
|
451
|
+
- spec/fixtures/cc.imscc
|
452
|
+
- spec/fixtures/discussion_topics.json
|
453
|
+
- spec/fixtures/account_sub_accounts.json
|
469
454
|
- spec/fixtures/created_group_category.json
|
470
|
-
- spec/fixtures/created_course.json
|
471
|
-
- spec/fixtures/assignment_groups.json
|
472
|
-
- spec/fixtures/section.json
|
473
|
-
- spec/fixtures/create_section.json
|
474
455
|
- spec/fixtures/user_page_views.json
|
475
|
-
- spec/fixtures/
|
476
|
-
- spec/fixtures/
|
477
|
-
- spec/fixtures/
|
478
|
-
- spec/fixtures/
|
479
|
-
- spec/fixtures/
|
480
|
-
- spec/fixtures/course.json
|
481
|
-
- spec/fixtures/rubric_association.json
|
482
|
-
- spec/fixtures/external_tools.json
|
456
|
+
- spec/fixtures/delete_custom_data_scope.json
|
457
|
+
- spec/fixtures/file.csv
|
458
|
+
- spec/fixtures/dashboard.json
|
459
|
+
- spec/fixtures/submissions/submission.json
|
460
|
+
- spec/fixtures/create_course_discussion.json
|
483
461
|
- spec/fixtures/conversation.json
|
484
|
-
- spec/fixtures/
|
485
|
-
- spec/fixtures/
|
486
|
-
- spec/fixtures/
|
487
|
-
- spec/fixtures/
|
488
|
-
- spec/fixtures/
|
489
|
-
- spec/fixtures/
|
490
|
-
- spec/fixtures/
|
491
|
-
- spec/fixtures/
|
492
|
-
- spec/fixtures/
|
462
|
+
- spec/fixtures/communication_channels.json
|
463
|
+
- spec/fixtures/account_users.json
|
464
|
+
- spec/fixtures/accounts.json
|
465
|
+
- spec/fixtures/deleted_group.json
|
466
|
+
- spec/fixtures/course_files.json
|
467
|
+
- spec/fixtures/group_membership.json
|
468
|
+
- spec/fixtures/content_migration_files/upload_success.json
|
469
|
+
- spec/fixtures/content_migration_files/response.json
|
470
|
+
- spec/fixtures/content_migration_files/content_migration.json
|
471
|
+
- spec/fixtures/outcome_subgroup.json
|
493
472
|
- spec/fixtures/gradebook_history.json
|
494
|
-
- spec/fixtures/
|
473
|
+
- spec/fixtures/custom_gradebook_columns/custom_gradebook_columns.json
|
474
|
+
- spec/fixtures/custom_gradebook_columns/gradebook_column_progress.json
|
475
|
+
- spec/fixtures/custom_gradebook_columns/column_data.json
|
476
|
+
- spec/fixtures/custom_gradebook_columns/custom_gradebook_column.json
|
495
477
|
- spec/fixtures/update_section.json
|
496
|
-
- spec/fixtures/conclude_enrollment.json
|
497
|
-
- spec/fixtures/start_report.json
|
498
|
-
- spec/fixtures/custom_data.json
|
499
|
-
- spec/fixtures/rubric.json
|
500
|
-
- spec/fixtures/account_role.json
|
501
|
-
- spec/fixtures/update_outcome_group.json
|
502
|
-
- spec/fixtures/module_item.json
|
503
|
-
- spec/fixtures/report_status.json
|
504
|
-
- spec/fixtures/enroll_student.json
|
505
|
-
- spec/fixtures/group_category.json
|
506
|
-
- spec/fixtures/delete_group_category.json
|
507
|
-
- spec/fixtures/dashboard.json
|
508
|
-
- spec/fixtures/edited_group.json
|
509
|
-
- spec/fixtures/department_level_participation.json
|
510
|
-
- spec/fixtures/outcome_result.json
|
511
|
-
- spec/fixtures/file.csv
|
512
|
-
- spec/fixtures/course_copy.json
|
513
478
|
- spec/fixtures/user_logins.json
|
514
|
-
- spec/fixtures/
|
515
|
-
- spec/fixtures/
|
516
|
-
- spec/fixtures/
|
517
|
-
- spec/fixtures/cc.imscc
|
518
|
-
- spec/fixtures/user_profile.json
|
519
|
-
- spec/fixtures/create_course_discussion.json
|
520
|
-
- spec/fixtures/custom_food_data.json
|
521
|
-
- spec/fixtures/created_module.json
|
479
|
+
- spec/fixtures/paged_body.json
|
480
|
+
- spec/fixtures/outcomes.json
|
481
|
+
- spec/fixtures/discussion_entry_replies.json
|
522
482
|
- spec/fixtures/course_groups.json
|
523
|
-
- spec/fixtures/
|
524
|
-
- spec/fixtures/
|
525
|
-
- spec/fixtures/
|
526
|
-
- spec/fixtures/
|
527
|
-
- spec/fixtures/
|
483
|
+
- spec/fixtures/account_reports_start_result.json
|
484
|
+
- spec/fixtures/no_custom_data.json
|
485
|
+
- spec/fixtures/bearcat.jpg
|
486
|
+
- spec/fixtures/report_list.json
|
487
|
+
- spec/fixtures/graph_ql_scores.json
|
528
488
|
- spec/fixtures/link_unlink_outcome.json
|
529
|
-
- spec/fixtures/
|
489
|
+
- spec/fixtures/group_category_groups.json
|
490
|
+
- spec/fixtures/ok.json
|
491
|
+
- spec/fixtures/add_custom_user_data.json
|
492
|
+
- spec/fixtures/report_status.json
|
493
|
+
- spec/fixtures/account_role.json
|
494
|
+
- spec/fixtures/account_roles.json
|
495
|
+
- spec/fixtures/user_enrollments.json
|
496
|
+
- spec/fixtures/course_enrollments.json
|
530
497
|
- spec/fixtures/module_items.json
|
531
|
-
- spec/fixtures/
|
532
|
-
- spec/fixtures/
|
533
|
-
- spec/fixtures/
|
534
|
-
- spec/fixtures/
|
535
|
-
- spec/fixtures/
|
536
|
-
- spec/fixtures/
|
537
|
-
- spec/fixtures/
|
538
|
-
- spec/fixtures/
|
539
|
-
- spec/fixtures/deleted_conversation.json
|
540
|
-
- spec/fixtures/user_details.json
|
541
|
-
- spec/fixtures/outcome_group_import.json
|
542
|
-
- spec/fixtures/modules.json
|
543
|
-
- spec/fixtures/group.json
|
544
|
-
- spec/fixtures/outcome_subgroup.json
|
498
|
+
- spec/fixtures/department_level_participation.json
|
499
|
+
- spec/fixtures/group_category.json
|
500
|
+
- spec/fixtures/section_enrollments.json
|
501
|
+
- spec/fixtures/create_group_discussion.json
|
502
|
+
- spec/fixtures/user_profile.json
|
503
|
+
- spec/fixtures/external_tools.json
|
504
|
+
- spec/fixtures/create_section.json
|
505
|
+
- spec/fixtures/assignment_groups.json
|
545
506
|
- spec/fixtures/outcome_subgroups.json
|
546
|
-
- spec/fixtures/
|
547
|
-
- spec/fixtures/
|
548
|
-
- spec/fixtures/accounts.json
|
507
|
+
- spec/fixtures/updated_course.json
|
508
|
+
- spec/fixtures/account_sis_imports.json
|
549
509
|
- spec/fixtures/account_admins.json
|
550
|
-
- spec/fixtures/
|
551
|
-
- spec/fixtures/
|
552
|
-
- spec/fixtures/
|
553
|
-
- spec/fixtures/quizzes/course_quiz_questions.json
|
554
|
-
- spec/fixtures/quizzes/quiz_assignment_override.json
|
555
|
-
- spec/fixtures/quizzes/quiz_extension.json
|
556
|
-
- spec/fixtures/quizzes/course_quiz.json
|
510
|
+
- spec/fixtures/department_level_statistics.json
|
511
|
+
- spec/fixtures/course_folders.json
|
512
|
+
- spec/fixtures/account_admin_delete.json
|
557
513
|
- spec/fixtures/content_export.json
|
558
|
-
- spec/fixtures/
|
559
|
-
- spec/fixtures/
|
514
|
+
- spec/fixtures/enroll_student.json
|
515
|
+
- spec/fixtures/external_tool.json
|
560
516
|
- spec/fixtures/discussion_entries.json
|
561
|
-
- spec/fixtures/
|
562
|
-
- spec/fixtures/
|
517
|
+
- spec/fixtures/assignment.json
|
518
|
+
- spec/fixtures/report_history.json
|
519
|
+
- spec/fixtures/edited_group.json
|
520
|
+
- spec/fixtures/account_reports_index.json
|
521
|
+
- spec/fixtures/created_module.json
|
522
|
+
- spec/fixtures/account_reports.json
|
523
|
+
- spec/fixtures/quizzes/quiz_extension.json
|
524
|
+
- spec/fixtures/quizzes/quiz_assignment_override.json
|
525
|
+
- spec/fixtures/quizzes/course_quiz.json
|
526
|
+
- spec/fixtures/quizzes/course_quizzes.json
|
527
|
+
- spec/fixtures/quizzes/course_quiz_questions.json
|
528
|
+
- spec/fixtures/course.json
|
529
|
+
- spec/fixtures/search_find_recipients.json
|
530
|
+
- spec/fixtures/reactivate_enrollment.json
|
531
|
+
- spec/fixtures/enrollment_terms.json
|
563
532
|
- spec/fixtures/created_group_membership.json
|
564
|
-
- spec/fixtures/
|
565
|
-
- spec/fixtures/
|
566
|
-
- spec/fixtures/
|
567
|
-
- spec/fixtures/
|
568
|
-
- spec/fixtures/
|
569
|
-
- spec/fixtures/
|
570
|
-
- spec/fixtures/
|
571
|
-
- spec/fixtures/
|
533
|
+
- spec/fixtures/rubric.json
|
534
|
+
- spec/fixtures/merge_user.json
|
535
|
+
- spec/fixtures/section.json
|
536
|
+
- spec/fixtures/blueprint_migration.json
|
537
|
+
- spec/fixtures/blueprint_subscriptions.json
|
538
|
+
- spec/fixtures/create_outcome_in_group.json
|
539
|
+
- spec/fixtures/assignments.json
|
540
|
+
- spec/fixtures/group_categories.json
|
541
|
+
- spec/fixtures/blueprint_template.json
|
542
|
+
- spec/fixtures/delete_section.json
|
543
|
+
- spec/fixtures/update_outcome_group.json
|
572
544
|
- spec/fixtures/group_conferences.json
|
545
|
+
- spec/fixtures/created_group.json
|
546
|
+
- spec/fixtures/outcome_groups.json
|
547
|
+
- spec/fixtures/progress.json
|
548
|
+
- spec/fixtures/delete_course.json
|
549
|
+
- spec/fixtures/canvas_files/upload_success.json
|
550
|
+
- spec/fixtures/canvas_files/declare_file.json
|
551
|
+
- spec/fixtures/account_grading_standards.json
|
552
|
+
- spec/fixtures/course_sections.json
|
553
|
+
- spec/fixtures/course_conferences.json
|
554
|
+
- spec/fixtures/user_details.json
|
555
|
+
- spec/fixtures/module_item_sequence.json
|
556
|
+
- spec/fixtures/custom_food_data.json
|
557
|
+
- spec/fixtures/update_outcome.json
|
573
558
|
- spec/fixtures/discussion_topic.json
|
574
|
-
- spec/fixtures/
|
559
|
+
- spec/fixtures/group.json
|
560
|
+
- spec/fixtures/assignment_section_override.json
|
561
|
+
- spec/fixtures/account_reports_result_success.json
|
562
|
+
- spec/fixtures/rubric_assessment.json
|
563
|
+
- spec/fixtures/calendar_events.json
|
564
|
+
- spec/fixtures/deleted_conversation.json
|
565
|
+
- spec/fixtures/created_assignment.json
|
566
|
+
- spec/fixtures/start_report.json
|
567
|
+
- spec/fixtures/conclude_enrollment.json
|
568
|
+
- spec/fixtures/custom_data.json
|
569
|
+
- spec/fixtures/created_course.json
|
570
|
+
- spec/fixtures/account_groups.json
|
571
|
+
- spec/fixtures/modules.json
|
572
|
+
- spec/fixtures/course_students.json
|
573
|
+
- spec/fixtures/access_token.json
|
574
|
+
- spec/fixtures/delete_group_category.json
|
575
|
+
- spec/fixtures/module_item.json
|
576
|
+
- spec/fixtures/account_courses.json
|