Now only python 3 is supported, which means unittest.mock
can be used instead of the external mock module.
This change can be done thanks to the Horizon
change I2de669d8e89b8daeb7ee5405ffab35af6307c40b
Switch to openstack-lower-constraints-jobs-horizon
which pulls in the last horizon. The lower-constraint
version of horizon should be bumped when a new
version (post-18.2.0) is released.
Finally, add pytest to the set of test requirements
to prevent an missing import error (even through
the sahara scenario tests still need to be ported
to pytest).
Change-Id: I2c61e9d88b2d05c9f0b68066d7bb15b43cdf083f
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Update local hacking checks for new flake8.
Remove hacking and friends from lower-constraints, it's not needed
there for co-installing.
Change-Id: I3d250ba82cc14f163f4295381b9b9c232486ac9f
- create a native Zuul v3 job, and move it to experimental
until it works;
- install libav-utils on dpkg systems and enable the capture
of the video;
- adapt to the changes in OverviewPage:
* go_to_system_flavorspage -> go_to_admin_compute_flavorspage
* go_to_compute_imagespage -> go_to_project_compute_imagespage
The job is failing right now, but apart the increased running time,
at least the tests are now executed.
Story: 2001686
Task: 8662
Change-Id: I311203779bd3e6c6660cfe1b84e89c7dc0825c98
Now that mox has been removed we can remove the create_stubs
helper function as well.
Change-Id: I1c7c8e234013c28e3bbd20ba18e8bfab313a8533
Signed-off-by: Chuck Short <chucks@redhat.com>
nose is not actively maintained now and Django default test runner
seems to have enough features.
* Horizon test setting no longer depends on nose and related stuffs.
This commit cleans up nose related dependencies.
The change was made in horizon Rocky-3,
so horizon 14.0.0.0b3 is required at least.
* Integraion tests is marked via django.test.tag mechanism which is
introduced in Django 1.10.
* Rename filename of test files to names starting with 'test_'
so that the django test runner can find tests expectedly.
* run_tests.sh is no longer called from tox.ini, so it can be dropped.
Note that the similar run_tests.sh in horizon was dropped long ago.
Change-Id: I1e5471078cc95031e8819f01100319a9ee2a3a73
The porting to mock of sahara-dashboard is complete.
This fulfills the community goal
"Remove Use of mox/mox3 for Testing" set for Rocky:
https://governance.openstack.org/tc/goals/rocky/mox_removal.html
Raise the requirement to the Rocky M2 release of Horizon,
which drops the usage of mox by default (it should be
explicitly enabled). Without a forced import from Horizon
the mox dependencies can be dropped here.
Bump also a dependency needed by this new version of Horizon.
Change-Id: Iaf272af9919f8a69562c0a469130bbf8628936cf
Horizon is going to switch to Django Test Runner [1].
To not break Sahara Dashboard we need to use Nose Test Runner
until we'll be ready to remove Nose from sahara-dashboard.
[1] https://review.openstack.org/#/c/544296/
Change-Id: Ic248f7cc716ea0cfe8a6398438efa0a39228db85
... or at least the first published tarball which will lead to Rocky.
On the other side this means forcing the usage of mox as long as
there are tests that depends on it (the switch was already flipped
in Horizon, so it needs to be enabled here).
This allows us to depend on newer Horizon features, including changes
to the test suite that are useful for the mox removal effort.
Change-Id: Ibf95b642f49aee9b3165f46e0422ff6bf56e9391
After change Icca91c53eabf18c3109b3931ed53f70eaaaa0e56
method "image_list_detailed" returns list of "Image"
instances which inherit from
openstack_dashboard.api.base.APIResourceWrapper.
For getting "image_type" attribute we need to use "get"
method now.
Closes-bug: #1624318
Change-Id: I363ddc1bc46a1daa855d1d41920bf8a4a4df2396
DataSource creation workflow has only one step.
According to commit I11d17535180cfa38b32463143f0e40cf7a119d9c we
have to change TabbedFormRegion by FormRegion, because previous form
locator is no longer present.
Change-Id: I64527df2aa188ee161f541f5c5c5c0a7598d08d0
this change contains implementation:
1. of updating plugin workflow;
2. page with details of plugin labels;
3. only enabled versions are displayed on general
page with plugins.
blueprint: plugin-management-api
Change-Id: Ia125ad8108cafd4e39dc1c2c53f3c62ff3ce3e78
co-authored-by: Michael Lelyakin <mlelyakin@mirantis.com>
added designate client;
added SelectDnsDomain step in Cluster Template creation form. This
step is available if we enable dns service. This step contains one
dropdown list of available dns servers.
Domain Name is not required field so if it's not selected then
a cluster will be launched without designate usage.
partial-bp: designate-integration
Change-Id: If3e994026d012b9b33d59c8477d6f2a892f61374
Remove old style URLs (again).
These are deprecated in 1.9 and removed in 1.10.
Change-Id: I851a9c61f64ec6d258d7c49401bb61cf5cc1fe3d
Partially-Implements: blueprint dj110
this change is just replacing plugins tab to a
separate tab group.
blueprint: plugin-management-api
Change-Id: I7d1a93fbacec0ad0d2551189d89033c92d7fb3d7
this include the following:
1. using horizon settings for running unit tests instead of
specific for sahara-dashboard;
2. using fedora image for integration tests;
3. job timeout is not enough to complete 2->3 nodes scaling
in devstack. using 1->2 scheme instead.
Change-Id: Ifbff37f61f32a7de26ed49dcf08e1a43dc597696
unit tests failed because of patch in Horizon:
https://review.openstack.org/#/c/144152
Change-Id: I6a5f88219543fee25d08b41f6bbc967e5a6fdfa8
closes-bug: 1595194
The reasons of failures are following:
1. The change [0] is introduced in horizon, which removes unneeded
tags in production envs. This caused most failures.
2. HDP is removed from sahara codebase.
3. Sometimes unicode string 'None' is passed to saharaclient as input_id
or output_id of job. This string was translated to NoneType.
[0] https://review.openstack.org/#/c/287793
Co-Authored-by: Michael Ionkin <mionkin@mirantis.com>
Change-Id: I9cb0641b2b61a78a40b0e2c6faf2609f974088d2
This testcase checks creating and launching many EDP job with all
possible types, such as Hive, Spark, Pig, etc
Change-Id: I503e525e48a98e0d14af145256d8e65c2c1582b4
Testcases check updating data sources, job binaries, passing extra
parameters to job templates on launching it.
Change-Id: Id443d6a716309df0add9235634c27c2e12876b8e
Recently, nav-tabs became nav-pills. That lead to them
showing-up in places we were previously hiding the
nav-tabs. This change hides all pill-tabs in places where
we'd rather not see them. It also refactors the hiding
a bit. Eventually, we will need a common library for
shared scripts between jobs and custers, but this
addresses the bug at hand for now. Also updating the
datasourcepage so that it no longer expects a tabbed
form (since the only "tab" that was there is now hidden).
Change-Id: I31dd0c402580d5414769bddecdc077b01eac4379
Closes-Bug: #1566396
Testcase checks updating of existing node group template in Horizon
dashboard.
Change-Id: I68fe1312f35935ba1b5fb80bdb8958c872a3b242
Depends-On: I08e5f698695718dcb7125f12e1d80753b0eca8d3
Testcase check cluster creation with Fake Plugin in Horizon dashboard and
deleting it after creation.
Change-Id: If36410d4e37ccd7c526d6ead8c33c8ef326faf09
following things are done in change:
* action to verify cluster;
* view to display health check in cluster details;
* new column for the health overview in clusters list.
Implements blueprint: cluster-verification
Depends-On: I598753cbb33d7781b646e726ad8d614e924e4876
Change-Id: I6c47d564400872ec4f38bf9d5824f93f4599181c
The imports order should follow the simple rule of
groups. There are usually 3 groups in most cases.
However this repository is a plugin so imports from
the base system (Horizon) should be moved to a
separate group.
So imports should go into the following groups:
1) Imports from Python standard modules
2) Imports from dependencies previded in requirements
3) Imports from Horizon
4) Imports within current project
Change-Id: Ie028a4aa6897a3400872a45b94b073b2819ee4ac
The name "Data image registry" is not very good.
Given that the image registry appears under the
data processing panels, it should be obvious that
it applies to data processing. Therefore, I am removing
the "data" part of the name. Also updating the
integration test that references this page and
cleaning up unused code from views.py.
Change-Id: Ie60c8e3154ae9f640f154ca26d42c0c0a569b9a5
Partial-Implements: bp reduce-number-of-panels
This patch reorganizes the integration tests so that the
pages are in-line with the new UI layout.
Change-Id: Icf3fb352187698f544dd7234d66df1f9c5c65a16
Partial-Implements: bp reduce-number-of-panels
Test was failing due to Create Binary Job form fields being filled in
a wrong way.
Change-Id: I48d003fc4ed1bbb6044acd60e033ec864ad470b3
Depends-On: I5b84fd3b769ae559cea484319b6b8956b80f99ae
Sahara started support of is_public and
is_protected fields, so this change brings that
to sahara ui.
Implements blueprint: ui-acl-support
Change-Id: I67acfed8973afe2efd4ef046b1bf936cb9b2c3fa
The datetime format that is returned by API does not have
microseconds. Removing it from test data.
Date and time should be separated with a "T".
This change will allow further improvements like adding
duration columns.
Change-Id: I20c28059c3f1aa110c57f8613a762ced0c8f8db1
Adapt to the cumulative change in Horizon i9n tests being merged in
https://goo.gl/HLQCe7
Also there was https://review.openstack.org/#/c/269123 that dropped
all pre-Django18 code from Horizon, that was another cause of failed
tests (missing horizon.utils.urlresolvers). Fixed that.
Change-Id: I12b85202e79089fa5b1e7464dd0d529c81cde07b