13870 Commits

Author SHA1 Message Date
wei.ying
ce283b4a31 Add angular server groups panel
This patch adds angular server groups panel under the
project->compute panel group.

To be added in subsequent patches:
 - Create Action
 - Delete Action
 - Detais

To view the server groups panel only the 'ServerGroups' nova API
extension is available.

Change-Id: Ide9f54439c52cce9642c2dd417f9e7a8ad98e846
Implements: blueprint ng-server-groups
2018-03-10 17:29:41 +08:00
OpenStack Proposal Bot
a17a81aece Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I3c2a8f29fc05831cc685c53a456fe88170a9f3bc
2018-03-08 07:32:50 +00:00
Zuul
991571e680 Merge "Imported Translations from Zanata" 2018-03-07 14:30:08 +00:00
Zuul
3c8932a4d6 Merge "Convert admin.floating_ips tests into mock" 2018-03-07 14:27:39 +00:00
OpenStack Proposal Bot
b60bf6dbde Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I2fa2a4078b69b801a6a0f0a1017708af31ac532a
2018-03-07 07:27:09 +00:00
Vladislav Kuzmin
4c084ada26 Convert admin.floating_ips tests into mock
Change-Id: Id71f10643343f8fee7cfc05bbeaabe56f10075d4
2018-03-06 14:04:07 +04:00
Zuul
d4c1c29cbb Merge "Convert admin.aggregates tests into mock" 2018-03-04 12:21:18 +00:00
OpenStack Proposal Bot
2e6608467f Updated from global requirements
Change-Id: I4c0152c075953315b7309d843d633498e123a33f
2018-03-04 10:04:27 +00:00
OpenStack Proposal Bot
4660b9db52 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id2655abad2ed8edc4207c2d6d15cd05502d4ff83
2018-03-02 07:36:20 +00:00
Vladislav Kuzmin
38ebec57e9 Convert admin.aggregates tests into mock
Change-Id: Ia6c39234ea80128c36b1d2e3c891812f286acf56
2018-03-02 11:25:54 +04:00
Zuul
b82b7d4167 Merge "django2: is_authenticated/is_anonymous is now property only" 2018-03-01 14:46:49 +00:00
Zuul
e20a08a9ba Merge "django2: Replace assignment_tag with simple_tag" 2018-03-01 14:41:57 +00:00
Zuul
452bfbc32b Merge "django2: Replace django.core.urlresolves with django.urls" 2018-03-01 14:34:28 +00:00
Zuul
c1486728d3 Merge "Add same launch instance error handling as image to instance" 2018-02-28 21:30:05 +00:00
Beth Elwell
3233de8f0d Add same launch instance error handling as image to instance
Previously, when launching an instance with an instance snapshot rather
than with an image, the error handling was not as pleasant. I.e. the
volume size was not automatically set to the minimum size and the error
message would only appear after attempting to launch an instance. This
is a small patch that addresses this and makes the user experience more
friendly.

Change-Id: Ib694f66c74e90ee2e15201673de953c08cf10122
Closes-bug: #1752360
2018-02-28 15:56:08 +00:00
OpenStack Proposal Bot
f4f072fe13 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I3761eb000a565eee4556b28bb9674dfe49f0a0be
2018-02-28 07:54:34 +00:00
Zuul
6d4405951d Merge "Start using create_mocks in dashboards/admin/volumes/tests.py" 2018-02-27 21:40:39 +00:00
Vladislav Kuzmin
b407b07c84 Start using create_mocks in dashboards/admin/volumes/tests.py
Change cinder api to return None for volume_manage() and for
volume_reset_state(). In this case the tests check these
functions returns correct values.

