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

Audit server responses #9666

Closed
NejcZdovc opened this issue May 7, 2020 · 4 comments · Fixed by brave/brave-core#5918
Closed

Audit server responses #9666

NejcZdovc opened this issue May 7, 2020 · 4 comments · Fixed by brave/brave-core#5918

Comments

@NejcZdovc
Copy link
Contributor

We should audit all server responses.

  • Create response folder and move all parsing of responses into this folder
  • Create per feature files (like we have them in requests
  • We need to make sure that every param is validated accordingly (meaning can it be empty or not, is it correct format, etc)
@emerick
Copy link
Contributor

emerick commented Jun 18, 2020

@husobee will provide info on HTTP response codes (thank you!)

@emerick emerick added the QA/Yes label Jun 22, 2020
@emerick emerick added this to the 1.13.x - Nightly milestone Jul 23, 2020
@emerick emerick added OS/Android Fixes related to Android browser functionality OS/Desktop OS/iOS Fixes related to iOS browser functionality labels Aug 10, 2020
@LaurenWags
Copy link
Member

Marked as QA/Blocked pending additional test plan information (requested from @NejcZdovc )

@GeetaSarvadnya
Copy link

GeetaSarvadnya commented Aug 20, 2020

Verification passed on


Brave | 1.13.77 Chromium: 85.0.4183.69 (Official Build) dev (64-bit)
-- | --
Revision | 4554ea1a1171bd8d06951a4b7d9336afe6c59967-refs/branch-heads/4183@{#1426}
OS | Windows 10 OS Version 1903 (Build 18362.1016)

(Note: As disscussed with @LaurenWags I have covered the regression testing on rewards)

Wallet funded via UGP grants alone

  • Verified wallet status is Not connected in brave://rewards-internals
  • Verified checkmark is shown in BR panel as well as in Tipping banner for verified pubs
  • Verified checkmark is shown in AC table, Monthly contribution table and One-time tips panel for verified pubs
  • Verified checkmark is shown in Monthly statement for AC, Monthly contributions and One-time tips for verified pubs
  • Verified one-time tips and monthly tips processed successfully
  • Verified AC is working fine for verified pubs (added more than 3 pubs in AC table)
  • Verified wallet summary is displayed correctly
  • Verified wallet summary and monthly statement are showing the correct stats for One-time tip, monthly tip and AC
  • Verified brave://rewards-internals data is shown as expected for Contributions, General info and Promotions
  • Encountered [Desktop] short-retries flag causes errors (new retry-interval flag added) #10238 (comment)
  • Verified rewards summary isn't lost after browser restart
  • Verified able to tip verified pubs when AC is turned off

Wallet funded via KYC'd uphold alone

  • Verified wallet status is Verified in brave://rewards-internals
  • Verified checkmark is shown in BR panel as well as in Tipping banner for verified pubs
  • Verified checkmark is shown in AC table, Monthly contribution table and One-time tips panel for verified pubs
  • Verified checkmark is shown in Monthly statement for AC, Monthly contributions and One-time tips for verified pubs
  • Verified one-time tips and monthly tips processed successfully
  • Verified AC is working fine for verified pubs (added more than 3 pubs in AC table)
  • Verified AC is triggered for connected pubs (e.g DDG)
  • Verified one-time tips sent for connected pubs isn't displayed in tips panel as expected
  • Verified one time tips and recurring tips for a connected publisher is going into pending contribution list after AC
  • Verified wallet summary is displayed correctly
  • Verified wallet summary and monthly statement are showing the correct stats for One-time tip, monthly tip and AC
  • Verified brave://rewards-internals data is shown as expected for Contributions, General info and Promotions
  • Verified transactions are listed correctly in Uphold Recent Activity section
  • Verified rewards summary isn't lost after browser restart
  • Verified able to tip verified pubs when AC is turned off

Wallet balance =(Ad grants+KYC'd uphold)

Wallet balance =(UGP+KYC'd uphold)

  • Verified wallet status is Verified in brave://rewards-internals
  • Verified checkmark is shown in BR panel as well as in Tipping banner for verified pubs
  • Verified checkmark is shown in AC table, Monthly contribution table and One-time tips panel for verified pubs
  • Verified checkmark is shown in Monthly statement for AC, Monthly contributions and One-time tips for verified pubs
  • Verified one-time tips and monthly tips processed successfully
  • Verified AC is working fine for verified pubs (added more than 3 pubs in AC table)
  • Verified wallet summary is displayed correctly
  • Verified wallet summary and monthly statement are showing the correct stats for One-time tip, monthly tip and AC
  • Verified brave://rewards-internals data is shown as expected for Contributions, General info and Promotions
  • Verified BAT distributed to verified pubs after AC is shown correctly in Monthly statement as well as in brave://rewards-internals page
  • Verified BAT distributed for AC from Rewards (UGP) and Uphold is shown correctly
    image
  • Verified transactions are listed correctly in Uphold Recent Activity section
  • Verified GH, Vimeo, YT, general verified pubs can be added to AC table
    image
  • Encountered Twitch verified pubs are Not being added to a-c table #6142
  • Verified rewards summary isn't lost after browser restart
  • Verified able to tip verified pubs when AC is turned off

Wallet funded via Restored wallet or anon depostited wallet

  • Verified wallet status is Not connected in brave://rewards-internals
  • Verified checkmark is shown in BR panel as well as in Tipping banner for verified pubs
  • Verified checkmark is shown in AC table, Monthly contribution table and One-time tips panel for verified pubs
  • Verified checkmark is shown in Monthly statement for AC, Monthly contributions and One-time tips for verified pubs
  • Verified one-time tips and monthly tips processed successfully
  • Verified AC is working fine for verified pubs (added more than 3 pubs in AC table)
  • Verified wallet summary is displayed correctly
  • Verified wallet summary and monthly statement are showing the correct stats for One-time tip, monthly tip and AC
  • Verified brave://rewards-internals data is shown as expected for Contributions, General info and Promotions
  • Verified Transaction (Deposited BAT) shows correctly in Monthly statement
    image
  • Verified rewards summary isn't lost after browser restart
  • Verified able to tip verified pubs when AC is turned off

Wallet balance =(UGP+Deposited BAT)

  • Verified wallet status is Not connected in brave://rewards-internals
  • Verified checkmark is shown in BR panel as well as in Tipping banner for verified pubs
  • Verified checkmark is shown in AC table, Monthly contribution table and One-time tips panel for verified pubs
  • Verified checkmark is shown in Monthly statement for AC, Monthly contributions and One-time tips for verified pubs
  • Verified one-time tips and monthly tips processed successfully
  • Verified AC is working fine for verified pubs (added more than 3 pubs in AC table)
  • Verified wallet summary is displayed correctly
  • Verified wallet summary and monthly statement are showing the correct stats for One-time tip, monthly tip and AC
  • Verified brave://rewards-internals data is shown as expected for Contributions, General info and Promotions
  • Verified BAT distributed to verified pubs after AC is shown correctly in Monthly statement as well as in brave://rewards-internals page
  • Verified BAT distributed for AC from Rewards (UGP) and DEposted BAT is shown correctly
    image

Wallet balance =(Deposited BAT+KYC'd Uphold wallet )

  • Verified Restored wallet balance is moved to uphold card
  • Verified wallet status is Verified in brave://rewards-internals
  • Verified the test steps from verified KYC'd wallet and which are working as expected

Upgrade test

  • Verified wallet balance is not lost after upgrade
  • Verified pubs added in AC table are retained after upgrade
  • Verified Rewards summary is retained after upgrade
  • Verified pubs can be added/removed after upgrade
  • Verified pubs can be removed from BR panel and can be added again
  • Verified pubs added in AC table can be excluded and re-added
  • Turn OFF rewards switch in 1.12.x and upgrade to 1.13.x and verified that the switch state is retained and it can be enabled.
  • Turn OFF AC switch in 1.12.x and upgrade to 1.13.x and verified that the switch state is retained and it can be enabled.
  • Turn OFF Ads switch in 1.12.x and upgrade to 1.13.x and verified that the switch state is retained and it can be enabled.

Verification passed on

Brave	1.13.79 Chromium: 85.0.4183.69 (Official Build) dev (64-bit)
Revision	4554ea1a1171bd8d06951a4b7d9336afe6c59967-refs/branch-heads/4183@{#1426}
OS	macOS Version 10.14.6 (Build 18G3020)
Wallet funded via VG (UGP grant) only
  • Verified wallet status is Not connected in brave://rewards-internals
  • Verified checkmark is shown in BR panel as well as in Tipping banner for verified pubs
  • Verified custom banner shown (when applicable) for verified publishers
  • Verified checkmark is shown in AC table, Monthly contribution table and One-time tips panel for verified pubs
  • Verified checkmark is shown in Monthly statement for AC, Monthly contributions and One-time tips for verified pubs
  • Verified one-time tips and monthly tips processed successfully
  • Verified AC is working fine for verified pubs (added 3 pubs in AC table)
  • Verified wallet summary is displayed correctly
  • Verified wallet summary and monthly statement are showing the correct stats for One-time tip, monthly tip and AC
  • Verified brave://rewards-internals data is shown as expected for Contributions, General info and Promotions
  • Verified rewards summary isn't lost after browser restart
  • Verified able to tip verified pubs when AC is turned off
VG1 VG2 VG3 VG4
Wallet funded via Uphold only
  • Verified wallet status is Verified in brave://rewards-internals
  • Verified checkmark is shown in BR panel as well as in Tipping banner for KYC'd pubs
  • Verified checkmark is shown in BR panel, tipping banners for connected publishers
  • Verified KYC'd publishers do not display any messaging on panel and tip banners
  • Verified connected publishers display appropriate messaging on panel and tip banners
  • Verified custom banner shown (when applicable) for verified publishers
  • Verified checkmark is shown in AC table, Monthly contribution table and One-time tips panel for verified pubs
  • Verified checkmark is shown in Monthly statement for AC, Monthly contributions and One-time tips for verified pubs
  • Verified one-time tips and monthly tips processed successfully
  • Verified AC is working fine for verified pubs (added 3 pubs in AC table)
  • Verified AC is triggered for connected pubs (e.g DDG)
  • Verified one-time tips sent for connected pubs isn't displayed in tips panel as expected (shows in pending table)
  • Verified recurring tips for a connected publisher is going into pending contribution list after AC
  • Verified wallet summary is displayed correctly
  • Verified wallet summary and monthly statement are showing the correct stats for One-time tip, monthly tip and AC
  • Verified brave://rewards-internals data is shown as expected for Contributions, General info and Promotions
  • Verified transactions are listed correctly in Uphold Recent Activity section
  • Verified rewards summary isn't lost after browser restart
  • Verified able to tip verified pubs when AC is turned off
Uphold1 Uphold2 Uphold3
Upgrade Checks
  • Verified wallet balance is not lost after upgrade
  • Verified pubs added in AC table are retained after upgrade
  • Verified Rewards summary is retained after upgrade
  • Verified pubs can be added to AC list after upgrade
  • Verified pubs added in AC table can be excluded and re-added
  • Turn OFF rewards switch in 1.12.x and upgrade to 1.13.x and verified that the switch state is retained and it can be enabled.
  • Turn OFF AC switch in 1.12.x and upgrade to 1.13.x and verified that the switch state is retained and it can be enabled.
  • Turn OFF Ads switch in 1.12.x and upgrade to 1.13.x and verified that the switch state is retained and it can be enabled.

Verification passed on

Brave 1.13.79 Chromium: 85.0.4183.69 (Official Build) dev (64-bit)
Revision 4554ea1a1171bd8d06951a4b7d9336afe6c59967-refs/branch-heads/4183@{#1426}
OS Ubuntu 18.04 LTS
Wallet funded via UGP grants alone
  • Verified wallet status is Not connected in brave://rewards-internals
  • Verified checkmark is shown in BR panel as well as in Tipping banner for verified pubs
  • Verified checkmark is shown in AC table, Monthly contribution table and One-time tips panel for verified pubs
  • Verified checkmark is shown in Monthly statement for AC, Monthly contributions and One-time tips for verified pubs
  • Verified one-time tips and monthly tips processed successfully
  • Verified AC is working fine for verified pubs (added more than 3 pubs in AC table)
  • Verified wallet summary is displayed correctly
  • Verified wallet summary and monthly statement are showing the correct stats for One-time tip, monthly tip and AC
  • Verified brave://rewards-internals data is shown as expected for Contributions, General info and Promotions
  • Verified rewards summary isn't lost after browser restart
  • Verified able to tip verified pubs when AC is turned off
Wallet funded via KYC'd uphold alone
  • Verified wallet status is Verified in brave://rewards-internals
  • Verified checkmark is shown in BR panel as well as in Tipping banner for verified pubs
  • Verified checkmark is shown in AC table, Monthly contribution table and One-time tips panel for verified pubs
  • Verified checkmark is shown in Monthly statement for AC, Monthly contributions and One-time tips for verified pubs
  • Verified one-time tips and monthly tips processed successfully
  • Verified AC is working fine for verified pubs (added more than 3 pubs in AC table)
  • Verified AC is triggered for connected pubs (e.g DDG)
  • Verified one-time tips sent for connected pubs isn't displayed in tips panel as expected
  • Verified one time tips and recurring tips for a connected publisher is going into pending contribution list after AC
  • Verified wallet summary is displayed correctly
  • Verified wallet summary and monthly statement are showing the correct stats for One-time tip, monthly tip and AC
  • Verified brave://rewards-internals data is shown as expected for Contributions, General info and Promotions
  • Verified transactions are listed correctly in Uphold Recent Activity section
  • Verified rewards summary isn't lost after browser restart
  • Verified able to tip verified pubs when AC is turned off
Wallet balance =(Ad grants+KYC'd uphold)
Wallet balance =(UGP+KYC'd uphold)
  • Verified wallet status is Verified in brave://rewards-internals
  • Verified checkmark is shown in BR panel as well as in Tipping banner for verified pubs
  • Verified checkmark is shown in AC table, Monthly contribution table and One-time tips panel for verified pubs
  • Verified checkmark is shown in Monthly statement for AC, Monthly contributions and One-time tips for verified pubs
  • Verified one-time tips and monthly tips processed successfully
  • Verified AC is working fine for verified pubs (added more than 3 pubs in AC table)
  • Verified wallet summary is displayed correctly
  • Verified wallet summary and monthly statement are showing the correct stats for One-time tip, monthly tip and AC
  • Verified brave://rewards-internals data is shown as expected for Contributions, General info and Promotions
  • Verified BAT distributed to verified pubs after AC is shown correctly in Monthly statement as well as in brave://rewards-internals page
  • Verified BAT distributed for AC from Rewards (UGP) and Uphold is shown correctly
    image
  • Verified transactions are listed correctly in Uphold Recent Activity section
  • Verified GH, Vimeo, YT, general verified pubs can be added to AC table, encountered Twitch verified pubs are Not being added to a-c table #6142
  • Verified rewards summary isn't lost after browser restart
  • Verified able to tip verified pubs when AC is turned off
Wallet balance =(UGP+Deposited BAT)
  • Verified wallet status is Not connected in brave://rewards-internals
  • Verified checkmark is shown in BR panel as well as in Tipping banner for verified pubs
  • Verified checkmark is shown in AC table, Monthly contribution table and One-time tips panel for verified pubs
  • Verified checkmark is shown in Monthly statement for AC, Monthly contributions and One-time tips for verified pubs
  • Verified one-time tips and monthly tips processed successfully
  • Verified AC is working fine for verified pubs (added more than 3 pubs in AC table)
  • Verified wallet summary is displayed correctly
  • Verified wallet summary and monthly statement are showing the correct stats for One-time tip, monthly tip and AC
  • Verified brave://rewards-internals data is shown as expected for Contributions, General info and Promotions
  • Verified BAT distributed to verified pubs after AC is shown correctly in Monthly statement as well as in brave://rewards-internals page
  • Verified BAT distributed for AC from Rewards (UGP) and DEposted BAT is shown correctly
    image
Wallet balance =(Deposited BAT+KYC'd Uphold wallet )
  • Verified Restored wallet balance is moved to uphold card
  • Verified wallet status is Verified in brave://rewards-internals
  • Verified the test steps from verified KYC'd wallet and which are working as expected
Upgrade test
  • Verified wallet balance is not lost after upgrade
  • Verified pubs added in AC table are retained after upgrade
  • Verified Rewards summary is retained after upgrade
  • Verified pubs can be added/removed after upgrade
  • Verified pubs can be removed from BR panel and can be added again
  • Verified pubs added in AC table can be excluded and re-added
  • Turn OFF rewards switch in 1.12.x and upgrade to 1.13.x and verified that the switch state is retained and it can be enabled.
  • Turn OFF AC switch in 1.12.x and upgrade to 1.13.x and verified that the switch state is retained and it can be enabled.
  • Turn OFF Ads switch in 1.12.x and upgrade to 1.13.x and verified that the switch state is retained and it can be enabled.

@srirambv
Copy link
Contributor

Verification passed on OnePlus 6T with Android 10 running 1.13.81 x64 build

  • Verified the following scenarios:

    Wallet funded via UGP grants alone
    • Verified wallet status is Not connected in brave://rewards-internals
    • Verified checkmark is shown in BR panel as well as in Tipping banner for verified pubs
    • Verified checkmark is shown in AC table, Monthly contribution table and One-time tips panel for verified pubs
    • Verified checkmark is shown in Monthly statement for AC, Monthly contributions and One-time tips for verified pubs
    • Verified one-time tips and monthly tips processed successfully
    • Verified AC is working fine for verified pubs (added more than 3 pubs in AC table)
    • Verified wallet summary is displayed correctly
    • Verified wallet summary is showing the correct stats for One-time tip, monthly tip and AC
    • Verified brave://rewards-internals data is shown as expected for Contributions, General info and Promotions
    • Verified rewards summary isn't lost after browser restart
    • Verified able to tip verified pubs when AC is turned off
    Wallet funded via KYC'd uphold alone
    • Verified wallet status is Verified in brave://rewards-internals
    • Verified checkmark is shown in BR panel as well as in Tipping banner for verified pubs
    • Verified checkmark is shown in AC table, Monthly contribution table and One-time tips panel for verified pubs
    • Verified checkmark is shown in Monthly contributions and One-time tips for verified pubs
    • Verified one-time tips and monthly tips processed successfully
    • Verified AC is working fine for verified pubs (added more than 3 pubs in AC table)
    • Verified AC is triggered for connected pubs (e.g DDG)
    • Verified one-time tips sent for connected pubs isn't displayed in tips panel as expected
    • Verified one time tips and recurring tips for a connected publisher is going into pending contribution list after AC
    • Verified wallet summary is displayed correctly
    • Verified wallet summary and monthly statement are showing the correct stats for One-time tip, monthly tip and AC
    • Verified brave://rewards-internals data is shown as expected for Contributions, General info and Promotions
    • Verified transactions are listed correctly in Uphold Recent Activity section
    • Verified rewards summary isn't lost after browser restart
    • Verified able to tip verified pubs when AC is turned off
    Wallet balance =(Ad grants+KYC'd uphold)
    Wallet balance =(UGP+KYC'd uphold)
    • Verified wallet status is Verified in brave://rewards-internals
    • Verified checkmark is shown in AC table, Monthly contribution table and One-time tips panel for verified pubs
    • Verified checkmark is shown in Monthly contributions and One-time tips for verified pubs
    • Verified one-time tips and monthly tips processed successfully
    • Verified AC is working fine for verified pubs (added more than 3 pubs in AC table)
    • Verified wallet summary is displayed correctly
    • Verified wallet summary is showing the correct stats for One-time tip, monthly tip and AC
    • Verified brave://rewards-internals data is shown as expected for Contributions, General info and Promotions
    • Verified BAT distributed to verified pubs after AC is shown correctly in brave://rewards-internals page
    • Verified BAT distributed for AC from Rewards (UGP) and Uphold is shown correctly
    • Verified transactions are listed correctly in Uphold Recent Activity section
    • Verified GH, Vimeo, YT, general verified pubs can be added to AC table
    • Verified rewards summary isn't lost after browser restart
    • Verified able to tip verified pubs when AC is turned off
    Wallet balance =(UGP+Deposited BAT)
    • Not supported for Android
    Wallet balance =(Deposited BAT+KYC'd Uphold wallet )
    • Not supported for Android

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

Successfully merging a pull request may close this issue.

6 participants