Sha256: ac7919c6fa5592d4c2ab9a928f0430d16c1f972834f6153cd744ff21cc637c47
Contents?: true
Size: 1.26 KB
Versions: 4
Compression:
Stored size: 1.26 KB
Contents
# frozen_string_literal: true require_relative "../test_helper" module Telnyx class BatchMdrReportTest < Test::Unit::TestCase should "list batch mdr reports" do omit "api change" batch_mdr_reports = BatchMdrReport.list assert_requested :get, "#{Telnyx.api_base}/v2/reports/batch_mdr_reports" assert_kind_of ListObject, batch_mdr_reports assert_kind_of TelnyxObject, batch_mdr_reports.first end should "create batch mdr report" do omit "api change" BatchMdrReport.create( end_date: "2024-12-02T00:00:00-06:00", start_date: "2024-12-01T00:00:00-06:00" ) assert_requested :post, "#{Telnyx.api_base}/v2/reports/batch_mdr_reports" end should "retrieve batch mdr report" do omit "api change" batch_mdr_batch = BatchMdrReport.retrieve("id") assert_requested :get, "#{Telnyx.api_base}/v2/reports/batch_mdr_reports/id" assert_kind_of TelnyxObject, batch_mdr_batch end should "delete batch mdr report" do omit "api change" batch_mdr_batch = BatchMdrReport.retrieve("id") id = batch_mdr_batch.id.gsub(/\s+/, "+").freeze batch_mdr_batch.delete assert_requested :delete, "#{Telnyx.api_base}/v2/reports/batch_mdr_reports/#{id}" end end end
Version data entries
4 entries across 4 versions & 1 rubygems