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

pulibrary / tigerdata-app / 24425d25-0a53-410b-b63c-86dcbe0f9cbe

14 Aug 2025 07:35PM UTC coverage: 75.917% (-0.6%) from 76.482%
24425d25-0a53-410b-b63c-86dcbe0f9cbe

Pull #1754

circleci

hectorcorrea
Mark a couple of tests as integration
Pull Request #1754: Better handling for Mediaflux XML error responses

0 of 5 new or added lines in 2 files covered. (0.0%)

13 existing lines in 3 files now uncovered.

2257 of 2973 relevant lines covered (75.92%)

176.18 hits per line

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

36.36
/app/models/project_mediaflux.rb
1
# frozen_string_literal: true
2

3
# A custom exception class for when a namespace path is already taken
4
class MediafluxDuplicateNamespaceError < StandardError
1✔
5
end
6

7
# Take an instance of Project and adds it to MediaFlux
8
class ProjectMediaflux
1✔
9
  # Returns the XML string with the mediaflux metadata
10
  def self.xml_payload(project:, user:, xml_namespace: nil)
1✔
UNCOV
11
    request = Mediaflux::AssetMetadataRequest.new(session_token: user.mediaflux_session, id: project.mediaflux_id)
×
UNCOV
12
    request.resolve
×
NEW
13
    if request.error?
×
NEW
14
      raise request.response_error[:message]
×
15
    end
UNCOV
16
    request.response_body
×
17
  end
18

19
  # Returns an XML document with the mediaflux metadata
20
  def self.document(project:, user:, xml_namespace: nil)
1✔
UNCOV
21
    xml_body = xml_payload(project:, user:, xml_namespace:)
×
UNCOV
22
    Nokogiri::XML.parse(xml_body)
×
23
  end
24
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