Skip to content

Stop overriding extractCreativeAndSignature in impls#10269

Merged
keithwrightbos merged 5 commits intomasterfrom
deprecate-extract-creative-and-signature
Jul 11, 2017
Merged

Stop overriding extractCreativeAndSignature in impls#10269
keithwrightbos merged 5 commits intomasterfrom
deprecate-extract-creative-and-signature

Conversation

@taymonbeal
Copy link
Copy Markdown
Member

extractCreativeAndSignature is now common to all impls except fake-impl. Network-specific behavior is now in extractSize. This will facilitate having two different signature schemes.

One of the PRs that #9040 is being split into. Related to #7618. Follow-up to #10127.

@taymonbeal taymonbeal requested a review from jonkeller July 10, 2017 20:08
TEST_URL,
SIGNATURE_HEADER,
} from './utils';
import {AMP_SIGNATURE_HEADER} from '../amp-a4a';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can combine this with the one 3 lines below

it('should return body and signature and size', () => {
const creative = 'some test data';
const headerData = {
'X-AmpAdSignature': 'AQAB',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, what does AQAB stand for?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, duh, it's just some base64-encoded string. Got it.


it('without signature', () => {
const headers = {
it('without analytics', () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Could this test name be made more clear? I get that it's no less clear than 'without signature' was, but still not as descriptive as it could be. Ditto 'with analytics'.

Copy link
Copy Markdown
Contributor

@jonkeller jonkeller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve, subject to combining the imports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants