Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
235 0 0 2 99.1% 30.49 s

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
org.metricshub.winrm.light 54 0 0 0 100% 9.195 s
org.metricshub.winrm.service 14 0 0 0 100% 0.008 s
org.metricshub.winrm.wql 3 0 0 0 100% 0.011 s
org.metricshub.winrm.cli 47 0 0 0 100% 0.164 s
org.metricshub.winrm.command 3 0 0 0 100% 0.068 s
org.metricshub.winrm.service.client.auth 2 0 0 0 100% 0.001 s
org.metricshub.winrm 112 0 0 2 98.2% 21.04 s

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

org.metricshub.winrm.light

- Class Tests Errors Failures Skipped Success Rate Time
HttpTransportDeadlineTest 3 0 0 0 100% 6.005 s
CipherGenTest 4 0 0 0 100% 0.242 s
WsmanProtocolTest 12 0 0 0 100% 0.039 s
WsmanRetryTest 10 0 0 0 100% 2.883 s
LightTlsTest 2 0 0 0 100% 0.002 s
BasicAuthSchemeTest 6 0 0 0 100% 0.005 s
WsmanClientParityTest 9 0 0 0 100% 0.007 s
FallbackAuthSchemeTest 7 0 0 0 100% 0.003 s
BasicAuthCloseRaceTest 1 0 0 0 100% 0.009 s

org.metricshub.winrm.service

- Class Tests Errors Failures Skipped Success Rate Time
WinRMEndpointTest 6 0 0 0 100% 0.003 s
WinRMExecutorFactoryTest 8 0 0 0 100% 0.005 s

org.metricshub.winrm.wql

- Class Tests Errors Failures Skipped Success Rate Time
WinRMWqlExecutorTest 3 0 0 0 100% 0.011 s

org.metricshub.winrm.cli

- Class Tests Errors Failures Skipped Success Rate Time
CliArgumentsTest 11 0 0 0 100% 0.011 s
InteractiveShellTest 11 0 0 0 100% 0.067 s
JsonLinesWriterTest 1 0 0 0 100% 0.001 s
CommandLineBuilderTest 3 0 0 0 100% 0.001 s
WinRmCliTest 21 0 0 0 100% 0.084 s

org.metricshub.winrm.command

- Class Tests Errors Failures Skipped Success Rate Time
WinRMCommandExecutorTest 3 0 0 0 100% 0.068 s

org.metricshub.winrm.service.client.auth

- Class Tests Errors Failures Skipped Success Rate Time
AuthenticationEnumTest 2 0 0 0 100% 0.001 s

org.metricshub.winrm

- Class Tests Errors Failures Skipped Success Rate Time
CommandStdinTest 16 0 0 0 100% 1.695 s
ShellFileCopyTest 20 0 0 0 100% 5.041 s
WinRMClientTest 22 0 0 0 100% 7.436 s
WqlQueryTest 1 0 0 0 100% 0.005 s
UtilsTest 1 0 0 0 100% 0.001 s
ChunkDecoderTest 5 0 0 0 100% 0.009 s
WinRMClientBuilderTest 15 0 0 0 100% 0.095 s
WinRMLiveTest 2 0 0 2 0% 0.001 s
StreamingApiTest 30 0 0 0 100% 6.760 s

Test Cases

[Summary] [Package List] [Test Cases]

CliArgumentsTest

parsesBasicOverHttp 0.001 s
httpsUsesItsDefaultPort 0.001 s
rejectsInvalidArguments 0.002 s
parsesTheRemoteWorkingDirectory 0 s
acceptsEveryCommandAlias 0 s
parsesHttpsKerberosAndExplicitValues 0.001 s
parsesRepeatableEnvironmentVariables 0.001 s
stripsExactlyOneFinalPasswordFileLineEnding 0.001 s
parsesDefaultsAndClearsDirectPassword 0.001 s
acceptsOmittedPasswordForInteractivePrompting 0.001 s
infersKerberosRealmFromKdcDnsSuffix 0 s

CommandStdinTest

