From 7ee260c7df932b3d2eba8f178299dfb6f1cba510 Mon Sep 17 00:00:00 2001 From: Artem Goncharov Date: Tue, 16 Sep 2025 19:14:57 +0200 Subject: [PATCH] Add keystone-ng idp and mapping resources metadata Also ensure new features are activated when running clippy. Change-Id: I95d5814ff0691ac859eff8435a8c155acf0559ed Signed-off-by: Artem Goncharov --- bindep.txt | 6 +++- metadata/identity_metadata.yaml | 63 ++++++++++++++++++++++++++++++--- playbooks/rust/all.yaml | 2 +- 3 files changed, 64 insertions(+), 7 deletions(-) diff --git a/bindep.txt b/bindep.txt index 751bd57..2ac0b9c 100644 --- a/bindep.txt +++ b/bindep.txt @@ -15,4 +15,8 @@ libldap-dev [platform:dpkg] # There are no wheels for pillow on py3.12 so we need to enable building it libjpeg-dev [platform:dpkg] -libpcre3-dev [platform:dpkg] \ No newline at end of file +libpcre3-dev [platform:dpkg] + +# building rust with openssl requires pkg-config to be present +pkg-config [platform:dpkg] +libudev-dev [platform:dpkg] diff --git a/metadata/identity_metadata.yaml b/metadata/identity_metadata.yaml index 511d4a8..abf5696 100644 --- a/metadata/identity_metadata.yaml +++ b/metadata/identity_metadata.yaml @@ -3388,7 +3388,7 @@ resources: rust-cli: module_name: list sdk_mod_name: list - cli_full_command: identity-provider list + cli_full_command: federation identity-provider list show: operation_id: /federation/identity_provider:show operation_type: show @@ -3398,7 +3398,7 @@ resources: rust-cli: module_name: show sdk_mod_name: get - cli_full_command: identity-provider show + cli_full_command: federation identity-provider show create: operation_id: /federation/identity_provider:create operation_type: create @@ -3408,7 +3408,7 @@ resources: rust-cli: module_name: create sdk_mod_name: create - cli_full_command: identity-provider create + cli_full_command: federation identity-provider create update: operation_id: /federation/identity_provider:update operation_type: set @@ -3418,7 +3418,7 @@ resources: rust-cli: module_name: set sdk_mod_name: set - cli_full_command: identity-provider set + cli_full_command: federation identity-provider set delete: operation_id: /federation/identity_provider:delete operation_type: delete @@ -3427,4 +3427,57 @@ resources: module_name: delete rust-cli: module_name: delete - cli_full_command: identity-provider delete + cli_full_command: federation identity-provider delete + identity.federation/mapping: + spec_file: wrk/openapi_specs/identity/keystone_rust.yaml + api_version: v4 + operations: + list: + operation_id: /federation/mapping:list + operation_type: list + targets: + rust-sdk: + module_name: list + rust-cli: + module_name: list + sdk_mod_name: list + cli_full_command: federation mapping list + show: + operation_id: /federation/mapping:show + operation_type: show + targets: + rust-sdk: + module_name: get + rust-cli: + module_name: show + sdk_mod_name: get + cli_full_command: federation mapping show + create: + operation_id: /federation/mapping:create + operation_type: create + targets: + rust-sdk: + module_name: create + rust-cli: + module_name: create + sdk_mod_name: create + cli_full_command: federation mapping create + update: + operation_id: /federation/mapping:update + operation_type: set + targets: + rust-sdk: + module_name: set + rust-cli: + module_name: set + sdk_mod_name: set + cli_full_command: federation mapping set + delete: + operation_id: /federation/mapping:delete + operation_type: delete + targets: + rust-sdk: + module_name: delete + rust-cli: + module_name: delete + cli_full_command: federation mapping delete diff --git a/playbooks/rust/all.yaml b/playbooks/rust/all.yaml index 888ba80..e566f65 100644 --- a/playbooks/rust/all.yaml +++ b/playbooks/rust/all.yaml @@ -43,7 +43,7 @@ - name: "Optimize generated code with clippy" ansible.builtin.command: - cmd: "cargo clippy --fix --lib --tests --bins --allow-dirty" + cmd: "cargo clippy --fix --lib --tests --bins --allow-dirty --all-features" chdir: "{{ rust_project_dir }}" - name: "Format generated code"