mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
run Compute integration test with custom config
This commit is contained in:
parent
4e45a773d6
commit
fec3f95d3d
@ -1,13 +1,23 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { config } from '../config'
|
||||
import { Ocean, Account, DDO, MetaData, ComputeJobStatus } from '../../../src' // @oceanprotocol/squid
|
||||
import { Ocean, Account, DDO, MetaData, ComputeJobStatus, Config } from '../../../src'
|
||||
import { getMetadata, createComputeService } from '../utils'
|
||||
import { ServiceCompute } from '../../../src/ddo/Service'
|
||||
|
||||
const metadataAsset = getMetadata()
|
||||
const metadataAlgorithm = getMetadata(0, 'algorithm')
|
||||
|
||||
const customConfig: Config = {
|
||||
...config,
|
||||
nodeUri: 'https://nile.dev-ocean.com',
|
||||
aquariusUri: 'https://aquarius.nile.dev-ocean.com',
|
||||
brizoUri: 'http://89.46.156.10:8030',
|
||||
secretStoreUri: 'https://secret-store.nile.dev-ocean.com',
|
||||
brizoAddress: '0x413c9ba0a05b8a600899b41b0c62dd661e689354',
|
||||
verbose: true
|
||||
}
|
||||
|
||||
describe('Compute', () => {
|
||||
let ocean: Ocean
|
||||
let account: Account
|
||||
@ -17,7 +27,7 @@ describe('Compute', () => {
|
||||
let computeService: ServiceCompute
|
||||
|
||||
before(async () => {
|
||||
ocean = await Ocean.getInstance(config)
|
||||
ocean = await Ocean.getInstance(customConfig)
|
||||
;[account] = await ocean.accounts.list()
|
||||
computeService = await createComputeService(
|
||||
ocean,
|
||||
|
Loading…
Reference in New Issue
Block a user