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

pulibrary / tigerdata-app / 8d70f2ab-acc5-4aab-b64b-743d66ddd2eb

29 Aug 2025 06:22PM UTC coverage: 87.983% (-0.1%) from 88.118%
8d70f2ab-acc5-4aab-b64b-743d66ddd2eb

Pull #1801

circleci

JaymeeH
Merge branch '1586-request-mailer' of https://github.com/pulibrary/tiger-data-app into 1586-request-mailer
Pull Request #1801: 1586 request mailer

10 of 10 new or added lines in 2 files covered. (100.0%)

1173 existing lines in 56 files now uncovered.

2482 of 2821 relevant lines covered (87.98%)

317.98 hits per line

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

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

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

UNCOV
26
    private
1✔
27

UNCOV
28
      def build_http_request_body(name:)
1✔
UNCOV
29
        super do |xml|
6✔
UNCOV
30
          xml.args do
6✔
UNCOV
31
            xml.token token if token.present?
6✔
UNCOV
32
            xml.service name: service_name do
6✔
UNCOV
33
              xml << document
6✔
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