Skip to content

Commit 078ded0

Browse files
authored
Fix mismatch between legacy events and CloudEvents in two test cases (#52)
There were source/resource mismatches in the firebase-db3 and firebase-dbdelete2 test cases. Tests that convert between legacy events and CloudEvents fail because the input and output source/resource didn't match.
1 parent 423b53e commit 078ded0

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

events/events_data.go

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"eventType": "providers/google.firebase.database/eventTypes/ref.write",
33
"params": {
4-
"child": "abc"
4+
"child": "xyz"
55
},
66
"auth": {
77
"admin": true
@@ -10,7 +10,7 @@
1010
"data": null,
1111
"delta": 10
1212
},
13-
"resource": "projects/_/instances/my-project-id/refs/gcf-test/abc",
13+
"resource": "projects/_/instances/my-project-id/refs/gcf-test/xyz",
1414
"timestamp": "2020-09-29T11:32:00.000Z",
1515
"eventId": "aaaaaa-1111-bbbb-2222-cccccccccccc"
1616
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"eventType": "providers/google.firebase.database/eventTypes/ref.delete",
33
"params": {
4-
"child": "abc"
4+
"child": "xyz"
55
},
66
"auth": {
77
"admin": true
@@ -10,7 +10,7 @@
1010
"data": 10,
1111
"delta": null
1212
},
13-
"resource": "projects/_/instances/my-project-id/refs/gcf-test/abc",
13+
"resource": "projects/_/instances/my-project-id/refs/gcf-test/xyz",
1414
"timestamp": "2020-09-29T11:32:00.000Z",
1515
"eventId": "aaaaaa-1111-bbbb-2222-cccccccccccc"
1616
}

events/generate/data/firebase-dbdelete2-legacy-output.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"delta": null
55
},
66
"context": {
7-
"resource": "projects/_/instances/my-project-id/refs/gcf-test/abc",
7+
"resource": "projects/_/instances/my-project-id/refs/gcf-test/xyz",
88
"timestamp": "2020-09-29T11:32:00.000Z",
99
"eventType": "providers/google.firebase.database/eventTypes/ref.delete",
1010
"eventId": "aaaaaa-1111-bbbb-2222-cccccccccccc"

0 commit comments

Comments
 (0)