Change cookie, configuration and cache files to use appdir path.

Review Request #11423 — Created Jan. 31, 2021 and updated — Latest diff uploaded

Information

RBTools
master

Reviewers

We need to unify the locations that store cookie, config and cache files for the later releases.
Copy any legacy cookie files to the new appdir path and create new cookie file at the new appdir path if no legacy cookie files exist.

Write a test for generate configuration file in appdir path and pass it.

Write a test for create_cookie_jar and pass it.

Changes between revision 8 and 9

orig
1
2
3
4
5
6
7
8
9
10
11

Commits

Summary ID Author
[WIP] Finish the draft code for the cookie and config. Write a unit test for ...
7f8b6b99a8c39662a0d8831d449db3ca1945d162 Qianxi Li
[WIP] Edit cookie creating and path checking. Pass the test for XDG config file.
ec1cf8f0aa8ab5c81f42715270b0c2d4199331cd Qianxi Li
Fix extra space before newline. Fix too long lines.
a5e2d448a613cffa1009674cdb1061cbbdcebf3b Qianxi Li
Remove spaces in new line.
f60f00f2d313b018825cca518633066896a2681a Qianxi Li
Add unit test to create_cookie_jar.
b05575d3c99615d649bd3f4adc3dfb32e93402be Qianxi Li
Fix trailing white space, over-indented problems.
f5aa5eccc8ead51240a5f139a3248960e4c5cec2 Qianxi Li
Fix test_http_request.py
71c31506c3165d238d0eaa168ef1f4c17a5a7445 Qianxi Li
Fix create_cookie_jar function.
6d57058e179ec636a8a3ac508c5a00807cdbc8f6 Qianxi Li
Fix setup_repo.py.
552de386b0667a0db8020d88564844264d00f168 Qianxi Li
Fix appdirs.py and remove unnecessary test from test_setup_repo.py.
d421c909bd01da48e004a11d0056481eb3e802f1 Qianxi Li
Fix filesystem.py
a3295f5bad2cfc260341c06cf0945e05ec86733c Qianxi Li
Fix coding style problems.
1fc9a6a01a54b98e09b3bde248b48c5175f051dc Qianxi Li
Fix more coding style problems.
8e48a26470284962daeb30e17a53dced2f2f189c Qianxi Li
Fix extra space.
e7398999263160ee91f0500b8de28aab6b471b39 Qianxi Li
Fix style problems
0168f862bbbb32c1b146c1d3e09bd8d37c9c0089 Qianxi Li
Finish unit test for create_cookie_jar function
0892802e729248ba08535faeb3929a8184971da6 Qianxi Li
rbtools/api/.DS_Store
rbtools/api/request.py
rbtools/api/tests/test_http_request.py
rbtools/commands/api.py
rbtools/commands/setup_repo.py
rbtools/utils/.DS_Store
rbtools/utils/filesystem.py
Loading...