Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(git provider): add tests for git providers creation from URL #2119

Merged
merged 13 commits into from Oct 31, 2018

Conversation

ccojocar
Copy link
Contributor

No description provided.

@ccojocar
Copy link
Contributor Author

/test bdd

4 similar comments
@ccojocar
Copy link
Contributor Author

/test bdd

@ccojocar
Copy link
Contributor Author

/test bdd

@rawlingsj
Copy link
Member

/test bdd

@rawlingsj
Copy link
Member

/test bdd

@rawlingsj
Copy link
Member

ok this is building now

@rawlingsj
Copy link
Member

/approve

@jenkins-x-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rawlingsj

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ccojocar
Copy link
Contributor Author

@rawlingsj Thanks! The tests seem to failed because of the secret masking:

expected: auth.UserAuth{Username:"test", ApiToken:"test", BearerToken:"", Password:""} actual : auth.UserAuth{Username:"****", ApiToken:"****", BearerToken:"", Password:""}

Any idea how can I disable it during tests?

@rawlingsj
Copy link
Member

Thanks! The tests seem to failed because of the secret masking:
Any idea how can I disable it during tests?

Ah I see, hmm I'm afraid I dont, @jtnord might have an idea?

@jtnord
Copy link

jtnord commented Oct 30, 2018

If you are using credentials then you can't not mask them, it's by design to prevent actual leaking. Why do bdd tests care about console output? Surely there is a mock git server that only accepts specific user/pass combinations and then you just care you could clone it so whatever operation was needed? Jenkins project has some simple git server docker that is used for its ATH...

@ccojocar
Copy link
Contributor Author

/test bdd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants