Skip to content

Fix tests for analytics #5043

@dvoytenko

Description

@dvoytenko
Chromium 51.0.2704 (Ubuntu 0.0.0) amp-analytics vendor request tests analytics vendor: afsanalytics should produce request: pageview. If this test fails update vendor-requests.json FAILED
    AssertionError: expected '//www.afsanalytics.com/cgi_bin/connect.cgi?usr=xxxxxxxxPauto&js=1&amp=1&title=&url=&refer=&resolution=x&color=&Tips=' to equal '//www.afsanalytics.com/cgi_bin/connect.cgi?usr=xxxxxxxxPauto&js=1&amp=1&title=_title_&url=_canonical_url_&refer=_document_referrer_&resolution=_screen_width_x_screen_height_&color=_screen_color_depth_&Tips=_random_'
        at /tmp/f7c58e12910b6902c4d675cb4b5c39ac.browserify:22848:32 <- /home/travis/build/ampproject/amphtml/extensions/amp-analytics/0.1/test/test-amp-analytics.js:219:31
Chromium 51.0.2704 (Ubuntu 0.0.0): Executed 2101 of 2977 (27 FAILED) (skipped 25) (0 secs / 22.711 secs)
ium 51.0.2704 (Ubuntu 0.0.0): Executed 2102 of 2977 (27 FAILED) (skipped 25) (0 secs / 22.723 secs)
Chromium 51.0.2704 (Ubuntu 0.0.0) amp-analytics vendor request tests analytics vendor: atinternet should produce request: base. If this test fails update vendor-requests.json FAILED
    AssertionError: expected 'https://$log$domain/hit.xiti?s=$site&ts=&r=xx&re=x' to equal 'https://$log$domain/hit.xiti?s=$site&ts=_timestamp_&r=_screen_width_x_screen_height_x_screen_color_depth_&re=_available_screen_width_x_available_screen_height_'
        at /tmp/f7c58e12910b6902c4d675cb4b5c39ac.browserify:22848:32 <- /home/travis/build/ampproject/amphtml/extensions/amp-analytics/0.1/test/test-amp-analytics.js:219:31
Chromium 51.0.2704 (Ubuntu 0.0.0): Executed 2103 of 2977 (28 FAILED) (skipped 25) (0 secs / 22.735 secs)
Chromium 51.0.2704 (Ubuntu 0.0.0) amp-analytics vendor request tests analytics vendor: atinternet should produce request: suffix. If this test fails update vendor-requests.json FAILED
    AssertionError: expected '&medium=amp&$extraUrlParams&ref=' to equal '&medium=amp&$extraUrlParams&ref=_document_referrer_'
        at /tmp/f7c58e12910b6902c4d675cb4b5c39ac.browserify:22848:32 <- /home/travis/build/ampproject/amphtml/extensions/amp-analytics/0.1/test/test-amp-analytics.js:219:31
Chromium 51.0.2704 (Ubuntu 0.0.0): Executed 2104 of 2977 (29 FAILED) (skipped 25) (0 secs / 22.742 secs)
Chromium 51.0.2704 (Ubuntu 0.0.0) amp-analytics vendor request tests analytics vendor: atinternet should produce request: pageview. If this test fails update vendor-requests.json FAILED
    AssertionError: expected 'https://$log$domain/hit.xiti?s=$site&ts=&r=xx&re=x&p=&s2=$level2&medium=amp&$extraUrlParams&ref=' to equal 'https://$log$domain/hit.xiti?s=$site&ts=_timestamp_&r=_screen_width_x_screen_height_x_screen_color_depth_&re=_available_screen_width_x_available_screen_height_&p=_title_&s2=$level2&medium=amp&$extraUrlParams&ref=_document_referrer_'
        at /tmp/f7c58e12910b6902c4d675cb4b5c39ac.browserify:22848:32 <- /home/travis/build/ampproject/amphtml/extensions/amp-analytics/0.1/test/test-amp-analytics.js:219:31
Chromium 51.0.2704 (Ubuntu 0.0.0): Executed 2105 of 2977 (30 FAILED) (skipped 25) (0 secs / 22.754 secs)
Chromium 51.0.2704 (Ubuntu 0.0.0) amp-analytics vendor request tests analytics vendor: atinternet should produce request: click. If this test fails update vendor-requests.json FAILED
    AssertionError: expected 'https://$log$domain/hit.xiti?s=$site&ts=&r=xx&re=x&pclick=&s2click=$level2&p=$label&s2=$level2Click&type=click&click=$type&medium=amp&$extraUrlParams&ref=' to equal 'https://$log$domain/hit.xiti?s=$site&ts=_timestamp_&r=_screen_width_x_screen_height_x_screen_color_depth_&re=_available_screen_width_x_available_screen_height_&pclick=_title_&s2click=$level2&p=$label&s2=$level2Click&type=click&click=$type&medium=amp&$extraUrlParams&ref=_document_referrer_'
        at /tmp/f7c58e12910b6902c4d675cb4b5c39ac.browserify:22848:32 <- /home/travis/build/ampproject/amphtml/extensions/amp-analytics/0.1/test/test-amp-analytics.js:219:31
Chromium 51.0.2704 (Ubuntu 0.0.0): Executed 2106 of 2977 (31 FAILED) (skipped 25) (0 secs / 22.768 secs)
ium 51.0.2704 (Ubuntu 0.0.0): Executed 2107 of 2977 (31 FAILED) (skipped 25) (0 secs / 22.792 secs)
Chromium 51.0.2704 (Ubuntu 0.0.0) amp-analytics vendor request tests analytics vendor: burt should produce request: base. If this test fails update vendor-requests.json FAILED
    AssertionError: expected '//ignore.c.richmetrics.com/imglog?e=ignore&pi=ignore|||&ui=&v=amp&ts=&sn=3&' to equal '//ignore.c.richmetrics.com/imglog?e=ignore&pi=ignore|_page_view_id_|_canonical_path_|_client_id_&ui=_client_id_&v=amp&ts=_timestamp_&sn=3&'
        at /tmp/f7c58e12910b6902c4d675cb4b5c39ac.browserify:22848:32 <- /home/travis/build/ampproject/amphtml/extensions/amp-analytics/0.1/test/test-amp-analytics.js:219:31
Chromium 51.0.2704 (Ubuntu 0.0.0): Executed 2108 of 2977 (32 FAILED) (skipped 25) (0 secs / 22.816 secs)
Chromium 51.0.2704 (Ubuntu 0.0.0) amp-analytics vendor request tests analytics vendor: burt should produce request: pageview. If this test fails update vendor-requests.json FAILED
    AssertionError: expected '//ignore.c.richmetrics.com/imglog?e=ignore&pi=ignore|||&ui=&v=amp&ts=&sn=3&type=page&ca=$category&sc=$subCategory&ln=&lr=&eu=&tz=&pd=x&sd=x&wd=x&ws=x' to equal '//ignore.c.richmetrics.com/imglog?e=ignore&pi=ignore|_page_view_id_|_canonical_path_|_client_id_&ui=_client_id_&v=amp&ts=_timestamp_&sn=3&type=page&ca=$category&sc=$subCategory&ln=_browser_language_&lr=_document_referrer_&eu=_source_url_&tz=_timezone_&pd=_scroll_width_x_scroll_height_&sd=_screen_width_x_screen_height_&wd=_available_screen_width_x_available_screen_height_&ws=_scroll_left_x_scroll_top_'
        at /tmp/f7c58e12910b6902c4d675cb4b5c39ac.browserify:22848:32 <- /home/travis/build/ampproject/amphtml/extensions/amp-analytics/0.1/test/test-amp-analytics.js:219:31
Chromium 51.0.2704 (Ubuntu 0.0.0): Executed 2109 of 2977 (33 FAILED) (skipped 25) (0 secs / 22.855 secs)
Chromium 51.0.2704 (Ubuntu 0.0.0) amp-analytics vendor request tests analytics vendor: burt should produce request: pageping. If this test fails update vendor-requests.json FAILED
    AssertionError: expected '//ignore.c.richmetrics.com/imglog?e=ignore&pi=ignore|||&ui=&v=amp&ts=&sn=3&type=pageping' to equal '//ignore.c.richmetrics.com/imglog?e=ignore&pi=ignore|_page_view_id_|_canonical_path_|_client_id_&ui=_client_id_&v=amp&ts=_timestamp_&sn=3&type=pageping'
        at /tmp/f7c58e12910b6902c4d675cb4b5c39ac.browserify:22848:32 <- /home/travis/build/ampproject/amphtml/extensions/amp-analytics/0.1/test/test-amp-analytics.js:219:31
Chromium 51.0.2704 (Ubuntu 0.0.0): Executed 2110 of 2977 (34 FAILED) (skipped 25) (0 secs / 22.885 secs)
ium 51.0.2704 (Ubuntu 0.0.0): Executed 2111 of 2977 (34 FAILED) (skipped 25) (0 secs / 22.902 secs)
Chromium 51.0.2704 (Ubuntu 0.0.0) amp-analytics vendor request tests analytics vendor: chartbeat should produce request: basePrefix. If this test fails update vendor-requests.json FAILED
    AssertionError: expected '/ping?h=$domain&p=&u=&d=&g=$uid&g0=$sections&g1=$authors&g2=$zone&g3=$sponsorName&g4=$contentType&c=120&x=&y=&j=$decayTime&R=1&W=0&I=0&E=&r=&t=&b=&i=&T=&tz=&C=2' to equal '/ping?h=$domain&p=_canonical_path_&u=_client_id_&d=_canonical_host_&g=$uid&g0=$sections&g1=$authors&g2=$zone&g3=$sponsorName&g4=$contentType&c=120&x=_scroll_top_&y=_scroll_height_&j=$decayTime&R=1&W=0&I=0&E=_total_engaged_time_&r=_document_referrer_&t=_page_view_id__client_id_&b=_page_load_time_&i=_title_&T=_timestamp_&tz=_timezone_&C=2'
        at /tmp/f7c58e12910b6902c4d675cb4b5c39ac.browserify:22848:32 <- /home/travis/build/ampproject/amphtml/extensions/amp-analytics/0.1/test/test-amp-analytics.js:219:31
