-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2335 from zowe/zos-download-attributes
Zos download attributes
- Loading branch information
Showing
18 changed files
with
296 additions
and
20 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
13 changes: 11 additions & 2 deletions
13
..._integration__/download/uss/__snapshots__/cli.files.download.uss.integration.test.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
5 changes: 5 additions & 0 deletions
5
packages/zosfiles/__tests__/__system__/methods/download/__resources__/.zosattributes
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,5 @@ | ||
*.json - | ||
*.bin binary binary | ||
*.jcl IBM-1047 IBM-1047 | ||
*.md UTF-8 UTF-8 | ||
*.txt UTF-8 IBM-1047 |
5 changes: 5 additions & 0 deletions
5
packages/zosfiles/__tests__/__system__/methods/download/__resources__/.zosattributes-binary
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,5 @@ | ||
*.json - | ||
*.bin binary binary | ||
*.jcl IBM-1047 IBM-1047 | ||
*.md UTF-8 UTF-8 | ||
*.txt binary binary |
12 changes: 12 additions & 0 deletions
12
packages/zosfiles/__tests__/__system__/methods/download/__resources__/download_file.sh
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,12 @@ | ||
#!/bin/bash | ||
account=$1 | ||
host=$2 | ||
port=$3 | ||
user=$4 | ||
password=$5 | ||
ru=$6 | ||
fileToDownload=$7 | ||
attributes=$8 | ||
|
||
zowe zos-files download uss "$fileToDownload" --attributes "$attributes" --host $host --port $port --user $user --password $password --ru $ru | ||
exit $? |
1 change: 1 addition & 0 deletions
1
...s/__tests__/__system__/methods/download/__resources__/testfiles/downloadEncodingCheck.txt
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 @@ | ||
abcdefghijklmnopqrstuvwxyz |
1 change: 1 addition & 0 deletions
1
...sts__/__system__/methods/download/__resources__/testfiles/downloadEncodingCheckBinary.txt
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 @@ | ||
[][][] |
13 changes: 13 additions & 0 deletions
13
packages/zosfiles/__tests__/__system__/methods/download/__resources__/upload_file_to_uss.sh
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,13 @@ | ||
#!/bin/bash | ||
account=$1 | ||
host=$2 | ||
port=$3 | ||
user=$4 | ||
password=$5 | ||
ru=$6 | ||
inputFile=$7 | ||
ussName=$8 | ||
encoding=$9 | ||
|
||
zowe zos-files upload file-to-uss "$inputFile" "$ussName" --encoding $encoding --host $host --port $port --user $user --password $password --ru $ru | ||
exit $? |
13 changes: 13 additions & 0 deletions
13
...zosfiles/__tests__/__system__/methods/download/__resources__/upload_file_to_uss_binary.sh
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,13 @@ | ||
#!/bin/bash | ||
account=$1 | ||
host=$2 | ||
port=$3 | ||
user=$4 | ||
password=$5 | ||
ru=$6 | ||
inputFile=$7 | ||
ussName=$8 | ||
binary=$9 | ||
|
||
zowe zos-files upload file-to-uss "$inputFile" "$ussName" --binary $binary --host $host --port $port --user $user --password $password --ru $ru | ||
exit $? |
Oops, something went wrong.