Skip to content

Commit 3432628

Browse files
committed
make tests sections prettier
1 parent f8fbbfb commit 3432628

24 files changed

Lines changed: 51 additions & 42 deletions

src/test/integration/accessLists.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { assert, expect } from 'chai'
2020
import { checkAddressOnAccessListWithSigner } from '../../utils/accessList.js'
2121
import { KeyManager } from '../../components/KeyManager/index.js'
2222

23-
describe('Should deploy some accessLists before all other tests.', () => {
23+
describe('********** AccessLists tests', () => {
2424
let config: OceanNodeConfig
2525
let provider: JsonRpcProvider
2626
const mockSupportedNetworks: RPCS = getMockSupportedNetworks()

src/test/integration/algorithmsAccess.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import { createHash } from 'crypto'
5050
import { getAlgoChecksums } from '../../components/core/compute/utils.js'
5151
import { createHashForSignature, safeSign } from '../utils/signature.js'
5252

53-
describe('Trusted algorithms Flow', () => {
53+
describe('********** Trusted algorithms Flow', () => {
5454
let previousConfiguration: OverrideEnvConfig[]
5555
let config: OceanNodeConfig
5656
let dbconn: Database

src/test/integration/auth.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { expect } from 'chai'
2424
import { ValidateDDOHandler } from '../../components/core/handler/ddoHandler.js'
2525
import { createHashForSignature, safeSign } from '../utils/signature.js'
2626

27-
describe('Auth Token Integration Tests', () => {
27+
describe('********** Auth Token Integration Tests', () => {
2828
let config: OceanNodeConfig
2929
let database: Database
3030
let provider: JsonRpcProvider

src/test/integration/compute.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export async function waitForAllJobsToFinish(
130130
}
131131
}
132132

133-
describe('Compute', () => {
133+
describe('********** Compute', () => {
134134
let previousConfiguration: OverrideEnvConfig[]
135135
let config: OceanNodeConfig
136136
let dbconn: Database
@@ -2605,7 +2605,7 @@ describe('Compute', () => {
26052605
})
26062606
})
26072607

2608-
describe('Compute Access Restrictions', () => {
2608+
describe('********** Compute Access Restrictions', () => {
26092609
let previousConfiguration: OverrideEnvConfig[]
26102610
let config: OceanNodeConfig
26112611
let dbconn: Database

src/test/integration/configAdmin.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { Readable } from 'stream'
2121
import { expect } from 'chai'
2222
import { createHashForSignature, safeSign } from '../utils/signature.js'
2323

24-
describe('Config Admin Endpoints Integration Tests', () => {
24+
describe('********** Config Admin Endpoints Integration Tests', () => {
2525
let config: OceanNodeConfig
2626
let database: Database
2727
let adminAccount: Signer

src/test/integration/configDatabase.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const emptyDBConfig: OceanNodeDBConfig = {
2626
dbType: null
2727
}
2828

29-
describe('Config Database', () => {
29+
describe('********** Config Database', () => {
3030
let database: Database
3131
let oceanIndexer: OceanIndexer
3232
let initialVersionNull: any

src/test/integration/credentials.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ import { ComputeGetEnvironmentsHandler } from '../../components/core/compute/env
6666
import { ComputeInitializeCommand } from '../../@types/commands.js'
6767
import { createHashForSignature, safeSign } from '../utils/signature.js'
6868

69-
describe('[Credentials Flow] - Should run a complete node flow.', () => {
69+
describe('********** [Credentials Flow] - Should run a complete node flow.', () => {
7070
let config: OceanNodeConfig
7171
let oceanNode: OceanNode
7272
let provider: JsonRpcProvider

src/test/integration/database.test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const emptyDBConfig: OceanNodeDBConfig = {
2525
dbType: null
2626
}
2727

28-
describe('Database', () => {
28+
describe('********** Database', () => {
2929
let database: Database
3030

3131
before(async () => {
@@ -37,7 +37,7 @@ describe('Database', () => {
3737
})
3838
})
3939

40-
describe('DdoDatabase CRUD', () => {
40+
describe('********** DdoDatabase CRUD', () => {
4141
let database: Database
4242
const ddoWithInvalidDid = {
4343
hashType: 'sha256',
@@ -87,7 +87,7 @@ describe('DdoDatabase CRUD', () => {
8787
})
8888
})
8989

90-
describe('NonceDatabase CRUD - SQL lite (With typesense DB config)', () => {
90+
describe('********** NonceDatabase CRUD - SQL lite (With typesense DB config)', () => {
9191
let database: Database
9292

9393
before(async () => {
@@ -123,7 +123,7 @@ describe('NonceDatabase CRUD - SQL lite (With typesense DB config)', () => {
123123
})
124124
})
125125

126-
describe('NonceDatabase CRUD (without Elastic or Typesense config)', () => {
126+
describe('********** NonceDatabase CRUD (without Elastic or Typesense config)', () => {
127127
let database: Database
128128

129129
before(async () => {
@@ -159,7 +159,7 @@ describe('NonceDatabase CRUD (without Elastic or Typesense config)', () => {
159159
})
160160
})
161161

162-
describe('IndexerDatabase CRUD', () => {
162+
describe('********** IndexerDatabase CRUD', () => {
163163
let database: Database
164164
let existsPrevious: any = {}
165165

@@ -203,7 +203,7 @@ describe('IndexerDatabase CRUD', () => {
203203
})
204204
})
205205

206-
describe('OrderDatabase CRUD', () => {
206+
describe('********** OrderDatabase CRUD', () => {
207207
let database: Database
208208

209209
before(async () => {
@@ -263,7 +263,7 @@ describe('OrderDatabase CRUD', () => {
263263
})
264264
})
265265

266-
describe('Typesense OrderDatabase CRUD', () => {
266+
describe('********** Typesense OrderDatabase CRUD', () => {
267267
let database: AbstractOrderDatabase
268268

269269
before(async () => {
@@ -308,7 +308,7 @@ describe('Typesense OrderDatabase CRUD', () => {
308308
})
309309
})
310310

311-
describe('Elasticsearch OrderDatabase CRUD', () => {
311+
describe('********** Elasticsearch OrderDatabase CRUD', () => {
312312
let database: AbstractOrderDatabase
313313

314314
before(async () => {
@@ -356,7 +356,7 @@ describe('Elasticsearch OrderDatabase CRUD', () => {
356356
})
357357
})
358358

359-
describe('DdoStateQuery', () => {
359+
describe('********** DdoStateQuery', () => {
360360
it('should build Typesense query for did', async () => {
361361
const query = (await DatabaseFactory.createDdoStateQuery(typesenseConfig)).buildQuery(
362362
'did:op:abc123'
@@ -409,7 +409,7 @@ describe('DdoStateQuery', () => {
409409
})
410410
})
411411

412-
describe('MetadataQuery', () => {
412+
describe('********** MetadataQuery', () => {
413413
it('should return a Typesense query when DB is Typesense and a Typesense query is passed', async () => {
414414
const typesenseQuery = {
415415
q: '*',

src/test/integration/dockerRegistryAuth.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { C2DEngineDocker } from '../../components/c2d/compute_engine_docker.js'
1212
import { C2DClusterInfo, C2DClusterType } from '../../@types/C2D/C2D.js'
1313
import { DockerRegistryAuthSchema } from '../../utils/config/schemas.js'
1414
import { getConfiguration } from '../../utils/index.js'
15-
describe('Docker Registry Authentication Integration Tests', () => {
15+
describe('********** Docker Registry Authentication Integration Tests', () => {
1616
let config: any
1717
before(async () => {
1818
config = await getConfiguration(true)

src/test/integration/download.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import { genericDDO } from '../data/ddo.js'
4545
import { homedir } from 'os'
4646
import { createHashForSignature, safeSign } from '../utils/signature.js'
4747

48-
describe('[Download Flow] - Should run a complete node flow.', () => {
48+
describe('********** [Download Flow] - Should run a complete node flow.', () => {
4949
let config: OceanNodeConfig
5050
let database: Database
5151
let oceanNode: OceanNode

0 commit comments

Comments
 (0)