Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
fakoua committed Jan 8, 2024
1 parent 78cfc76 commit 6b1884b
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 6 deletions.
30 changes: 30 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/soap_client_test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { denock } from "https://deno.land/x/denock@0.2.0/mod.ts";
import { SoapClient } from "./soap_client.ts";
import { assertStringIncludes } from "https://deno.land/std@0.182.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.61.0/testing/asserts.ts";
import { assertStringIncludes } from "https://deno.land/std@0.211.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.211.0/testing/asserts.ts";

function mock1() {
denock({
Expand Down
2 changes: 1 addition & 1 deletion src/soap_messages_test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
assertEquals,
assertStringIncludes,
} from "https://deno.land/std@0.182.0/testing/asserts.ts";
} from "https://deno.land/std@0.211.0/testing/asserts.ts";

import {
message_command,
Expand Down
6 changes: 3 additions & 3 deletions src/winrm_context_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as mf from "https://deno.land/x/mock_fetch@0.3.0/mod.ts";
import { WinRMContext } from "./winrm_context.ts";
import { assert, assertThrowsAsync } from "https://deno.land/std@0.61.0/testing/asserts.ts";
import { assert, assertRejects } from "https://deno.land/std@0.211.0/assert/mod.ts";

const ResponseShellId =
`<s:Envelope xml:lang="en-US" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><s:Header><a:Action>http://schemas.xmlsoap.org/ws/2004/09/transfer/CreateResponse</a:Action><a:MessageID>uuid:A222962A-9A19-4095-AE9C-3CB8CA4BE046</a:MessageID><a:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:To><a:RelatesTo>uuid:39747994-4352-46f0-9f57-3fceecb316c6</a:RelatesTo></s:Header><s:Body><x:ResourceCreated><a:Address>http://SamFlex:5985/wsman</a:Address><a:ReferenceParameters><w:ResourceURI>http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd</w:ResourceURI><w:SelectorSet><w:Selector Name="ShellId">1EDE9168-37EF-4F4C-981E-F2DF879B951A</w:Selector></w:SelectorSet></a:ReferenceParameters></x:ResourceCreated><rsp:Shell xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell"><rsp:ShellId>1EDE9168-37EF-4F4C-981E-F2DF879B951A</rsp:ShellId><rsp:ResourceUri>http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd</rsp:ResourceUri><rsp:Owner>winrm</rsp:Owner><rsp:ClientIP>fe80::fc1e:8ede:f8f9:8c8d%4</rsp:ClientIP><rsp:IdleTimeOut>PT7200.000S</rsp:IdleTimeOut><rsp:InputStreams>stdin</rsp:InputStreams><rsp:OutputStreams>stderr stdout</rsp:OutputStreams><rsp:ShellRunTime>P0DT0H0M0S</rsp:ShellRunTime><rsp:ShellInactivity>P0DT0H0M0S</rsp:ShellInactivity></rsp:Shell></s:Body></s:Envelope>`;
Expand Down Expand Up @@ -289,7 +289,7 @@ Deno.test("Open Shell twice exception", async () => {

await context.openShell();
//Assert
assertThrowsAsync( async (): Promise<void> => {
assertRejects( async (): Promise<void> => {
await context.openShell();
})
mf.uninstall();
Expand Down Expand Up @@ -317,7 +317,7 @@ Deno.test("Close Shell before open exception", () => {
);

//Assert
assertThrowsAsync( async (): Promise<void> => {
assertRejects( async (): Promise<void> => {
await context.closeShell();
})
mf.uninstall();
Expand Down

0 comments on commit 6b1884b

Please sign in to comment.