Commit 4a375d4d by Ben Patterson

Enroll test users into testcourses as part of provisioning.

We need test users automatically enrolled into these courses so we
can automate various tests (most immediately, fully-deployed sandboxes
that we run browser testing against.)

See: TE-1128
parent b44db909
......@@ -5,3 +5,13 @@
sudo_user: "{{ common_web_user }}"
when: item.install == True
with_items: TESTCOURSES_EXPORTS
- name: enroll test users in the testcourses
shell: >
{{ demo_edxapp_venv_bin }}/python ./manage.py lms --settings=aws --service-variant lms enroll_user_in_course -e {{ item[0].email }} -c {{ item[1].course_id }}
chdir={{ demo_edxapp_code_dir }}
sudo_user: "{{ common_web_user }}"
when: item[1].install == True
with_nested:
- demo_test_users
- TESTCOURSES_EXPORTS
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