Skip to content

Commit c73d407

Browse files
committed
Add a URL sample to schema integration tests
1 parent 2485842 commit c73d407

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

glean/tests/integration/schema/metrics.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,16 @@ for_testing:
156156
send_in_pings:
157157
- testing
158158
unit: sample
159+
url:
160+
type: url
161+
description: |
162+
Sample url metric.
163+
bugs:
164+
- https://bugzilla.mozilla.org/000000
165+
data_reviews:
166+
- https://bugzilla.mozilla.org/show_bug.cgi?id=000000#c3
167+
notification_emails:
168+
- me@mozilla.com
169+
expires: never
170+
send_in_pings:
171+
- testing

glean/tests/integration/schema/schema.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ describe("schema", function() {
110110
metrics.string.set("let's go");
111111
metrics.timespan.setRawNanos(10 * 10**6);
112112
metrics.uuid.generateAndSet();
113+
metrics.url.set("glean://test");
113114
/* eslint-enable @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access */
114115

115116
// Set up the http client to catch the ping we will submit.

0 commit comments

Comments
 (0)