interactiveStdinDeclarationIsRejectedByExecute 0.005 s
interactiveWriteLargerThanOneEnvelopeIsSplit 0.052 s
remoteProcessStdinSupportsAWriteFlushReadRoundTrip 0.011 s
interruptSendsCtrlCAndTheSessionContinues 0.010 s
emptyStdinAnnouncesOnlyTheEndOfInput 0.010 s
aFailedStdinDeliveryIsNotMaskedByACleanupFailure(Path) 0.008 s
largePresuppliedStdinIsChunkedAndOnlyTheLastChunkCarriesEnd 0.024 s
presuppliedStringStdinIsDeliveredWithPipeSemantics 0.009 s
aSendLeftUnansweredSurfacesAsTheDocumentedTimeout 1.509 s
presuppliedStdinWithStartClosesTheWriterFromTheStart 0.009 s
stdinAfterCompletionIsSilentOnCloseAndRefusedOnWrite 0.007 s
aDecodeOnlyCharsetDoesNotBreakAProcessThatNeverWrites 0.007 s
cursorRejectsInputAfterTheEndMark 0.006 s
earlyCloseWithStdinOpenLeavesNoStrayRequests 0.006 s
presuppliedFileStdinIsDeliveredVerbatim(Path) 0.009 s
stdinEncodingIsStatefulAcrossFlushes 0.008 s

WinRMCommandExecutorTest

testExecuteArgumentChecks 0.007 s
testExecuteWithFileToCopy 0.034 s
testExecuteWithoutFilesToCopy 0.022 s

AuthenticationEnumTest

testGetValueOfIsInsensitiveToTheDefaultLocale 0.001 s
testGetValueOf 0 s

ShellFileCopyTest

copiesToExplicitRemotePathCreatingTheDirectory 0.007 s
retriesACommandRejectedByTheOperationQuota 5.003 s
fallsBackToSha1WhenSha256IsUnavailable 0.002 s
parsesCertutilDigestOutputs 0.001 s
failsWhenThePublishedDestinationDigestMismatches 0.002 s
explicitRemotePathTransferIsSkippedWhenDigestsMatch 0.001 s
transfersEmptyFile 0.001 s
throwsAndCleansUpOnIntegrityMismatch 0.001 s
returnsCommandUnchangedWithoutFiles 0.001 s
buildsContentAddressedRemoteNames 0.001 s
rejectsPathWithoutFileName 0 s
uncRemotePathsAreAccepted 0.001 s
buildUploadCommandsChunksBelowTheCommandLineLimit 0.004 s
repairsAMismatchedCachedDestination 0.002 s
rejectsFileNamesUnsafeForTheCommandShell 0.002 s
explicitRemotePathIsValidated 0.002 s
skipsUploadWhenRemoteCopyIsIdentical 0.002 s
classifiesQuotaRejectionsForRetry 0.001 s
transferCommandsCarryTheShellEnvironment 0.002 s
uploadsNewFileAndRewritesCommand 0.002 s

WinRMEndpointTest

testBuildEndpointUrl 0.001 s
testGetEndPointPort 0 s
testWinRMEndpoint 0.001 s
testGetPort 0 s
testUnderscoreHostnameEndpoint 0 s
testBuildNamespace 0 s

WinRMClientTest

powerShellUploadRewritesThePathInsideTheScriptBeforeEncodingIt(Path) 0.180 s
uploadsCarryTheEnvironmentIntoTheShellTheyCreate(Path) 0.033 s
powerShellEncodesTheScriptSoNoEscapingIsNeeded 0.012 s
explicitCharsetOverridesTheShellDefault 0.013 s
powerShellRejectsABlankScript 0.002 s
environmentVariablesAreSentInTheCreateShellRequest 0.012 s
queuedOperationThatTimesOutIsNeverSent 2.513 s
powerShellRunsALongScriptFromATransferredFile 0.029 s
wqlOptionsReachTheWire 0.012 s
commandReturnsTypedResult 0.009 s
wrongPasswordSurfacesAsTypedAuthenticationException 0.004 s
powerShellKeepsAScriptJustUnderTheLimitEncoded 0.012 s
closedClientRejectsOperationsAndCloseIsIdempotent 0.001 s
slowServerSurfacesAsTypedTimeoutException 0.502 s
wsmanFaultSurfacesAsTypedException 0.005 s
commandIsNeverStartedWhenTheTimeoutFiresDuringShellCreation 2.009 s
commandDecodesOutputAsUtf8WithoutProbingTheRemoteCodeSet 0.010 s
receivePollingStopsWhenTheTimeoutFiresMidCommand 2.013 s
invalidWqlIsRejectedBeforeAnythingIsSent 0.001 s
commandOutputKeepsNonAsciiCharactersOfEveryLocale 0.008 s
wqlReturnsTypedRowsAndColumnsOverEncryptedNtlm 0.006 s
expiredCachedShellIsRecreatedAndTheCommandRetried 0.014 s