Chromium 51.0.2704 (Ubuntu 0.0.0): Executed 2112 of 2977 (35 FAILED) (skipped 25) (0 secs / 22.931 secs)
ium 51.0.2704 (Ubuntu 0.0.0): Executed 2113 of 2977 (35 FAILED) (skipped 25) (0 secs / 22.95 secs)
Chromium 51.0.2704 (Ubuntu 0.0.0) amp-analytics vendor request tests analytics vendor: chartbeat should produce request: interval. If this test fails update vendor-requests.json FAILED
    AssertionError: expected 'https://ping.chartbeat.net/ping?h=$domain&p=&u=&d=&g=$uid&g0=$sections&g1=$authors&g2=$zone&g3=$sponsorName&g4=$contentType&c=120&x=&y=&j=$decayTime&R=1&W=0&I=0&E=&r=&t=&b=&i=&T=&tz=&C=2&_' to equal 'https://ping.chartbeat.net/ping?h=$domain&p=_canonical_path_&u=_client_id_&d=_canonical_host_&g=$uid&g0=$sections&g1=$authors&g2=$zone&g3=$sponsorName&g4=$contentType&c=120&x=_scroll_top_&y=_scroll_height_&j=$decayTime&R=1&W=0&I=0&E=_total_engaged_time_&r=_document_referrer_&t=_page_view_id__client_id_&b=_page_load_time_&i=_title_&T=_timestamp_&tz=_timezone_&C=2&_'
        at /tmp/f7c58e12910b6902c4d675cb4b5c39ac.browserify:22848:32 <- /home/travis/build/ampproject/amphtml/extensions/amp-analytics/0.1/test/test-amp-analytics.js:219:31
Chromium 51.0.2704 (Ubuntu 0.0.0): Executed 2114 of 2977 (36 FAILED) (skipped 25) (0 secs / 22.982 secs)
Chromium 51.0.2704 (Ubuntu 0.0.0) amp-analytics vendor request tests analytics vendor: chartbeat should produce request: anchorClick. If this test fails update vendor-requests.json FAILED
    AssertionError: expected 'https://ping.chartbeat.net/ping?h=$domain&p=&u=&d=&g=$uid&g0=$sections&g1=$authors&g2=$zone&g3=$sponsorName&g4=$contentType&c=120&x=&y=&j=$decayTime&R=1&W=0&I=0&E=&r=&t=&b=&i=&T=&tz=&C=2&_' to equal 'https://ping.chartbeat.net/ping?h=$domain&p=_canonical_path_&u=_client_id_&d=_canonical_host_&g=$uid&g0=$sections&g1=$authors&g2=$zone&g3=$sponsorName&g4=$contentType&c=120&x=_scroll_top_&y=_scroll_height_&j=$decayTime&R=1&W=0&I=0&E=_total_engaged_time_&r=_document_referrer_&t=_page_view_id__client_id_&b=_page_load_time_&i=_title_&T=_timestamp_&tz=_timezone_&C=2&_'
        at /tmp/f7c58e12910b6902c4d675cb4b5c39ac.browserify:22848:32 <- /home/travis/build/ampproject/amphtml/extensions/amp-analytics/0.1/test/test-amp-analytics.js:219:31
Chromium 51.0.2704 (Ubuntu 0.0.0): Executed 2115 of 2977 (37 FAILED) (skipped 25) (0 secs / 23.01 secs)
ium 51.0.2704 (Ubuntu 0.0.0): Executed 2116 of 2977 (37 FAILED) (skipped 25) (0 secs / 23.021 secs)
Chromium 51.0.2704 (Ubuntu 0.0.0) amp-analytics vendor request tests analytics vendor: clicky should produce request: baseSuffix. If this test fails update vendor-requests.json FAILED
    AssertionError: expected '&mime=$contentType&x=' to equal '&mime=$contentType&x=_random_'
        at /tmp/f7c58e12910b6902c4d675cb4b5c39ac.browserify:22848:32 <- /h

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions