1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
import 'mocha'
import { cleanupTests, flushAndRunServer, ServerInfo } from '../../../shared/extra-utils/server/servers'
import { getPluginTestPath, installPlugin, setAccessTokensToServers } from '../../../shared/extra-utils'
describe('Test id and pass auth plugins', function () {
let server: ServerInfo
before(async function () {
this.timeout(30000)
server = await flushAndRunServer(1)
await setAccessTokensToServers([ server ])
await installPlugin({
url: server.url,
accessToken: server.accessToken,
path: getPluginTestPath('-id-pass-auth-one')
})
await installPlugin({
url: server.url,
accessToken: server.accessToken,
path: getPluginTestPath('-id-pass-auth-two')
})
})
it('Should not login', async function() {
})
it('Should login Spyro, create the user and use the token', async function() {
})
it('Should login Crash, create the user and use the token', async function() {
})
it('Should login the first Laguna, create the user and use the token', async function() {
})
it('Should update Crash profile', async function () {
})
it('Should logout Crash', async function () {
// test token
})
it('Should have logged the Crash logout', async function () {
})
it('Should login Crash and keep the old existing profile', async function () {
})
it('Should uninstall the plugin one and do not login existing Crash', async function () {
})
after(async function () {
await cleanupTests([ server ])
})
})
|