10611 Commits

Author SHA1 Message Date
Jenkins
2eb320bd31 Merge "Fixing updating user with no default project" into stable/mitaka 2016-03-31 16:37:12 +00:00
Timur Sufiev
e63b5d86ac Make i9n tests correctly recognize the deletion of a last row in a table
First, .is_displayed() method inside RowRegion needs to be invoked
correctly. Second, we need to distinguish an .empty placeholder row
from the last deleted row which contents are replaced with .empty row
contents from inside. Otherwise these 2 rows are considered the same
by tests. This is done by checking first for empty_table_selector.

Change-Id: I1abeb9f5ffc94213011e24eda99bb8a1ca8bfaeb
Closes-Bug: #1564405
2016-03-31 17:46:58 +03:00
Itxaka
9697a9f580 bump eslint version to 1.10.3
bumps the eslint version to 1.10.3 which fixes a lot of
issues, especially rules not working as expected
or being ignored and brings the js code up to date to
comply with those rules.

Change-Id: I1234e7991f98d4ceb0c5333dc036c6a30206ff64
2016-03-31 14:06:45 +00:00
Itxaka
0c118e4339 Remove PYTHONHASHSEED=0 from tox
Remove PYTHONHASHSEED=0 so the tests run
with a random seed.

Change-Id: I681d2b37453642b4823e8341a03d077ebc9cb9a7
Closes-Bug: #1348818
2016-03-31 14:06:26 +00:00
Itxaka
ff30c682fb Use InAnyOrder for role creation mocks
The user/roles can be created in any order due to
python random seed ordering dictionaries, so the
mocks should be in random order

Change-Id: I23a9380fb65ac634831beb496af388381d0230d4
Partial-Bug: #1348818
2016-03-31 14:06:21 +00:00
Itxaka
d2692ef801 NG launch instance: Clear fileInput value on text change
The onchange event occurs when a control loses the input
focus and its value has been modified since gaining focus.
This attribute applies to the following elements:
INPUT, SELECT, and TEXTAREA.
http://www.w3.org/TR/html4/interact/scripts.html#adef-onchange

This affected uploading a script and modifying it, as it would
not allow to reupload it again.
This patch cleans the fileInput.val() on textInput change so
a user can upload a script, modify it, and reupload the same
script again if he wants to start from a clean scratch again

Change-Id: Ie2d29de4ebcdea07f7e3e2ce6c7094c1d2fe5e10
Closes-Bug: #1522067
2016-03-31 14:05:08 +00:00
Itxaka
d7e71487c3 Set mandatory fields
icmp_code and icmp_type fields set to required.
Cleans both fields on rules that do not require them
so validation for other rules still work.

Closes-Bug: 1411566

Change-Id: Id88eaaf5f636854d19ead4e22df8adc625d21a4b
Signed-off-by: Itxaka <itxakaserrano@gmail.com>
2016-03-31 14:04:28 +00:00
AlexandraAllakhverdieva
31e7091365 Tests for images filtering are added
test_images.py reworked according to approach from
https://review.openstack.org/#/c/273467/

Implements blueprint: horizon-integration-tests-coverage
Change-Id: I4e35ee864167a45dbe760505ca2be1bd68ddf63a
2016-03-31 08:40:41 -04:00
TatyanaGladysheva
bf32b9eb91 Added test for check instances pagination functionality
-added test for instance creation/deletion functionality under regular user
-updated test for instance creation/deletion functionality under admin
-added tests for pagination instances under regular user and under admin
-added test for pagination and filtration instances under regular user and
under admin

Changes in TableRegion class:
1) _search_field_locator has been modified (now it works with both classes:
"table_search" and "table_search client")
2) _search_button_locator has been modified
3) filter() method has been updated
4) _search_option_locator and set_filter_value() method have been added

