-
Notifications
You must be signed in to change notification settings - Fork 77
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
add testcase #144
add testcase #144
Conversation
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.
- Must have an issue for this PR
- These test cases do not cover all the modules.
.tools/gen_config.sh
Outdated
cat > ~/.paddle/config << EOF | ||
datacenters: | ||
- name: datacenter1 | ||
username: [email protected] |
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.
Do not use actual usernames.
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.
Done
@@ -0,0 +1,10 @@ | |||
#/bin/bash | |||
mkdir -p ~/.paddle |
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.
Maybe instead of generating this file with a script (unit test breaks without running this script), you can check in this file into the code base, maybe under testdata
, like:https://github.com/golang/go/blob/master/src/net/testdata/hosts . And add argument to override the default location ~/.paddle
to the test file.
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.
config
是一个全局变量,这个参数不太好覆盖。如果不用这个全局变量,需要改动的地方太多。这个能否后续再想想如何更简单的解决这问题?
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.
LGTM
Fix #156
Add test case of
ls
chunkmeta
cp
.