From f4c3b0270c58e4f53f61506017ba43592ceba326 Mon Sep 17 00:00:00 2001 From: Mathew Date: Mon, 1 Jul 2024 13:46:50 -0400 Subject: [PATCH] reorder files --- .../mocha/{ => authentication}/asset/DeleteAccess.test.js | 2 +- .../mocha/{ => authentication}/asset/GetsAccess.test.js | 2 +- .../mocha/{ => authentication}/asset/PatchAccess.test.js | 2 +- .../mocha/{ => authentication}/asset/PostsAccess.test.js | 8 ++++---- .../mocha/{ => authentication}/asset/PutsAccess.test.js | 2 +- .../mocha/{ => authentication}/users/usersAccess.test.js | 2 +- test/api/mocha/{ => data}/asset/Delete.test.js | 6 +++--- test/api/mocha/{ => data}/asset/Gets.test.js | 0 test/api/mocha/{ => data}/asset/Patch.test.js | 0 test/api/mocha/{ => data}/asset/Posts.test.js | 0 test/api/mocha/{ => data}/asset/Puts.test.js | 0 test/api/mocha/{ => data}/asset/users.json | 0 test/api/mocha/{ => data}/review/Delete.test.js | 0 test/api/mocha/{ => data}/review/Gets.test.js | 0 test/api/mocha/{ => data}/review/Patch.test.js | 0 test/api/mocha/{ => data}/review/Post.test.js | 0 test/api/mocha/{ => data}/review/Put.test.js | 0 test/api/mocha/{ => data}/users/User.test.js | 6 +++--- test/api/mocha/{ => data}/users/users.json | 0 19 files changed, 15 insertions(+), 15 deletions(-) rename test/api/mocha/{ => authentication}/asset/DeleteAccess.test.js (98%) rename test/api/mocha/{ => authentication}/asset/GetsAccess.test.js (99%) rename test/api/mocha/{ => authentication}/asset/PatchAccess.test.js (99%) rename test/api/mocha/{ => authentication}/asset/PostsAccess.test.js (94%) rename test/api/mocha/{ => authentication}/asset/PutsAccess.test.js (99%) rename test/api/mocha/{ => authentication}/users/usersAccess.test.js (99%) rename test/api/mocha/{ => data}/asset/Delete.test.js (97%) rename test/api/mocha/{ => data}/asset/Gets.test.js (100%) rename test/api/mocha/{ => data}/asset/Patch.test.js (100%) rename test/api/mocha/{ => data}/asset/Posts.test.js (100%) rename test/api/mocha/{ => data}/asset/Puts.test.js (100%) rename test/api/mocha/{ => data}/asset/users.json (100%) rename test/api/mocha/{ => data}/review/Delete.test.js (100%) rename test/api/mocha/{ => data}/review/Gets.test.js (100%) rename test/api/mocha/{ => data}/review/Patch.test.js (100%) rename test/api/mocha/{ => data}/review/Post.test.js (100%) rename test/api/mocha/{ => data}/review/Put.test.js (100%) rename test/api/mocha/{ => data}/users/User.test.js (98%) rename test/api/mocha/{ => data}/users/users.json (100%) diff --git a/test/api/mocha/asset/DeleteAccess.test.js b/test/api/mocha/authentication/asset/DeleteAccess.test.js similarity index 98% rename from test/api/mocha/asset/DeleteAccess.test.js rename to test/api/mocha/authentication/asset/DeleteAccess.test.js index dfac22056..84f1dccf8 100644 --- a/test/api/mocha/asset/DeleteAccess.test.js +++ b/test/api/mocha/authentication/asset/DeleteAccess.test.js @@ -5,7 +5,7 @@ const expect = chai.expect const config = require('../testConfig.json') const utils = require('../utils/testUtils') const assetEnv = require('../assetEnv.json') -const usersEnv = require('./users.json') +const usersEnv = require('../../data/asset/users.json') describe('Asset delete Access Control tests admin user', () => { diff --git a/test/api/mocha/asset/GetsAccess.test.js b/test/api/mocha/authentication/asset/GetsAccess.test.js similarity index 99% rename from test/api/mocha/asset/GetsAccess.test.js rename to test/api/mocha/authentication/asset/GetsAccess.test.js index d83bdb8c1..fdd36949b 100644 --- a/test/api/mocha/asset/GetsAccess.test.js +++ b/test/api/mocha/authentication/asset/GetsAccess.test.js @@ -2,7 +2,7 @@ const chai = require('chai') const chaiHttp = require('chai-http') chai.use(chaiHttp) const expect = chai.expect -const usersEnv = require('./users.json') +const usersEnv = require('../../data/asset/users.json') const config = require('../testConfig.json') const utils = require('../utils/testUtils') const assetEnv = require('../assetEnv.json') diff --git a/test/api/mocha/asset/PatchAccess.test.js b/test/api/mocha/authentication/asset/PatchAccess.test.js similarity index 99% rename from test/api/mocha/asset/PatchAccess.test.js rename to test/api/mocha/authentication/asset/PatchAccess.test.js index 2c05e6757..7005a26a1 100644 --- a/test/api/mocha/asset/PatchAccess.test.js +++ b/test/api/mocha/authentication/asset/PatchAccess.test.js @@ -5,7 +5,7 @@ const expect = chai.expect const config = require('../testConfig.json') const utils = require('../utils/testUtils') const assetEnv = require('../assetEnv.json') -const usersEnv = require('./users.json') +const usersEnv = require('../../data/asset/users.json') describe('Access Control Testing Asset Patch ', () => { before(async function () { diff --git a/test/api/mocha/asset/PostsAccess.test.js b/test/api/mocha/authentication/asset/PostsAccess.test.js similarity index 94% rename from test/api/mocha/asset/PostsAccess.test.js rename to test/api/mocha/authentication/asset/PostsAccess.test.js index 92e1b75e4..4355b022a 100644 --- a/test/api/mocha/asset/PostsAccess.test.js +++ b/test/api/mocha/authentication/asset/PostsAccess.test.js @@ -2,10 +2,10 @@ const chai = require('chai') const chaiHttp = require('chai-http') chai.use(chaiHttp) const expect = chai.expect -const config = require('../testConfig.json') -const utils = require('../utils/testUtils') -const assetEnv = require('../assetEnv.json') -const usersEnv = require('./users.json') +const config = require('../../testConfig.json') +const utils = require('../../utils/testUtils') +const assetEnv = require('../../assetEnv.json') +const usersEnv = require('../../data/asset/users.json') describe('Access Control Testing Asset posts', () => { before(async function () { diff --git a/test/api/mocha/asset/PutsAccess.test.js b/test/api/mocha/authentication/asset/PutsAccess.test.js similarity index 99% rename from test/api/mocha/asset/PutsAccess.test.js rename to test/api/mocha/authentication/asset/PutsAccess.test.js index e0cc7a4c1..1cfed83f4 100644 --- a/test/api/mocha/asset/PutsAccess.test.js +++ b/test/api/mocha/authentication/asset/PutsAccess.test.js @@ -5,7 +5,7 @@ const expect = chai.expect const config = require('../testConfig.json') const utils = require('../utils/testUtils') const assetEnv = require('../assetEnv.json') -const usersEnv = require('./users.json') +const usersEnv = require('../../data/asset/users.json') describe('Asset PUT tests', () => { diff --git a/test/api/mocha/users/usersAccess.test.js b/test/api/mocha/authentication/users/usersAccess.test.js similarity index 99% rename from test/api/mocha/users/usersAccess.test.js rename to test/api/mocha/authentication/users/usersAccess.test.js index 2a23eb605..47a7996eb 100644 --- a/test/api/mocha/users/usersAccess.test.js +++ b/test/api/mocha/authentication/users/usersAccess.test.js @@ -5,7 +5,7 @@ const expect = chai.expect const config = require('../testConfig.json') const utils = require('../utils/testUtils') const userEnv = require('../usersEnv.json') -const testUsers = require('./users.json') +const testUsers = require('../../data/users/users.json') describe('User GETS tests using "admin" user ', () => { before(async function () { diff --git a/test/api/mocha/asset/Delete.test.js b/test/api/mocha/data/asset/Delete.test.js similarity index 97% rename from test/api/mocha/asset/Delete.test.js rename to test/api/mocha/data/asset/Delete.test.js index b61428717..1b93f9aa7 100644 --- a/test/api/mocha/asset/Delete.test.js +++ b/test/api/mocha/data/asset/Delete.test.js @@ -2,9 +2,9 @@ const chai = require('chai') const chaiHttp = require('chai-http') chai.use(chaiHttp) const expect = chai.expect -const config = require('../testConfig.json') -const utils = require('../utils/testUtils') -const assetEnv = require('../assetEnv.json') +const config = require('../../testConfig.json') +const utils = require('../../utils/testUtils') +const assetEnv = require('../../assetEnv.json') const user = { diff --git a/test/api/mocha/asset/Gets.test.js b/test/api/mocha/data/asset/Gets.test.js similarity index 100% rename from test/api/mocha/asset/Gets.test.js rename to test/api/mocha/data/asset/Gets.test.js diff --git a/test/api/mocha/asset/Patch.test.js b/test/api/mocha/data/asset/Patch.test.js similarity index 100% rename from test/api/mocha/asset/Patch.test.js rename to test/api/mocha/data/asset/Patch.test.js diff --git a/test/api/mocha/asset/Posts.test.js b/test/api/mocha/data/asset/Posts.test.js similarity index 100% rename from test/api/mocha/asset/Posts.test.js rename to test/api/mocha/data/asset/Posts.test.js diff --git a/test/api/mocha/asset/Puts.test.js b/test/api/mocha/data/asset/Puts.test.js similarity index 100% rename from test/api/mocha/asset/Puts.test.js rename to test/api/mocha/data/asset/Puts.test.js diff --git a/test/api/mocha/asset/users.json b/test/api/mocha/data/asset/users.json similarity index 100% rename from test/api/mocha/asset/users.json rename to test/api/mocha/data/asset/users.json diff --git a/test/api/mocha/review/Delete.test.js b/test/api/mocha/data/review/Delete.test.js similarity index 100% rename from test/api/mocha/review/Delete.test.js rename to test/api/mocha/data/review/Delete.test.js diff --git a/test/api/mocha/review/Gets.test.js b/test/api/mocha/data/review/Gets.test.js similarity index 100% rename from test/api/mocha/review/Gets.test.js rename to test/api/mocha/data/review/Gets.test.js diff --git a/test/api/mocha/review/Patch.test.js b/test/api/mocha/data/review/Patch.test.js similarity index 100% rename from test/api/mocha/review/Patch.test.js rename to test/api/mocha/data/review/Patch.test.js diff --git a/test/api/mocha/review/Post.test.js b/test/api/mocha/data/review/Post.test.js similarity index 100% rename from test/api/mocha/review/Post.test.js rename to test/api/mocha/data/review/Post.test.js diff --git a/test/api/mocha/review/Put.test.js b/test/api/mocha/data/review/Put.test.js similarity index 100% rename from test/api/mocha/review/Put.test.js rename to test/api/mocha/data/review/Put.test.js diff --git a/test/api/mocha/users/User.test.js b/test/api/mocha/data/users/User.test.js similarity index 98% rename from test/api/mocha/users/User.test.js rename to test/api/mocha/data/users/User.test.js index aacfd17a2..d2ca4cd68 100644 --- a/test/api/mocha/users/User.test.js +++ b/test/api/mocha/data/users/User.test.js @@ -2,9 +2,9 @@ const chai = require('chai') const chaiHttp = require('chai-http') chai.use(chaiHttp) const expect = chai.expect -const config = require('../testConfig.json') -const utils = require('../utils/testUtils') -const userEnv = require('../usersEnv.json') +const config = require('../../testConfig.json') +const utils = require('../../utils/testUtils') +const userEnv = require('../../usersEnv.json') const user = { diff --git a/test/api/mocha/users/users.json b/test/api/mocha/data/users/users.json similarity index 100% rename from test/api/mocha/users/users.json rename to test/api/mocha/data/users/users.json