Skip to content

Adds GTM iRule api support#496

Merged
pjbreaux merged 1 commit intoF5Networks:developmentfrom
caphrim007:add-gtm-irule-support
Jun 20, 2016
Merged

Adds GTM iRule api support#496
pjbreaux merged 1 commit intoF5Networks:developmentfrom
caphrim007:add-gtm-irule-support

Conversation

@caphrim007
Copy link
Copy Markdown
Contributor

@wojtek0806 @zancas

Fixes #494

What's this change do?

This patch adds support and tests for to the SDK for the GTM iRule API

Where should the reviewer start?

  • test/functional/tm/gtm/test_rule.py
  • f5/tm/gtm/test/test_rule.py

Any background context?

The SDK currently does not support the GTM iRule API.

@caphrim007 caphrim007 force-pushed the add-gtm-irule-support branch 2 times, most recently from da24cf1 to 35db857 Compare June 19, 2016 01:38
@wojtek0806
Copy link
Copy Markdown
Contributor

Looks good to merge, not sure if i got merge rights tho, leaving for @zancas to merge

@wojtek0806
Copy link
Copy Markdown
Contributor

I have pulled this PR, and while this is unrelated to this PR, it looks like the 4 sec timeouts are causing some false positives when testing against hardware units:

https://github.com/F5Networks/f5-common-python/blob/development/test/functional/tm/sys/test_failover.py#L65

and:

https://github.com/F5Networks/f5-common-python/blob/development/test/functional/tm/sys/test_failover.py#L79

Can you tell me if they fail for you locally too? I added those previously due to Jenkins failures. For me reducing those to 2 sec fixes problem, but I do not want to cause Jenkins fails with that change

@caphrim007
Copy link
Copy Markdown
Contributor Author

@wojtek0806 was that second comment meant for a different PR?

@wojtek0806
Copy link
Copy Markdown
Contributor

@caphrim007 I meant this for this PR, i just wanna check if failover passes on your end, if not then we can reduce the timeout values and kill 2 birds with 1 stone, rather than raising second PR just to fix the timing in the test

@caphrim007
Copy link
Copy Markdown
Contributor Author

@wojtek0806 I had no issues running the tests on this feature.

Comment thread f5/bigip/tm/gtm/test/test_rule.py Outdated

class TestCreate(object):
def test_create_two(self, fakeicontrolsession):
b = BigIP('192.168.1.1', 'admin', 'admin')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update to use the new root ManagementRoot

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an example? All the existing tests use BigIP

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issues:
Fixes F5Networks#494

Problem:
The SDK currently does not support the GTM iRule API

Analysis:
This patch adds support and tests for to the SDK for the GTM iRule API

Tests:
  * test/functional/tm/gtm/test_rule.py
  * f5/tm/gtm/test/test_rule.py
@caphrim007 caphrim007 force-pushed the add-gtm-irule-support branch from 35db857 to 4b9f576 Compare June 20, 2016 17:34
@caphrim007
Copy link
Copy Markdown
Contributor Author

@pjbreaux PR updated

@pjbreaux
Copy link
Copy Markdown
Contributor

Well this is all just delectable. If Jenkins passes. I'll merge.

@pjbreaux
Copy link
Copy Markdown
Contributor

Now was this prioritized for a specific milestone? (I should have asked this first)

@caphrim007
Copy link
Copy Markdown
Contributor Author

@pjbreaux no, it was just something that came up recently when I was doing ansible work

@pjbreaux pjbreaux merged commit 5d4f71d into F5Networks:development Jun 20, 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