Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-freeipa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
staging
src-rhel
rpms
ansible-freeipa
Commits
c265b123
Commit
c265b123
authored
1 year ago
by
importbot
Browse files
Options
Downloads
Patches
Plain Diff
import ansible-freeipa-1.12.0-2.el8
parent
6e4b8e30
No related branches found
Branches containing commit
Tags
imports/c8s/ansible-freeipa-1.12.0-2.el8
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SOURCES/ansible-freeipa-1.12.0-test_pwpolicy-minlength-parameter-can-be-reset-with-.patch
+47
-0
47 additions, 0 deletions
...est_pwpolicy-minlength-parameter-can-be-reset-with-.patch
SPECS/ansible-freeipa.spec
+7
-1
7 additions, 1 deletion
SPECS/ansible-freeipa.spec
with
54 additions
and
1 deletion
SOURCES/ansible-freeipa-1.12.0-test_pwpolicy-minlength-parameter-can-be-reset-with-.patch
0 → 100644
+
47
−
0
View file @
c265b123
From f2a1d50b82cb8af31e5d55c045c8dc72c98c7694 Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoerner@redhat.com>
Date: Tue, 28 Nov 2023 11:48:31 +0100
Subject: [PATCH] test_pwpolicy: minlength parameter can be reset with empty
string now
The reset of the minlength parameter failed with an internal error so
far. This has been fixed in IPA and therefore requires to fix the test
in ansible-freeipa also.
Related: https://pagure.io/freeipa/issue/9297
---
tests/pwpolicy/test_pwpolicy.yml | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
diff --git a/tests/pwpolicy/test_pwpolicy.yml b/tests/pwpolicy/test_pwpolicy.yml
index 83f1763..340f64f 100644
--- a/tests/pwpolicy/test_pwpolicy.yml
+++ b/tests/pwpolicy/test_pwpolicy.yml
@@ -176,21 +176,10 @@
minlength: ""
register: result
failed_when:
- result.changed or
(result.failed and not
- ("an internal error has occurred" in result.msg or
- "int() argument must be" in result.msg))
- when: ipa_version is version("4.9", ">=")
-
- - name: Ensure minlength is not cleared due to FreeIPA issue
- ipapwpolicy:
- ipaadmin_password: SomeADMINpassword
- ipaapi_context: "{{ ipa_context | default(omit) }}"
- name: ops
- minlength: ""
- register: result
- failed_when: not result.changed or result.failed
- when: ipa_version is version("4.7", "<")
+ ("an internal error has occurred" in result.msg or
+ "int() argument must be" in result.msg))
+ or (not result.failed and not result.changed)
- name: Execute tests if ipa_version >= 4.9.0
when: ipa_version is version("4.9", ">=")
--
2.42.0
This diff is collapsed.
Click to expand it.
SPECS/ansible-freeipa.spec
+
7
−
1
View file @
c265b123
...
...
@@ -8,10 +8,11 @@
Summary: Roles and playbooks to deploy FreeIPA servers, replicas and clients
Name: ansible-freeipa
Version: 1.12.0
Release:
1
%{?dist}
Release:
2
%{?dist}
URL: https://github.com/freeipa/ansible-freeipa
License: GPL-3.0-or-later
Source: https://github.com/freeipa/ansible-freeipa/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: ansible-freeipa-1.12.0-test_pwpolicy-minlength-parameter-can-be-reset-with-.patch
BuildArch: noarch
%description
...
...
@@ -118,6 +119,7 @@ to get the needed requrements to run the tests.
%prep
%setup -q
# Do not create backup files with patches
%patch0 -p1
# Fix python modules and module utils:
# - Remove shebang
...
...
@@ -183,6 +185,10 @@ cp -rp tests %{buildroot}%{_datadir}/ansible-freeipa/
%{_datadir}/ansible-freeipa/requirements-tests.txt
%changelog
* Tue Nov 28 2023 Thomas Woerner <twoerner@redhat.com> - 1.12.0-2
- Fix test_pwpolicy for https://pagure.io/freeipa/issue/9297
Related: RHEL-13746
* Mon Nov 27 2023 Thomas Woerner <twoerner@redhat.com> - 1.12.0-1
- Update to version 1.12.0
https://github.com/freeipa/ansible-freeipa/releases/tag/v1.12.0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment