diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-05-02 18:37:38 +0000 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2019-05-02 18:37:38 +0000 |
commit | ca09e3fce7d739b41ab0e45d05a878be0e0b8356 (patch) | |
tree | 64fc578138377b1d6111b2ae91a0f522b756a5aa /spec/models/namespace_spec.rb | |
parent | acaef5e35b9519b5e4ebcefee274e8c8f3d8c85a (diff) | |
download | gitlab-ce-revert-f1526ccd.tar.gz |
Revert "Merge branch 'ac-package-storage-stats' into 'master'"revert-f1526ccd
This reverts merge request !27373
Diffstat (limited to 'spec/models/namespace_spec.rb')
-rw-r--r-- | spec/models/namespace_spec.rb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/spec/models/namespace_spec.rb b/spec/models/namespace_spec.rb index bfde367c47f..dd5edca5059 100644 --- a/spec/models/namespace_spec.rb +++ b/spec/models/namespace_spec.rb @@ -146,20 +146,20 @@ describe Namespace do create(:project, namespace: namespace, statistics: build(:project_statistics, + storage_size: 606, repository_size: 101, lfs_objects_size: 202, - build_artifacts_size: 303, - packages_size: 404)) + build_artifacts_size: 303)) end let(:project2) do create(:project, namespace: namespace, statistics: build(:project_statistics, + storage_size: 60, repository_size: 10, lfs_objects_size: 20, - build_artifacts_size: 30, - packages_size: 40)) + build_artifacts_size: 30)) end it "sums all project storage counters in the namespace" do @@ -167,11 +167,10 @@ describe Namespace do project2 statistics = described_class.with_statistics.find(namespace.id) - expect(statistics.storage_size).to eq 1110 + expect(statistics.storage_size).to eq 666 expect(statistics.repository_size).to eq 111 expect(statistics.lfs_objects_size).to eq 222 expect(statistics.build_artifacts_size).to eq 333 - expect(statistics.packages_size).to eq 444 end it "correctly handles namespaces without projects" do @@ -181,7 +180,6 @@ describe Namespace do expect(statistics.repository_size).to eq 0 expect(statistics.lfs_objects_size).to eq 0 expect(statistics.build_artifacts_size).to eq 0 - expect(statistics.packages_size).to eq 0 end end |