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

pulibrary / tigerdata-app / eb989aec-16f0-4f3a-94d3-7c4cfbf19a4d

11 Nov 2025 04:04PM UTC coverage: 88.311% (-2.9%) from 91.201%
eb989aec-16f0-4f3a-94d3-7c4cfbf19a4d

Pull #2162

circleci

leefaisonr
run prettier
Pull Request #2162: Made "select HPC clusters" & "Globus" clickable and both link open new tabs

2750 of 3114 relevant lines covered (88.31%)

508.91 hits per line

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

41.18
/app/models/mediaflux/service_execute_request.rb
1
# frozen_string_literal: true
2
module Mediaflux
1✔
3
  class ServiceExecuteRequest < Request
1✔
4
    attr_reader :token, :service_name, :document
1✔
5

6
    # Constructor
7
    # @param session_token [String] the API token for the authenticated session
8
    # @param service_name  [String] Name of the service to run.
9
    #                               Can be any command like asset.namespace.list
10
    # @param token         [String] Optional User token for the person executing the command
11
    # @param document      [String] Optional xml document to pass on to the service.
12
    #                               Used to pass parameters to the command
13
    def initialize(session_token:, service_name:, token: nil, document: nil)
1✔
14
      super(session_token: session_token)
×
15
      @service_name = service_name
×
16
      @token = token
×
17
      @document = document
×
18
    end
19

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

26
    private
1✔
27

28
      def build_http_request_body(name:)
1✔
29
        super do |xml|
×
30
          xml.args do
×
31
            xml.token token if token.present?
×
32
            xml.service name: service_name do
×
33
              xml << document
×
34
            end
35
          end
36
        end
37
      end
38
  end
39
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