feat: add local file and dir uploads configuration#29
feat: add local file and dir uploads configuration#29a-dubs wants to merge 2 commits intocanonical:mainfrom
Conversation
46f41a3 to
37e27f9
Compare
rpocase
left a comment
There was a problem hiding this comment.
- can we add unit tests
- are there exceptional cases we should consider as part of this implementation? what errors could we catch to better help the user?
toabctl
left a comment
There was a problem hiding this comment.
- needs unittests
- needs functional tests
- needs documentation
|
@toabctl I know I know I marked this as WIP, I just wanted to know if this is something you think is worth adding before proceeding to put time into finalizing this work. |
I was unaware of the to-do list!! Thank you for pointing that out. Will be sure to mark this item as done as part of this PR. |
173232e to
e0fb364
Compare
e0fb364 to
bb05937
Compare
rpocase
left a comment
There was a problem hiding this comment.
lgtm pending tom's suggestion and my nits.
b8271d7 to
b6289d6
Compare
Since linting and testing paths are not specified by default in tox.ini, they would find various untracked files in my working directory and cause the tests to fail. This change sets the posargs to a more reasonable default, and adds a lint-fix environment to tox.ini which will run black and have it auto format the code.
b6289d6 to
9877222
Compare
9877222 to
f4009bf
Compare
This change updates the ConfigFile configuration to allow for specifying a source path that can be either a directory or file and copying this to the chroot at the destination path. The 'source' field is mutually exclusive with the 'content' field for the ConfigFile type.
f4009bf to
83bd719
Compare
| import yaml | ||
|
|
||
| from chimg.common import run_command | ||
| from chimg.config import ConfigFile |
There was a problem hiding this comment.
don't import config. This should go through Context. Context should be the only direct user of Config. so use self.ctx.conf
No description provided.