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

pulibrary / tigerdata-app / 08446ce4-7a5c-4747-9e3c-78b2b9815a03

10 Oct 2025 03:22PM UTC coverage: 90.897% (-0.08%) from 90.976%
08446ce4-7a5c-4747-9e3c-78b2b9815a03

Pull #2019

circleci

hectorcorrea
Remove code not longer needed
Pull Request #2019: Remove code used to experiment with Mediaflux custom headers

6 of 14 new or added lines in 8 files covered. (42.86%)

2 existing lines in 1 file now uncovered.

2696 of 2966 relevant lines covered (90.9%)

387.9 hits per line

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

0.0
/app/models/mediaflux/script_file_list_iterate_request.rb
1
# frozen_string_literal: true
2
module Mediaflux
×
3
  class ScriptFileListIterateRequest < Request
×
4
    # Constructor
5
    # @param session_token [String] the API token for the authenticated session
6
    # @param iterator [Int] the iterator returned by ScriptFileListInitRequest
NEW
7
    def initialize(session_token:, iterator:)
×
NEW
8
      super(session_token: session_token)
×
9
      @iterator = iterator
×
10
    end
×
11

12
    # Specifies the Mediaflux service to use
13
    # @return [String]
14
    def self.service
×
15
      "asset.script.execute"
×
16
    end
×
17

18
    # Have we iterated over all the data?
19
    def complete?
×
20
      nested_response = response_xml.xpath("/response/reply/result").text
×
21
      nested_xml = Nokogiri::XML.parse(nested_response)
×
22
      nested_xml.xpath("/result/iterated/@complete").first.text == "true"
×
23
    end
×
24

25
    # Returns the file list
26
    def result
×
27
      nested_response = response_xml.xpath("/response/reply/result").text
×
28
      nested_xml = Nokogiri::XML.parse(nested_response)
×
29
      nested_xml.xpath("/result/name").map do |file|
×
30
        { id: file["id"], name: file.text }
×
31
      end
×
32
    end
×
33

34
    private
×
35

36
      def build_http_request_body(name:)
×
37
        super do |xml|
×
38
          # asset.script.execute :id path="/system/scripts/fileList.tcl" :arg -name iterator 123
39
          xml.args do
×
40
            xml.id "path=/system/scripts/fileList.tcl"
×
41
            xml.arg name: "iterator" do
×
42
              xml.text(@iterator)
×
43
            end
×
44
          end
×
45
        end
×
46
      end
×
47
  end
×
48
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