Commit Graph

44 Commits

Author SHA1 Message Date
wangqi 26a42aeddf Replace basestring with six.string_types
https://wiki.openstack.org/wiki/Python3

Change-Id: I09ceb7c4819573f404359af5200e990b1e6070e2
2018-04-23 02:33:15 +00:00
melissaml f58fbddeb7 fix typos in documentation
Change-Id: Id7a2ac9e03d112dc23ee202162577580548dce6b
2018-03-28 06:08:07 +08:00
chenghuiyu 2ec06da007 Fix usage of method strtime
Function 'oslo_utils.timeutils.strtime()' is deprecated in version '1.6'
and will be removed in a future version.

Change-Id: I5bcf88d870499296d9cc542621ec220a7bffb882
2017-09-07 18:55:34 +08:00
Andrey Pavlov 24e7bc97f1 remove obsolete tests
Change-Id: I4e530476cedb8fd415cc8a117f1d292fed619180
2017-02-20 12:21:07 +03:00
ghanshyam 9c12d1464b Fix to use correct config options for ping_timeout
ping_timeout config options under compute group have been
deprecated since 1 year and it has been under new group validation.

Tempest will remove the deprecated config options soon.

This commit use the config options from correct group.

Change-Id: I1b1fa234969fafe13940384b54a9517de60ad3da
2017-02-15 02:54:45 +00:00
ghanshyam 182df8ec28 Switch to use test_utils.call_until_true
test.call_until_true has been deprecated since Newton on Tempest side,
and now Tempest provides test_utils.call_until_true as the stable
library method. So this patch switches to use the stable method before
removing old test.call_until_true on Tempest side.

Change-Id: Ib5a34cafd85015609c2f23d5b4d964604a0693c3
Needed-by: Ide11a7434a4714e5d2211af1803333535f557370
2017-02-14 01:22:21 +00:00
Jenkins 5a52de298d Merge "Don't attempt to escalate gce-api-manage privileges" 2016-10-25 13:15:24 +00:00
pallavi 1e7910cc08 Don't attempt to escalate gce-api-manage privileges
Remove code which allowed gce-api-manage to attempt to escalate
privileges so that configuration files can be read by users who
normally wouldn't have access, but do have sudo access.

Change-Id: I0a684f0239bef1669c15b6c54a658c6e6f2f430c
Closes-Bug: 1611171
2016-10-25 12:28:42 +00:00
ChangBo Guo(gcb) 9b8c2b5605 Don't pass argument sqlite_db in method set_defaults
Config option sqlite_db is deprecated for removal[1],
and isn't used in gce-api, so don't need set its default value.

[1]https://github.com/openstack/oslo.db/blob/\
0a1bae9859079fb21a03716be947c5f1da6db0a2/oslo_db/options.py#L17

Change-Id: Ib176bca26d2bb49e301fdd71a923886be32a0339
2016-09-21 14:22:24 +08:00
Andrey Pavlov 967108eafe Fix tempest.conf generation
Command 'tox -egenconfig' fails for tempest if gce-api
installed in the system.

Change-Id: I10829c050da93cfcc5ebe878a12fd80015dcbe4a
2016-08-22 12:18:47 +03:00
Ronald Bradford 234daf3283 Remove remaining unused Oslo Incubator Code
Remove the last remaining references to Oslo incubator in the project
as this is no longer used, and no longer supported.
Adjust tox configuration to no longer require tools scripts to define
Oslo incubator venv.

Change-Id: I8d012a8e784386892a28ab476d2e87afdd2657fd
2016-07-20 16:23:50 -04:00
Ronald Bradford 3318e959f3 Subclass context from oslo.context
Replace Oslo incubator defined RequestContext class with corrected
subclassed object from Oslo Context.

Change-Id: I90e7a855d1e6fd0cd760b9a789ce7c9861851ed0
2016-07-18 18:01:20 -04:00
Ronald Bradford 6b8589898a Replace oslo incubator eventlet use with oslo service
Remove the legacy Oslo Incubator code for the eventlet_backdoor
replacing with applicable oslo_service syntax.

