Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
run: |
cd $GITHUB_WORKSPACE
./ci/install-deps.sh
python ./ci/run.py
./run_test.sh
3 changes: 3 additions & 0 deletions ci/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ pytest>=7.4.0
pytest-instafail
boto3==1.28.12
oss2==2.18.4
sqlalchemy==2.0.18
pylibmc==1.6.3
redis==5.0.8
2 changes: 0 additions & 2 deletions ci/run.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
def main():
shell("py.test", env=dict(os.environ))



if __name__ == "__main__":
setup_logging()
main()
91 changes: 0 additions & 91 deletions run_test.py

This file was deleted.

13 changes: 13 additions & 0 deletions run_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

set -e

SCRIPT=${BASH_SOURCE[0]}
PROJECT_DIR=$(dirname "${SCRIPT}")

cd $PROJECT_DIR

export PYTHONPATH=$PROJECT_DIR:$PYTHONPATH
export SEAFILE_CONF_DIR=$PROJECT_DIR/tests/conf

ci/run.py --test-only
Empty file added tests/conf/seafile.conf
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
this is deleted file.

wntifyazgg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
this is modified file.

ayexqkushe.


modified.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
this is moved file.

kldqoejvys
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
this is new file.


Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
thisi s deleted folder.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this is moved folder.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
this is modified file.

ayexqkushe.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
this is renamed folder.

aofsnmayhu
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
this is renamed file.