Partially-Implements: blueprint mock-framework-in-unit-tests
Change-Id: I6694113cb3e8bfa74b1267c6336642d192fbf4ac
2018-02-27 16:40:24 +04:00
Zuul
bf323d9e55 Merge "Fix batch delete key pairs button isn't disabled when the key pair has deleted" 2018-02-27 12:12:57 +00:00
Zuul
d1b4b0f4b0 Merge "Add a warning to user: Unable to remove availability zone from host aggregate" 2018-02-26 12:10:32 +00:00
OpenStack Proposal Bot
ce984d073e Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ic00224f789a94c19adda22d5cfb0d2f1c2e38b6d
2018-02-26 07:43:08 +00:00
Dongjx
7cb2355dff Add a warning to user: Unable to remove availability zone from host aggregate
Because the nova API does not allow to set aggregates an empty
availability_zone which has availability_zone at first.
Add a warning to notice users to reduce confusion

Change-Id: I5864c58751ec5f182f30feb302a95923948ad2ad
Closes-Bug: #1644051
2018-02-24 15:14:30 +08:00
OpenStack Proposal Bot
90e8c1629f Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I98ee5aa3db365d8dd10cb41b39a4ec0f0fd582f8
2018-02-23 06:50:12 +00:00
Zuul
2015a839e2 Merge "Drop old django tests" 2018-02-23 05:51:23 +00:00
Ying Zuo
c32b5c1f2e Add Esperanto to the list of languages
The translation dashboard is showing 98% translated in Esperanto.
https://translate.openstack.org/iteration/view/horizon/stable-queens

Change-Id: Ib509cc9023666ef6d0f3dd6cd1880c7904f9fde2
2018-02-20 19:40:32 -08:00
Zuul
2f04966a0d Merge "Add assert_mock_multiple_calls_with_same_arguments test helper" 2018-02-20 13:29:32 +00:00
Zuul
8487e3f56f Merge "Make create_mocks compatible with create_stubs" 2018-02-20 13:26:07 +00:00
Akihiro Motoki
6a56497180 Add assert_mock_multiple_calls_with_same_arguments test helper
During the migration from mox to mock, it turns out there is case where
some method is called multiple times with same parameters and
it is common in openstack dashboard tests.

This commit adds assert_mock_multiple_calls_with_same_arguments assertion
method to ensure to check both call_count and arguments of all calls.

Note that assert_has_calls just checks a subset of called arguments
so it is better to check arguments of all calls.

Part of blueprint mock-framework-in-unit-tests
Change-Id: Id939e61718b0405a02a22a5ec8e55eda9554c545
2018-02-20 08:59:02 +09:00
Akihiro Motoki
61ea0b6a76 Make create_mocks compatible with create_stubs
create_mocks was introduced to mock multiple methods easily,
but its arguments are not compatible with create_stubs for mox.
This requires us to make many many small changes when converting
mox tests into mock. It would be nice if create_mocks is compatible
with create_stubs.

Part of blueprint mock-framework-in-unit-tests
Change-Id: I3d98448b1b9c517c194d692d6b3b53dc00e46223
2018-02-20 08:58:29 +09:00
Zuul
8798d87e48 Merge "Fixed popover table colour change on hover" 2018-02-17 11:15:13 +00:00
Zuul
3a461ef1f1 Merge "Updated from global requirements" 2018-02-17 10:50:12 +00:00
Zuul
7120db020a Merge "docs: Update help text for encryption provider" 2018-02-17 10:30:52 +00:00
OpenStack Proposal Bot
b70b4e35e5 Updated from global requirements
Change-Id: I7b70f3f74f3a95d3cd0b34f9af3f97c1003090b6
2018-02-17 09:30:44 +00:00
OpenStack Proposal Bot
ebc8d8aade Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id6b4a27e2975cd62a9a8fc1a35520b12f88f1c44
2018-02-17 07:23:40 +00:00
Brianna Poulos
21ffefaf6b docs: Update help text for encryption provider
The volume encryption provider no longer uses class names.
Instead, 'luks' and 'plain' are used. This patch updates
the help text for the volume encryption provider to use
the new encryption provider format constants.

Change-Id: I582b239d9de86aa1f1f5e55d4576cc65d33e74a7
2018-02-16 16:49:31 -05:00
Akihiro Motoki
1a252cb5e8 django2: is_authenticated/is_anonymous is now property only
https://docs.djangoproject.com/en/2.0/releases/1.10/#user-is-auth-anon-deprecation

blueprint django2-support
Change-Id: I57a39417f0595eae8d1c06d7e61d0a67078bb231
2018-02-17 01:36:54 +09:00
Akihiro Motoki
826720ada3 django2: Replace assignment_tag with simple_tag
https://docs.djangoproject.com/en/2.0/releases/1.9/#assignment-tag

blueprint django2-support
Change-Id: Ib5021a4030fd9bc954365a352bdf4dccd049d28e
2018-02-17 01:36:54 +09:00
Akihiro Motoki
e477eafa45 django2: Replace django.core.urlresolves with django.urls
(In Django 2.0) The django.core.urlresolvers module is removed
in favor of its new location, django.urls.
It was depreacted in Django 1.10:
https://docs.djangoproject.com/en/2.0/releases/1.10/#id3

blueprint django2-support
Change-Id: I46ab5c325491274b8eaffbf848e5d80f83c2fd26
2018-02-17 01:36:48 +09:00
Akihiro Motoki
76fa01b7de Drop old django tests
django 1.8 to 1.10 are incompatible with django 2.0.
We only supports Django >= 1.11 in Rocky and UTs with
Django <= 1.10 are no longer needed.

Conditions using django.VERSION will be dropped in a later patch
only because moving them to this patch causes many merge conflicts.

blueprint django2-support
Change-Id: I0611297e70d8e58d53e94635b0b7175d94df195b
2018-02-17 00:23:28 +09:00
Akihiro Motoki
5c5159bc09 Switch swift API tests to mock
This patch changes mox to mock for the following test modules:
* openstack_dashboard/test/unit/api/test_swift.py
* openstack_dashboard/test/unit/api/rest/test_swift.py

Partially-Implements: blueprint mock-framework-in-unit-tests

Change-Id: I3c920564b781c9c1c97bd6ee22b834504c94cb60
2018-02-16 13:25:45 +00:00
Zuul
317cd8e7da Merge "Add option --version to Zanata pull_catalog" 2018-02-16 13:07:04 +00:00
Zuul
82dd2ffeee Merge "Imported Translations from Zanata" 2018-02-16 12:42:45 +00:00
Zuul
e2d54a6979 Merge "Switch Nova API tests to mock" 2018-02-16 12:04:25 +00:00
Zuul
32f9d6b6a8 Merge "Provide a way to disable mox completely" 2018-02-16 12:03:36 +00:00
Frank Kloeker
06a63b4fdb Add option --version to Zanata pull_catalog
During translation phase it's required to pull different versions from
translation server instead only master branch.

Change-Id: I27ab5f678aae71846f5ec6191be08e05cf72e53e
2018-02-16 13:01:35 +01:00
OpenStack Proposal Bot
a44e67f9a0 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I69d0b67d3a3dfc47d92a6e2f580fc191f1237cc1
2018-02-16 06:24:31 +00:00
Akihiro Motoki
79ae866d57 Switch Nova API tests to mock
This patch changes mox to mock for the following test modules:
* openstack_dashboard/test/unit/api/test_nova.py
* openstack_dashboard/test/unit/api/rest/test_nova.py

Partially-Implements: blueprint mock-framework-in-unit-tests

Change-Id: I894ba4f1ab2123ce36f451013d8f7ebd70d9bd0f
2018-02-15 08:37:26 +00:00
Akihiro Motoki
51378f7058 Minor fix on mock migrated tests
Part of blueprint mock-framework-in-unit-tests

Change-Id: I40d18633889819e3087842e4fa9c7eccc2619c72
2018-02-15 08:37:11 +00:00
Akihiro Motoki
1a2c957fbb Provide a way to disable mox completely
This commit introduces 'use_mox' attribute to TestCase class.
If this is set to False, TestCase does not setup mox.

In addition, a common method to emit the deprecation warning
was introduced in APITestCase.

Part of blueprint mock-framework-in-unit-tests
Change-Id: I1e3df7ea2a867b8a7aa69523bed2beaab9663dc0
2018-02-15 08:36:57 +00:00
Zuul
d76e3ea5df Merge "Admin State is always UP whatever whether router Admin State is checked or not" 2018-02-14 18:23:27 +00:00