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

pulibrary / tigerdata-app / 7fde352f-4bc4-4b4c-bc2b-821ce4858ea9

10 Nov 2025 09:08PM UTC coverage: 91.073% (-0.1%) from 91.201%
7fde352f-4bc4-4b4c-bc2b-821ce4858ea9

Pull #2162

circleci

Precilla Prempeh
Adding the windows external pop icon
Co-authored-by: Robert-Anthony Lee-Faison <leefaisonr@users.noreply.github.com>
Pull Request #2162: Made "select HPC clusters" & "Globus" clickable and both link open new tabs

2836 of 3114 relevant lines covered (91.07%)

548.91 hits per line

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

100.0
/app/models/mediaflux/test_asset_create_request.rb
1
# frozen_string_literal: true
2
module Mediaflux
4✔
3
  class TestAssetCreateRequest < Request
4✔
4
    attr_reader :parent_id, :count, :pattern
4✔
5

6
    # Constructor
7
    # @param session_token [String] the API token for the authenticated session
8
    # @param parent_id [Integer] nid of namespace or collection to create the test assets in
9
    # @param count [Integer] Number of assets to create (default 1)
10
    # @param pattern [String] Optional base name of the assets to create
11
    def initialize(session_token:, parent_id:, count: 1, pattern: nil)
4✔
12
      super(session_token: session_token)
52✔
13
      @parent_id = parent_id
52✔
14
      @count = count
52✔
15
      @pattern = pattern
52✔
16
    end
17

18
    # Specifies the Mediaflux service to use when creating assets
19
    # @return [String]
20
    def self.service
4✔
21
      "asset.test.create"
104✔
22
    end
23

24
    private
4✔
25

26
      def build_http_request_body(name:)
4✔
27
        super do |xml|
104✔
28
          xml.args do
104✔
29
            xml.pid parent_id
104✔
30
            xml.nb count
104✔
31
            xml.send("base-name", pattern) if pattern.present?
104✔
32
          end
33
        end
34
      end
35
  end
36
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