Skip to content

test: Allow user to specify which transport to use - #157

Merged
kadler merged 11 commits into
IBM:masterfrom
abmusse:config-transport
Mar 27, 2020
Merged

test: Allow user to specify which transport to use#157
kadler merged 11 commits into
IBM:masterfrom
abmusse:config-transport

Conversation

@abmusse

Copy link
Copy Markdown
Member

Currently every transport is used to run each functional test.

This PR refactors to use only one transport per test case.

Also allows user to export TKTRANSPORT env variable to specify which transport to use.

Resolves#153

@abmusse
abmusse requested a review from kadlerMarch 16, 2020 23:56
@abmusseabmusse mentioned this pull request Mar 17, 2020
Comment threadtest/functional/config.js Outdated
Comment threadtest/functional/deprecated/commandsFunctional.js
@abmusse

Copy link
Copy Markdown
MemberAuthor

Needed to resolve these conflicts ran git pull --rebase upstream master .

Comment threadtest/functional/deprecated/commandsFunctional.js
transportOptions: {
database: process.env.TKDB || '*LOCAL',
username: process.env.TKUSER || '',
password: process.env.TKPASS || '',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we have a separate password and passphrase?

@abmusseabmusseMar 25, 2020

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

passphrase is used by the ssh transport to decrypt the private key. Its provided if the user's private key requires a passphrase.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, right. Might be good to have a comment in there.

Comment threadtest/functional/ProgramCallFunctional.js Outdated
@abmusse

Copy link
Copy Markdown
MemberAuthor

Will need to fixup conflicts again.

@abmusse
abmusse requested a review from kadlerMarch 27, 2020 18:13

@kadlerkadler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests run so LGTM.

@kadler
kadler merged commit 3f58723 into IBM:masterMar 27, 2020
@abmusseabmusse mentioned this pull request Mar 27, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: Allow user to specify which transport to use with functional tests

2 participants

@abmusse@kadler