From 73f0b143d18e4920ec4d8cc35833573491e853d6 Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Tue, 26 May 2020 12:54:17 -0700 Subject: [PATCH] dsvm: Run service-user tests under tempauth Change-Id: I0bdd3a1d044f8f99873f6270ca821862bb994d72 --- .../additional-tempauth-users/tasks/main.yaml | 47 +++++++++++++++++++ tools/playbooks/dsvm/pre.yaml | 3 +- 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 roles/additional-tempauth-users/tasks/main.yaml diff --git a/roles/additional-tempauth-users/tasks/main.yaml b/roles/additional-tempauth-users/tasks/main.yaml new file mode 100644 index 0000000000..e906af952d --- /dev/null +++ b/roles/additional-tempauth-users/tasks/main.yaml @@ -0,0 +1,47 @@ +- name: Configure service auth prefix for tempauth tests + ini_file: + path: /etc/swift/proxy-server.conf + section: filter:tempauth + option: reseller_prefix + value: TEMPAUTH, SERVICE_TA + become: true + +- name: Configure service group for tempauth tests + ini_file: + path: /etc/swift/proxy-server.conf + section: filter:tempauth + option: SERVICE_TA_require_group + value: service + become: true + +- name: Configure service account for tempauth tests + ini_file: + path: "{{ ansible_env.HOME }}/{{ zuul.project.src_dir }}/test/sample.conf" + section: func_test + option: account5 + value: test5 + become: true + +- name: Configure service username for tempauth tests + ini_file: + path: "{{ ansible_env.HOME }}/{{ zuul.project.src_dir }}/test/sample.conf" + section: func_test + option: username5 + value: tester5 + become: true + +- name: Configure service user password for tempauth tests + ini_file: + path: "{{ ansible_env.HOME }}/{{ zuul.project.src_dir }}/test/sample.conf" + section: func_test + option: password5 + value: testing5 + become: true + +- name: Configure service prefix for tempauth tests + ini_file: + path: "{{ ansible_env.HOME }}/{{ zuul.project.src_dir }}/test/sample.conf" + section: func_test + option: service_prefix + value: SERVICE_TA + become: true diff --git a/tools/playbooks/dsvm/pre.yaml b/tools/playbooks/dsvm/pre.yaml index 8b544c617c..23c6ec2d2d 100644 --- a/tools/playbooks/dsvm/pre.yaml +++ b/tools/playbooks/dsvm/pre.yaml @@ -7,5 +7,6 @@ bindep_dir: "{{ zuul_work_dir }}" - test-setup - ensure-tox - - dsvm-additional-middlewares + - additional-tempauth-users - additional-keystone-users + - dsvm-additional-middlewares