<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-troveclient.git/troveclient/tests/test_backups.py, branch master</title>
<subtitle>opendev.org: openstack/python-troveclient.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/'/>
<entry>
<title>Use unittest.mock instead of mock</title>
<updated>2020-06-11T09:55:55+00:00</updated>
<author>
<name>Hervé Beraud</name>
<email>hberaud@redhat.com</email>
</author>
<published>2020-06-09T10:05:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=b9f08915f8b8d2f672a2763bb758d7d0c9dbe59c'/>
<id>b9f08915f8b8d2f672a2763bb758d7d0c9dbe59c</id>
<content type='text'>
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: Ida35e5f79ee17ef8ac6ea2186019ddd4040ec882
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: Ida35e5f79ee17ef8ac6ea2186019ddd4040ec882
</pre>
</div>
</content>
</entry>
<entry>
<title>Use unittest.mock instead of third party mock</title>
<updated>2020-04-18T16:59:46+00:00</updated>
<author>
<name>Sean McGinnis</name>
<email>sean.mcginnis@gmail.com</email>
</author>
<published>2020-04-18T16:59:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=2b8282bb1e254e7716eab106ca8cc0d6c0097a51'/>
<id>2b8282bb1e254e7716eab106ca8cc0d6c0097a51</id>
<content type='text'>
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: Ib83e626f51e6e01898bb7931c1660a1a548500f3
Signed-off-by: Sean McGinnis &lt;sean.mcginnis@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: Ib83e626f51e6e01898bb7931c1660a1a548500f3
Signed-off-by: Sean McGinnis &lt;sean.mcginnis@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Support backup filtering</title>
<updated>2019-08-25T11:33:26+00:00</updated>
<author>
<name>Lingxian Kong</name>
<email>anlin.kong@gmail.com</email>
</author>
<published>2019-08-25T01:10:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=982b3f035a3eed4c788c26b7ba5b913782e04961'/>
<id>982b3f035a3eed4c788c26b7ba5b913782e04961</id>
<content type='text'>
To get all the backups of an instance:

    openstack database backup list --instance-id &lt;instance-id&gt;

Admin user gets backups of all the projects:

    openstack database backup list --all-projects

Story: #2006433
Task: #36346
Change-Id: I871d1ffa27805158024e8ecbe1dceae725c4deac
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To get all the backups of an instance:

    openstack database backup list --instance-id &lt;instance-id&gt;

Admin user gets backups of all the projects:

    openstack database backup list --all-projects

Story: #2006433
Task: #36346
Change-Id: I871d1ffa27805158024e8ecbe1dceae725c4deac
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove extra parameter 'backup' in backup-create</title>
<updated>2017-08-22T06:41:51+00:00</updated>
<author>
<name>int32bit</name>
<email>krystism@gmail.com</email>
</author>
<published>2017-08-22T01:47:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=457cefa90d2b09d20a77d99fdd78babea8ce34c1'/>
<id>457cefa90d2b09d20a77d99fdd78babea8ce34c1</id>
<content type='text'>
The parameter 'backup' in backup-create is never read by our Trove API[1], so
I guess it's a extra key argument for history reason. In addition, the
'backup-copy' subcommand should be removed as well because it does not
support in current Trove API.

[1] https://github.com/openstack/trove/blob/master/trove/backup/service.py#L61-L77

Change-Id: I33d439e0037efd4573eeae186758fd778ba5c514
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The parameter 'backup' in backup-create is never read by our Trove API[1], so
I guess it's a extra key argument for history reason. In addition, the
'backup-copy' subcommand should be removed as well because it does not
support in current Trove API.

[1] https://github.com/openstack/trove/blob/master/trove/backup/service.py#L61-L77

Change-Id: I33d439e0037efd4573eeae186758fd778ba5c514
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement scheduled backups</title>
<updated>2016-08-25T20:57:54+00:00</updated>
<author>
<name>Morgan Jones</name>
<email>morgan@parelastic.com</email>
</author>
<published>2016-06-13T19:26:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=599171ade4475709ddd8544e7dfd7ee4ba4ba2a2'/>
<id>599171ade4475709ddd8544e7dfd7ee4ba4ba2a2</id>
<content type='text'>
Implements Trove client APIs to implement scheduled backups
via Mistral workflow.

Change-Id: I012eb88359e063adbb86979a8fbd2e2a1e83f816
Implements: blueprint scheduled-backups
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implements Trove client APIs to implement scheduled backups
via Mistral workflow.

Change-Id: I012eb88359e063adbb86979a8fbd2e2a1e83f816
Implements: blueprint scheduled-backups
</pre>
</div>
</content>
</entry>
<entry>
<title>Add --incremental flag to backup-create</title>
<updated>2016-08-25T05:31:48+00:00</updated>
<author>
<name>Ali Adil</name>
<email>aadil@tesora.com</email>
</author>
<published>2016-07-28T20:27:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=2844f453ccd2af9c1002790b649f8850a435968b'/>
<id>2844f453ccd2af9c1002790b649f8850a435968b</id>
<content type='text'>
Added --incremental flag to backup-create and set the default
value to False. When the flag is passed it will create a
backup based on the last good known full/incremental backup.
If there is no previous backup a full backup will be created.

