14296 Commits

Author SHA1 Message Date
Zuul
c6c18b1aca Merge "Convert project tests into mock: fip/sg/key_pairs/topology" 2018-03-30 12:01:59 +00:00
OpenStack Proposal Bot
6aa3c66543 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I791ed79f681708ddc1567a29f4bbae0c03e5ff6f
2018-03-30 07:09:57 +00:00
wangliangyu
b0fccd3355 The disk format is selected automatically when using file to create image
The disk format field has its onchange listener in horizon.forms.js file,
but it is valid only when the change is made by mouse or keyboard.
So, angularJs controller is just change its value and its listener is
not triggered. The listener can't be triggered manually within controller.
This commit set the display manually and resolve it.

Change-Id: I8c228bac9392003055a808eeb56b733ac4c9b07a
Closes-Bug: #1760006
2018-03-30 11:42:07 +08:00
liyingjun
2ad84cb34f Support description for instance update/rebuild
In Nova Compute API microversion 2.19, you can specify a description
attribute when creating, rebuilding, or updating a server instance. This
description can be retrieved by getting server details, or list details
for servers, this patch adds support for this attribute for instance in
horizon.
This patch adds description for instance update/rebuild

Change-Id: I1c561607551fe6ed521772688b643cb27400e24e
Closes-bug: #1753661
2018-03-30 11:02:27 +08:00
wangliangyu
fd67e0f664 Only display the bootable volume snapshots when creating instance
The volume snapshot of non-bootable volume could not be as the instance source.
But now,when we select volume snapshot as source, not only bootable volume
snapshots but also non-bootable ones show up.

Change-Id: I36cd02f34029eedb693047a1bf3f01dad05aa1b3
Closes-Bug: #1748724
2018-03-30 10:47:05 +08:00
Zuul
9ab701b5e2 Merge "add lower-constraints job" 2018-03-29 09:11:12 +00:00
OpenStack Proposal Bot
d00fd5b8d6 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I72f487de18ec92686e13caafba09ae6cb5529c44
2018-03-29 07:34:50 +00:00
Shu Muto
8275d67949 Reproduce navigations on refreshing ngdetails view
To setup proper navigation to side bar and breadcrumb,
this patch adds new 'defaultIndexUrl' parameter and
its getter/setter into resource-type-service.

The 'defaultIndexUrl' parameter makes details view
enable to set navigations properly in Angular-side.

Each panel module should set URL for default index view
using 'defaultIndexUrl' parameter. So, this patch adds
the `defaultIndexUrl` parameter into existing panel
modules that have Angularized details view.

Also, if query string has 'nav' parameter, the
navigation setting will be overwitten with it.
This URL overwriting may be used by panels that has
multiple index panels, like images panel.

