Prior to this commit, when listing a directory, we did not check up to the
contents. This fixes it.
This also fixes one inconsistent test data and the tests impacted by this
change.
Detected in D3692
Differential D3694
tests: Improve coverage on `directory_ls` endpoints ardumont on Aug 4 2020, 12:55 PM. Authored by
Details
Prior to this commit, when listing a directory, we did not check up to the This also fixes one inconsistent test data and the tests impacted by this Detected in D3692 tox
Diff Detail
Event TimelineComment Actions Build is green Patch application report for D3694 (id=13012)Could not rebase; Attempt merge onto 3c2e5a3d7d... Updating 3c2e5a3d..211132f8 Fast-forward swh/storage/cassandra/storage.py | 27 ++-- swh/storage/db.py | 29 ++-- swh/storage/in_memory.py | 22 ++- swh/storage/interface.py | 12 +- swh/storage/storage.py | 15 +- swh/storage/tests/storage_data.py | 2 +- swh/storage/tests/test_cassandra.py | 4 +- swh/storage/tests/test_storage.py | 267 +++++++++++++++++------------------- 8 files changed, 179 insertions(+), 199 deletions(-) Changes applied before testcommit 211132f825d2c9dcb8792e805d273f991412027c Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Tue Aug 4 12:40:24 2020 +0200 tests: Improve coverage on directory_ls endpoints Prior to this commit, when listing a directory, we did not check up to the contents. This fixes it. This also fixes one inconsistent test data and the tests impacted by this change. commit 15e8c996d44108a6557973724f7b25940be85d4f Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Tue Aug 4 10:06:50 2020 +0200 storage*: Type content_find(...) -> List[Content] Related to T645 See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/661/ for more details.
Comment Actions Unify second directory_ls assertion checks and drop no longer needed (nor Comment Actions Build is green Patch application report for D3694 (id=13013)Could not rebase; Attempt merge onto 3c2e5a3d7d... Updating 3c2e5a3d..7b25642d Fast-forward swh/storage/cassandra/storage.py | 27 ++-- swh/storage/db.py | 29 ++-- swh/storage/in_memory.py | 22 ++- swh/storage/interface.py | 12 +- swh/storage/storage.py | 15 +- swh/storage/tests/storage_data.py | 2 +- swh/storage/tests/test_cassandra.py | 4 +- swh/storage/tests/test_storage.py | 265 +++++++++++++++++------------------- 8 files changed, 178 insertions(+), 198 deletions(-) Changes applied before testcommit 7b25642d71f3c63135131d307615254e8bb569bd Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Tue Aug 4 12:40:24 2020 +0200 tests: Improve coverage on directory_ls endpoints Prior to this commit, when listing a directory, we did not check up to the contents. This fixes it. This also fixes one inconsistent test data and the tests impacted by this change. commit 15e8c996d44108a6557973724f7b25940be85d4f Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Tue Aug 4 10:06:50 2020 +0200 storage*: Type content_find(...) -> List[Content] Related to T645 See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/662/ for more details. Comment Actions Build is green Patch application report for D3694 (id=13014)Could not rebase; Attempt merge onto 3c2e5a3d7d... Updating 3c2e5a3d..54cf6797 Fast-forward swh/storage/cassandra/storage.py | 27 ++-- swh/storage/db.py | 29 ++-- swh/storage/in_memory.py | 22 ++- swh/storage/interface.py | 12 +- swh/storage/storage.py | 15 +- swh/storage/tests/storage_data.py | 2 +- swh/storage/tests/test_cassandra.py | 4 +- swh/storage/tests/test_storage.py | 278 +++++++++++++++++------------------- 8 files changed, 184 insertions(+), 205 deletions(-) Changes applied before testcommit 54cf6797e0298891198e28d20744148ece4585d9 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Tue Aug 4 12:40:24 2020 +0200 tests: Improve coverage on directory_ls endpoints Prior to this commit, when listing a directory, we did not check up to the contents. This fixes it. This also fixes one inconsistent test data and the tests impacted by this change. commit 15e8c996d44108a6557973724f7b25940be85d4f Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Tue Aug 4 10:06:50 2020 +0200 storage*: Type content_find(...) -> List[Content] Related to T645 See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/663/ for more details. Comment Actions s/up to the contents/down to contents/ in your commit message
Comment Actions Build is green Patch application report for D3694 (id=13017)Rebasing onto 15e8c996d4... Current branch diff-target is up to date. Changes applied before testcommit a5232b7a7bcd8e6727876eab907024ea9da55f0b Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Tue Aug 4 12:40:24 2020 +0200 tests: Improve coverage on directory_ls endpoints This fixes the current directory listing tests coverage to check down to the contents. This also fixes one inconsistent test data and the tests impacted by this change. See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/664/ for more details. |