2021-09-30 23:02:18 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2023-04-23 21:23:45 +05:30
|
|
|
RSpec.describe ServicePing::BuildPayload, feature_category: :service_ping do
|
2021-09-30 23:02:18 +05:30
|
|
|
describe '#execute', :without_license do
|
|
|
|
subject(:service_ping_payload) { described_class.new.execute }
|
|
|
|
|
|
|
|
include_context 'stubbed service ping metrics definitions' do
|
|
|
|
let(:subscription_metrics) do
|
|
|
|
[
|
2022-07-16 23:28:13 +05:30
|
|
|
metric_attributes('active_user_count', "subscription")
|
2021-09-30 23:02:18 +05:30
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2022-07-23 23:45:48 +05:30
|
|
|
it_behaves_like 'complete service ping payload'
|
2021-09-30 23:02:18 +05:30
|
|
|
end
|
|
|
|
end
|