Skip to content

Commit 1816356

Browse files
committed
PS: Add test with missing remote flow.
1 parent 3101cc8 commit 1816356

File tree

1 file changed

+4
-1
lines changed
  • powershell/ql/test/library-tests/frameworks/microsoft_powershell

1 file changed

+4
-1
lines changed

powershell/ql/test/library-tests/frameworks/microsoft_powershell/test.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ $xmlQuery = "/Users/User"
55
$path = "C:/Users/MyData.xml"
66
$xmldata = Select-Xml -Path $path -XPath $xmlQuery # $ type="file stream"
77

8-
$hexdata = Format-Hex -Path $path -Count 48 # $ type="file stream"
8+
$hexdata = Format-Hex -Path $path -Count 48 # $ type="file stream"
9+
10+
$remote_data1 = Iwr https://example.com/install.ps1 # $ MISSING: type="remote flow source"
11+
$remote_data2 = Invoke-RestMethod -Uri https://blogs.msdn.microsoft.com/powershell/feed/ # $ MISSING: type="remote flow source"

0 commit comments

Comments
 (0)