Implements blueprint: horizon-integration-tests-coverage
Change-Id: I6be5511e22644f85a53a781f417c5fde7fbf0275
2016-03-31 12:34:42 +00:00
Jenkins
e1f07e2794 Merge "Make no response notification(msg) level to INFO" 2016-03-31 12:25:12 +00:00
OpenStack Proposal Bot
3f4eeaa6c0 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ia0b04ca1b44d72796ff2b60e47a9664e5473dc44
2016-03-31 06:51:12 +00:00
Jenkins
8fcfa8050c Merge "Removes some redundant words" 2016-03-31 03:04:35 +00:00
Nguyen Hung Phuong
8ea75adf13 Fix typos in Horizon files
Change-Id: If2c4ebfa474270761e6af59e79ae24521c704700
2016-03-31 08:50:41 +07:00
David Lyle
10e6bf57c3 Fixing updating user with no default project
The selector for setting the default project passes on an empty string
if the value is not changed. This is causing an error from keystone as
an empty string is not a valid project ID.

To fix, a couple of things have been done:

First, as user_update is a PATCH, we no longer pass on the default
project as a parameter in the update when using keystone v3
and the value did not change when editing the user.

Second, there is currently no way to unset the default project
using keystoneclient. An entry in the default project select
"select a project" has been removed when the default project is
already set. The entry was selectable and resulted in the
problematic empty string. The current default project is already
selected at load time. The ability to select a different default
project is maintained.

Additionally, keystone v2.0 functionality is not effected, as the
default project id is required in v2.0.

A test was added to cover the case of editing the default project.

Closes-Bug: #1561612
Change-Id: I3c84ee5c7af846b5a58f2dd0342a537d312323cf
(cherry picked from commit 32510d8211a43d83ebac6478fce17a8856cf9a0c)
2016-03-30 18:22:34 +00:00
Jenkins
56f5ccf63a Merge "Change the super argument to use the current class" 2016-03-30 15:17:15 +00:00
Kenji Ishii
9399680106 Fix the issue which redirect to Not Found page
If a session is timeout and then a user request ajax request,
Horizon redirect to Not found page because the url is incorrect.
This patch fix it in the correct url.

Change-Id: I25b9e07b4f97594d05b0cdae931af9f142a18168
Closes-bug: #1558917
2016-03-30 13:10:43 +00:00
Jenkins
2b1fe19805 Merge "Imported Translations from Zanata" into stable/mitaka 2016-03-30 09:39:41 +00:00
Jenkins
e27513d11c Merge "Duplicate help message in metadata tab" 2016-03-30 09:08:48 +00:00
OpenStack Proposal Bot
dd4d1fb79d Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Icd8f62341a7144425149034e338956212bdab408
2016-03-30 06:53:15 +00:00
OpenStack Proposal Bot
04c43e70ca Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I72949c67b10d9449ccde91fe0f0e1360dd69c64e
2016-03-30 06:51:20 +00:00
Jenkins
49b51f9d3e Merge "Fix opening multiple Launch Instance during jQuery table polling" 2016-03-29 20:59:16 +00:00
Jenkins
baa0535f0b Merge "Fixing updating user with no default project" 2016-03-29 20:57:40 +00:00
Marcellin Fom Tchassem
b54965d2b6 Duplicate help message in metadata tab
When launching an instance or updating the metadata of an image,
there is a duplicate help text on the top and the bottom of the
metadata tab.
This patch will change the text on the bottom by a meaningful
message to avoid the repetition.

Change-Id: Idc41db67edaa5bb2921daf958d1e7bf8a07aa648
Closes-Bug: #1558002
Closes-Bug: #1563137
2016-03-29 19:10:29 +00:00
Timur Sufiev
19b6a657ef Fix opening multiple Launch Instance during jQuery table polling
Achieve this by limiting widget area to be recompiled to table/tab.

Change-Id: Icbbe2be833fccf17ba272ca920960393c9c3b667
Closes-Bug: #1561501
Closes-Bug: #1559105
2016-03-29 19:03:07 +00:00
Jenkins
fad8c407e2 Merge "Add trace to integration gate scripts" 2016-03-29 18:14:16 +00:00
Jenkins
a0173c7469 Merge "Port list check is missing for LBaaS Add Member" 2016-03-29 14:18:34 +00:00
Rob Cresswell
52128cca5e Separate subnets tests from networks tests file
This patch separates the Subnets tests from the Networks tests file due
to file bloat. Previously, this file contained tests for Networks,
Subnets, Ports and DHCP Agents.

