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

pulibrary / tigerdata-app / a25a9344-105b-44fa-8cbb-8294c0216121

30 Oct 2025 08:44PM UTC coverage: 64.982% (-22.7%) from 87.65%
a25a9344-105b-44fa-8cbb-8294c0216121

Pull #2128

circleci

hectorcorrea
Started updating the project show page to display metadata from Mediaflux
Pull Request #2128: Project Show page now displays metadata straight from Mediaflux

0 of 37 new or added lines in 3 files covered. (0.0%)

757 existing lines in 36 files now uncovered.

2134 of 3284 relevant lines covered (64.98%)

168.86 hits per line

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

0.0
/app/models/mediaflux/service_execute_request.rb
1
# frozen_string_literal: true
UNCOV
2
module Mediaflux
×
UNCOV
3
  class ServiceExecuteRequest < Request
×
UNCOV
4
    attr_reader :token, :service_name, :document
×
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
UNCOV
13
    def initialize(session_token:, service_name:, token: nil, document: nil)
×
UNCOV
14
      super(session_token: session_token)
×
UNCOV
15
      @service_name = service_name
×
UNCOV
16
      @token = token
×
UNCOV
17
      @document = document
×
UNCOV
18
    end
×
19

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

UNCOV
26
    private
×
27

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