NegotiateStream Tests on Unix#6139
Conversation
|
|
||
|
|
||
| GssBuffer inputToken {.length = UnsignedCast(inputLength), .value = inputBytes}; | ||
| GssBuffer gssBuffer { .length = 0, .value = nullptr }; |
There was a problem hiding this comment.
Nits: a few formatting things, e.g. extra blank line above, the two initializers not having the same spacing around the fields, etc.
|
With the fixture setup done here, will remove the sample code from #6028 |
| struct PAL_GssBuffer* outBuffer); | ||
|
|
||
| /* | ||
|
|
There was a problem hiding this comment.
Nit: similar formatting nits, e.g. blank line, function arguments not aligned, etc.
|
Looks like a good start. Thanks! |
|
|
||
| [Fact, OuterLoop] | ||
| [PlatformSpecific(PlatformID.Linux | PlatformID.OSX)] | ||
| public void NegotiateStream_StreamToStream_KerberosAuthDefaultCredentials_Success() |
There was a problem hiding this comment.
Let us add a DefaultCreds_failure test case where TGT does not exist before calling AuthenticateAsClientAsync
901b652 to
83cb0e3
Compare
|
@dotnet-bot Test Outerloop Ubuntu Initiating Outerloop run to test these changes with the merged changes in #6028 |
|
The netci.groovy changes have been pushed to master, and should be used for outerloop ubuntu14.04 runs. Triggering an outerloop run to verify. |
|
@dotnet-bot test outerloop Ubuntu14.04 |
|
The machine setup works, as the Outerloop Process tests that require admin credentials pass in the run. However, while running |
| Assert.False(client.IsAuthenticated, "client is not authenticated before AuthenticateAsClient call"); | ||
|
|
||
| Task[] auth = new Task[2]; | ||
| string user = string.Format("{0}@{1}", TestConfiguration.KerberosUser, TestConfiguration.Realm); |
c26cd43 to
f079a7c
Compare
|
I am removing the (do not merge) tag since all the prereqs have landed into the dev branch. |
|
LGTM. @stephentoub , please see if the latest commit looks good. This will help unblock @shrutigarg who is working on adding NTLM tests |
| private static int RunSetupScript(string args = null) | ||
| { | ||
| ProcessStartInfo startInfo = new ProcessStartInfo(); | ||
| startInfo.UseShellExecute = true; |
There was a problem hiding this comment.
Nit: Why true? It looks like the command being launched itself invokes bash.
|
A few more nits, but otherwise looks good. You can merge once the few things are addressed. Thanks! |
* Tests install kdc on the local machine via kdc-setup.sh (The script will be run as admin)
40e2c8f to
3e3e68f
Compare
|
Thanks @stephentoub - I fixed them. |
|
@dotnet-bot Test Outerloop Ubuntu14.04 |
|
Outer loop tests failed with : System.Net.Security.Tests did succeed |
Thanks for the combined effort, @Priya91 , @rahulkotecha and @kapilash @Priya91 can you extend the changes for Ubuntu to other outerloop OSs? |
|
@dotnet-bot, Test Innerloop CentOS7.1 |
|
Failures in CentOS are due to
|
|
I am merging this to the dev/negotiate branch to unblock ntlm tests. The tests seem to have run successfully and the failures are all unrelated. |
NegotiateStream Tests on Unix
Introducing CI tests for NegotiateStream on Unix.
This PR is introduced as two commits -
2)where the setup is done via a test fixture.
In order for the tests to run successfully, #5773 needs to be merged.
cc: @stephentoub @vijaykota @shrutigarg