• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / tigerdata-app / 5205f704-d89d-4c43-8cfa-9e6783edc33a

29 Feb 2024 07:04PM UTC coverage: 60.206% (-29.9%) from 90.092%
5205f704-d89d-4c43-8cfa-9e6783edc33a

push

circleci

jrgriffiniii
Ensuring that the storage usage and storage capacity is retrieved for
Mediaflux Projects and rendered on the "contents" Project View

11 of 34 new or added lines in 4 files covered. (32.35%)

451 existing lines in 34 files now uncovered.

935 of 1553 relevant lines covered (60.21%)

9.47 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

52.94
/app/models/mediaflux/http/schema_create_request.rb
1
# frozen_string_literal: true
2
module Mediaflux
1✔
3
  module Http
1✔
4
    class SchemaCreateRequest < Request
1✔
5
      attr_reader :name, :description
1✔
6

7
      # Mediaflux service to use to define a new namespace
8
      # We use "asset.doc.namespace.update" instead of "asset.doc.namespace.create"
9
      # because update is more forgiving if the asseet.doc.namespace already exists
10
      def self.service
1✔
UNCOV
11
        "asset.doc.namespace.update"
×
12
      end
13

14
      def initialize(name:, description:, session_token:)
1✔
15
        super(session_token: session_token)
1✔
UNCOV
16
        @name = name
×
UNCOV
17
        @description = description
×
18
      end
19

20
      private
1✔
21

22
        def build_http_request_body(name:)
1✔
UNCOV
23
          super(name: name) do |xml|
×
UNCOV
24
            xml.args do
×
UNCOV
25
              xml.create true
×
UNCOV
26
              xml.namespace @name
×
UNCOV
27
              xml.description @description
×
28
            end
29
          end
30
        end
31
    end
32
  end
33
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc