Skip to content

Fwaasv2 firewall groups acc tests (depends on #2049)#2050

Merged
jtopjian merged 1 commit intogophercloud:masterfrom
mercedes-benz:fwaasv2-firewall-groups-acc-tests
Nov 12, 2020
Merged

Fwaasv2 firewall groups acc tests (depends on #2049)#2050
jtopjian merged 1 commit intogophercloud:masterfrom
mercedes-benz:fwaasv2-firewall-groups-acc-tests

Conversation

@schreibergeorg
Copy link
Copy Markdown
Contributor

@schreibergeorg schreibergeorg commented Nov 2, 2020

@schreibergeorg schreibergeorg changed the title [wip] Fwaasv2 firewall groups acc tests (depends on #2049) Fwaasv2 firewall groups acc tests (depends on #2049) Nov 2, 2020
@schreibergeorg schreibergeorg marked this pull request as ready for review November 2, 2020 15:12
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Nov 2, 2020

Build succeeded.

@schreibergeorg
Copy link
Copy Markdown
Contributor Author

fixing...

@schreibergeorg schreibergeorg force-pushed the fwaasv2-firewall-groups-acc-tests branch from 42e31c5 to bb9cbc2 Compare November 5, 2020 08:10
@coveralls
Copy link
Copy Markdown

coveralls commented Nov 5, 2020

Coverage Status

Coverage increased (+0.02%) to 79.657% when pulling b380153 on Daimler:fwaasv2-firewall-groups-acc-tests into 9ee271d on gophercloud:master.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Nov 5, 2020

Build succeeded.

@jtopjian
Copy link
Copy Markdown
Contributor

jtopjian commented Nov 8, 2020

@codemanufaktur Unfortunately the testing environment is not configured for FWaaS v2. Are you able to provide the output of these unit tests with the OS_DEBUG=1 environment variable set? Please make sure to censor/sanitize any important information.

The output might be long, so perhaps a GitHub Gist is the best method of sharing.

Please let me know if you have any questions or problems.

@schreibergeorg
Copy link
Copy Markdown
Contributor Author

@jtopjian sure, here is the output of acceptance/openstack/networking/v2/extensions/fwaas_v2/groups_test.go: gist

@jtopjian
Copy link
Copy Markdown
Contributor

@codemanufaktur Thanks!

As far as I can tell, the whole series of PRs is good and we can look at just squashing and merging this one. Thank you for your work with all of the API calls.

The last thing I'd like to confirm is if paging is working correctly. Unfortunately I don't have a FWaaSv2 environment available and since the testing environment doesn't support FWaaSv2, would you mind testing this? I apologize for the extra work - this is something I usually do myself with PRs.

The easiest way to test this is if you create a few groups and then list them using a ListOpts.Limit of 1. Something like:

listOpts := groups.ListOpts{
  Limit: 1,
}

allPages, err := groups.List(client, listOpts).AllPages()

In the debug output, you should be able to see multiple GET requests. For example, if you create 3 groups, then there should be 3 GET requests, the first two having links for the next page.

@schreibergeorg
Copy link
Copy Markdown
Contributor Author

@codemanufaktur Thanks!

As far as I can tell, the whole series of PRs is good and we can look at just squashing and merging this one. Thank you for your work with all of the API calls.

The last thing I'd like to confirm is if paging is working correctly. Unfortunately I don't have a FWaaSv2 environment available and since the testing environment doesn't support FWaaSv2, would you mind testing this? I apologize for the extra work - this is something I usually do myself with PRs.

The easiest way to test this is if you create a few groups and then list them using a ListOpts.Limit of 1. Something like:

listOpts := groups.ListOpts{
  Limit: 1,
}

allPages, err := groups.List(client, listOpts).AllPages()

In the debug output, you should be able to see multiple GET requests. For example, if you create 3 groups, then there should be 3 GET requests, the first two having links for the next page.

I have 1 default firewall group, created 4 additional firewall groups and listed them with Limit: 1. I see 5 GET requests in the debug-output. I think paging is working as expected.

FWaaSv2 Create firewall-groups
FWaaSv2 Update & Delete firewall-groups
acc tests for fwaasv2 firewall groups
@schreibergeorg schreibergeorg force-pushed the fwaasv2-firewall-groups-acc-tests branch from bb9cbc2 to b380153 Compare November 10, 2020 14:06
@schreibergeorg
Copy link
Copy Markdown
Contributor Author

@jtopjian paging looks ok imho. I squashed my 4 commits to one, hope the commit message looks OK :-)

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Nov 10, 2020

Build succeeded.

Copy link
Copy Markdown
Contributor

@jtopjian jtopjian left a comment

Choose a reason for hiding this comment

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

LGTM - thank you for your patience and help with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants