@windward/integrations 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ExternalIntegration/Driver/Lti1p1/ManageConsumer.vue +13 -0
- package/components/ExternalIntegration/Driver/Lti1p1/ManageConsumers.vue +13 -0
- package/components/ExternalIntegration/Driver/Lti1p1/ManageProvider.vue +374 -0
- package/components/ExternalIntegration/Driver/Lti1p1/ManageProviders.vue +220 -0
- package/components/ExternalIntegration/Driver/ManageLti1p1.vue +45 -0
- package/components/Integration/Driver/Disabled.vue +29 -0
- package/components/SecretField.vue +50 -0
- package/config/integration.config.js +11 -0
- package/helpers/Driver/BlackboardUltra.ts +15 -0
- package/helpers/Driver/Canvas.ts +12 -0
- package/helpers/Driver/Desire2Learn.ts +15 -0
- package/helpers/Driver/GoogleClassroom.ts +15 -0
- package/helpers/Driver/Moodle.ts +12 -0
- package/i18n/en-US/components/external_integration/driver/lti1p1.ts +26 -0
- package/i18n/en-US/components/external_integration/index.ts +5 -0
- package/i18n/en-US/components/index.ts +2 -0
- package/i18n/en-US/components/integration/driver.ts +19 -1
- package/i18n/en-US/pages/course/external_integration/index.ts +6 -0
- package/i18n/en-US/pages/course/index.ts +5 -0
- package/i18n/en-US/pages/index.ts +4 -0
- package/i18n/en-US/pages/login/index.ts +5 -0
- package/i18n/en-US/pages/login/lti.ts +21 -0
- package/i18n/en-US/shared/permission.ts +4 -0
- package/models/ExternalIntegration/Lti1p1Consumer.ts +13 -0
- package/models/ExternalIntegration/Lti1p1Provider.ts +13 -0
- package/package.json +1 -1
- package/pages/admin/vendors.vue +1 -1
- package/pages/course/externalIntegration/index.vue +72 -0
- package/pages/login/lti/error.vue +98 -0
- package/plugin.js +28 -0
- package/test/Components/ExternalIntegration/Lti1p1/ManageConsumer.spec.js +19 -0
- package/test/Components/ExternalIntegration/Lti1p1/ManageConsumers.spec.js +19 -0
- package/test/Components/ExternalIntegration/Lti1p1/ManageProvider.spec.js +19 -0
- package/test/Components/ExternalIntegration/Lti1p1/ManageProviders.spec.js +19 -0
- package/test/Components/ExternalIntegration/ManageLti1p1.spec.js +19 -0
- package/test/Pages/Course/ExternalIntegration/index.spec.js +19 -0
- package/test/Pages/Login/Lti/error.spec.js +19 -0
- package/test/__mocks__/modelMock.js +4 -1
- package/test/mocks.js +1 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { shallowMount } from '@vue/test-utils'
|
|
2
|
+
|
|
3
|
+
import Vue from 'vue'
|
|
4
|
+
import Vuetify from 'vuetify'
|
|
5
|
+
import { defaultMocks } from '@/test/mocks'
|
|
6
|
+
|
|
7
|
+
import ManageProviders from '@/components/ExternalIntegration/Driver/Lti1p1/ManageProviders.vue'
|
|
8
|
+
|
|
9
|
+
Vue.use(Vuetify)
|
|
10
|
+
|
|
11
|
+
describe('ManageProviders', () => {
|
|
12
|
+
test('ManageProviders is a Vue instance', () => {
|
|
13
|
+
const wrapper = shallowMount(ManageProviders, {
|
|
14
|
+
vuetify: new Vuetify(),
|
|
15
|
+
mocks: defaultMocks,
|
|
16
|
+
})
|
|
17
|
+
expect(wrapper.vm).toBeTruthy()
|
|
18
|
+
})
|
|
19
|
+
})
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { shallowMount } from '@vue/test-utils'
|
|
2
|
+
|
|
3
|
+
import Vue from 'vue'
|
|
4
|
+
import Vuetify from 'vuetify'
|
|
5
|
+
import { defaultMocks } from '@/test/mocks'
|
|
6
|
+
|
|
7
|
+
import ManageLti1p1 from '@/components/ExternalIntegration/Driver/ManageLti1p1.vue'
|
|
8
|
+
|
|
9
|
+
Vue.use(Vuetify)
|
|
10
|
+
|
|
11
|
+
describe('ManageLti1p1', () => {
|
|
12
|
+
test('ManageLti1p1 is a Vue instance', () => {
|
|
13
|
+
const wrapper = shallowMount(ManageLti1p1, {
|
|
14
|
+
vuetify: new Vuetify(),
|
|
15
|
+
mocks: defaultMocks,
|
|
16
|
+
})
|
|
17
|
+
expect(wrapper.vm).toBeTruthy()
|
|
18
|
+
})
|
|
19
|
+
})
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { shallowMount } from '@vue/test-utils'
|
|
2
|
+
|
|
3
|
+
import Vue from 'vue'
|
|
4
|
+
import Vuetify from 'vuetify'
|
|
5
|
+
import { defaultMocks } from '@/test/mocks'
|
|
6
|
+
|
|
7
|
+
import ExternalIntegrationIndexPage from '@/pages/course/externalIntegration/index.vue'
|
|
8
|
+
|
|
9
|
+
Vue.use(Vuetify)
|
|
10
|
+
|
|
11
|
+
describe('ExternalIntegrationIndexPage', () => {
|
|
12
|
+
test('ExternalIntegrationIndexPage is a Vue instance', () => {
|
|
13
|
+
const wrapper = shallowMount(ExternalIntegrationIndexPage, {
|
|
14
|
+
vuetify: new Vuetify(),
|
|
15
|
+
mocks: defaultMocks,
|
|
16
|
+
})
|
|
17
|
+
expect(wrapper.vm).toBeTruthy()
|
|
18
|
+
})
|
|
19
|
+
})
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { shallowMount } from '@vue/test-utils'
|
|
2
|
+
|
|
3
|
+
import Vue from 'vue'
|
|
4
|
+
import Vuetify from 'vuetify'
|
|
5
|
+
import { defaultMocks } from '@/test/mocks'
|
|
6
|
+
|
|
7
|
+
import LtiErrorPage from '@/pages/login/lti/error.vue'
|
|
8
|
+
|
|
9
|
+
Vue.use(Vuetify)
|
|
10
|
+
|
|
11
|
+
describe('LtiErrorPage', () => {
|
|
12
|
+
test('LtiErrorPage is a Vue instance', () => {
|
|
13
|
+
const wrapper = shallowMount(LtiErrorPage, {
|
|
14
|
+
vuetify: new Vuetify(),
|
|
15
|
+
mocks: defaultMocks,
|
|
16
|
+
})
|
|
17
|
+
expect(wrapper.vm).toBeTruthy()
|
|
18
|
+
})
|
|
19
|
+
})
|
|
@@ -7,7 +7,10 @@ mockModel.$http = axios
|
|
|
7
7
|
jest.mock('axios')
|
|
8
8
|
|
|
9
9
|
// Define any new model mocks here. The imports / mocks will be auto-generated below
|
|
10
|
-
const mockVirtualModels = [
|
|
10
|
+
const mockVirtualModels = [
|
|
11
|
+
{ path: '~/models/Role', resource: 'roles' },
|
|
12
|
+
{ path: '~/models/Organization', resource: 'organizations' },
|
|
13
|
+
]
|
|
11
14
|
|
|
12
15
|
const mockModels = [
|
|
13
16
|
{ path: '../../models/Organization', resource: 'organizations' },
|