Change-Id: Ia4018d29338d3e30f57ab86b9660b3e32c3bbe8f
Partial-Bug: 1514048
2016-03-29 13:59:13 +00:00
LIU Yulong
d3dd5e0ff0 Make no response notification(msg) level to INFO
Some API calls just sent but the results were uncertain,
Horizon should notify the user that your request is
just accepted, not successfully.
So this patch change some form message level to INFO,
and some message expression.

Change-Id: I241cd9cf3ad6b2bd747e3ea1c6040a140ba77b56
Closes-Bug: #1326301
Closes-Bug: #1286418
2016-03-29 21:12:31 +08:00
Jenkins
5621fc7e56 Merge ""Clear Selection" is unlocalzed" 2016-03-29 08:04:14 +00:00
OpenStack Proposal Bot
8ad7d1fb01 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ifd623cc19478ec044c5fbab9ced4a37dfa490553
2016-03-29 06:29:37 +00:00
Jenkins
aff758a96c Merge "Added test for image create from local file" 2016-03-28 22:39:19 +00:00
Jenkins
1285a27cf0 Merge "Horizon support for Heat template versions" 2016-03-28 22:02:17 +00:00
Jenkins
28d910c740 Merge "Follow up on detail title fix" 2016-03-28 21:01:24 +00:00
Justin Pomeroy
ff3232a318 Disable all actions while performing action
This updates the angular actions controller so that all actions
controlled by the same actions controller become disabled immediately
when performing any action. This prevents the user from being able to
click an action a second time while the action is being initialized.
This is mainly a problem in cases where there is some asynchronous
operation happening that needs to resolve before the action can be
performed. For example, the Update Metadata action needs two API
calls to resolve before the modal is displayed. If the requests take
a long time to resolve or the user is feeling anxious they can click
the action a second time, or even some other action before the Update
Metadata modal even gets displayed.

This is not a perfect fix since there are a number of other bad
things a user could do if an action takes a long time such as
clicking a link or breadcrumb to navigate to another page. Ideally
actions should result in immediate feedback to the user and any
asynchronous operations happen afterwards. For example, the metadata
modal gets displayed immediately with a loading indicator and then
the API requests are initiated.

Closes-Bug: #1560303
Change-Id: I7d7696a03de85434f692ab0313d3dbdcbb582f25
2016-03-28 14:39:48 -05:00
Yury Tregubov
243394ae61 Added test for image create from local file
Implements blueprint: horizon-integration-tests-coverage

Change-Id: Id1075a3812d4da020e78d2cd3266e7ab889cf2d5
2016-03-28 17:35:47 +04:00
Tomonobu Niwa
0a6d9d5392 "Clear Selection" is unlocalzed
Fix translated text area.
The text includs "Clear Selection" as well as "span" html tag.
However, the tag is not correctly converted into pot file
and not necessary to be translated in practice.

Change-Id: Ic89525e274f2b5a20ba366b9c662e2142176152a
Closes-Bug: #1561763
2016-03-28 21:26:26 +09:00
Rob Cresswell
15e83c6448 Update URLs to Django 1.8+ style
Django 1.8 altered and deprecated the existing pattern for defining
URLs. This will be removed in 1.10, meaning that many deprecation
warnings show up under Django 1.9. We should fix the URLs promptly to
avoid logspam, and to support Django 1.10 in Newton.

See
https://docs.djangoproject.com/en/1.9/releases/1.8/#django-conf-urls-patterns

Change-Id: I074d20850de59bfe678a3bc72e9f0f25bd743cbf
Partially-Implements: blueprint dj110
2016-03-28 11:03:08 +01:00
Nguyen Phuong An
d6491516d9 Using LOG.warning replace LOG.warn
This patch replaces LOG.warn by LOG.warning on
https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/keystone.py#L222
to avoid DeprecationWarning.