Change-Id: I96498180890b8b1692b1bac3b19988532f6eb077
Partial-Bug: #1607429
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added --incremental flag to backup-create and set the default
value to False. When the flag is passed it will create a
backup based on the last good known full/incremental backup.
If there is no previous backup a full backup will be created.

Change-Id: I96498180890b8b1692b1bac3b19988532f6eb077
Partial-Bug: #1607429
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix troveclient to support Mistral</title>
<updated>2016-05-26T20:14:37+00:00</updated>
<author>
<name>Morgan Jones</name>
<email>morgan@parelastic.com</email>
</author>
<published>2016-05-25T16:29:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=ea0e472edd194243392fd51a5af3a3a77101fddd'/>
<id>ea0e472edd194243392fd51a5af3a3a77101fddd</id>
<content type='text'>
Mistral gets confused by Trove's (aguably wrong) inclusion
of a member called 'items' in the Pagenated object that
Trove returns as the result of 'list' client methods.

This change changes Pagenated to inherit from the 'list'
class so that the items method is not required (and has
the additional benefit of just generally being a better
implementation of a list type result).

Change-Id: I683120451f69f07f131e6fa422c082f85735b196
Closes-bug: 1585705
Depends-On: Id674ae57bfcdc5e09bde1e323a614b3a03a7cad3
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Mistral gets confused by Trove's (aguably wrong) inclusion
of a member called 'items' in the Pagenated object that
Trove returns as the result of 'list' client methods.

This change changes Pagenated to inherit from the 'list'
class so that the items method is not required (and has
the additional benefit of just generally being a better
implementation of a list type result).

Change-Id: I683120451f69f07f131e6fa422c082f85735b196
Closes-bug: 1585705
Depends-On: Id674ae57bfcdc5e09bde1e323a614b3a03a7cad3
</pre>
</div>
</content>
</entry>
<entry>
<title>Correct order of parameters to assertEqual</title>
<updated>2015-02-23T17:48:39+00:00</updated>
<author>
<name>Amrith Kumar</name>
<email>amrith@tesora.com</email>
</author>
<published>2015-02-23T17:47:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=a0e04164b218e4576702f24dea08a060bc042727'/>
<id>a0e04164b218e4576702f24dea08a060bc042727</id>
<content type='text'>
The correct order of parameters to assertEqual is (expected,
actual). It makes the assertion message more meaningful when there is
a failure.

Change-Id: I1ab6933d2eee336b41f6ab791e32ad6eaa004a6b
Partial-Bug: #1277104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The correct order of parameters to assertEqual is (expected,
actual). It makes the assertion message more meaningful when there is
a failure.

Change-Id: I1ab6933d2eee336b41f6ab791e32ad6eaa004a6b
Partial-Bug: #1277104
</pre>
</div>
</content>
</entry>
<entry>
<title>Add instance name as parameter to CLI</title>
<updated>2014-12-08T19:29:06+00:00</updated>
<author>
<name>Doug Shelley</name>
<email>doug@parelastic.com</email>
</author>
<published>2014-12-04T17:27:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=df3afb2abc0d3e7efb1057884e84d8f9a8813881'/>
<id>df3afb2abc0d3e7efb1057884e84d8f9a8813881</id>
<content type='text'>
Allow CLI to take instance name as well as instance id for
sub-commands where instance can be specified. This commit
does not include the metadata-* commands as the backend for
that feature isn't merged. The spec will be adjusted to
reflect that they commands will be out of scope.

Affected sub-commands are:
backup-create
backup-list-instance
configuration-attach
configuration-default
configuration-detach
create (just for --replica_of)
database-create
database-delete
database-list
detach-replica
delete
resize-flavor
resize-instance
resize-volume
restart
root-enable
root-show
update
user-create
user-delete
user-grant-access
user-list
user-revoke-access
user-show
user-show-access
user-update-attributes

Unit tests were added to test passing in an instance object
for the affected sub-commands. A new set of unit tests were
added for databases.py (doesn't look like any existed before).

Change-Id: I5554a7d423990ff9cb24437a893d90d212b022b1
blueprint: add-instance-name-to-cli
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allow CLI to take instance name as well as instance id for
sub-commands where instance can be specified. This commit
does not include the metadata-* commands as the backend for
that feature isn't merged. The spec will be adjusted to
reflect that they commands will be out of scope.

Affected sub-commands are:
backup-create
backup-list-instance
configuration-attach
configuration-default
configuration-detach
create (just for --replica_of)
database-create
database-delete
database-list
detach-replica
delete
resize-flavor
resize-instance
resize-volume
restart
root-enable
root-show
update
user-create
user-delete
user-grant-access
user-list
user-revoke-access
user-show
user-show-access
user-update-attributes

Unit tests were added to test passing in an instance object
for the affected sub-commands. A new set of unit tests were
added for databases.py (doesn't look like any existed before).

Change-Id: I5554a7d423990ff9cb24437a893d90d212b022b1
blueprint: add-instance-name-to-cli
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Adding command for copying backups"</title>
<updated>2014-06-27T12:06:36+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2014-06-27T12:06:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=141d433cebcdcc49b1e781fdef652a68a36c4d4b'/>
<id>141d433cebcdcc49b1e781fdef652a68a36c4d4b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
