Commit Graph

63 Commits

Author SHA1 Message Date
Rohan Cheeniyil 37aba08321 refactor code for provider states based on endpoints
test plan:
* checkout patch and make sure pact can verify

Change-Id: Ib8e51b628b7c8d7caab92f267badcee6a1bd9979
Closes: QA-520
Reviewed-on: https://gerrit.instructure.com/154259
Tested-by: Jenkins
Reviewed-by: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Product-Review: Rohan Cheeniyil <rcheeniyil@instructure.com>
QA-Review: Rohan Cheeniyil <rcheeniyil@instructure.com>
2018-06-19 16:38:02 +00:00
Rohan Cheeniyil 7e13486dda fix: account notification spec provider state
accountid used instead of userid and variable names fixed

Change-Id: Iecd786dd44dff85077d97ba4cf383c391ead3d26
closes: QA-512
Reviewed-on: https://gerrit.instructure.com/153980
Reviewed-by: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Product-Review: Rohan Cheeniyil <rcheeniyil@instructure.com>
QA-Review: Rohan Cheeniyil <rcheeniyil@instructure.com>
Tested-by: Jenkins
2018-06-15 16:32:43 +00:00
Robert Lamb 3965dc7781 spec: separate pact_config files
Seperate pact_config files for Canvas project and Generic Consumer
sub-project.

Change-Id: I9343c9f1137d0b0da6ef0c7880d502a8da85805a
Reviewed-on: https://gerrit.instructure.com/153889
Tested-by: Jenkins
Reviewed-by: Anju Reddy <areddy@instructure.com>
QA-Review: Anju Reddy <areddy@instructure.com>
Product-Review: Robert Lamb <rlamb@instructure.com>
QA-Review: Robert Lamb <rlamb@instructure.com>
2018-06-14 22:07:08 +00:00
Rohan Cheeniyil b48799f43d spec: robust calendar spec
Adds a robust version of the claendar spec provider state
and potential fix for jenkins on account_notification

closes QA-510

Change-Id: Ie13fc56d4474a5c94636e95950695b97780accec
Reviewed-on: https://gerrit.instructure.com/153690
Tested-by: Jenkins
Reviewed-by: Robert Lamb <rlamb@instructure.com>
Product-Review: Robert Lamb <rlamb@instructure.com>
QA-Review: Robert Lamb <rlamb@instructure.com>
2018-06-13 20:45:59 +00:00
Robert Lamb 19f57a4cbf spec: re-instate ability to verify pact locally
Allow verifying Generic Consumer pact locally by simply running
rake pact:verify

Change-Id: Ied8e64814899c4b632ce13fa36d45d7b49957f4f
Reviewed-on: https://gerrit.instructure.com/153655
Reviewed-by: Luke Kingsley <lkingsley@instructure.com>
Tested-by: Jenkins
Product-Review: Robert Lamb <rlamb@instructure.com>
QA-Review: Robert Lamb <rlamb@instructure.com>
2018-06-13 18:05:55 +00:00
Luke Kingsley fef679230b spec: Added pact tests for users, announcements and courses
Added provider states and consumer side tests.

fixes: QA-502
Change-Id: I179d71722a0d176406072bc7941a80a2f8ff340c
Reviewed-on: https://gerrit.instructure.com/153174
Reviewed-by: Rohan Cheeniyil <rcheeniyil@instructure.com>
Tested-by: Jenkins
Product-Review: Luke Kingsley <lkingsley@instructure.com>
QA-Review: Luke Kingsley <lkingsley@instructure.com>
2018-06-12 21:51:49 +00:00
Rohan Cheeniyil a46b7a7589 spec: account notification and report spec
Added account notification and report spec

Change-Id: I22228ab0f4f47713cf9ad759bd41bcf6f9cea704
Reviewed-on: https://gerrit.instructure.com/153102
Tested-by: Jenkins
Reviewed-by: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Reviewed-by: Anju Reddy <areddy@instructure.com>
Product-Review: Rohan Cheeniyil <rcheeniyil@instructure.com>
QA-Review: Rohan Cheeniyil <rcheeniyil@instructure.com>
2018-06-08 20:30:41 +00:00
Rohan Cheeniyil 2dbab9b1ba spec: contract test and provider state for calendar_event endpoint
closes: QA-500