WqlQueryTest

gettersReturnUnmodifiableViews 0.003 s

WinRMExecutorFactoryTest

createsLightExecutorOverHttp 0.001 s
kerberosOverHttpsAccepted 0.001 s
mixedKerberosNtlmRejectedOverHttp 0.001 s
basicFallsBackWithOtherSchemesOverHttp 0 s
closedLightExecutorRejectsOperations 0 s
basicAcceptedOverHttpAndHttps 0 s
kerberosOnlyOverHttpRejected 0 s
createsLightExecutorOverHttps 0.001 s

UtilsTest

sanitizesComputerNames 0 s

ChunkDecoderTest

emptyChunksProduceNoOutput 0.001 s
malformedInputIsReplacedLikeStringConstructor 0.004 s
anySplitOfMultibyteUtf8MatchesWholeBufferDecoding 0.001 s
singleByteCharsetsPassThrough 0.002 s
oneByteAtATimeMatchesWholeBufferDecoding 0 s

HttpTransportDeadlineTest

everyLegOfABoundedPollSharesOneDeadline 2.001 s
aTricklingPeerCannotStretchAStreamingRoundTrip 2.002 s
aTricklingPeerCannotStretchABoundedPollPastItsDeadline 2.001 s

CipherGenTest

encodeMatchesStringGetBytes 0.001 s
upperCaseMatchesStringToUpperCase 0.128 s
upperCaseMatchesStringToUpperCaseForEveryCodePoint 0.111 s
lmResponseAppliesFullUppercaseExpansions 0.001 s

WinRMClientBuilderTest

hostnameIsRequired 0.001 s
buildSucceedsWithoutConnecting 0.070 s
wqlRequestValidatesItsOptions 0.002 s
wqlRowLooksUpPropertiesCaseInsensitively 0.001 s
incompleteDomainQualifiedUsernamesAreRejected 0.001 s
sslContextAndTrustAllAreMutuallyExclusive 0 s
retriesMustBeNonNegativeWithANonNegativeDelay 0.001 s
timeoutMustBeAtLeastOneMillisecond 0.002 s
basicIsAcceptedOverHttpAndHttps 0.002 s
kerberosOverHttpIsRejectedAtBuildTime 0.001 s
credentialsAreRequired 0.001 s
portMustBeValid 0.001 s
commandRequestValidatesItsOptions 0.001 s
basicFallsBackWithOtherSchemes 0 s
authenticationMustNotBeEmpty 0.002 s

WsmanProtocolTest

wqlFaultSurfacesCodeReasonAndWbemDetail 0.003 s
basicAuthenticatesEveryRequestOverPlaintextHttp 0.003 s
commandExitCodeAboveIntegerMaxIsNarrowedNotRejected 0.004 s
wrongPasswordSurfacesTheCxfAuthenticationErrorMessage 0.001 s
basicWithWrongCredentialSurfacesTheCxfAuthenticationErrorMessage 0.001 s
wqlPagesOverChunkedResponsesWithTrailers 0.003 s
receiveRetriesOnOperationTimeoutFault 0.005 s
basicSendsTheWhitespaceNormalizedAccountOnTheWire 0.002 s
commandLifecycleReassemblesMultibyteOutputSplitAcrossReceives 0.005 s
wqlPagesAcrossEnumerateAndPullsOverEncryptedNtlm 0.003 s
terminateSignalToleratesShellNotFoundFault 0.003 s
ntlmAuthenticatesWithNonAsciiPassword 0.003 s

InteractiveShellTest

