]>
Commit | Line | Data |
---|---|---|
97b65ce5 C |
1 | /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ |
2 | ||
3 | import 'mocha' | |
4 | import { getPluginTestPath, installPlugin, setAccessTokensToServers } from '../../../shared/extra-utils' | |
5 | import { cleanupTests, flushAndRunServer, ServerInfo, waitUntilLog } from '../../../shared/extra-utils/server/servers' | |
6 | ||
7 | describe('Test plugin storage', function () { | |
8 | let server: ServerInfo | |
9 | ||
10 | before(async function () { | |
11 | this.timeout(30000) | |
12 | ||
13 | server = await flushAndRunServer(1) | |
14 | await setAccessTokensToServers([ server ]) | |
15 | ||
16 | await installPlugin({ | |
17 | url: server.url, | |
18 | accessToken: server.accessToken, | |
19 | path: getPluginTestPath('-six') | |
20 | }) | |
21 | }) | |
22 | ||
23 | it('Should correctly store a subkey', async function () { | |
24 | await waitUntilLog(server, 'superkey stored value is toto') | |
25 | }) | |
26 | ||
27 | after(async function () { | |
28 | await cleanupTests([ server ]) | |
29 | }) | |
30 | }) |