Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: Ie3c9acbcfd21a7ef02c48dace486e80c502f0833
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
We're going to switch to default Django test runner by default.
This patch renames test files to make tests descoverable by
Nose and Django test runners without addidional configuration.
This patch alse removes executable flag from test/helpers.py.
Related blueprint: improve-horizon-testing
Change-Id: I495a2ec583ca9ae1df442059ffa9e4abc94d3528
If 'noqa' is specified all hacking checks are disabled.
It is better to ignore specific rules explicitly rather than
ignoring all. The recent flake8 supports this [1].
[1] http://flake8.pycqa.org/en/stable/user/ignoring-errors.html
Change-Id: Ieeb62e8d66e626ab2e6cd506ce3a9854c69d5643
To enable py35 tests, refresh test environments.
Also, update docs, remove run_tests.sh that is no longer used.
Change-Id: I9bcf4acdfd4a9811ab2f0fc3bd02898a46fbd112
In some part in the code we import objects. In the Openstack style
guidelines they recommend to import only modules.
http://docs.openstack.org/developer/hacking/#imports
Change-Id: I77494f0ad9109a62ba46280eab9ab79b7068fa84
This patch changes "bay" and "baymodel" of magnumclient to
"cluster" and "cluster_template", as last change for renaming
bay to cluster.
Change-Id: I77b6dc02738a1c455274bdb34bddcc91e21a30cb
Implements: blueprint rename-bay-to-cluster
Fixes a bunch of missing __init__.py files to make the docs job pass
without warnings, also cleans up tox (to move away from run_tests)
Change-Id: If305c701b4d601e66f1f9987d2dd70d6634ea624
Following updates of magnumclient, this patch adds
some properties to cluster template creation and views.
To spec section:
- docker_storage_driver: 'devicemapper' or 'overlay', default='devicemapper'
To network section:
- fixed_subnet: string
- floating_ip_enabled: boolean, default=True
- master_lb_enabled: boolean, default=False
Change-Id: Ibeb9933e68f533b0aea3b6951a3c293dc85343e4
Implements: blueprint cluster-template-options
Depends-On: I971ef74f0cc79346a76c1faba55777b0a44465da
"bay" and "baymodel" is not common term.
This patch renames "bay" to "cluster", and "baymodel" to
"cluster template" for 'Soft StringFreeze'[1] in Newton
Release Schedule[2].
[1] Soft StringFreeze: Aug 29 - Sep 02
[2] https://releases.openstack.org/newton/schedule.html
For translation work, this patch should focus to changing
strings to be translated and should be merged soon.
So, until "cluster" and "cluster template" is implemented
into Magnum API, Magnum-UI uses bay and baymodel of magnumclient.
Change-Id: I0db5472c4f19638cc57116101b552ad21fe34651
Implements: blueprint rename-bay-to-cluster
Magnum renames its service_type [1]. According to that,
this patch renames service name, Angular module name,
related URLs and related strings.
[1] https://bugs.launchpad.net/magnum/+bug/1584251
Change-Id: If730ff75826b7f6d50b308b78f8e881da6696966
Implements: blueprint rename-service
According to decisions that Magnum becomes COE Management Service,
Magnum-UI should remove Container panel and actions that is for
Docker Swarm container manipulations.
This patch removes following items.
- Container views (table and detail)
- Container actions (create and delete)
- Create Container action from bay table view and bay detail view
Change-Id: Ia18e9fa57e0460b9b1a8b473a005d31cb4acc5ca
Implements: blueprint remove-container-panel
This patch aligns the workflow markup with Horizon so that it can
correctly inherit styles, works with the theme swap patch, and performs
better with accessibility tools.
Also noted that "BayModel" and "Bay Model" were used all over. We
should settle on the correct term, "Baymodel".
Closes-Bug: 1554527
Change-Id: I2cadcfbb338903c379b40ebc4a39d844065fdb12
This patch adds create button to containers table action,
and container create form as workflow dialog.
Implements: blueprint container-create
Change-Id: I7e47e80109ed5b25b62f5fb774ec3a7610c8caef
This patch adds basic API calls for Containers, as well as the testing
infrastructure necessary to test these API calls.
Also adds some basic testing for Bays and Bay Models.
Change-Id: I7cb5dfbd32695c95a414b8d41aa0aa178fe2472e
Implements: blueprint container-api
Add the basic structure for the magnum-ui repository to serve as a
starting point for contributions. The structure is likely to change
as development progresses.
Change-Id: I5458741e2dd4c3409992315efaa60b33824b4ec8
Implements: blueprint repo-skeleton