Verified Commit 89d241a7 authored by Chocobozzz's avatar Chocobozzz
Browse files

Shorter server command names

parent d23dd9fb
......@@ -210,29 +210,29 @@ async function prepare () {
}
for (let i = 0; i < 10; i++) {
await server.videosCommand.upload({ attributes: { ...attributes, name: 'my super video ' + i } })
await server.videos.upload({ attributes: { ...attributes, name: 'my super video ' + i } })
}
const { data } = await server.videosCommand.list()
const { data } = await server.videos.list()
video = data.find(v => v.name === 'my super video 1')
for (let i = 0; i < 10; i++) {
const text = 'my super first comment'
const created = await server.commentsCommand.createThread({ videoId: video.id, text })
const created = await server.comments.createThread({ videoId: video.id, text })
threadId = created.id
const text1 = 'my super answer to thread 1'
const child = await server.commentsCommand.addReply({ videoId: video.id, toCommentId: threadId, text: text1 })
const child = await server.comments.addReply({ videoId: video.id, toCommentId: threadId, text: text1 })
const text2 = 'my super answer to answer of thread 1'
await server.commentsCommand.addReply({ videoId: video.id, toCommentId: child.id, text: text2 })
await server.comments.addReply({ videoId: video.id, toCommentId: child.id, text: text2 })
const text3 = 'my second answer to thread 1'
await server.commentsCommand.addReply({ videoId: video.id, toCommentId: threadId, text: text3 })
await server.comments.addReply({ videoId: video.id, toCommentId: threadId, text: text3 })
}
for (const caption of [ 'ar', 'fr', 'en', 'zh' ]) {
await server.captionsCommand.createVideoCaption({
await server.captions.createVideoCaption({
language: caption,
videoId: video.id,
fixture: 'subtitle-good2.vtt'
......
......@@ -46,9 +46,9 @@ describe('Test AP cleaner', function () {
// Create 1 comment per video
// Update 1 remote URL and 1 local URL on
videoUUID1 = (await servers[0].videosCommand.quickUpload({ name: 'server 1' })).uuid
videoUUID2 = (await servers[1].videosCommand.quickUpload({ name: 'server 2' })).uuid
videoUUID3 = (await servers[2].videosCommand.quickUpload({ name: 'server 3' })).uuid
videoUUID1 = (await servers[0].videos.quickUpload({ name: 'server 1' })).uuid
videoUUID2 = (await servers[1].videos.quickUpload({ name: 'server 2' })).uuid
videoUUID3 = (await servers[2].videos.quickUpload({ name: 'server 3' })).uuid
videoUUIDs = [ videoUUID1, videoUUID2, videoUUID3 ]
......@@ -56,8 +56,8 @@ describe('Test AP cleaner', function () {
for (const server of servers) {
for (const uuid of videoUUIDs) {
await server.videosCommand.rate({ id: uuid, rating: 'like' })
await server.commentsCommand.createThread({ videoId: uuid, text: 'comment' })
await server.videos.rate({ id: uuid, rating: 'like' })
await server.comments.createThread({ videoId: uuid, text: 'comment' })
}
}
......@@ -67,7 +67,7 @@ describe('Test AP cleaner', function () {
it('Should have the correct likes', async function () {
for (const server of servers) {
for (const uuid of videoUUIDs) {
const video = await server.videosCommand.get({ id: uuid })
const video = await server.videos.get({ id: uuid })
expect(video.likes).to.equal(3)
expect(video.dislikes).to.equal(0)
......@@ -78,9 +78,9 @@ describe('Test AP cleaner', function () {
it('Should destroy server 3 internal likes and correctly clean them', async function () {
this.timeout(20000)
await servers[2].sqlCommand.deleteAll('accountVideoRate')
await servers[2].sql.deleteAll('accountVideoRate')
for (const uuid of videoUUIDs) {
await servers[2].sqlCommand.setVideoField(uuid, 'likes', '0')
await servers[2].sql.setVideoField(uuid, 'likes', '0')
}
await wait(5000)
......@@ -88,14 +88,14 @@ describe('Test AP cleaner', function () {
// Updated rates of my video
{
const video = await servers[0].videosCommand.get({ id: videoUUID1 })
const video = await servers[0].videos.get({ id: videoUUID1 })
expect(video.likes).to.equal(2)
expect(video.dislikes).to.equal(0)
}
// Did not update rates of a remote video
{
const video = await servers[0].videosCommand.get({ id: videoUUID2 })
const video = await servers[0].videos.get({ id: videoUUID2 })
expect(video.likes).to.equal(3)
expect(video.dislikes).to.equal(0)
}
......@@ -106,7 +106,7 @@ describe('Test AP cleaner', function () {
for (const server of servers) {
for (const uuid of videoUUIDs) {
await server.videosCommand.rate({ id: uuid, rating: 'dislike' })
await server.videos.rate({ id: uuid, rating: 'dislike' })
}
}
......@@ -114,7 +114,7 @@ describe('Test AP cleaner', function () {
for (const server of servers) {
for (const uuid of videoUUIDs) {
const video = await server.videosCommand.get({ id: uuid })
const video = await server.videos.get({ id: uuid })
expect(video.likes).to.equal(0)
expect(video.dislikes).to.equal(3)
}
......@@ -124,10 +124,10 @@ describe('Test AP cleaner', function () {
it('Should destroy server 3 internal dislikes and correctly clean them', async function () {
this.timeout(20000)
await servers[2].sqlCommand.deleteAll('accountVideoRate')
await servers[2].sql.deleteAll('accountVideoRate')
for (const uuid of videoUUIDs) {
await servers[2].sqlCommand.setVideoField(uuid, 'dislikes', '0')
await servers[2].sql.setVideoField(uuid, 'dislikes', '0')
}
await wait(5000)
......@@ -135,14 +135,14 @@ describe('Test AP cleaner', function () {
// Updated rates of my video
{
const video = await servers[0].videosCommand.get({ id: videoUUID1 })
const video = await servers[0].videos.get({ id: videoUUID1 })
expect(video.likes).to.equal(0)
expect(video.dislikes).to.equal(2)
}
// Did not update rates of a remote video
{
const video = await servers[0].videosCommand.get({ id: videoUUID2 })
const video = await servers[0].videos.get({ id: videoUUID2 })
expect(video.likes).to.equal(0)
expect(video.dislikes).to.equal(3)
}
......@@ -151,15 +151,15 @@ describe('Test AP cleaner', function () {
it('Should destroy server 3 internal shares and correctly clean them', async function () {
this.timeout(20000)
const preCount = await servers[0].sqlCommand.getCount('videoShare')
const preCount = await servers[0].sql.getCount('videoShare')
expect(preCount).to.equal(6)
await servers[2].sqlCommand.deleteAll('videoShare')
await servers[2].sql.deleteAll('videoShare')
await wait(5000)
await waitJobs(servers)
// Still 6 because we don't have remote shares on local videos
const postCount = await servers[0].sqlCommand.getCount('videoShare')
const postCount = await servers[0].sql.getCount('videoShare')
expect(postCount).to.equal(6)
})
......@@ -167,17 +167,17 @@ describe('Test AP cleaner', function () {
this.timeout(20000)
{
const { total } = await servers[0].commentsCommand.listThreads({ videoId: videoUUID1 })
const { total } = await servers[0].comments.listThreads({ videoId: videoUUID1 })
expect(total).to.equal(3)
}
await servers[2].sqlCommand.deleteAll('videoComment')
await servers[2].sql.deleteAll('videoComment')
await wait(5000)
await waitJobs(servers)
{
const { total } = await servers[0].commentsCommand.listThreads({ videoId: videoUUID1 })
const { total } = await servers[0].comments.listThreads({ videoId: videoUUID1 })
expect(total).to.equal(2)
}
})
......@@ -188,7 +188,7 @@ describe('Test AP cleaner', function () {
async function check (like: string, ofServerUrl: string, urlSuffix: string, remote: 'true' | 'false') {
const query = `SELECT "videoId", "accountVideoRate".url FROM "accountVideoRate" ` +
`INNER JOIN video ON "accountVideoRate"."videoId" = video.id AND remote IS ${remote} WHERE "accountVideoRate"."url" LIKE '${like}'`
const res = await servers[0].sqlCommand.selectQuery(query)
const res = await servers[0].sql.selectQuery(query)
for (const rate of res) {
const matcher = new RegExp(`^${ofServerUrl}/accounts/root/dislikes/\\d+${urlSuffix}$`)
......@@ -217,7 +217,7 @@ describe('Test AP cleaner', function () {
{
const query = `UPDATE "accountVideoRate" SET url = url || 'stan'`
await servers[1].sqlCommand.updateQuery(query)
await servers[1].sql.updateQuery(query)
await wait(5000)
await waitJobs(servers)
......@@ -234,7 +234,7 @@ describe('Test AP cleaner', function () {
const query = `SELECT "videoId", "videoComment".url, uuid as "videoUUID" FROM "videoComment" ` +
`INNER JOIN video ON "videoComment"."videoId" = video.id AND remote IS ${remote} WHERE "videoComment"."url" LIKE '${like}'`
const res = await servers[0].sqlCommand.selectQuery(query)
const res = await servers[0].sql.selectQuery(query)
for (const comment of res) {
const matcher = new RegExp(`${ofServerUrl}/videos/watch/${comment.videoUUID}/comments/\\d+${urlSuffix}`)
......@@ -260,7 +260,7 @@ describe('Test AP cleaner', function () {
{
const query = `UPDATE "videoComment" SET url = url || 'kyle'`
await servers[1].sqlCommand.updateQuery(query)
await servers[1].sql.updateQuery(query)
await wait(5000)
await waitJobs(servers)
......
......@@ -68,12 +68,12 @@ describe('Test activitypub', function () {
await setDefaultVideoChannel(servers)
{
video = await await servers[0].videosCommand.quickUpload({ name: 'video' })
video = await await servers[0].videos.quickUpload({ name: 'video' })
}
{
const attributes = { displayName: 'playlist', privacy: VideoPlaylistPrivacy.PUBLIC, videoChannelId: servers[0].videoChannel.id }
playlist = await servers[0].playlistsCommand.create({ attributes })
const attributes = { displayName: 'playlist', privacy: VideoPlaylistPrivacy.PUBLIC, videoChannelId: servers[0].store.channel.id }
playlist = await servers[0].playlists.create({ attributes })
}
await doubleFollow(servers[0], servers[1])
......
......@@ -21,24 +21,24 @@ describe('Test ActivityPub fetcher', function () {
const user = { username: 'user1', password: 'password' }
for (const server of servers) {
await server.usersCommand.create({ username: user.username, password: user.password })
await server.users.create({ username: user.username, password: user.password })
}
const userAccessToken = await servers[0].loginCommand.getAccessToken(user)
const userAccessToken = await servers[0].login.getAccessToken(user)
await servers[0].videosCommand.upload({ attributes: { name: 'video root' } })
const { uuid } = await servers[0].videosCommand.upload({ attributes: { name: 'bad video root' } })
await servers[0].videosCommand.upload({ token: userAccessToken, attributes: { name: 'video user' } })
await servers[0].videos.upload({ attributes: { name: 'video root' } })
const { uuid } = await servers[0].videos.upload({ attributes: { name: 'bad video root' } })
await servers[0].videos.upload({ token: userAccessToken, attributes: { name: 'video user' } })
{
const to = 'http://localhost:' + servers[0].port + '/accounts/user1'
const value = 'http://localhost:' + servers[1].port + '/accounts/user1'
await servers[0].sqlCommand.setActorField(to, 'url', value)
await servers[0].sql.setActorField(to, 'url', value)
}
{
const value = 'http://localhost:' + servers[2].port + '/videos/watch/' + uuid
await servers[0].sqlCommand.setVideoField(uuid, 'url', value)
await servers[0].sql.setVideoField(uuid, 'url', value)
}
})
......@@ -49,7 +49,7 @@ describe('Test ActivityPub fetcher', function () {
await waitJobs(servers)
{
const { total, data } = await servers[0].videosCommand.list({ sort: 'createdAt' })
const { total, data } = await servers[0].videos.list({ sort: 'createdAt' })
expect(total).to.equal(3)
expect(data[0].name).to.equal('video root')
......@@ -58,7 +58,7 @@ describe('Test ActivityPub fetcher', function () {
}
{
const { total, data } = await servers[1].videosCommand.list({ sort: 'createdAt' })
const { total, data } = await servers[1].videos.list({ sort: 'createdAt' })
expect(total).to.equal(1)
expect(data[0].name).to.equal('video root')
......
......@@ -34,28 +34,28 @@ describe('Test AP refresher', function () {
await setDefaultVideoChannel(servers)
{
videoUUID1 = (await servers[1].videosCommand.quickUpload({ name: 'video1' })).uuid
videoUUID2 = (await servers[1].videosCommand.quickUpload({ name: 'video2' })).uuid
videoUUID3 = (await servers[1].videosCommand.quickUpload({ name: 'video3' })).uuid
videoUUID1 = (await servers[1].videos.quickUpload({ name: 'video1' })).uuid
videoUUID2 = (await servers[1].videos.quickUpload({ name: 'video2' })).uuid
videoUUID3 = (await servers[1].videos.quickUpload({ name: 'video3' })).uuid
}
{
const token1 = await servers[1].usersCommand.generateUserAndToken('user1')
await servers[1].videosCommand.upload({ token: token1, attributes: { name: 'video4' } })
const token1 = await servers[1].users.generateUserAndToken('user1')
await servers[1].videos.upload({ token: token1, attributes: { name: 'video4' } })
const token2 = await servers[1].usersCommand.generateUserAndToken('user2')
await servers[1].videosCommand.upload({ token: token2, attributes: { name: 'video5' } })
const token2 = await servers[1].users.generateUserAndToken('user2')
await servers[1].videos.upload({ token: token2, attributes: { name: 'video5' } })
}
{
const attributes = { displayName: 'playlist1', privacy: VideoPlaylistPrivacy.PUBLIC, videoChannelId: servers[1].videoChannel.id }
const created = await servers[1].playlistsCommand.create({ attributes })
const attributes = { displayName: 'playlist1', privacy: VideoPlaylistPrivacy.PUBLIC, videoChannelId: servers[1].store.channel.id }
const created = await servers[1].playlists.create({ attributes })
playlistUUID1 = created.uuid
}
{
const attributes = { displayName: 'playlist2', privacy: VideoPlaylistPrivacy.PUBLIC, videoChannelId: servers[1].videoChannel.id }
const created = await servers[1].playlistsCommand.create({ attributes })
const attributes = { displayName: 'playlist2', privacy: VideoPlaylistPrivacy.PUBLIC, videoChannelId: servers[1].store.channel.id }
const created = await servers[1].playlists.create({ attributes })
playlistUUID2 = created.uuid
}
......@@ -70,15 +70,15 @@ describe('Test AP refresher', function () {
await wait(10000)
// Change UUID so the remote server returns a 404
await servers[1].sqlCommand.setVideoField(videoUUID1, 'uuid', '304afe4f-39f9-4d49-8ed7-ac57b86b174f')
await servers[1].sql.setVideoField(videoUUID1, 'uuid', '304afe4f-39f9-4d49-8ed7-ac57b86b174f')
await servers[0].videosCommand.get({ id: videoUUID1 })
await servers[0].videosCommand.get({ id: videoUUID2 })
await servers[0].videos.get({ id: videoUUID1 })
await servers[0].videos.get({ id: videoUUID2 })
await waitJobs(servers)
await servers[0].videosCommand.get({ id: videoUUID1, expectedStatus: HttpStatusCode.NOT_FOUND_404 })
await servers[0].videosCommand.get({ id: videoUUID2 })
await servers[0].videos.get({ id: videoUUID1, expectedStatus: HttpStatusCode.NOT_FOUND_404 })
await servers[0].videos.get({ id: videoUUID2 })
})
it('Should not update a remote video if the remote instance is down', async function () {
......@@ -86,18 +86,18 @@ describe('Test AP refresher', function () {
await killallServers([ servers[1] ])
await servers[1].sqlCommand.setVideoField(videoUUID3, 'uuid', '304afe4f-39f9-4d49-8ed7-ac57b86b174e')
await servers[1].sql.setVideoField(videoUUID3, 'uuid', '304afe4f-39f9-4d49-8ed7-ac57b86b174e')
// Video will need a refresh
await wait(10000)
await servers[0].videosCommand.get({ id: videoUUID3 })
await servers[0].videos.get({ id: videoUUID3 })
// The refresh should fail
await waitJobs([ servers[0] ])
await reRunServer(servers[1])
await servers[0].videosCommand.get({ id: videoUUID3 })
await servers[0].videos.get({ id: videoUUID3 })
})
})
......@@ -106,13 +106,13 @@ describe('Test AP refresher', function () {
it('Should remove a deleted actor', async function () {
this.timeout(60000)
const command = servers[0].accountsCommand
const command = servers[0].accounts
await wait(10000)
// Change actor name so the remote server returns a 404
const to = 'http://localhost:' + servers[1].port + '/accounts/user2'
await servers[1].sqlCommand.setActorField(to, 'preferredUsername', 'toto')
await servers[1].sql.setActorField(to, 'preferredUsername', 'toto')
await command.get({ accountName: 'user1@localhost:' + servers[1].port })
await command.get({ accountName: 'user2@localhost:' + servers[1].port })
......@@ -132,15 +132,15 @@ describe('Test AP refresher', function () {
await wait(10000)
// Change UUID so the remote server returns a 404
await servers[1].sqlCommand.setPlaylistField(playlistUUID2, 'uuid', '304afe4f-39f9-4d49-8ed7-ac57b86b178e')
await servers[1].sql.setPlaylistField(playlistUUID2, 'uuid', '304afe4f-39f9-4d49-8ed7-ac57b86b178e')
await servers[0].playlistsCommand.get({ playlistId: playlistUUID1 })
await servers[0].playlistsCommand.get({ playlistId: playlistUUID2 })
await servers[0].playlists.get({ playlistId: playlistUUID1 })
await servers[0].playlists.get({ playlistId: playlistUUID2 })
await waitJobs(servers)
await servers[0].playlistsCommand.get({ playlistId: playlistUUID1, expectedStatus: HttpStatusCode.OK_200 })
await servers[0].playlistsCommand.get({ playlistId: playlistUUID2, expectedStatus: HttpStatusCode.NOT_FOUND_404 })
await servers[0].playlists.get({ playlistId: playlistUUID1, expectedStatus: HttpStatusCode.OK_200 })
await servers[0].playlists.get({ playlistId: playlistUUID2, expectedStatus: HttpStatusCode.NOT_FOUND_404 })
})
})
......
......@@ -24,8 +24,8 @@ function setKeysOfServer (onServer: ServerInfo, ofServer: ServerInfo, publicKey:
const url = 'http://localhost:' + ofServer.port + '/accounts/peertube'
return Promise.all([
onServer.sqlCommand.setActorField(url, 'publicKey', publicKey),
onServer.sqlCommand.setActorField(url, 'privateKey', privateKey)
onServer.sql.setActorField(url, 'publicKey', publicKey),
onServer.sql.setActorField(url, 'privateKey', privateKey)
])
}
......@@ -33,8 +33,8 @@ function setUpdatedAtOfServer (onServer: ServerInfo, ofServer: ServerInfo, updat
const url = 'http://localhost:' + ofServer.port + '/accounts/peertube'
return Promise.all([
onServer.sqlCommand.setActorField(url, 'createdAt', updatedAt),
onServer.sqlCommand.setActorField(url, 'updatedAt', updatedAt)
onServer.sql.setActorField(url, 'createdAt', updatedAt),
onServer.sql.setActorField(url, 'updatedAt', updatedAt)
])
}
......
......@@ -39,12 +39,12 @@ describe('Test abuses API validators', function () {
await setAccessTokensToServers([ server ])
userToken = await server.usersCommand.generateUserAndToken('user_1')
userToken2 = await server.usersCommand.generateUserAndToken('user_2')
userToken = await server.users.generateUserAndToken('user_1')
userToken2 = await server.users.generateUserAndToken('user_2')
server.video = await server.videosCommand.upload()
server.store.video = await server.videos.upload()
command = server.abusesCommand
command = server.abuses
})
describe('When listing abuses for admins', function () {
......@@ -224,25 +224,25 @@ describe('Test abuses API validators', function () {
})
it('Should fail with a non authenticated user', async function () {
const fields = { video: { id: server.video.id }, reason: 'my super reason' }
const fields = { video: { id: server.store.video.id }, reason: 'my super reason' }
await makePostBodyRequest({ url: server.url, path, token: 'hello', fields, statusCodeExpected: HttpStatusCode.UNAUTHORIZED_401 })
})
it('Should fail with a reason too short', async function () {
const fields = { video: { id: server.video.id }, reason: 'h' }
const fields = { video: { id: server.store.video.id }, reason: 'h' }
await makePostBodyRequest({ url: server.url, path, token: userToken, fields })
})
it('Should fail with a too big reason', async function () {
const fields = { video: { id: server.video.id }, reason: 'super'.repeat(605) }
const fields = { video: { id: server.store.video.id }, reason: 'super'.repeat(605) }
await makePostBodyRequest({ url: server.url, path, token: userToken, fields })
})
it('Should succeed with the correct parameters (basic)', async function () {
const fields: AbuseCreate = { video: { id: server.video.shortUUID }, reason: 'my super reason' }
const fields: AbuseCreate = { video: { id: server.store.video.shortUUID }, reason: 'my super reason' }
const res = await makePostBodyRequest({
url: server.url,
......@@ -255,19 +255,19 @@ describe('Test abuses API validators', function () {
})
it('Should fail with a wrong predefined reason', async function () {
const fields = { video: { id: server.video.id }, reason: 'my super reason', predefinedReasons: [ 'wrongPredefinedReason' ] }
const fields = { video: { id: server.store.video.id }, reason: 'my super reason', predefinedReasons: [ 'wrongPredefinedReason' ] }
await makePostBodyRequest({ url: server.url, path, token: userToken, fields })
})
it('Should fail with negative timestamps', async function () {
const fields = { video: { id: server.video.id, startAt: -1 }, reason: 'my super reason' }
const fields = { video: { id: server.store.video.id, startAt: -1 }, reason: 'my super reason' }
await makePostBodyRequest({ url: server.url, path, token: userToken, fields })
})
it('Should fail mith misordered startAt/endAt', async function () {
const fields = { video: { id: server.video.id, startAt: 5, endAt: 1 }, reason: 'my super reason' }
const fields = { video: { id: server.store.video.id, startAt: 5, endAt: 1 }, reason: 'my super reason' }
await makePostBodyRequest({ url: server.url, path, token: userToken, fields })
})
......@@ -275,7 +275,7 @@ describe('Test abuses API validators', function () {
it('Should succeed with the corret parameters (advanced)', async function () {
const fields: AbuseCreate = {
video: {
id: server.video.id,
id: server.store.video.id,
startAt: 1,
endAt: 5
},
......@@ -414,8 +414,8 @@ describe('Test abuses API validators', function () {
await doubleFollow(anotherServer, server)
const server2VideoId = await anotherServer.videosCommand.getId({ uuid: server.video.uuid })
await anotherServer.abusesCommand.report({ reason: 'remote server', videoId: server2VideoId })
const server2VideoId = await anotherServer.videos.getId({ uuid: server.store.video.uuid })
await anotherServer.abuses.report({ reason: 'remote server', videoId: server2VideoId })
await waitJobs([ server, anotherServer ])
......
......@@ -40,7 +40,7 @@ describe('Test accounts API validators', function () {
describe('When getting an account', function () {
it('Should return 404 with a non existing name', async function () {
await server.accountsCommand.get({ accountName: 'arfaze', expectedStatus: HttpStatusCode.NOT_FOUND_404 })
await server.accounts.get({ accountName: 'arfaze', expectedStatus: HttpStatusCode.NOT_FOUND_404 })
})
})
......
......@@ -33,9 +33,9 @@ describe('Test blocklist API validators', function () {
server = servers[0]
const user = { username: 'user1', password: 'password' }
await server.usersCommand.create({ username: user.username, password: user.password })
await server.users.create({ username: user.username, password: user.password })
userAccessToken = await server.loginCommand.getAccessToken(user)
userAccessToken = await server.login.getAccessToken(user)
await doubleFollow(servers[0], servers[1])
})
......
......@@ -23,9 +23,9 @@ describe('Test bulk API validators', function () {
await setAccessTokensToServers([ server ])
const user = { username: 'user1', password: 'password' }
await server.usersCommand.create({ username: user.username, password: user.password })
await server.users.create({ username: user.username, password: user.password })
userAccessToken = await server.loginCommand.getAccessToken(user)
userAccessToken = await server.login.getAccessToken(user)
})
describe('When removing comments of', function () {
......
......@@ -205,8 +205,8 @@ describe('Test config API validators', function () {
username: 'user1',
password: 'password'
}
await server.usersCommand.create({ username: user.username, password: user.password })
userAccessToken = await server.loginCommand.getAccessToken(user)
await server.users.create({ username: user.username, password: user.password })
userAccessToken = await server.login.getAccessToken(user)
})
describe('When getting the configuration', function () {
......
......@@ -26,7 +26,7 @@ describe('Test contact form API validators', function () {
// Email is disabled