theSyntheticExitFollowsAProperlyTerminatedRecordDirectly 0.008 s
forwardsCtrlCAsTheCtrlCSignalAndTheSessionSurvivesIt 0.015 s
bridgesInputLinesAndOutputAndPropagatesTheExitCode 0.006 s
aLocalReadFailureFailsTheSourceInsteadOfEndingIt 0.001 s
aFireHoseOfInputIsForwardedInBoundedBatches 0.008 s
localInputCharsetProbesTheJdkSignalsBeforeTheProcessDefault 0.002 s
echoesOutputArrivingBeforeAnyInput 0.007 s
queuedInputSourceNormalizesLineEndingsAndReportsTheEnd 0.001 s
queuedInputSourceSlicesANewlineFreeRecordInsteadOfMaterializingIt 0.002 s
theSyntheticExitIsNeverGluedOntoAnUnterminatedRecord 0.009 s
inputQueuedWhileTheFinalReceiveWasInFlightDoesNotHideTheExitCode 0.006 s

WsmanRetryTest

closeDuringARetryPauseAbortsInsteadOfRevivingTheConnection 0.805 s
doesNotRetryACredentialRejection 0.003 s
retryPolicyPlumbsThroughTheFluentBuilder 0.054 s
retriesATransportFailureWrappedByAnOrderedAuthenticationFallback 0.054 s
exhaustsRetriesAgainstAnUnreachableEndpoint 0.402 s
retriesAConnectionDroppedDuringTheHandshake 0.053 s
doesNotRetryARequestThatReachedTheServer 0.004 s
retryPausesStayInsideTheWallClockDeadline 1.501 s
rejectsNegativeRetrySettings 0.001 s
failsImmediatelyWithoutARetryPolicy 0.001 s

JsonLinesWriterTest

writesOrderedEscapedJsonValues 0.001 s

LightTlsTest

validatesByDefault 0.001 s
insecureWhenOptedIn 0.001 s

BasicAuthSchemeTest

thePasswordArrayIsNotCopiedIntoAnImmutableString 0 s
resetErasesTheDerivedCredential 0.001 s
wrapAndUnwrapArePlaintextPassThrough 0.001 s
resetIsIdempotentAndSafeToCallTwice 0.001 s
headerIsStatelessAndIdenticalOnEveryRequest 0 s
encodesDomainQualifiedCredentialAsBasicHeader 0.001 s

CommandLineBuilderTest

joinsSimpleArguments 0 s
escapesQuotesAndTrailingBackslashesUsingWindowsRules 0.001 s
quotesArgumentsWithSpacesAndEmptyArguments 0 s

WinRMLiveTest

wqlReturnsRows 0 s
- System property [winrm.live.host] does not exist -
commandSucceeds 0 s
- System property [winrm.live.host] does not exist -

WsmanClientParityTest

wmiPropertyNamedItemsIsNotMistakenForTheWrapper 0.001 s
operationTimeoutFormattedLikeCxf 0.001 s
wmiPropertyNamedEndOfSequenceIsNotMistakenForTheMarker 0.001 s
itemsCollectedFromBothNamespaceVariants 0.001 s
endOfSequenceDetectedInWsmanNamespaceVariant 0 s
endOfSequenceDetectedInWsEnumerationNamespace 0.001 s
faultSummaryDoesNotDuplicateDetailAlreadyInReason 0.001 s
faultSummaryWithoutWsmanFaultDetailStillReadable 0.001 s
faultSummaryCarriesWsmanFaultDetailWithWbemMnemonic 0 s

FallbackAuthSchemeTest

resetClearsEveryCandidateNotJustTheActiveOne 0.001 s
clientSideFailureFallsBackToNextScheme 0 s
requestAuthorizationForwardsToTheActiveStatelessScheme 0 s
allSchemesFailingThrows 0.001 s
requestAuthorizationIsNullWhileUnauthenticated 0 s
reAuthFailureOfActiveSchemeFallsThrough 0.001 s
advanceMovesPastAServerRejectedScheme 0 s

WinRMWqlExecutorTest

testExecuteArgumentChecks 0.001 s
executesTheQueryThroughTheRealProtocolStack 0.008 s
resultCollectionsAreDefensivelyCopiedAndUnmodifiable 0.001 s

StreamingApiTest

