Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: modify all test cases to use v2 spec #4080

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
179 changes: 102 additions & 77 deletions test/integrations/sources/appcenter/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@ export const data = [
name: 'appcenter',
description: 'test-0',
module: 'source',
version: 'v0',
version: 'v2',
input: {
request: {
body: [
{
text: 'Hello from your abc-test app in App Center!',
sent_at: '2023-01-02T07: 53: 28.3117824Z',
url: 'https://appcenter.ms/users/abc-rudderstack.com/apps/abc-test',
request: {
body: JSON.stringify({
text: 'Hello from your abc-test app in App Center!',
sent_at: '2023-01-02T07: 53: 28.3117824Z',
url: 'https://appcenter.ms/users/abc-rudderstack.com/apps/abc-test',
}),
},
source: {},
},
],
method: 'POST',
Expand All @@ -39,26 +44,31 @@ export const data = [
name: 'appcenter',
description: 'test-1',
module: 'source',
version: 'v0',
version: 'v2',
input: {
request: {
body: [
{
app_name: 'MSAppCenterTesting',
branch: 'master',
build_status: 'Succeeded',
build_id: '1',
build_link:
'https://appcenter.ms/users/venkat-rudderstack.com/apps/MSAppCenterTesting/build/branches/master/builds/1',
build_reason: 'manual',
finish_time: '2021-03-02T16:41:29.891411Z',
icon_link: null,
notification_settings_link:
'https://appcenter.ms/users/venkat-rudderstack.com/apps/MSAppCenterTesting/settings/notifications',
os: 'Android',
start_time: '2021-03-02T16:34:13.9184874Z',
source_version: '7ed5c7b279316f19e9a0c45bb0fb49c0655471af',
sent_at: '2021-03-02T16:41:55.8819564Z',
request: {
body: JSON.stringify({
app_name: 'MSAppCenterTesting',
branch: 'master',
build_status: 'Succeeded',
build_id: '1',
build_link:
'https://appcenter.ms/users/venkat-rudderstack.com/apps/MSAppCenterTesting/build/branches/master/builds/1',
build_reason: 'manual',
finish_time: '2021-03-02T16:41:29.891411Z',
icon_link: null,
notification_settings_link:
'https://appcenter.ms/users/venkat-rudderstack.com/apps/MSAppCenterTesting/settings/notifications',
os: 'Android',
start_time: '2021-03-02T16:34:13.9184874Z',
source_version: '7ed5c7b279316f19e9a0c45bb0fb49c0655471af',
sent_at: '2021-03-02T16:41:55.8819564Z',
}),
},
source: {},
},
],
method: 'POST',
Expand Down Expand Up @@ -117,26 +127,31 @@ export const data = [
name: 'appcenter',
description: 'test-2',
module: 'source',
version: 'v0',
version: 'v2',
input: {
request: {
body: [
{
app_name: 'MSAppCenterTesting',
branch: 'master',
build_status: 'Broken',
build_id: '2',
build_link:
'https://appcenter.ms/users/venkat-rudderstack.com/apps/MSAppCenterTesting/build/branches/master/builds/2',
build_reason: 'automatic',
finish_time: '2021-03-02T16:52:04.2587506Z',
icon_link: null,
notification_settings_link:
'https://appcenter.ms/users/venkat-rudderstack.com/apps/MSAppCenterTesting/settings/notifications',
os: 'Android',
start_time: '2021-03-02T16:50:52.2584107Z',
source_version: '0624e1e3e48eaf2371c37316208ff83bdd5c123b',
sent_at: '2021-03-02T16:52:35.8848052Z',
request: {
body: JSON.stringify({
app_name: 'MSAppCenterTesting',
branch: 'master',
build_status: 'Broken',
build_id: '2',
build_link:
'https://appcenter.ms/users/venkat-rudderstack.com/apps/MSAppCenterTesting/build/branches/master/builds/2',
build_reason: 'automatic',
finish_time: '2021-03-02T16:52:04.2587506Z',
icon_link: null,
notification_settings_link:
'https://appcenter.ms/users/venkat-rudderstack.com/apps/MSAppCenterTesting/settings/notifications',
os: 'Android',
start_time: '2021-03-02T16:50:52.2584107Z',
source_version: '0624e1e3e48eaf2371c37316208ff83bdd5c123b',
sent_at: '2021-03-02T16:52:35.8848052Z',
}),
},
source: {},
},
],
method: 'POST',
Expand Down Expand Up @@ -195,34 +210,39 @@ export const data = [
name: 'appcenter',
description: 'test-3',
module: 'source',
version: 'v0',
version: 'v2',
input: {
request: {
body: [
{
app_name: 'MSAppCenterTesting',
app_display_name: 'MSAppCenterTesting',
release_id: '1',
platform: 'Android',
uploaded_at: '2021-03-02T17:49:35.463Z',
fingerprint: '9cbdc86d96c5359d2af3972fdda46624',
release_notes: 'Degraded to 4.0.0',
version: '1614707021',
short_version: '1.0',
min_os: '7.1',
mandatory_update: true,
size: 2919106,
provisioning_profile_name: null,
provisioning_profile_type: null,
bundle_identifier: 'tech.desusai.msappcentertesting',
install_link:
'https://install.appcenter.ms/users/venkat-rudderstack.com/apps/MSAppCenterTesting/releases/1?source=email',
icon_link:
'https://appcenter-filemanagement-distrib2ede6f06e.azureedge.net/dbbd3d57-9c09-448b-9782-0d57200f7c9b/ic_launcher.png?sv=2019-02-02&sr=c&sig=BNzQcMcvTbwf4fv59ByGiYXsr%2BA9PYDFyGJCqsE2RO0%3D&se=2021-03-09T17%3A49%3A35Z&sp=r',
distribution_group_id: '00000000-0000-0000-0000-000000000000',
installable: true,
sent_at: '2021-03-02T17:49:37.127635Z',
app_id: 'ce8b5280-4605-4c1c-8c48-bd54c8fdda31',
request: {
body: JSON.stringify({
app_name: 'MSAppCenterTesting',
app_display_name: 'MSAppCenterTesting',
release_id: '1',
platform: 'Android',
uploaded_at: '2021-03-02T17:49:35.463Z',
fingerprint: '9cbdc86d96c5359d2af3972fdda46624',
release_notes: 'Degraded to 4.0.0',
version: '1614707021',
short_version: '1.0',
min_os: '7.1',
mandatory_update: true,
size: 2919106,
provisioning_profile_name: null,
provisioning_profile_type: null,
bundle_identifier: 'tech.desusai.msappcentertesting',
install_link:
'https://install.appcenter.ms/users/venkat-rudderstack.com/apps/MSAppCenterTesting/releases/1?source=email',
icon_link:
'https://appcenter-filemanagement-distrib2ede6f06e.azureedge.net/dbbd3d57-9c09-448b-9782-0d57200f7c9b/ic_launcher.png?sv=2019-02-02&sr=c&sig=BNzQcMcvTbwf4fv59ByGiYXsr%2BA9PYDFyGJCqsE2RO0%3D&se=2021-03-09T17%3A49%3A35Z&sp=r',
distribution_group_id: '00000000-0000-0000-0000-000000000000',
installable: true,
sent_at: '2021-03-02T17:49:37.127635Z',
app_id: 'ce8b5280-4605-4c1c-8c48-bd54c8fdda31',
}),
},
source: {},
},
],
method: 'POST',
Expand Down Expand Up @@ -292,27 +312,32 @@ export const data = [
name: 'appcenter',
description: 'test-4',
module: 'source',
version: 'v0',
version: 'v2',
input: {
request: {
body: [
{
id: '1139624368u',
name: 'tech.desusai.msappcentertesting.MainActivity$1.onClick (MainActivity.java:25)',
reason: 'java.lang.ArithmeticException: divide by zero',
file_name: null,
line_number: null,
url: 'https://appcenter.ms/users/venkat-rudderstack.com/apps/MSAppCenterTesting/crashes/errors/1139624368u',
app_display_name: 'MSAppCenterTesting',
app_platform: 'Java',
app_version: '1.0(1)',
stack_trace: [
'tech.desusai.msappcentertesting.MainActivity$1.onClick (MainActivity.java:25);',
],
affected_users: 0,
crash_count: 0,
sent_at: '2021-03-02T18:14:33.9713246Z',
app_id: 'ce8b5280-4605-4c1c-8c48-bd54c8fdda31',
request: {
body: JSON.stringify({
id: '1139624368u',
name: 'tech.desusai.msappcentertesting.MainActivity$1.onClick (MainActivity.java:25)',
reason: 'java.lang.ArithmeticException: divide by zero',
file_name: null,
line_number: null,
url: 'https://appcenter.ms/users/venkat-rudderstack.com/apps/MSAppCenterTesting/crashes/errors/1139624368u',
app_display_name: 'MSAppCenterTesting',
app_platform: 'Java',
app_version: '1.0(1)',
stack_trace: [
'tech.desusai.msappcentertesting.MainActivity$1.onClick (MainActivity.java:25);',
],
affected_users: 0,
crash_count: 0,
sent_at: '2021-03-02T18:14:33.9713246Z',
app_id: 'ce8b5280-4605-4c1c-8c48-bd54c8fdda31',
}),
},
source: {},
},
],
method: 'POST',
Expand Down
Loading
Loading