Skip to content

Bugfix.user create 11 5 4#563

Merged
caphrim007 merged 1 commit intoF5Networks:developmentfrom
pjbreaux:bugfix.user_create_11_5_4
Aug 1, 2016
Merged

Bugfix.user create 11 5 4#563
caphrim007 merged 1 commit intoF5Networks:developmentfrom
pjbreaux:bugfix.user_create_11_5_4

Conversation

@pjbreaux
Copy link
Copy Markdown
Contributor

@zancas

What's this change do?

Fixes a test issue that is only apparent when testing against 11.5.4. The create user test was expecting a field, partitionAccess, to be a dict, but it is a string in 11.5.4.

Any background context?

We are fixing up failures that occur when testing against an 11.5.4 device. When you run pytest, you must include the --release option, so the appropriate test will be skipped based on the version given.

Where should the reviewer start?

Only a test fix.

test_user.py suite

Issues:
Fixes F5Networks#562

Problem:
The test in test/functional/auth/test_user fails due to the fact that in
11.5.4, the field partitionAccess is returned as a unicode, yet in 11.6
and greater, it is a dict. This just requires a test fixup for now.

Analysis:
Created a separate test for 11.5.4 and lower versions. The original
failing test is now skipped if the release version given to pytest is
lower than 11.6.0.

Tests:
Functional tests for test_user.py now pass
@caphrim007
Copy link
Copy Markdown
Contributor

tested on 11.5.4 hf1. works

@caphrim007 caphrim007 merged commit bf3a942 into F5Networks:development Aug 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants