Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support W3C Extended Log File Format in Import-Csv (#2482)
* Add support W3C Extended Log File Format 1. Add support W3C Extended Log File Format 2. Refactoring Import-Csv tests 3. Add #Type tests * Fx test after review * Fix tests after review * Remove unneeded test
- Loading branch information
Showing
5 changed files
with
118 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
test/powershell/Modules/Microsoft.PowerShell.Utility/assets/TestImportCsv_NoHeader.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
data1,1,A | ||
data2,2,B | ||
data3,3,C | ||
data4,4,D |
9 changes: 9 additions & 0 deletions
9
test/powershell/Modules/Microsoft.PowerShell.Utility/assets/TestImportCsv_W3C_ELF.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#Software: Microsoft Exchange Server | ||
#Version: 15.0.0.0 | ||
#Log-type: Transport Connectivity Log | ||
#Date: 2016-09-16T23:30:07.338Z | ||
#Fields: Column1,Column2,Column 3 | ||
data1,1,A | ||
data2,2,B | ||
data3,3,C | ||
data4,4,D |
11 changes: 6 additions & 5 deletions
11
...oft.PowerShell.Utility/assets/TestCsv.csv → ...ility/assets/TestImportCsv_WithHeader.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Column1,Column2,Column 3 | ||
data1,1,A | ||
data2,2,B | ||
data3,3,C | ||
data4,4,D | ||
# Test comment | ||
Column1,Column2,Column 3 | ||
data1,1,A | ||
data2,2,B | ||
data3,3,C | ||
data4,4,D |