startStreamsOutputWhileTheCommandIsStillRunning 0.008 s
closingWqlStreamEarlySendsRelease 0.013 s
deadPeerCannotHoldABoundedWaitHostage 1.010 s
completionSignalIsBoundedByThePollBudget 1.007 s
aPollAnswerSlowerThanTheCadenceDoesNotFailTheStream 2.506 s
quietTimeoutDuringCommandStartupSurfacesAsInactivityTimeout 0.003 s
interleavedChannelsAreSplitAndOrderIsPreservedPerChannel 0.005 s
boundedPollTreatsAFaultWithinBudgetAsNothingYet 0.156 s
closingTheClientWhileAWqlStreamIsOpenLeavesTheStreamInert 0.003 s
multibyteCharacterSplitAcrossReceiveResponsesIsDecodedCorrectly 0.005 s
waitForDeadlineExpiresWhileTheCommandKeepsRunning 0.356 s
commandSilenceBeyondTheTimeoutSurfacesAsInactivityTimeout 0.005 s
quietTimeoutOnTheInitialEnumerateSurfacesAsInactivityTimeout 0.002 s
faultAnsweringTheCompletionSignalDoesNotFailThePlainFetchEither 0.005 s
wqlStreamMapsOperationTimeoutFaultToInactivityTimeout 0.002 s
totalServerSilenceIsBoundedByTheInactivityTimeout 0.303 s
callbacksReceiveChunksAsTheyArriveAndTheResultIsComplete 0.006 s
aSubFloorInactivityTimeoutKeepsBoundedPollsLocalAndTheProcessUsable 0.505 s
closingTheClientWhileAProcessIsOpenLeavesTheProcessInert 0.004 s
wqlStreamYieldsRowsBeforeLaterPagesAreFetched 0.003 s
executorsUnawareOfEnvironmentVariablesKeepWorkingWhenNoneAreSet 0.002 s
executorsOverridingTheHistoricalStartCommandKeepWorkingThroughTheNewOverload 0.001 s
closingTheProcessEarlyTerminatesTheRemoteCommand 0.006 s
wqlStreamRejectsInvalidQueryBeforeSendingAnything 0.001 s
faultAnsweringTheCompletionSignalDoesNotHideCompletion 0.007 s
exhaustedWqlStreamReleasesTheConnectionWithoutRelease 0.006 s
completionInsideATinyPollSkipsTheSignal 0.005 s
closingAfterTheFinalChunkStillExposesTheExitCode 0.006 s
executorsWithoutStreamingSupportRejectTheStreamingEntryPoints 0.001 s
completionArrivingNearTheDeadlineIsStillReported 0.805 s

WinRmCliTest

shellRunsAQuietCmdUnderASingleByteCodePage 0.018 s
honorsAnAmbientInsecureTlsProperty 0.003 s
mapsUsageTimeoutConnectionAuthenticationAndProtocolFailures 0.002 s
explicitStdinOptionForcesForwardingAndRequiresTheCommandSubcommand 0 s
shellRejectsATimeoutBelowThePollFloor 0 s
writesWqlAsJsonLines 0.001 s
helpAndVersionDoNotConnect 0.003 s
configuresInferredKerberosRealmBeforeConnectingAndRestoresProperties 0.001 s
shellSubcommandBridgesTheRemoteShellAndPropagatesItsExitCode 0.001 s
neverPrintsPasswordInUsageDiagnostics 0.001 s
requestsAnOmittedPasswordAndClearsThePromptBuffer 0.001 s
detectsRedirectedStdinByProbingTheInputItself 0 s
passesTheDirectoryOptionThroughAsTheWorkingDirectory 0.001 s
sendsTheWorkingDirectoryInTheCreateShellRequest 0.018 s
pipedLocalStandardInputIsForwardedToTheCommandButAConsoleIsNot 0.001 s
reportsMissingConsoleForNonInteractiveRuns 0.001 s
forwardsCommandStreamsAndExitCode 0 s
passesTheEnvOptionsThroughAsTheShellEnvironment 0 s
theShellCodePageAndCharsetAreAlwaysResolvedTogether 0.011 s
shellTakesNoArgument 0.001 s
decodesCommandOutputAsUtf8WhateverTheRemoteLocale 0.011 s

BasicAuthCloseRaceTest

closeWhileOperationInFlightStillErasesTheBasicCredential 0.009 s

Failure Details

[Summary] [Package List] [Test Cases]


wqlReturnsRows
- skipped: System property [winrm.live.host] does not exist
commandSucceeds
- skipped: System property [winrm.live.host] does not exist

winrm wql wmi windows ntlm kerberos java remote management
Searching...
No results.