Commit 15cca565 by Tyler Nickerson

Merge pull request #97 from edx/tyler-accept-doc

Added documentation for acceptance tests
parents 9082a831 1369ff41
...@@ -43,11 +43,13 @@ To run the unit test suite followed by quality checks, run:: ...@@ -43,11 +43,13 @@ To run the unit test suite followed by quality checks, run::
$ make validate $ make validate
Acceptance tests require a valid LMS configuration and a user with a known username, email address, password, and access token. The following command will run the acceptance tests:: Acceptance Testing
~~~~~~~~~~~~~~~~~~
$ APP_SERVER_URL="<ECOMMERCE-URL>" LMS_URL="<LMS-URL>" LMS_USERNAME="<USERNAME>" LMS_EMAIL="<EMAIL>" LMS_PASSWORD="<PASSWORD>" ACCESS_TOKEN="<ACCESS-TOKEN>" make accept For instructions on how to run the acceptance tests, please consult the
README file located in the `acceptance tests README`_.
Note: Access tokens can be generated/obtained from the LMS admin portal (http://127.0.0.1:8000/admin/oauth2/accesstoken/). .. _acceptance tests README: acceptance_tests/README.rst
Documentation |ReadtheDocs|_ Documentation |ReadtheDocs|_
---------------------------- ----------------------------
......
...@@ -11,7 +11,6 @@ ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', 'edx') ...@@ -11,7 +11,6 @@ ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', 'edx')
# Application configuration # Application configuration
APP_SERVER_URL = os.environ.get('APP_SERVER_URL', 'http://localhost:8002').strip('/') APP_SERVER_URL = os.environ.get('APP_SERVER_URL', 'http://localhost:8002').strip('/')
ECOMMERCE_API_SERVER_URL = os.environ.get('ECOMMERCE_API_SERVER_URL', APP_SERVER_URL + '/api/v2').strip('/') ECOMMERCE_API_SERVER_URL = os.environ.get('ECOMMERCE_API_SERVER_URL', APP_SERVER_URL + '/api/v2').strip('/')
ECOMMERCE_API_SIGNING_KEY = os.environ.get('ECOMMERCE_API_SIGNING_KEY', 'edx')
ECOMMERCE_API_TOKEN = os.environ.get('ECOMMERCE_API_AUTH_TOKEN', ACCESS_TOKEN) ECOMMERCE_API_TOKEN = os.environ.get('ECOMMERCE_API_AUTH_TOKEN', ACCESS_TOKEN)
# Amount of time allotted for processing an order. This value is used to match newly-placed orders in testing, and # Amount of time allotted for processing an order. This value is used to match newly-placed orders in testing, and
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment