File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 7
7
8
8
module PactBroker
9
9
module Matrix
10
-
11
10
class Row < Sequel ::Model ( :matrix )
12
11
13
12
# Used when using table_print to output query results
Original file line number Diff line number Diff line change 8
8
require 'pact_broker/webhooks/webhook'
9
9
require 'pact_broker/webhooks/triggered_webhook'
10
10
require 'pact_broker/webhooks/execution'
11
+ require 'pact_broker/matrix/row'
12
+ require 'pact_broker/matrix/head_row'
11
13
12
14
module PactBroker
13
15
module Metrics
@@ -48,6 +50,12 @@ def metrics
48
50
} ,
49
51
webhookExecutions : {
50
52
count : PactBroker ::Webhooks ::Execution . count
53
+ } ,
54
+ matrix : {
55
+ count : PactBroker ::Matrix ::Row . count
56
+ } ,
57
+ headMatrix : {
58
+ count : PactBroker ::Matrix ::HeadRow . count
51
59
}
52
60
}
53
61
end
Original file line number Diff line number Diff line change 18
18
end
19
19
20
20
it "returns some metrics" do
21
- expect ( json_response_body ) . to be_instance_of ( Hash )
21
+ expect ( json_response_body [ :pacticipants ] ) . to be_instance_of ( Hash )
22
22
end
23
23
end
You can’t perform that action at this time.
0 commit comments