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

[tests][security] Update TrustTest to run faster (without timeouts) #3108

Merged
merged 2 commits into from Dec 18, 2017

Conversation

spouliot
Copy link
Contributor

The original test was to cover both X509Certificate and X509Certiicate2
when using with SecTrust. However the code diverged over time. That and
the different certificates used caused the *2 tests to hit a time
loop (designed to reduce incorrect errors randomly reported).

We want to keep the "delay" logic for it's intended purpose - but it
should not be needed normally.

The tests have been refactored to reuse the same logic (between both
types of certificates) which solve this (when used with the same
certificates)

Replace #3068

The original test was to cover both X509Certificate and X509Certiicate2
when using with SecTrust. However the code diverged over time. That and
the different certificates used caused the `*2` tests to hit a time
loop (designed to reduce incorrect errors randomly reported).

We want to keep the "delay" logic for it's intended purpose - but it
should not be needed normally.

The tests have been refactored to reuse the same logic (between both
types of certificates) which solve this (when used with the same
certificates)

Replace xamarin#3068
@monojenkins
Copy link
Collaborator

Build failure

@spouliot
Copy link
Contributor Author

interesting failures :|

@spouliot spouliot added the do-not-merge Do not merge this pull request label Dec 15, 2017
…rent one (for 2) has different results between iOS 10.3 (and macOS 10.12) and iOS 11 - and this is not the goal of the test to check those differences
@spouliot spouliot removed the do-not-merge Do not merge this pull request label Dec 18, 2017
@monojenkins
Copy link
Collaborator

Build success

@spouliot spouliot merged commit 48530bc into xamarin:master Dec 18, 2017
@spouliot spouliot deleted the trust-update branch December 18, 2017 16:14
Sign up for free to 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.

None yet

3 participants