• 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

42.86
/app/models/mediaflux/http/namespace_create_request.rb
1
# frozen_string_literal: true
2
module Mediaflux
1✔
3
  module Http
1✔
4
    class NamespaceCreateRequest < Request
1✔
5
      attr_reader :description, :namespace, :store
1✔
6

7
      # Constructor
8
      # @param session_token [String] the API token for the authenticated session
9
      # @param namespace [String] name of namespace to be created
10
      # @param decsription [String] Optional description of the namespace
11
      # @param store [String] Optional store name where the namespace will be attached
12
      def initialize(session_token:, namespace:, description: nil, store: nil)
1✔
13
        super(session_token: session_token)
1✔
UNCOV
14
        @namespace = namespace
×
UNCOV
15
        @description = description
×
UNCOV
16
        @store = store
×
17
      end
18

19
      # Specifies the Mediaflux service to use when creating assets
20
      # @return [String]
21
      def self.service
1✔
UNCOV
22
        "asset.namespace.create"
×
23
      end
24

25
      private
1✔
26

27
        def build_http_request_body(name:)
1✔
UNCOV
28
          super do |xml|
×
UNCOV
29
            xml.args do
×
UNCOV
30
              if namespace.present?
×
UNCOV
31
                xml.namespace do
×
UNCOV
32
                  xml.parent.set_attribute("all", true)
×
UNCOV
33
                  xml.text(namespace)
×
34
                end
35
              end
UNCOV
36
              xml.description description if description.present?
×
UNCOV
37
              xml.store store if store.present?
×
38
            end
39
          end
40
        end
41
    end
42
  end
43
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