Change-Id: I7ece08c4befa0c08195bd1868c180d4b012af726
Reviewed-on: https://gerrit.instructure.com/152319
Tested-by: Jenkins
Product-Review: Rohan Cheeniyil <rcheeniyil@instructure.com>
QA-Review: Rohan Cheeniyil <rcheeniyil@instructure.com>
Reviewed-by: Robert Lamb <rlamb@instructure.com>
2018-06-08 15:53:19 +00:00
Anju Reddy dd10968a22 wip: Add rake script to push results to broker
Test Plan:
  -- Passes Jenkins

Change-Id: I071c93e36414b80c32adbf3eba7f03bb5c0fff3f
Reviewed-on: https://gerrit.instructure.com/151510
Tested-by: Jenkins
Reviewed-by: Tucker McKnight <tmcknight@instructure.com>
Product-Review: Anju Reddy <areddy@instructure.com>
QA-Review: Anju Reddy <areddy@instructure.com>
2018-06-05 19:53:03 +00:00
Tucker McKnight 72bc724fb3 spec: Move generic consumer tests into pact folder
This also moves the pact_config.rb file into the pact folder.

The line filtering :pact tests has been removed from spec_helper.rb,
since rspec won't try to run them anyway now that they aren't in the
spec folder.

Change-Id: I1d8f27f4f30aa2cdc85e570deb7e0aa2cdb89c66
Reviewed-on: https://gerrit.instructure.com/152144
Reviewed-by: Michael Hargiss <mhargiss@instructure.com>
Tested-by: Jenkins
Product-Review: Tucker McKnight <tmcknight@instructure.com>
QA-Review: Tucker McKnight <tmcknight@instructure.com>
2018-06-04 17:11:00 +00:00
Michael Hargiss 754c0197e9 add live event test for Quiz LTI contract
This adds a verification for the contract test between Quiz
LTI and the Canvas LMS Live Event, "quizzes_next_quiz_duplicated".

closes QUIZ-4398

Test Plan:
  - follow the test plan outlined in the associated quiz_lti
    commit (see JIRA ticket)

Change-Id: I0a755b3a1c39edde70dab5ab36f0fb91c0fbd32e
Reviewed-on: https://gerrit.instructure.com/151157
Reviewed-by: Tyler Burraston <tburraston@instructure.com>
Reviewed-by: Sven Thirion <sthirion@instructure.com>
Tested-by: Jenkins
Product-Review: Michael Hargiss <mhargiss@instructure.com>
QA-Review: Michael Hargiss <mhargiss@instructure.com>
2018-05-23 15:29:36 +00:00
Michael Hargiss 8568525f24 consolidate contract tests
Test Plan:
  - follow the instructions in spec/contracts/README.md to run
  the live events contract tests locally
  - follow the instructions in
  spec/contracts/service_providers/canvas_lms/README.md to run
  the "Generic Consumer" Canvas API contract tests locally

Change-Id: I316747f53731f411ab82432587596e335c2fd059
Reviewed-on: https://gerrit.instructure.com/149766
Reviewed-by: Tucker McKnight <tmcknight@instructure.com>
Tested-by: Jenkins
Product-Review: Michael Hargiss <mhargiss@instructure.com>
QA-Review: Michael Hargiss <mhargiss@instructure.com>
2018-05-18 22:34:20 +00:00
Michael Hargiss 7293ebc942 add quiz lti contract tests for live events
refs QUIZ-4175

Test Plan:
  - qa-cr for now. A subsequent commit will include a comprehensive
    test plan once the Quiz LTI contract test is published.

Change-Id: I2ffe962d8a626994614f3cc904d131e41e3a00b1
Reviewed-on: https://gerrit.instructure.com/145857
Tested-by: Jenkins
Reviewed-by: Mark Grant <mgrant@instructure.com>
Product-Review: Michael Hargiss <mhargiss@instructure.com>
QA-Review: Michael Hargiss <mhargiss@instructure.com>
2018-04-10 14:20:18 +00:00