<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/gitlab.git/tests, branch jlvillal/reset_gitlab</title>
<subtitle>github.com: gpocentek/python-gitlab.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/'/>
<entry>
<title>chore: make reset_gitlab() better</title>
<updated>2021-12-31T21:14:47+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-12-31T21:14:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=67dd7b495c83911b9718aa07cb21626400992e80'/>
<id>67dd7b495c83911b9718aa07cb21626400992e80</id>
<content type='text'>
Saw issues in the CI where reset_gitlab() would fail. It would fail to
delete the group that is created when GitLab starts up. Extending the
timeout didn't fix the issue.

Changed the code so now it will check if the item is deleted and if it
isn't it will call the delete() method again to ensure that GitLab
knows it should be deleted. Since making this change I have not been
able to reproduce the failure in reset_gitlab().

Also added some logging functionality that can be seen if logging is
turned on in pytest.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Saw issues in the CI where reset_gitlab() would fail. It would fail to
delete the group that is created when GitLab starts up. Extending the
timeout didn't fix the issue.

Changed the code so now it will check if the item is deleted and if it
isn't it will call the delete() method again to ensure that GitLab
knows it should be deleted. Since making this change I have not been
able to reproduce the failure in reset_gitlab().

Also added some logging functionality that can be seen if logging is
turned on in pytest.
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: add logging to `tests/functional/conftest.py`</title>
<updated>2021-12-31T21:14:35+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-12-31T21:14:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=3264aa65b18f623f972be38672f085c288b82839'/>
<id>3264aa65b18f623f972be38672f085c288b82839</id>
<content type='text'>
I have found trying to debug issues in the functional tests can be
difficult. Especially when trying to figure out failures in the CI
running on Github.

Add logging to `tests/functional/conftest.py` to have a better
understanding of what is happening during a test run which is useful
when trying to troubleshoot issues in the CI.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I have found trying to debug issues in the functional tests can be
difficult. Especially when trying to figure out failures in the CI
running on Github.

Add logging to `tests/functional/conftest.py` to have a better
understanding of what is happening during a test run which is useful
when trying to troubleshoot issues in the CI.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix: handle situation where GitLab does not return values</title>
<updated>2021-12-30T20:34:50+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-12-30T20:34:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=cb824a49af9b0d155b89fe66a4cfebefe52beb7a'/>
<id>cb824a49af9b0d155b89fe66a4cfebefe52beb7a</id>
<content type='text'>
If a query returns more than 10,000 records than the following values
are NOT returned:
  x.total_pages
  x.total

Modify the code to allow no value to be set for these values. If there
is not a value returned the functions will now return None.

Update unit test so no longer `xfail`

https://docs.gitlab.com/ee/user/gitlab_com/index.html#pagination-response-headers

Closes #1686
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a query returns more than 10,000 records than the following values
are NOT returned:
  x.total_pages
  x.total

Modify the code to allow no value to be set for these values. If there
is not a value returned the functions will now return None.

Update unit test so no longer `xfail`

https://docs.gitlab.com/ee/user/gitlab_com/index.html#pagination-response-headers

Closes #1686
</pre>
</div>
</content>
</entry>
<entry>
<title>test: reproduce missing pagination headers in tests</title>
<updated>2021-12-30T19:26:38+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>hab.nejc@gmail.com</email>
</author>
<published>2021-12-30T14:35:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=501f9a1588db90e6d2c235723ba62c09a669b5d2'/>
<id>501f9a1588db90e6d2c235723ba62c09a669b5d2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test: drop httmock dependency in test_gitlab.py</title>
<updated>2021-12-30T17:20:39+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>hab.nejc@gmail.com</email>
</author>
<published>2021-12-30T11:08:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=c764bee191438fc4aa2e52d14717c136760d2f3f'/>
<id>c764bee191438fc4aa2e52d14717c136760d2f3f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: ensure reset_gitlab() succeeds</title>
<updated>2021-12-29T00:02:28+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-12-29T00:02:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=0aa0b272a90b11951f900b290a8154408eace1de'/>
<id>0aa0b272a90b11951f900b290a8154408eace1de</id>
<content type='text'>
Ensure reset_gitlab() succeeds by waiting to make sure everything has
been deleted as expected. If the timeout is exceeded fail the test.

Not using `wait_for_sidekiq` as it didn't work. During testing I
didn't see any sidekiq processes as being busy even though not
everything was deleted.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ensure reset_gitlab() succeeds by waiting to make sure everything has
been deleted as expected. If the timeout is exceeded fail the test.

Not using `wait_for_sidekiq` as it didn't work. During testing I
didn't see any sidekiq processes as being busy even though not
everything was deleted.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #1782 from python-gitlab/jlvillal/repository_func_tests</title>
<updated>2021-12-27T23:17:06+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>hab.nejc@gmail.com</email>
</author>
<published>2021-12-27T23:17:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=d65ce365ff69a6bec2aa8d306800f6f76cbef842'/>
<id>d65ce365ff69a6bec2aa8d306800f6f76cbef842</id>
<content type='text'>
chore: skip a functional test if not using &gt;= py3.9</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
chore: skip a functional test if not using &gt;= py3.9</pre>
</div>
</content>
</entry>
<entry>
<title>chore: skip a functional test if not using &gt;= py3.9</title>
<updated>2021-12-27T06:15:35+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-12-27T06:15:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=ac9b59591a954504d4e6e9b576b7a43fcb2ddaaa'/>
<id>ac9b59591a954504d4e6e9b576b7a43fcb2ddaaa</id>
<content type='text'>
One of the tests requires Python 3.9 or higher to run. Mark the test
to be skipped if running Python less than 3.9.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
One of the tests requires Python 3.9 or higher to run. Mark the test
to be skipped if running Python less than 3.9.
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: update version in docker-compose.yml</title>
<updated>2021-12-26T22:45:06+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-12-26T22:45:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=79321aa0e33f0f4bd2ebcdad47769a1a6e81cba8'/>
<id>79321aa0e33f0f4bd2ebcdad47769a1a6e81cba8</id>
<content type='text'>
When running with docker-compose on Ubuntu 20.04 I got the error:

  $ docker-compose up
  ERROR: The Compose file './docker-compose.yml' is invalid because:
  networks.gitlab-network value Additional properties are not allowed ('name' was unexpected)

Changing the version in the docker-compose.yml file fro '3' to '3.5'
resolved the issue.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When running with docker-compose on Ubuntu 20.04 I got the error:

  $ docker-compose up
  ERROR: The Compose file './docker-compose.yml' is invalid because:
  networks.gitlab-network value Additional properties are not allowed ('name' was unexpected)

Changing the version in the docker-compose.yml file fro '3' to '3.5'
resolved the issue.
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(api): support file format for repository archive</title>
<updated>2021-12-21T17:04:22+00:00</updated>
<author>
<name>Max Ludwig</name>
<email>mail@danjou.de</email>
</author>
<published>2021-07-31T20:26:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitlab.git/commit/?id=83dcabf3b04af63318c981317778f74857279909'/>
<id>83dcabf3b04af63318c981317778f74857279909</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
