Skip to content

Conversation

@markekraus
Copy link
Contributor

Addresss #4609 and corrects Pending tests from #4546

This test uses an ASP.NET Core 2.0 app in a docker container to run a simple service to echo back the client certificate details if one was provided. If a client cert is not provided, the details are empty and the status reports FAILED. Since this test will be slow in the CI's I have use a separate Describe block and included the Feature and Slow tags.

@msftclas
Copy link

@markekraus,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

$result = Invoke-RestMethod -uri $uri -Certificate $Certificate -SkipCertificateCheck
$result | Should Match ([regex]::Escape($successMessage))
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add new line at EOF.

Push-Location $containerPath
$null = docker build -t $containerName .
$timeOut = (get-date).AddSeconds($initTimeoutSeconds)
$null = docker run -d -p ${portNumber}:${portNumber} --name $containerName $containerName $portNumber
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we compile the container at CI startup like our TestExe and run? If it is possible we could remove "Slow" and "Feature".
Also maybe move the project to Tools folder.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we compile the container at CI start, that couples the test with an entire build scenario instead of a test scenario.

@@ -0,0 +1 @@
@RenderBody() No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please check all files and add new line at EOF - some files have it and some files haven't it - we should use one pattern for all files.

Copy link
Contributor Author

@markekraus markekraus Aug 19, 2017

Choose a reason for hiding this comment

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

@iSazonov _Layout.cshtml and index.cshtml intentional as those determine the response stream and superfluous new lines cause it to respond less like a raw reply and more like an HTML page. I will correct the others.

@markekraus
Copy link
Contributor Author

I think different approach will be needed. After looking at the Travis CI failures and reading the documentation, Docker is not supported on OS X.

I'm going to close this pull request and think of a new plan of attack.

@markekraus markekraus closed this Aug 19, 2017
@iSazonov
Copy link
Collaborator

Thank you so much for your efforts!

Perhaps we should still use servers that are supported by CIs internally.

@markekraus
Copy link
Contributor Author

@iSazonov I'm considering using the aspnetcore project without docker as the baked in Kestrel server is available cross-platform. Making the tests CI specific couples them with the CI and then breaks when the CI environment changes. The only problem with the aspnetcore approach is that the test will now be coupled with the dotnet SDK, probably not a huge deal as moving to the next major version would entail other code and testing reworks. I welcome your input on it in #4609.

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.

3 participants