Change-Id: I8391422b6494d85f38e0aad4d87ff3bada3cb2d9
2016-07-18 15:55:36 -04:00
Andrey Pavlov a416144761 fix set_common_instance_metadata test against google
Change-Id: Ie0ce781e8421c8e7c0d0d112a3d6bdfc70634b0d
2016-06-26 21:28:09 +03:00
Swapnil Kulkarni (coolsvap) 3e5cc8aa5f Replace deprecated LOG.warn with LOG.warning
LOG.warn is deprecated. It still used in a few places.
Updated to non-deprecated LOG.warning.

Change-Id: I5220749e651a547c788722a3709124fe217e500c
Closes-Bug:#1508442
2016-03-11 13:23:47 +05:30
Andrey Pavlov 089f1af38b switch from deprecated tempest_lib to tempest.lib
Change-Id: Ib0608f4617b5da1dc71b56b3cb6537ab220890f9
2016-02-26 15:47:09 +03:00
Andrey Pavlov 9d31912f36 update config & fix test against google
Change-Id: I713724a866a9fc8727bf0ad150c596bc4b4b6d12
2015-12-23 21:56:13 +03:00
Jenkins 3476775694 Merge "rework functional tests to be a tempest plugin" 2015-12-22 15:00:54 +00:00
Andrey Pavlov 01786798d8 rework functional tests to be a tempest plugin
Change-Id: Ic38b628a4c17e2a8d307ecdeb08c639975a364aa
2015-12-22 13:13:46 +03:00
alexey-mr e73b3b2508 Added tests of routes api.
Change-Id: I926552a32085b3c8db775f88a77f22f7ac7b28cb
2015-11-19 18:21:31 +03:00
alexey-mr bee22697b8 Added tests of firewalls api.
Change-Id: I66b2d3080d259e8be50138c02749a9a7f7e58d19
2015-11-18 17:57:22 +03:00
alexey-mr 54e55e4b47 Added test of machine types.
Get, list and aggregatedList operations.

Change-Id: I6a07ebefca539162f16451a579360cfbd9519685
2015-11-18 15:23:33 +03:00
alexey-mr 2a925757fb Added test of running instances from disks, tests for images and project apis.
Change-Id: Idff1c6799b661eb2de87f7aeafedc5dffd52dc52
2015-11-18 12:49:20 +03:00
alexey-mr 668848c03a test_instances and test_networks refactoring aka ec2 style
Change-Id: I096192c447e75ecbcfe400f4008a3b391fa71bd5
2015-11-14 13:11:46 +03:00
alexey-mr aa787e0fd6 Refactoring test_address aka 'ec2' style.
Added list by filter test.

Change-Id: I21b5de480c5216dbf31cc8105750baeffa7dd5d1
2015-11-12 19:22:23 +03:00
alexey-mr 350e260b28 Added tests for disk_types, disks and snapshots management
Added default volume size for new empty disk creation.

Change-Id: Ia881951bf7e3fc9189c59dcd89270ffdef7a4d44
2015-11-12 16:41:59 +03:00
alexey-mr 93aabba2ff Split cases for nova and neutron networks.
Added simlest network tests.

Change-Id: Ifc3f951a29d85fad61869376bcbe602ae209f6c6
2015-11-09 17:22:31 +03:00
alexey-mr 3ecaef77b7 Added simple instances tests (CRUD)
Change-Id: Id4c9f7c4b18d6d2e3bd74c728d555f9513f08420
2015-11-05 12:58:34 +03:00
alexey-mr 765e4a0c57 Implemented regions tests.
Added ability to test against openstack via direct login.

Change-Id: Icc8cef595a5bef9f4d02446ff9ab9f8cfb3b831b
2015-10-23 16:59:37 +03:00
alexm 0186280b15 Reanimate gceapi to work with updated gcutil
Implemented gce functional test for zones via google api client

