-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zos download attributes #2335
Open
jace-roell
wants to merge
39
commits into
master
Choose a base branch
from
zos-download-attributes
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+278
−18
Open
Zos download attributes #2335
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
0983d3e
attributes passed to ussFile(), need to implement
jace-roell bf60219
poc work
jace-roell 4b5c6fc
progress checkpoint
jace-roell c87ee64
progress
jace-roell b2781ce
handle binary in .zos attributes files
jace-roell 3a1a16e
binary fix
jace-roell 2483f41
unused import
jace-roell 1f57ce6
system test work
jace-roell dff1a43
remove temp files
jace-roell 60d81b4
system test start
jace-roell 59f18a8
system test fix with file extensions for remoteEncoding
jace-roell 8406831
changelog, system tests, unit tests
jace-roell 29d9e5c
changelog
jace-roell fe613e3
change encoding on test
jace-roell d0c9178
integration test snapshot
jace-roell fe263c5
fixed changed test encoding
jace-roell 4056a4f
left over package.json data from canceled integration tests
jace-roell 54a0ff0
Merge branch 'master' into zos-download-attributes
jace-roell f4177de
changelog
jace-roell b5d768b
changelog fix
jace-roell 73ae952
condensed attributes assignment to downloadOptions and removed unnece…
jace-roell e9e1953
Merge branch 'master' into zos-download-attributes
jace-roell 59df2f0
linting
jace-roell 8dd118f
changelog
jace-roell 055baa1
changelog
jace-roell 35dc5d1
changelog
jace-roell 4f23a0f
Merge branch 'master' into zos-download-attributes
jace-roell 6edee45
changelog
jace-roell 299557c
changelog
jace-roell 685fa54
Update packages/zosfiles/CHANGELOG.md
jace-roell 35a2351
Merge branch 'master' into zos-download-attributes
jace-roell c0002e7
condenses attributes being passed to download options object
jace-roell d0be449
remove unneccesary property
jace-roell 75aaab8
import
jace-roell b05be48
shell script for system test fix
jace-roell a2494c8
added local encoding support and updated system tests
jace-roell 7872472
changelog and linting
jace-roell 49325e9
changelog
jace-roell 47b3ed0
changelog
jace-roell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
8 changes: 6 additions & 2 deletions
8
..._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 $? |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Declaration and assignment of
attributes
can be joined since it isn't used elsewhere in the function 😋