Change-Id: I2edd44e55eb10114e5282cec1762e9635881f733
Closes-Bug: #1746706
2018-03-29 15:01:59 +09:00
Zuul
9696588870 Merge "project: Tabbify project quota update" 2018-03-29 05:24:34 +00:00
Zuul
1ade95cd4c Merge "Use load-edit directive in import key pair" 2018-03-29 05:03:07 +00:00
Zuul
e8cae58fe6 Merge "Update supported browsers list" 2018-03-29 02:10:15 +00:00
Zuul
9135dde8df Merge "operation_log: add QUERY_STRING to request_url" 2018-03-28 20:15:04 +00:00
Ivan Kolodyazhny
8220df7d6f Update supported browsers list
We don't need to keep a list of older releases since it can be found in
git history and stable/* branches.

Change-Id: I341391e1808e41db84444ba41de244b15884adb7
2018-03-28 22:33:14 +03:00
Zuul
b53163c297 Merge "Improve mocking in REST API tests (test_neutron)" 2018-03-28 19:14:29 +00:00
Zuul
1dba807824 Merge "Switch Neutron/Network API tests to mock" 2018-03-28 19:11:45 +00:00
Zuul
c0601c534c Merge "Improve mocking in REST API tests (test_nova)" 2018-03-28 18:54:16 +00:00
Akihiro Motoki
68167ca3b5 Improve mocking in REST API tests (test_neutron)
The current REST API tests have a lot of rooms to be improved like:
- mocking the whole module of the API wrapper
- Unnecessary usage of test.mock_factory()
- Unnecesary setUp()
- Test data should not be accessed directly via TestData

This commit improves test/unit/api/rest/test_neutron.py.

Change-Id: I8634b0f72fe089e0da4cda8a0ba5af56ffb856c6
Partial-Bug: #1752917
2018-03-28 18:39:52 +00:00
Akihiro Motoki
c5cd0b2048 Switch Neutron/Network API tests to mock
This patch changes mox to mock for the following test modules:
* openstack_dashboard/test/unit/api/test_network.py
* openstack_dashboard/test/unit/api/test_neutron.py
* openstack_dashboard/test/unit/api/rest/test_network.py
* openstack_dashboard/test/unit/api/rest/test_neutron.py

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

Change-Id: Ib97fb1c06a883fb9fd5ce39b8fe2362a88135692
2018-03-28 18:39:14 +00:00
Zuul
415c1066ff Merge "Add asterisk to conditionally required fields" 2018-03-28 16:04:48 +00:00
Zuul
a0272cd035 Merge "Improve mocking in REST API tests (test_keystone)" 2018-03-28 16:04:44 +00:00
Zuul
3ab24ad841 Merge "Imported Translations from Zanata" 2018-03-28 15:50:08 +00:00
OpenStack Proposal Bot
b34dcc8239 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I0a4721c3f6d438476842622d73779127da9dfe02
2018-03-28 07:40:16 +00:00
Zuul
92a7fdb33f Merge "project: Split quota update into a separate workflow" 2018-03-28 07:14:47 +00:00
Zuul
e71cf45782 Merge "Tabbity quota default update workflow" 2018-03-28 07:10:44 +00:00
Akihiro Motoki
65f43d21bd Improve mocking in REST API tests (test_nova)
The current REST API tests have a lot of rooms to be improved like:
- mocking the whole module of the API wrapper
- Some expected status code was 200 wrongly because mock.Mokc()
  object was returned from mocked methods. 204 is the correct
  response status code.

Change-Id: Ib3d6af27e94fb5577e259078d0215b1ace8617e1
Partial-Bug: #1752917
2018-03-28 09:51:17 +09:00
Zuul
370f136c3f Merge "Switch project neworks.ports to mock" 2018-03-27 21:35:49 +00:00
Zuul
e3e0486b41 Merge "Updated from global requirements" 2018-03-27 20:22:36 +00:00
Akihiro Motoki
2ad9f81483 Tabbity quota default update workflow
Part of blueprint horizon-plugin-tab-for-info-and-quotas
Change-Id: Ieead15fe24cdc5cea94aea29d7fc0051ba33fb71
2018-03-28 05:00:13 +09:00
Zuul
f5802ce28b Merge "table: Show checkbox only when there is BatchAction" 2018-03-27 16:01:56 +00:00
Zuul
041cc86610 Merge "Load networks and security groups in parallel" 2018-03-27 15:48:51 +00:00
Zuul
3539090c4c Merge "Follow the new PTI for document build" 2018-03-27 09:53:33 +00:00
Zuul
d4c81676a0 Merge "Drop deprecated settings" 2018-03-26 13:12:06 +00:00
OpenStack Proposal Bot
86709f8c35 Updated from global requirements
Change-Id: I075e6e743b40c28f7e256250f594396c35659bba
2018-03-26 11:58:27 +00:00
Doug Hellmann
fdd3c8b462 add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

---

horizon specific change:
* Django minimum version is bumped to >=1.11 as horizon rocky
  dropped Django 1.8-1.10 support.
* django-babel needs to be bumped to 0.6.2 to support Django 2.0
  8762ff5dc0
* nose-exclude needs to be bumped to 0.5.0 to run horizon unit tests
  properly. According to my test, 0.4.0 also works but this is
  a testing dependency, so we don't need to care multiple versions much.
  Otherwise only one test is run for openstack_dashboard unit tests.

https://review.openstack.org/555402 allows us to bump lower requirements.

Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: I73c3e4531c57d015f6016ca00b056a6fd0d8fc1a
Depends-On: https://review.openstack.org/555034
Depends-On: https://review.openstack.org/555402
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Signed-off-by: Akihiro Motoki <amotoki@gmail.com>
2018-03-26 04:44:42 +09:00
Zuul
1cb5e0420c Merge "Delete choice of image source when file is the only option" 2018-03-24 18:53:08 +00:00
Akihiro Motoki
eac3eae35a Follow the new PTI for document build
The detail is described in the following links:
https://governance.openstack.org/tc/reference/project-testing-interface.html
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

doc8 command is dropped from docs and releasenotes tox envs.
We run doc8 in pep8 tox env, so this hurts nothing.

Change-Id: I24271b527258b1de4cf26ca7efd625954eb834de
2018-03-25 02:14:40 +09:00
Zuul
0e2bb42ef7 Merge "Improve mocking in REST API tests (test_swift)" 2018-03-23 12:52:53 +00:00
Zuul
a5560aee0c Merge "Switch test_quotas to mock" 2018-03-23 10:52:09 +00:00
Zuul
209d23af13 Merge "Drop trove/sahara settings from horizon repo" 2018-03-23 10:52:07 +00:00
Zuul
8dc2baff87 Merge "Convert admin.defaults tests into mock" 2018-03-23 10:22:34 +00:00
Akihiro Motoki
71993e3c98 Drop deprecated settings
- HORIZON_IMAGES_ALLOW_UPLOAD (deprecated in Newton)
- CUSTOM_THEME_PATH (deprecated in Mitaka)
- DEFAULT_THEME_PATH (deprecated in Mitaka)
- OPENSTACK_TOKEN_HASH_ENABLED (deprecated in Mitaka)
- TOKEN_DELETION_DISABLED
  (not documented but it was marked as deprecated in Ocata
   in django-openstack-auth commit 5810f9c6)

The related logics related to dropped deprecated settings
have been dropped too.

- custom_path and default_path of get_available_themes() were
  dropped as they are no longer needed in favor of
  the removal of CUSTOM_THEME_PATH and DEFAULT_THEME_PATH.
- Unused remove_project_cache(), is_token_deletion_disabled()
  and delete_token() have been dropped.

Change-Id: Ic9406623cc092884c4136f78fb967b129bfda487
2018-03-23 18:37:02 +09:00
OpenStack Proposal Bot
058c30688a Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ife66aad0949b6d5310535a791f9be54fab62c824
2018-03-23 07:31:49 +00:00
Dongjx
63ab3606c0 Delete choice of image source when file is the only option
Change-Id: I4b4960722a48b7fb7758062539d7dd6a70f933df
Closes-Bug: #1743922
2018-03-22 18:07:05 +08:00
OpenStack Proposal Bot
352f536dfc Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ibc6e8f7e18080afabd23472383fa3d63dc1bda00
2018-03-22 07:30:20 +00:00
Vladislav Kuzmin
cc368d4d8e Convert admin.defaults tests into mock
Change-Id: Id9646bec1cf7511d7e48b4ecf14ccd8ebbb1d202
Partially-Implements: blueprint mock-framework-in-unit-tests
2018-03-22 11:26:28 +04:00
Shu Muto
482e7257b4 Avoid popup blocker after key-pair creation
Chrome version 64 blocks new window popup for
downloading created private key.

This problem occurs in Angularized panels that
uses text-download service.

This patch fixes not to open new window.

Change-Id: Ib37eb492bc5704ca1487830b6181458ee40b5d1d
Closes-Bug: #1757919
2018-03-22 11:20:34 +09:00
Akihiro Motoki
3e409d8b98 Improve mocking in REST API tests (test_swift)
The current REST API tests have a lot of rooms to be improved like:
- mocking the whole module of the API wrapper
- Unnecesary setUp()
- Test data should not be accessed directly via TestData

This commit improves test/unit/api/rest/test_swift.py.

Change-Id: I3532abee7febafea0f4cdc6ebfcc62f3cecd52eb
Partial-Bug: #1752917
2018-03-22 11:02:44 +09:00
Akihiro Motoki
f8196331ea Add asterisk to conditionally required fields
https://review.openstack.org/#/c/552247/ introduced a way to
add asterisk mark to conditionally required fields.

This commit covers several known forms:
- Create Network / Create Subnet
- Create Port
- Attach Interface to Instance
- Add Security Group Rule

Change-Id: I809c23fd64dc2f379c3fdb585741c6b266ec5b1b
Closes-Bug: #1420370
Closes-Bug: #1292165
Closes-Bug: #1755131
2018-03-22 08:49:58 +09:00
Akihiro Motoki
0659f9a98a Drop trove/sahara settings from horizon repo
Settings related to horizon plugins should be documented in individual
project repos. We support local_settings.d mechanism, so horizon plugins
can provide their own settings examples.

One example is SAHARA_AUTO_IP_ALLOCATION_ENABLED. This option has been
deprecated and replaced by another setting. It is hard for horizon team
to track this kind of changes.

This is just a change in the example local_settings.py and there is no
feature change, so there is no deprecation required.

Change-Id: Ib28110246567808f9e9c0f99c6032f7bdc931643
2018-03-22 07:09:51 +09:00
Akihiro Motoki
dd7e281844 Improve mocking in REST API tests (test_keystone)
The current REST API tests have a lot of rooms to be improved like:
- mocking the whole module of the API wrapper

Change-Id: I799b0bce11bb06f6da64b8cc76f490f644fd457f
Partial-Bug: #1752917
2018-03-22 06:24:44 +09:00