crmqzuhsed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this is added folder.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "03d5a857ccc2764e69a124cd8f3360aea1d5595f", "ctime": 1517210898, "description": "Added \"create_deleted_file.md\"", "repo_desc": "", "root_id": "d9d1cd4f7281f194a226ebe1727de5351b0f6238", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "repo_category": null, "creator_name": "[email protected]", "parent_id": "928fc8c308d441b224b9238d47938cc6ac944950", "second_parent_id": null, "repo_name": "obj_test", "no_local_history": 1, "version": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "07418435d577e814a94a42a35eeb0f6f93cf578d", "parent_id": "5a4b25345346cb19bad61d801061c6795d55aa4f", "version": 1, "root_id": "3ad0a00df678b537c928513c05890c1f3bc50266", "creator_name": "[email protected]", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "second_parent_id": null, "description": "Added \"deleted_folder.md\"", "ctime": 1517211654, "repo_name": "obj_test", "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "0a3d3867a4ae7470485f2d591b9981ff885f59e3", "parent_id": "c4c0925d53b61d173ddeeac9b45c34aa0e19608f", "version": 1, "root_id": "3c1000329fcb5a51a9d1860d9b86ce7f4c7ceb5f", "creator_name": "[email protected]", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "second_parent_id": null, "description": "Modified \"create_renamed_file.md\"", "ctime": 1517211510, "repo_name": "obj_test", "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "13fbc1e153107678f501e1c807b5797269cbe601", "parent_id": "0a3d3867a4ae7470485f2d591b9981ff885f59e3", "version": 1, "root_id": "51346ce17df5ed7c3b4492405086b5bea03c5247", "creator_name": "[email protected]", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "second_parent_id": null, "description": "Modified \"create_moved_file.md\"", "ctime": 1517211537, "repo_name": "obj_test", "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "15c11b3e7643a9164cf4daf39b790421d1e934b3", "ctime": 1517210919, "description": "Added directory \"create_deleted_folder\"", "repo_desc": "", "root_id": "16f1fbdecdee83a17c3a608fef2c853be21c33e7", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "repo_category": null, "creator_name": "[email protected]", "parent_id": "e3eea2da33dedda26690739c1ca7b7da2022fa40", "second_parent_id": null, "repo_name": "obj_test", "no_local_history": 1, "version": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "17abc6246d4b213dc8e7c92e94b321af7708670a", "parent_id": "35b0b82a81825c0200fc508c7d1c3d02c30dc1fe", "version": 1, "root_id": "f8452a24cf7557319fb8cc36a42edbf4f69a0c65", "creator_name": "[email protected]", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "second_parent_id": null, "description": "Renamed \"renamed_folder\"", "ctime": 1517211616, "repo_name": "obj_test", "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "23f58ab01d4c6d79b8b2ea011ef1614e4097b935", "parent_id": "dc8cc4557a310f668bb81c3f44d90b1ff6270f38", "version": 1, "root_id": "f185a9b682960f1de13d135c0c63f40765236f2a", "creator_name": "[email protected]", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "second_parent_id": null, "description": "Modified \"create_modified_files.md\"", "ctime": 1517211880, "repo_name": "obj_test", "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "252795fc32563b965a28f72e991af55ab8318f3e", "parent_id": "7878ea888e60937b73e039461c456364f1aa138f", "version": 1, "root_id": "b7c5c9e9684a7907916878832fceef1252d47b1d", "creator_name": "[email protected]", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "second_parent_id": null, "description": "Modified \"create_modified_files.md\"", "ctime": 1517211571, "repo_name": "obj_test", "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "258fbe2382a9887ba9815aad8757afd4b5ce8d3d", "parent_id": "c39a521ab58e216103a8c668dda697a51f870426", "version": 1, "root_id": "3eea84c126b9a71c4dc817cec2e524501e96c0f7", "creator_name": "[email protected]", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "second_parent_id": null, "description": "Removed directory \"create_deleted_folder\"", "ctime": 1517211896, "repo_name": "obj_test", "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "35b0b82a81825c0200fc508c7d1c3d02c30dc1fe", "parent_id": "5b56f5470f6a55492585714c78b8e461875284d6", "version": 1, "root_id": "1c63b08bea7ccb2adfb7752cf1adc6af89f4ed91", "creator_name": "[email protected]", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "second_parent_id": null, "description": "Added \"renamed_folder\"", "ctime": 1517211612, "repo_name": "obj_test", "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "3a0a8e3a9a2b1bc834dc1cc4b372a6401d1e8e10", "parent_id": "7a51f20b9efd471b8fe74ad66214e652594f9b92", "version": 1, "root_id": "b7c5c9e9684a7907916878832fceef1252d47b1d", "creator_name": "[email protected]", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "second_parent_id": null, "description": "Deleted \"tmp_folder\"", "ctime": 1517211582, "repo_name": "obj_test", "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "3d4659a6cbe13d0c2111455f590fa1537a6ec1e4", "parent_id": "d4797f387be27a9f3bf210441dd02fd715dbd454", "version": 1, "root_id": "f47bf2d9da74c4cf77fc107f23391b397671b528", "creator_name": "[email protected]", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "second_parent_id": null, "description": "Added \"moved_folder.md\"", "ctime": 1517211672, "repo_name": "obj_test", "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "4405b7234b1e9dd74fe7c4f6a844ce79198e0e19", "parent_id": "9e4705d102d86756eb8ed9d8d16922ee3212c7c5", "version": 1, "root_id": "24ce2befc450e4d60a7ea792bcfcf5d50393b712", "creator_name": "[email protected]", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "second_parent_id": null, "description": "Modified \"added_folder.md\"", "ctime": 1517211712, "repo_name": "obj_test", "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "5a4b25345346cb19bad61d801061c6795d55aa4f", "parent_id": "17abc6246d4b213dc8e7c92e94b321af7708670a", "version": 1, "root_id": "16580b8b29769e8c0ffca0cca3ab3b437a789862", "creator_name": "[email protected]", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "second_parent_id": null, "description": "Modified \"renamed_folder.md\"", "ctime": 1517211641, "repo_name": "obj_test", "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "5b56f5470f6a55492585714c78b8e461875284d6", "parent_id": "3a0a8e3a9a2b1bc834dc1cc4b372a6401d1e8e10", "version": 1, "root_id": "ba84b0b6e3e58d558933cb504bd7c0fee777ebbc", "creator_name": "[email protected]", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "second_parent_id": null, "description": "Added directory \"tmp_folder\"", "ctime": 1517211587, "repo_name": "obj_test", "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "5e3f290cbd811849f5697b10bd67502605f5f4c2", "ctime": 1517210869, "description": "", "repo_desc": "", "root_id": "0000000000000000000000000000000000000000", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "repo_category": null, "creator_name": "[email protected]", "parent_id": null, "second_parent_id": null, "repo_name": "obj_test", "no_local_history": 1, "version": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "76b617eddf61c9e8768bf8e93a0c473c971e9790", "parent_id": "b9dbd0c72d8a0ccfd9110d638397c52d1540c114", "version": 1, "root_id": "727b85252990036bbab6e0d0d03aa78edb5369f2", "creator_name": "[email protected]", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "second_parent_id": null, "description": "Added \"added_folder\"", "ctime": 1517211693, "repo_name": "obj_test", "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "7878ea888e60937b73e039461c456364f1aa138f", "parent_id": "13fbc1e153107678f501e1c807b5797269cbe601", "version": 1, "root_id": "3c8ab7d86e67138b1aa48824866986522c011391", "creator_name": "[email protected]", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "second_parent_id": null, "description": "Modified \"create_deleted_file.md\"", "ctime": 1517211552, "repo_name": "obj_test", "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "7a51f20b9efd471b8fe74ad66214e652594f9b92", "parent_id": "252795fc32563b965a28f72e991af55ab8318f3e", "version": 1, "root_id": "cc2aa776bd97661ce82523ba779718332dced917", "creator_name": "[email protected]", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "second_parent_id": null, "description": "Added \"tmp_folder\"", "ctime": 1517211578, "repo_name": "obj_test", "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "7ed2a485f96121f5d336363e8d61d9ef2911beeb", "ctime": 1517210909, "description": "Added directory \"create_added_folder\"", "repo_desc": "", "root_id": "cd9e02d554601b5e5a6fce90507e750b7a3f4639", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "repo_category": null, "creator_name": "[email protected]", "parent_id": "d1b33fde55b05171aad287bdb87a43f2252a41d6", "second_parent_id": null, "repo_name": "obj_test", "no_local_history": 1, "version": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "928fc8c308d441b224b9238d47938cc6ac944950", "ctime": 1517210894, "description": "Added \"create_moved_file.md\"", "repo_desc": "", "root_id": "2475bcb9dbe92ad9728d07a96c02d00a374c55dd", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "repo_category": null, "creator_name": "[email protected]", "parent_id": "9484c79dc0f6f50dcb3116ecfa56c145bf7d113d", "second_parent_id": null, "repo_name": "obj_test", "no_local_history": 1, "version": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "9484c79dc0f6f50dcb3116ecfa56c145bf7d113d", "ctime": 1517210887, "description": "Added \"create_renamed_file.md\"", "repo_desc": "", "root_id": "cca3625387a7bcae54d06c7e2211e3ca09548d77", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "repo_category": null, "creator_name": "[email protected]", "parent_id": "ebd1fdb77760f23d2ab29e1d2e121484260adac9", "second_parent_id": null, "repo_name": "obj_test", "no_local_history": 1, "version": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "9e4705d102d86756eb8ed9d8d16922ee3212c7c5", "parent_id": "76b617eddf61c9e8768bf8e93a0c473c971e9790", "version": 1, "root_id": "be4f5a12b2d5a9e853ed2aa34a71c5eefdc94522", "creator_name": "[email protected]", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "second_parent_id": null, "description": "Renamed \"added_folder\"", "ctime": 1517211703, "repo_name": "obj_test", "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "a24bf4385e5df18922337390e757c4b7789d853d", "parent_id": "ffc32568c059e9532cb426f19f8138c624c5cdd4", "version": 1, "root_id": "e03ba3543f3e96e20ffa2bb086f7a79194311724", "creator_name": "[email protected]", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "second_parent_id": null, "description": "Renamed directory \"create_renamed_folder\"", "ctime": 1517211913, "repo_name": "obj_test", "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "b9dbd0c72d8a0ccfd9110d638397c52d1540c114", "parent_id": "3d4659a6cbe13d0c2111455f590fa1537a6ec1e4", "version": 1, "root_id": "fc9d6f213586a57ba2c7fab2ceabdb6ff5ddf846", "creator_name": "[email protected]", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "second_parent_id": null, "description": "Modified \"moved_folder.md\"", "ctime": 1517211682, "repo_name": "obj_test", "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "bbf5382d4c63f58fc647b416e6c059f948e13277", "parent_id": "4405b7234b1e9dd74fe7c4f6a844ce79198e0e19", "version": 1, "root_id": "0e01eb14c626bc33670ae5df2ebe8ed22bedcf3e", "creator_name": "[email protected]", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "second_parent_id": null, "description": "Moved \"create_moved_file.md\"", "ctime": 1517211856, "repo_name": "obj_test", "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "c39a521ab58e216103a8c668dda697a51f870426", "parent_id": "23f58ab01d4c6d79b8b2ea011ef1614e4097b935", "version": 1, "root_id": "886d71ca196eab9a337ff25407fbb87e1a7b0a96", "creator_name": "[email protected]", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "second_parent_id": null, "description": "Deleted \"create_deleted_file.md\"", "ctime": 1517211894, "repo_name": "obj_test", "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "c4c0925d53b61d173ddeeac9b45c34aa0e19608f", "root_id": "5340f65b17b688040b287ac55b18709ee66d28d4", "version": 1, "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "repo_name": "obj_test", "creator_name": "[email protected]", "parent_id": "e3e0c6f57baa1a122af75bb395719d9725169982", "ctime": 1517211270, "creator": "0000000000000000000000000000000000000000", "description": "Modified \"create_new_file.md\"", "second_parent_id": null, "repo_desc": "", "repo_category": null, "no_local_history": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"commit_id": "d1b33fde55b05171aad287bdb87a43f2252a41d6", "ctime": 1517210903, "description": "Added \"create_modified_files.md\"", "repo_desc": "", "root_id": "a68ded33eb116a785f93f03cc5e395ba8f9252ef", "repo_id": "3f9e4aa5-d6ba-4066-a1d6-81824f422af1", "creator": "0000000000000000000000000000000000000000", "repo_category": null, "creator_name": "[email protected]", "parent_id": "03d5a857ccc2764e69a124cd8f3360aea1d5595f", "second_parent_id": null, "repo_name": "obj_test", "no_local_history": 1, "version": 1}
Loading
Loading