Change-Id: I8cd9ea6778b356c3b1f4e0c6e95feb096792c58d
Closes-Bug: #1562731
2016-03-28 16:28:51 +07:00
OpenStack Proposal Bot
2694d45ac6 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I96ce6f7270567613351fdde6a092e07ac74e91b9
2016-03-28 06:25:33 +00:00
Kenji Ishii
e05a8fe574 Hide project switch menu when project is disabled
Same as a project list on header area, hide project switch menu
in project list page when project is disabled.

Change-Id: I9e8d893cf6e89f4c5c32d5e3e687977ef3000631
Closes-bug: #1562488
2016-03-27 10:52:22 +00:00
Rob Cresswell
38df9861f3 Follow up on detail title fix
The fix for bug/1443526 added a load of data-toggle values which don't
do anything. We should remove them.

Change-Id: I995e3568022deece77aff9e01da127edc2345d4a
2016-03-25 15:56:18 +00:00
Matt Borland
09148f68d6 Cleaning up eslint warnings in the openstack-service-api directory
There are many eslint warnings in this directory.  This patch cleans
them up, about 100 warnings removed.

Change-Id: I639dccd7b511190552f05ae0e52234532412e54c
Partial-Bug: 1554824
2016-03-25 15:41:15 +00:00
Jenkins
2685a624ee Merge "Cleaning code to remove eslint warnings from Launch Instance" 2016-03-25 15:32:12 +00:00
Timur Sufiev
d51bcdcbda Fix opening multiple Launch Instance during jQuery table polling
Achieve this by limiting widget area to be recompiled to table/tab.

Change-Id: Icbbe2be833fccf17ba272ca920960393c9c3b667
Closes-Bug: #1561501
Closes-Bug: #1559105
2016-03-25 15:06:57 +03:00
Jenkins
b8bef3882f Merge "minor ng launch instance cleanup - remove unused css styles" 2016-03-25 09:50:16 +00:00
OpenStack Proposal Bot
2143bb60e9 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I1f6b5e3f88e75d5af0e8d818884a22d960d555d3
2016-03-25 06:25:30 +00:00
Anh Tran
efef226a84 Removes some redundant words
This patch removes some redundant words.

Change-Id: Iba1495a2ab0e350fdeafa06ac60f14a2d851042d
2016-03-25 11:29:48 +07:00
David Lyle
32510d8211 Fixing updating user with no default project
The selector for setting the default project passes on an empty string
if the value is not changed. This is causing an error from keystone as
an empty string is not a valid project ID.

To fix, a couple of things have been done:

First, as user_update is a PATCH, we no longer pass on the default
project as a parameter in the update when using keystone v3
and the value did not change when editing the user.

Second, there is currently no way to unset the default project
using keystoneclient. An entry in the default project select
"select a project" has been removed when the default project is
already set. The entry was selectable and resulted in the
problematic empty string. The current default project is already
selected at load time. The ability to select a different default
project is maintained.

Additionally, keystone v2.0 functionality is not effected, as the
default project id is required in v2.0.

A test was added to cover the case of editing the default project.

Closes-Bug: #1561612
Change-Id: I3c84ee5c7af846b5a58f2dd0342a537d312323cf
2016-03-24 20:46:28 -06:00
Jenkins
7baeb7c93d Merge "Fixes truncated string in details overview table." 2016-03-24 21:20:19 +00:00
Luis Daniel Castellanos
ac78a486d9 Image create "Copy Data" checkbox wrong label
"Copy Data" checkbox on Image create has the wrong label
How to reproduce:
  - Go to project -> Images
  - Click on "Create Image"

Expected result:
  - There is a "Copy Data" checkbox

Current result:
  - There is an "Image Location" checkbox with bad aligment

Change-Id: I7e6c7acb4ddcfc0a36c7e9f7651f269e375a5a14
Closes-Bug:#1560145
2016-03-24 20:26:24 +00:00