Change-Id: I8dcae50f50e4ea22a368e015426afe5bfbef5cdd
2015-10-22 15:02:27 +03:00
alexm deef8c294e Reanimate gceapi to work with updated gcutil
Change-Id: I12bf92a9f21539487376ae5e5814d4e831290338
2015-10-14 11:49:43 +03:00
Andrey Pavlov abba54ba6a add old functional tests to repository
Change-Id: I2a61008f79be3412d57c76625dee8eec0e0f3f76
2015-09-04 16:16:55 +03:00
Andrey Pavlov 75905790e5 update gce api to current OpenStack
- add devstack plugin
- update openstack common
- move unit tests to unit folder
- update infrastructural files

Change-Id: Id72006f70110dbd1762f42b582470ac5f3439f2a
2015-09-03 17:16:30 +03:00
Feodor Tersin 99d3eedf59 Update copyright
Change-Id: I997fcd92e9fddb5b70cadb2735ae86d7816f8e79
2014-11-11 21:14:54 +04:00
Andrey Pavlov 5d3295fa89 update instance creation and disk attaching to new protocol
It must be updated because of new way of instance creation with disk.
Previously it takes disk but now it takes parameters for disk creation.

Partial-Bug: #1381173
Change-Id: Ief3a8c204bf471b9253241816fb2dd6a5b705e84
2014-10-17 18:26:31 +04:00
Andrey Pavlov c4d6b776a5 add internal google projects to list of excludes for OAuth
Partial-Bug: #1381173
Change-Id: Ief3a8c204bf471b9253241816fb2dd6a5b705e85
2014-10-15 23:51:03 +04:00
Tushar Kalra 92e21e47ef Don't raise MySQL 2013 'Lost connection' errors
Closes-bug: #1276510

The code error 2013 refers to a connection lost during a query, see:
https://dev.mysql.com/doc/refman/5.0/en/error-messages-client.html#error_cr_server_lost
Without this error code, the session won't try to reconnect to mysql,
which makes `max_retries` useless.

Change-Id: Ie7e3afa121bd7f42c90d20b98b3a83ad40fa8e76
2014-07-21 15:35:44 -07:00
Andrey Pavlov 4341e6f534 backport fixes to upstream
return public_url from config for discovery
fix url creation for resources
fix install script. add setting of public_url to install script.
update sample config
rework regions and remove public_url from config

Change-Id: I1159f2ac8eeeb01433ec2373600475cd6b8a6688
2014-04-04 21:19:31 +04:00
Andrey Pavlov cc0b9fb22b backport fixes to upstream
improve logging
fix progress in image deletion

Change-Id: I30c42d03a1e81307a923867e685bbe1c0ec67d6e
2014-03-19 21:57:39 +04:00
Andrey Pavlov 97108dda10 backport fixes to upstream
Fix dependencies
add altering with utf8 migrate_version table
change place of protocol files
add config option for defining regions
Use provided sshKeys in instance creation
Return requested url in discovery protocol
Fixes for cmd scripts
Catch nova exception and re-raise GCE exception
add two new empty projects for images list
fixes for getProject
- when cinderclient is old
- when neutron is absent
fix style and tests

Change-Id: Id11d9d7b8613a9f59e054d1fd39ea6dccbe7b4f0
2014-03-15 22:11:48 +04:00
Andrey Pavlov a955456dd5 Fix get_items for nova-network
Change-Id: I0024d21e650f059c5591a1bb1bedfce41efd4568
2014-02-19 18:08:51 +04:00
Andrey Pavlov d48d8e5200 Change default port for gce service.
Change-Id: I66c133ad63c0686ec61b8b838250c9abd3d628c0
2014-02-19 17:11:31 +04:00
Andrey Pavlov 1921ce74fa Add installation script and instruction
Change-Id: I7149e2e5ddc62cc426126e258659439d23a15959
2014-02-07 16:23:53 +04:00
Alexandre Levine 754725a4aa GCE-API support service for OpenStack
Change-Id: I80f6b024cb40ba31ebaacf35d7364f66115da9c6
Implements: blueprint gce-api
2014-02-04 19:16:29 +04:00