1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

fix secret store url

This commit is contained in:
Matthias Kretschmann 2019-06-26 13:42:46 +02:00
parent c1cf01b834
commit cc53823279
Signed by: m
GPG Key ID: 606EEEF3C479A91F
5 changed files with 10 additions and 6 deletions

View File

@ -1,4 +1,5 @@
dist: xenial dist: xenial
sudo: required
language: node_js language: node_js
node_js: node_js:
- '11' - '11'
@ -15,13 +16,16 @@ env:
- REACT_APP_NODE_URI="https://nile.dev-ocean.com" - REACT_APP_NODE_URI="https://nile.dev-ocean.com"
- REACT_APP_AQUARIUS_URI="https://aquarius.marketplace.dev-ocean.com" - REACT_APP_AQUARIUS_URI="https://aquarius.marketplace.dev-ocean.com"
- REACT_APP_BRIZO_URI="https://brizo.marketplace.dev-ocean.com" - REACT_APP_BRIZO_URI="https://brizo.marketplace.dev-ocean.com"
- REACT_APP_SECRET_STORE_URI="https://secret-store.marketplace.dev-ocean.com" - REACT_APP_SECRET_STORE_URI="https://secret-store.dev-ocean.com"
- REACT_APP_FAUCET_URI="https://faucet.nile.dev-ocean.com" - REACT_APP_FAUCET_URI="https://faucet.nile.dev-ocean.com"
- REACT_APP_BRIZO_ADDRESS="0x4aaab179035dc57b35e2ce066919048686f82972" - REACT_APP_BRIZO_ADDRESS="0x4aaab179035dc57b35e2ce066919048686f82972"
before_install: before_install:
- npm install -g npm - npm install -g npm
- npm install -g codacy-coverage truffle ganache-cli - npm install -g codacy-coverage truffle ganache-cli
# Fixes an issue where the max file watch count is exceeded, triggering ENOSPC
# https://stackoverflow.com/questions/22475849/node-js-error-enospc#32600959
- echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
script: script:
# - ./scripts/install.sh # runs automatically with npm ci # - ./scripts/install.sh # runs automatically with npm ci

View File

@ -39,7 +39,7 @@ REACT_APP_BRIZO_ADDRESS="0x4aaab179035dc57b35e2ce066919048686f82972"
# REACT_APP_NODE_URI="https://nile.dev-ocean.com" # REACT_APP_NODE_URI="https://nile.dev-ocean.com"
# REACT_APP_AQUARIUS_URI="https://aquarius.marketplace.dev-ocean.com" # REACT_APP_AQUARIUS_URI="https://aquarius.marketplace.dev-ocean.com"
# REACT_APP_BRIZO_URI="https://brizo.marketplace.dev-ocean.com" # REACT_APP_BRIZO_URI="https://brizo.marketplace.dev-ocean.com"
# REACT_APP_SECRET_STORE_URI="https://secret-store.marketplace.dev-ocean.com" # REACT_APP_SECRET_STORE_URI="https://secret-store.dev-ocean.com"
# REACT_APP_FAUCET_URI="https://faucet.nile.dev-ocean.com" # REACT_APP_FAUCET_URI="https://faucet.nile.dev-ocean.com"
# REACT_APP_BRIZO_ADDRESS="0x4aaab179035dc57b35e2ce066919048686f82972" # REACT_APP_BRIZO_ADDRESS="0x4aaab179035dc57b35e2ce066919048686f82972"

View File

@ -3,6 +3,6 @@
"env": { "env": {
"NODE_URI": "https://nile.dev-ocean.com", "NODE_URI": "https://nile.dev-ocean.com",
"SEEDPHRASE": "taxi music thumb unique chat sand crew more leg another off lamp", "SEEDPHRASE": "taxi music thumb unique chat sand crew more leg another off lamp",
"CONSUME_ASSET": "http://localhost:3000/asset/did:op:8014d305dcb44b42a5355791a2f016a654a61184456a4d178dc6e5913deb3a5c" "CONSUME_ASSET": "did:op:8014d305dcb44b42a5355791a2f016a654a61184456a4d178dc6e5913deb3a5c"
} }
} }

View File

@ -1,7 +1,7 @@
/// <reference types="Cypress" /> /// <reference types="Cypress" />
context('Consume', () => { context('Consume', () => {
before(() => { before(() => {
cy.visit(Cypress.env('CONSUME_ASSET')) cy.visit(`/asset/${Cypress.env('CONSUME_ASSET')}`)
// Wait for end of loading // Wait for end of loading
cy.get('button', { timeout: 60000 }).should('have.length', 1) cy.get('button', { timeout: 60000 }).should('have.length', 1)
@ -15,7 +15,7 @@ context('Consume', () => {
// Click consume button // Click consume button
cy.get('button').click() cy.get('button').click()
// Wait consume process to end // Wait consume process to end
cy.get('button', { timeout: 120000 }).should('contain', 'Get file') cy.get('button', { timeout: 150000 }).should('contain', 'Get file')
// check if there is no error // check if there is no error
cy.get('article>div').should( cy.get('article>div').should(
'not.contain', 'not.contain',

View File

@ -21,7 +21,7 @@
"lint": "npm run lint:js && npm run lint:css", "lint": "npm run lint:js && npm run lint:css",
"release": "release-it --non-interactive", "release": "release-it --non-interactive",
"changelog": "auto-changelog -p", "changelog": "auto-changelog -p",
"cypress:run": "$(npm bin)/cypress run", "cypress:run": "cypress run",
"cypress:open": "cypress open" "cypress:open": "cypress open"
}, },
"dependencies": { "dependencies": {