Skip to content

Feature.modify 609#612

Merged
zancas merged 9 commits intoF5Networks:developmentfrom
pjbreaux:feature.modify_609
Aug 10, 2016
Merged

Feature.modify 609#612
zancas merged 9 commits intoF5Networks:developmentfrom
pjbreaux:feature.modify_609

Conversation

@pjbreaux
Copy link
Copy Markdown
Contributor

@pjbreaux pjbreaux commented Aug 9, 2016

@zancas

What's this change do?

Implements the modify method, which is a requests.patch call to exclusively update that which a user specifies by sending in the keyword arguments. The arguments are those that are updated, and nothing more.

Any background context?

Where should the reviewer start?

Start at the unit and functional tests, then move on to resource.py changes.

@pjbreaux
Copy link
Copy Markdown
Contributor Author

pjbreaux commented Aug 9, 2016

@zancas: check out the failure in jenkins for the 11.6.0 run. This test doesn't fail for me locally, when testing against 12.0.0

@zancas
Copy link
Copy Markdown
Contributor

zancas commented Aug 10, 2016

Is there still a 11.6.0 Jenkins fail? This PR shows "All checks have passed".

Paul Breaux added 3 commits August 9, 2016 19:47
Issues:
Fixes F5Networks#609

Problem:
Instead of puting the whole configuration object in a request to the
server, modify will only submit the explicitly specified parameters in
its kwargs, in a patch request to the server. This feature should be
implemented after F5Networks#608.

Analysis:
Added modify in ResourceBase, and created a couple of non-public helper
functions to make common usage among _update and _modify.

Tests:
Unit tests pass, but functionals still need to be written. Only one
functional test exists currently.
@zancas
Copy link
Copy Markdown
Contributor

zancas commented Aug 10, 2016

@pjbreaux I ran the tests locally, 11.6.0:

442 passed, 37 skipped in 109.24 seconds

The skips are mostly gtm.

I have some unittests on my version of the feature branch:

feature.unittest_modify_609

So, can you either rebase on top of it, or otherwise get it to be the thing this PR is to include it?

@pjbreaux pjbreaux force-pushed the feature.modify_609 branch from 2b25631 to d277efc Compare August 10, 2016 02:50
@pjbreaux
Copy link
Copy Markdown
Contributor Author

Rebased and pushed.

@zancas zancas merged commit f0dbfbf into F5Networks:development Aug 10, 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.

2 participants