Skip to content

Commit

Permalink
Release/v2 (#136)
Browse files Browse the repository at this point in the history
* ENGINEERS-465: Improve features related on the ticket

* chore: add a section for disabled specs

* chore: upgrading the code to version 2

* chore: migrate schema

* chore: migrate credentials

* chore: remove utils module and fix dependencies

* chore: credentials migrated

* chore: credenttials migrated

* chore: migrate report and add deprecation report

* chore: fix teardown

* chore: migrate cypress

* chore: fix cypress run module

* chore: start to migrate workspace

* chore: link, install, and remove migrated

* chore: link migration done

* chore: save app versions and deps migrated

* chore: clean up output

* chore: migrate tests and jira

* chore: fix verbosity if local

* chore: add debug file on logs

* fix: messages typos

* fix: move sensitive files from wipe to teardown

* fix: length errors when array undefined

* fix: clean output simplifying messages

* chore: dump more information on crash

* chore: merge teardown module into workspace

* chore: merge teardown module into workspace

* chore: link improved, sorry detection

* chore: link done, other improvements

* fix: kill pid on crash

* fix: a lot of typos

* fix: dependency report

* chore: detection of sorry cypress added

* fix: SonarCloud code smells

* fix: drop small logic errors

* fix: load env secrets

* chore: 🤖 Update readme

* fix: 🐛 typo

* fix: 🐛 change path

* fix: 🐛 fix typos

* chore: 🤖 check toolbelt version

* chore: 🤖 add lock before start the test

* chore: 🤖 add error message on workflow

* :chore: 🤖 bump workflow version

* Feature: Adding GitHub decorator (#98)

* feature: 🤖 add GitHub decorator

* fix: drop newline decorator for pr

* Feature/v2/decorator (#100)

* feature: 🤖 add GitHub decorator

* fix: drop random set for workspace

* Feature/v2/decorator (#102)

* feature: 🤖 add GitHub decorator

* fix: drop random set for workspace

* fix: added await to get workspace name

* fix: delete GH decorator file

* fix: only delete files if not on CI

* fix: lint

* chore: 🤖 drop long lines on pr decorators

* chore: 🤖 adding spaces on pr decorators

* chore: 🤖 adding spaces on pr decorators

* chore: 🤖 changing the decorator logic

* chore: 🤖 adjust on the crash print layout

* chore: 🤖 adjust on the crash print layout

* chore: 🤖 print useful debug messages

* fix: report feed line

* chore: 🤖 add exports envs on config

* test: testing disable link debug monitoring

* test: testing disable link debug monitoring

* chore: 🤖 add browserlist package

* chore: 🤖 adding tests to check Cypress before run

* fix: 🐛 fixing cypress.json configuration

* fix: move browserslist package

* revert: drop link kill

* chore: 🤖 make less dense log messages

* fix: drop cypress for smoke tests

* fix: 🐛 drip catch for Cypress promise

* fix: 🐛 drop caps titles

* drop: browserslist

* fix: 🐛 try to fix reading 0 error

* fix: 🐛 code smells

* chore: revert promise and add jira to PR decorator

* fix: 🐛 update yarn lock versions

* chore: 🤖 dump env on crash

* chore: 🤖 dump node versions

* fix: 🐛 stringfy env before save to log

* chore: 🤖 refactor test module

* chore: 🤖 refactor test module

* chore: 🤖 more information on running test

* fix: 🐛 drop stopOnFail for wipe data

* fix: 🐛 trying to debug loop on Avalara

* fix: 🐛 wipe in eternal loop due xvbf missing

* fix: 🐛 module name

* fix: 🐛 workflow version

* chore: 🤖 add push action

* fix: drop TODO arealdy sorted

* chore: 🤖 clean decorator name

* Cy-runner v2 uses api key to login, so use api to login with email (#107)

* Release/v2 (#105)

* ENGINEERS-465: Improve features related on the ticket

* chore: add a section for disabled specs

* chore: upgrading the code to version 2

* chore: migrate schema

* chore: migrate credentials

* chore: remove utils module and fix dependencies

* chore: credentials migrated

* chore: credenttials migrated

* chore: migrate report and add deprecation report

* chore: fix teardown

* chore: migrate cypress

* chore: fix cypress run module

* chore: start to migrate workspace

* chore: link, install, and remove migrated

* chore: link migration done

* chore: save app versions and deps migrated

* chore: clean up output

* chore: migrate tests and jira

* chore: fix verbosity if local

* chore: add debug file on logs

* fix: messages typos

* fix: move sensitive files from wipe to teardown

* fix: length errors when array undefined

* fix: clean output simplifying messages

* chore: dump more information on crash

* chore: merge teardown module into workspace

* chore: merge teardown module into workspace

* chore: link improved, sorry detection

* chore: link done, other improvements

* fix: kill pid on crash

* fix: a lot of typos

* fix: dependency report

* chore: detection of sorry cypress added

* fix: SonarCloud code smells

* fix: drop small logic errors

* fix: load env secrets

* chore: 🤖 Update readme

* fix: 🐛 typo

* fix: 🐛 change path

* fix: 🐛 fix typos

* chore: 🤖 check toolbelt version

* chore: 🤖 add lock before start the test

* chore: 🤖 add error message on workflow

* :chore: 🤖 bump workflow version

* Feature: Adding GitHub decorator (#98)

* feature: 🤖 add GitHub decorator

* fix: drop newline decorator for pr

* Feature/v2/decorator (#100)

* feature: 🤖 add GitHub decorator

* fix: drop random set for workspace

* Feature/v2/decorator (#102)

* feature: 🤖 add GitHub decorator

* fix: drop random set for workspace

* fix: added await to get workspace name

* fix: delete GH decorator file

* fix: only delete files if not on CI

* fix: lint

* chore: 🤖 drop long lines on pr decorators

* chore: 🤖 adding spaces on pr decorators

* chore: 🤖 adding spaces on pr decorators

* chore: 🤖 changing the decorator logic

* chore: 🤖 adjust on the crash print layout

* chore: 🤖 adjust on the crash print layout

* chore: 🤖 print useful debug messages

* fix: report feed line

* chore: 🤖 add exports envs on config

* test: testing disable link debug monitoring

* test: testing disable link debug monitoring

* chore: 🤖 add browserlist package

* chore: 🤖 adding tests to check Cypress before run

* fix: 🐛 fixing cypress.json configuration

* fix: move browserslist package

* revert: drop link kill

* chore: 🤖 make less dense log messages

* fix: drop cypress for smoke tests

* fix: 🐛 drip catch for Cypress promise

* fix: 🐛 drop caps titles

* drop: browserslist

* fix: 🐛 try to fix reading 0 error

* fix: 🐛 code smells

* chore: revert promise and add jira to PR decorator

* fix: 🐛 update yarn lock versions

* chore: 🤖 dump env on crash

* chore: 🤖 dump node versions

* fix: 🐛 stringfy env before save to log

* chore: 🤖 refactor test module

* chore: 🤖 refactor test module

* chore: 🤖 more information on running test

* fix: 🐛 drop stopOnFail for wipe data

* fix: 🐛 trying to debug loop on Avalara

* fix: 🐛 wipe in eternal loop due xvbf missing

* fix: 🐛 module name

* fix: 🐛 workflow version

* chore: 🤖 add push action

* fix: drop TODO arealdy sorted

* Cy-runner v2 uses api key to login, so use api to login with email

Co-authored-by: Charles Santos <[email protected]>

* fix: 🐛 strings to check linked app

* fix: 🐛 missing await on whoami call

* chore: 🤖 disable parallelism on wipe

* fix: 🐛 avoid wipe run when link fails

* fix: 🐛 avoid wipe run when link fails

* chore: 🤖 add feedback when add/del app fails

* chore: 🤖 add tries when add/del app fails

* chore: 🤖 add re-tries due a vtex timeouts

* Improve/support (#113)

improve support

* added 2.8-testcase (#111)

Co-authored-by: Syed Mujeeb <[email protected]>

* Add Bindings testcase in B2B (#118)

* Added b2b bindings testcase

* Improve functions

* chore: 🤖 improve reserve/release orderForm (#122)

* chore: 🤖 improve lock orderForm

* fix: SonarCloud code smells

* fix: SonarCloud code smells

* fix: SonarCloud code smells

* fix: module import error by importing itself

* fix: return call missing

* fix: workspace name set up

* fix: workspace name to show

* fix: add missing header

* fix: add missing section

* fix: missing config workspace name update

* added fail on status code (#108)

Co-authored-by: suman123 <[email protected]>
Co-authored-by: Charles Santos <[email protected]>
Co-authored-by: Syed Mujeeb <[email protected]>

* Engineers 698 - Fix/reserve account (#134)

Use optionalChaining in reserveAccount

Co-authored-by: Syed Mujeeb <[email protected]>
Co-authored-by: saravananvenkatesan <[email protected]>
Co-authored-by: sumanraj123 <[email protected]>
Co-authored-by: suman123 <[email protected]>
  • Loading branch information
5 people authored Oct 10, 2022
1 parent b6e867c commit cc3533e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cypress-shared/support/common/testcase.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export function cancelTheOrder(orderEnv) {
method: 'POST',
url: cancelOrderAPI(baseUrl, order[orderEnv]),
headers: VTEX_AUTH_HEADER(apiKey, apiToken),
...FAIL_ON_STATUS_CODE,
body: {
reason: 'Customer bought it by mistake',
},
Expand Down Expand Up @@ -325,7 +326,7 @@ export function deleteAddresses() {
})
}

/*
/*
Below fn operates with getTestVariables
*/

Expand Down
2 changes: 1 addition & 1 deletion node/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ exports.getConfig = async (configFile) => {
const WORKSPACE = await this.getWorkspaceName(config)
const ACCOUNT = config.base.vtex.account
const DOMAIN = config.base.vtex.domain
const RESERVE = config.workspace.reserveAccount.enabled
const RESERVE = config.workspace?.reserveAccount?.enabled

config.base.vtex.authUrl = `https://${VTEX_ACCOUNT}${VTEX_AUTH_PATH}`
config.base.vtex.baseUrl = `https://${WORKSPACE}--${ACCOUNT}.${DOMAIN}`
Expand Down
2 changes: 1 addition & 1 deletion node/workspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ exports.linkApp = async (config) => {
exports.teardown = async (config, linkSucceed = true) => {
const START = system.tick()
const { workspace } = config
const RESERVE = config.workspace.reserveAccount.enabled
const RESERVE = config.workspace?.reserveAccount?.enabled

if (RESERVE) await lock.releaseAccount(config)

Expand Down

0 comments on commit cc3533e

Please sign in to comment.