From 799d3c4a943124f381d74d855fde237e4f04a747 Mon Sep 17 00:00:00 2001 From: Asma Syed Hameed Date: Mon, 9 Sep 2024 13:27:18 +0530 Subject: [PATCH] Add barbican Scenarios - create-and-list-secret - create-and-delete-secret - create-and-delete-certificate Change-Id: I5fe92b68e758fa70ea5a3dcc254186e220e155d3 --- browbeat-config.yaml | 18 ++++++++++++++++++ .../create-and-delete-certificate.yaml | 19 +++++++++++++++++++ rally/barbican/create-and-delete-secret.yaml | 19 +++++++++++++++++++ rally/barbican/create-and-list-secret.yaml | 19 +++++++++++++++++++ 4 files changed, 75 insertions(+) create mode 100644 rally/barbican/create-and-delete-certificate.yaml create mode 100644 rally/barbican/create-and-delete-secret.yaml create mode 100644 rally/barbican/create-and-list-secret.yaml diff --git a/browbeat-config.yaml b/browbeat-config.yaml index 5d2a9afc2..3dd961db5 100644 --- a/browbeat-config.yaml +++ b/browbeat-config.yaml @@ -909,3 +909,21 @@ workloads: sample: 1 ansible_forks: 5 file: rally/rally-plugins/pbench-fio/pbench-fio.yml + + - name: barbican + enabled: false + type: rally + rally_deployment: overcloud + concurrency: + - 1 + times: 1 + scenarios: + - name: create-and-list-secrets + enabled: true + file: rally/barbican/create-and-list-secret.yaml + - name: create-and-delete-secrets + enabled: true + file: rally/barbican/create-and-delete-secret.yaml + - name: create-and-delete-certificate + enabled: true + file: rally/barbican/create-and-delete-certificate.yaml diff --git a/rally/barbican/create-and-delete-certificate.yaml b/rally/barbican/create-and-delete-certificate.yaml new file mode 100644 index 000000000..95be5723d --- /dev/null +++ b/rally/barbican/create-and-delete-certificate.yaml @@ -0,0 +1,19 @@ +{% set sla_max_avg_duration = sla_max_avg_duration or 60 %} +{% set sla_max_failure = sla_max_failure or 0 %} +{% set sla_max_seconds = sla_max_seconds or 60 %} +--- + BarbicanContainers.create_certificate_and_delete: + - + runner: + type: "constant" + times: {{times}} + concurrency: {{concurrency}} + context: + users: + tenants: 1 + users_per_tenant: 1 + sla: + max_avg_duration: {{sla_max_avg_duration}} + max_seconds_per_iteration: {{sla_max_seconds}} + failure_rate: + max: {{sla_max_failure}} diff --git a/rally/barbican/create-and-delete-secret.yaml b/rally/barbican/create-and-delete-secret.yaml new file mode 100644 index 000000000..7b716519f --- /dev/null +++ b/rally/barbican/create-and-delete-secret.yaml @@ -0,0 +1,19 @@ +{% set sla_max_avg_duration = sla_max_avg_duration or 60 %} +{% set sla_max_failure = sla_max_failure or 0 %} +{% set sla_max_seconds = sla_max_seconds or 60 %} +--- + BarbicanSecrets.create_and_delete: + - + runner: + type: "constant" + times: {{times}} + concurrency: {{concurrency}} + context: + users: + tenants: 1 + users_per_tenant: 1 + sla: + max_avg_duration: {{sla_max_avg_duration}} + max_seconds_per_iteration: {{sla_max_seconds}} + failure_rate: + max: {{sla_max_failure}} diff --git a/rally/barbican/create-and-list-secret.yaml b/rally/barbican/create-and-list-secret.yaml new file mode 100644 index 000000000..536226611 --- /dev/null +++ b/rally/barbican/create-and-list-secret.yaml @@ -0,0 +1,19 @@ +{% set sla_max_avg_duration = sla_max_avg_duration or 60 %} +{% set sla_max_failure = sla_max_failure or 0 %} +{% set sla_max_seconds = sla_max_seconds or 60 %} +--- + BarbicanSecrets.create_and_list: + - + runner: + type: "constant" + times: {{times}} + concurrency: {{concurrency}} + context: + users: + tenants: 1 + users_per_tenant: 1 + sla: + max_avg_duration: {{sla_max_avg_duration}} + max_seconds_per_iteration: {{sla_max_seconds}} + failure_rate: + max: {{sla_max_failure}}