[PATCH 2/2] wsdapi/tests: Add tests for AppSequence in Probe message.
Huw Davies
huw at codeweavers.com
Tue Jun 19 03:10:54 CDT 2018
On Mon, Jun 18, 2018 at 10:41:55PM +0100, Owen Rudge wrote:
> Signed-off-by: Owen Rudge <orudge at codeweavers.com>
> ---
> dlls/wsdapi/tests/discovery.c | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
>
> diff --git a/dlls/wsdapi/tests/discovery.c b/dlls/wsdapi/tests/discovery.c
> index 84aa67d663..13b6de0b34 100644
> --- a/dlls/wsdapi/tests/discovery.c
> +++ b/dlls/wsdapi/tests/discovery.c
> @@ -48,6 +48,7 @@ static const char testProbeMessage[] = "<?xml version=\"1.0\" encoding=\"utf-8\"
> "xmlns:grog=\"http://more.tests/\"><soap:Header><wsa:To>urn:schemas-xmlsoap-org:ws:2005:04:discovery</wsa:To>"
> "<wsa:Action>http://schemas.xmlsoap.org/ws/2005/04/discovery/Probe</wsa:Action>"
> "<wsa:MessageID>urn:uuid:%s</wsa:MessageID>"
> + "<wsd:AppSequence InstanceId=\"21\" SequenceId=\"urn:uuid:638abee8-124d-4b6a-8b85-8cf2837a2fd2\" MessageNumber=\"14\"></wsd:AppSequence>"
> "<grog:Perry>ExtraInfo</grog:Perry></soap:Header>"
> "<soap:Body><wsd:Probe><wsd:Types>grog:Cider</wsd:Types><grog:Lager>MoreInfo</grog:Lager></wsd:Probe></soap:Body></soap:Envelope>";
>
> @@ -533,6 +534,7 @@ static HRESULT WINAPI IWSDiscoveryPublisherNotifyImpl_ProbeHandler(IWSDiscoveryP
> static const WCHAR perry[] = {'P','e','r','r','y',0};
> static const WCHAR extra_info[] = {'E','x','t','r','a','I','n','f','o',0};
> WSD_PROBE *probe_msg = (WSD_PROBE *) pSoap->Body;
> + WSD_APP_SEQUENCE *appseq = (WSD_APP_SEQUENCE *) pSoap->Header.AppSequence;
>
> ok(pSoap->Body != NULL, "pSoap->Body == NULL\n");
> ok(pSoap->Header.To != NULL && lstrcmpW(pSoap->Header.To, discoveryTo) == 0,
> @@ -556,6 +558,22 @@ static HRESULT WINAPI IWSDiscoveryPublisherNotifyImpl_ProbeHandler(IWSDiscoveryP
> if ((ret != RPC_S_OK) || (UuidEqual(&uuid, &probe_message_id, &ret) == FALSE)) return S_OK;
> }
>
> + ok(appseq != NULL, "pSoap->Header.AppSequence == NULL\n");
> +
> + if (appseq != NULL)
> + {
> + static const WCHAR seq_id[] = {'u','r','n',':','u','u','i','d',':','6','3','8','a','b','e','e','8','-',
> + '1','2','4','d','-','4','b','6','a','-','8','b','8','5','-',
> + '8','c','f','2','8','3','7','a','2','f','d','2'};
> +
> + ok(appseq->InstanceId == 21, "pSoap->Header.AppSequence->InstanceId = %s\n",
> + wine_dbgstr_longlong(appseq->InstanceId));
> + ok(lstrcmpW(appseq->SequenceId, seq_id) == 0, "pSoap->Header.AppSequence->SequenceId = '%s'\n",
> + wine_dbgstr_w(appseq->SequenceId));
> + ok(appseq->MessageNumber == 14, "pSoap->Header.AppSequence->MessageNumber = %s\n",
> + wine_dbgstr_longlong(appseq->MessageNumber));
> + }
> +
> verify_wsdxml_any_text("pSoap->Header.AnyHeaders", pSoap->Header.AnyHeaders, uri_more_tests_no_slash,
> prefix_grog, perry, extra_info);
>
>
This is failing for me:
../../../tools/runtest -q -P wine -T ../../.. -M wsdapi.dll -p wsdapi_test.exe.so discovery && touch discovery.ok
0009:fixme:hnetcfg:fw_profile_get_FirewallEnabled 0x164100, 0x32fcd2
0009:fixme:winsock:set_dont_fragment IP_DONTFRAGMENT for IPv4 not supported in this platform
0038:fixme:webservices:WsReadToStartElement name and/or namespace not verified
0037:fixme:webservices:WsReadToStartElement name and/or namespace not verified
0034:fixme:webservices:WsReadToStartElement name and/or namespace not verified
0038:fixme:webservices:WsReadToStartElement name and/or namespace not verified
0034:fixme:webservices:WsReadToStartElement name and/or namespace not verified
0037:fixme:webservices:WsReadToStartElement name and/or namespace not verified
0038:fixme:webservices:WsReadToStartElement name and/or namespace not verified
0034:fixme:webservices:WsReadToStartElement name and/or namespace not verified
0038:fixme:webservices:WsReadToStartElement name and/or namespace not verified
0038:fixme:webservices:WsReadToStartElement name and/or namespace not verified
0037:fixme:webservices:WsReadToStartElement name and/or namespace not verified
0038:fixme:webservices:WsReadToStartElement name and/or namespace not verified
discovery.c:571: Test failed: pSoap->Header.AppSequence->SequenceId = 'L"urn:uuid:638abee8-124d-4b6a-8b85-8cf2837a2fd2"'
0034:fixme:webservices:WsReadToStartElement name and/or namespace not verified
discovery.c:571: Test failed: pSoap->Header.AppSequence->SequenceId = 'L"urn:uuid:638abee8-124d-4b6a-8b85-8cf2837a2fd2"'
0037:fixme:webservices:WsReadToStartElement name and/or namespace not verified
discovery.c:571: Test failed: pSoap->Header.AppSequence->SequenceId = 'L"urn:uuid:638abee8-124d-4b6a-8b85-8cf2837a2fd2"'
0038:fixme:webservices:WsReadToStartElement name and/or namespace not verified
discovery.c:571: Test failed: pSoap->Header.AppSequence->SequenceId = 'L"urn:uuid:638abee8-124d-4b6a-8b85-8cf2837a2fd2"'
004a:fixme:webservices:WsReadToStartElement name and/or namespace not verified
0046:fixme:webservices:WsReadToStartElement name and/or namespace not verified
0049:fixme:webservices:WsReadToStartElement name and/or namespace not verified
004a:fixme:webservices:WsReadToStartElement name and/or namespace not verified
0049:fixme:webservices:WsReadToStartElement name and/or namespace not verified
0046:fixme:webservices:WsReadToStartElement name and/or namespace not verified
004a:fixme:webservices:WsReadToStartElement name and/or namespace not verified
004a:fixme:webservices:WsReadToStartElement name and/or namespace not verified
0049:fixme:webservices:WsReadToStartElement name and/or namespace not verified
004a:fixme:webservices:WsReadToStartElement name and/or namespace not verified
0046:fixme:webservices:WsReadToStartElement name and/or namespace not verified
004a:fixme:webservices:WsReadToStartElement name and/or namespace not verified
make: *** [Makefile:225: discovery.ok] Error 4
More information about the wine-devel
mailing list