summaryrefslogtreecommitdiff
path: root/saharaclient/tests/unit/osc
Commit message (Collapse)AuthorAgeFilesLines
* Preparing OSC for APIv2Telles Nobrega2019-01-1019-1/+2933
| | | | | | | On the way to have APIv2 as stable we need to have it available on the OSC for sahara. Change-Id: I84f4bc56c641caad7c04190c7a344a6773440eef
* Merge "Support of S3 data sources in OSC"rocky-em2.0.0Zuul2018-07-261-2/+20
|\
| * Support of S3 data sources in OSCJeremy Freudberg2018-07-251-2/+20
| | | | | | | | Change-Id: I3f96e9dd8af1ddee5d1d7ea36f5cdae2d91bf6b2
* | Adding boot from volume to oscTelles Nobrega2018-07-195-1/+430
| | | | | | | | | | | | | | | | Adding boot from volume to python-sahahraclient CLI. Change-Id: I302aaeb7a0f831730301162f8c51e0eebcbd66f8 Story: #2001820 Task: #12559
* | Rework saharaclient authenticationJeremy Freudberg2018-07-101-4/+0
|/ | | | | | | | | | Just accept session objects. This will require a new major release of python-saharaclient (2.0). Change-Id: I9021a7ebeeecf94d48170e332b26ac6e80187501 Story: 1747838 Task: 6896
* Support of S3 binaries in OSCJeremy Freudberg2018-01-021-0/+18
| | | | | | bp sahara-support-s3 Change-Id: I14fb4286bffb1361706b6e8ae62ac7dbc20ee311
* Adding volume_mount_prefix parameterTelles Nobrega2017-08-141-3/+4
| | | | | | | Adding this parameter to create and update on the CLI Change-Id: I792b4e7f0182e042086555f612d188d6dea03cf1 Closes-bug: #1630563
* Clone sahara hacking checks to saharaclientNgo Quoc Cuong2017-07-189-9/+2
| | | | | | | | | | | These such rules are: - [S366, S367] Organize your imports according to the ``Import order`` - [S368] Must use a dict comprehension instead of a dict constructor with a sequence of key-value pairs. - [S373] Don't translate logs - [S375] Use jsonutils from oslo_serialization instead of json Change-Id: I909da6772f733e8282a8f304b829aab9b25d6203
* Fix a bug in jobs.pyjiasen.lin2017-03-221-0/+43
| | | | | | | | | | | | | When I used command "dataprocessing job execute", the option --input and --output must be defined otherwise I can't excute job. Because it alwalys return error_code 404. Acutually, we can use option --args to appoint input_url and output_url.So I think --input and --output should be optional. add: test_job_execute_with_input_output_option() Closes-Bug: #1670227 Change-Id: Ia2d3a19658ad78f7c07f444131dddf836bb8018e
* Raise exception in command "plugin configs get"Shu Yingya2016-10-021-1/+1
| | | | | | | | | | | In this patch, there are three changes. 1. Raise Exception if the config file already exists. 2. Avoid overriding the file of different version of a plugin. 3. stdout message should end with '\n' to start a newline. 4. execute remote API call only when file not exists. Change-Id: I0c9eb2cb7fd1cafe4bea05c73811d6dea6b3e9a8 Closes-Bug: 1625990
* Designate integrationMichael Ionkin2016-08-021-14/+21
| | | | | | | | | | | | | added 'domain_name' parameter to Cluster Template in API and CLI client. NOTE: in spec we proposed to use two domains: one for internal resolution and another for external. But we decided to use only one domain for both sides so an instance will have one hostname in the domain and two appropriate A records because it's more convenient. partial-bp: designate-integration Change-Id: Ic636d1d9d27f9f96fbfd37b7d29d8f0add44a24f
* plugin's api update supportVitaly Gridnev2016-07-121-5/+47
| | | | | | | | this change adding support of plugin's api patch method. blueprint: plugin-management-api Change-Id: I94dd1d4faf2ccbc3901ea5d5c7d69e7c5a4f8bdf
* Use osc-lib instead of openstackclientTang Chen2016-06-238-8/+8
| | | | | | | | | | | osc-lib is a package of common support modules for writing OSC plugins. All common functions, classes such as exceptions, utils, logs and so on have been moved from openstackclient to osc-lib. So use osc-lib instead of openstackclient in sahara client. Change-Id: I9543988830eeeac0d09facebabdeed9a968ba3f0
* Change plugin version 'version' parameter to 'plugin-version'Denis Egorenko2016-06-015-72/+80
| | | | | | | | | | Currently we have parameter 'version' for specifying plugin version for creating node group templates and also for listing available plugins. The problem is that this parameter is global parameter for getting version of client. So, this patch fixes this confusion. Change-Id: I89a670188c20e3b20b98b596a3efb8d5997c3214 Closes-bug: #1565775
* Merge "Fixing cluster creation with neutron network via CLI"0.13.0Jenkins2016-03-011-2/+2
|\
| * Fixing cluster creation with neutron network via CLIAndrey Pavlov2016-02-291-2/+2
| | | | | | | | | | | | | | | | | | The OpenStack SDK is now used for the network client in openstackclient. It brakes the "cluster create" CLI command if neutron network is specified. Change-Id: Id099c11973a6d221cfd10aa654b3d44257127ce0 Closes-bug: #1551224
* | Fixing updates via CLIAndrey Pavlov2016-02-295-43/+13
|/ | | | | | | | Arguments that not provided via update methods of CLI will not be unset Change-Id: I1e36f6cfda21b526eef81f5fc8348c41319ded58 Closes-bug: #1551263
* Adding "health verification --show" CLI callAndrey Pavlov2016-02-261-1/+83
| | | | | | | | | | | | | | * Health verification for cluster can be shown with "dataprocessing cluster verification CLUSTER --show" command * changing output for "dataprocessing cluster verification CLUSTER --start" command * adding unit tests for cluster verifications Partially-implements bp: cluster-verification Change-Id: If095845f04e8df38d5cc083d2b5e17ac630515cb
* Fixing cluster scaling via CLIAndrey Pavlov2015-12-221-9/+20
| | | | | | | | | If a cluster had a node group with a name different than a node group template name and you wanted to resize it via CLI, cluster wasn't able to be scaled. Change-Id: I554d9c07741dcb2077f9ecd0f6b5dbce65c6a464 Closes-bug: #1523455
* Merge "Adding ability to get plugin processes via CLI"Jenkins2015-12-011-6/+36
|\
| * Adding ability to get plugin processes via CLIAndrey Pavlov2015-11-251-6/+36
| | | | | | | | | | | | | | | | | | "plugin show" CLI command was extended. Now if version of the plugin is specified, additional information(required image tags, node processes) will be shown. Also field names were capitalized. Partially implements: blueprint cli-as-openstackclient-plugin Change-Id: Ia25dd560627a39362e011528b1122d4723ce012e
* | Merge "Adding ability to provide name or ID of the flavor in CLI"Jenkins2015-11-252-32/+41
|\ \ | |/ |/|
| * Adding ability to provide name or ID of the flavor in CLIAndrey Pavlov2015-11-162-32/+41
| | | | | | | | | | | | | | | | | | Node group template now can be created/updated with --flavor argument that can contain both name or ID of the flavor Partially implements: blueprint cli-as-openstackclient-plugin Change-Id: I9d40e820fff70c51d34e82bd0a4c7c0c5e5aebde
* | Fixing data source update in CLIAndrey Pavlov2015-11-171-7/+6
|/ | | | | | | | | Data Source type and credentials couldn't be updated via CLI Closes-bug: #1515946 Change-Id: I410a26c8b9f714cc844a1f84fc2a498c62cf04e9
* Merge "Images CLI improvement"Jenkins2015-11-121-4/+22
|\
| * Images CLI improvementAndrey Pavlov2015-11-091-4/+22
| | | | | | | | | | | | | | | | | | | | * fixing representation after image is registered * adding ability to register images by name * adding additional ut Partially implements: blueprint cli-as-openstackclient-plugin Change-Id: Idda6aefa6406b49c8aa6c4de67d1de73878c5661
* | Allowing for shares to be edited on an existing clusterChad Roberts2015-11-061-3/+3
|/ | | | | | | | | | Now allowing the shares parameter to be passed on a cluster update call. It is optional and defaults to None. Change-Id: I1a16bff7bd3d20a4253a66bedc86d8c1c72328a6 Partial-Implements: bp sahara-add-shares-to-clusters Depends-On: I33971eb495c5a318ba17a4b3f98534b9e8776deb
* Merge "Fixing updates for CLI"Jenkins2015-11-045-5/+123
|\
| * Fixing updates for CLIAndrey Pavlov2015-11-035-5/+123
| | | | | | | | | | | | | | | | | | Fixing updates for some CLI methods, adding additional unit tests and small fixes Partially implements: blueprint cli-as-openstackclient-plugin Change-Id: I9e800ca4893fe4311517ca47f95d84620a73cee4
* | Adding get_resource_id method to CLI utilsAndrey Pavlov2015-10-301-0/+17
|/ | | | | | | | | | | This method provides a small optimisation in case we don't need anything else but resource id, allowing not to request a resource when we already have an id. Partially implements: blueprint cli-as-openstackclient-plugin Change-Id: I44baf18e5b1a1dc61948674ae4dbe1bb4cbed08d
* Adding Job Binaries support to CLIAndrey Pavlov2015-10-291-0/+324
| | | | | | | | | | | | | | | | Adding Job Binaries commands to Sahara OpenstackClient plugin: $ dataprocessing job binary create $ dataprocessing job binary list $ dataprocessing job binary show $ dataprocessing job binary update $ dataprocessing job binary delete $ dataprocessing job binary download Partially implements: blueprint cli-as-openstackclient-plugin Change-Id: Ia452b22ac27677a911b5b2f38a0250d4962be447
* Adding Jobs support to CLIAndrey Pavlov2015-10-271-0/+323
| | | | | | | | | | | | | | | Adding Jobs commands to Sahara OpenstackClient plugin: $ dataprocessing job execute $ dataprocessing job list $ dataprocessing job show $ dataprocessing job update $ dataprocessing job delete Partially implements: blueprint cli-as-openstackclient-plugin Change-Id: I00cdd80740a0052d4e562276f8225378c7e8de55
* Merge "Changing public/protected options handling"Jenkins2015-10-211-1/+14
|\
| * Changing public/protected options handlingAndrey Pavlov2015-10-191-1/+14
| | | | | | | | | | | | Partially implements: blueprint cli-as-openstackclient-plugin Change-Id: I7f0dbec47f8c670c942a5244be96dde215a59f35
* | Adding Job Types support to CLIAndrey Pavlov2015-10-201-0/+145
| | | | | | | | | | | | | | | | | | | | | | | | Adding Job Types commands to Sahara OpenstackClient plugin: $ dataprocessing job type list $ dataprocessing job type configs get Partially implements: blueprint cli-as-openstackclient-plugin Change-Id: I259b006dc47da92952cdc2289ce0af8c200b39ef
* | Adding Job Templates support to CLIAndrey Pavlov2015-10-201-0/+270
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding Job Templates commands to Sahara OpenstackClient plugin: $ dataprocessing job template create $ dataprocessing job template list $ dataprocessing job template show $ dataprocessing job template update $ dataprocessing job template delete Partially implements: blueprint cli-as-openstackclient-plugin Change-Id: I8c93b26c6eca37dbb144d7184c4d07dbe15bd9ab
* | Adding Clusters support to CLIAndrey Pavlov2015-10-192-0/+442
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding Clusters commands to Sahara OpenstackClient plugin: $ dataprocessing cluster create $ dataprocessing cluster list $ dataprocessing cluster show $ dataprocessing cluster update $ dataprocessing cluster scale $ dataprocessing cluster delete Partially implements: blueprint cli-as-openstackclient-plugin Change-Id: Icbf1778f621f18a6e7deca7f093a31fa3ee1c5b7
* | Adding Cluster Templates support to CLIAndrey Pavlov2015-10-191-0/+304
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding Cluster Templates commands to Sahara OpenstackClient plugin: $ dataprocessing cluster template create $ dataprocessing cluster template list $ dataprocessing cluster template show $ dataprocessing cluster template update $ dataprocessing cluster template delete Partially implements: blueprint cli-as-openstackclient-plugin Change-Id: Ib17d5b46efbb5fe15f24d85065ef2a65ad6548e4
* | Adding Node Group Templates support to CLIAndrey Pavlov2015-10-192-0/+376
|/ | | | | | | | | | | | | | | Adding Node Group Templates commands to Sahara OpenstackClient plugin: $ dataprocessing node group template create $ dataprocessing node group template list $ dataprocessing node group template show $ dataprocessing node group template update $ dataprocessing node group template delete Partially implements: blueprint cli-as-openstackclient-plugin Change-Id: I1afaaf62da69d1a93a3bba744c30c42bbacaa7bd
* Adding Images support to CLIAndrey Pavlov2015-10-051-0/+349
| | | | | | | | | | | | | | | Adding Images commands to Sahara OpenstackClient plugin: $ dataprocessing image list $ dataprocessing image show $ dataprocessing image register $ dataprocessing image unregister $ dataprocessing image tags set $ dataprocessing image tags add $ dataprocessing image tags remove Partially implements: blueprint cli-as-openstackclient-plugin Change-Id: Ib84fbb76b6cbc3a321efeb54c88bc58c76fb063e
* Adding update and minor fixes to Data Sources CLIAndrey Pavlov2015-09-282-52/+128
| | | | | | | | | | | | | | Changes: * adding Data Sources update command to OpenstackClient CLI: $ dataprocessing data sources update * adding ability to delete multiple data sources with one call * adding prepare_column_headers method to osc utils * adding public and protected support to datasources * changing utils.get_resource method Partially implements: blueprint cli-as-openstackclient-plugin Change-Id: If3b1811eea5d1d9770c286dc9487d278f3616c48
* Adding sahara_url and endpoint_type to OpenstackClient CLIAndrey Pavlov2015-09-241-1/+5
| | | | | | | Adding ability to specify Data processing API url and endpoint type that will be used by OpenstackClient CLI Change-Id: I72d9b3f051b8d7b144e2f762be45f11080246222 Partially implements: blueprint cli-as-openstackclient-plugin
* Adding Data Sources support to CLIAndrey Pavlov2015-08-201-0/+201
| | | | | | | | | | | | | | Adding Data Sources commands to Sahara OpenstackClient plugin: $ dataprocessing data sources list $ dataprocessing data sources show $ dataprocessing data sources create $ dataprocessing data sources delete Partially implements: blueprint cli-as-openstackclient-plugin Change-Id: I159c3067fd74463d7cca7fa781432b5438455b81
* Add initial commit for integration with OpenstackclientAndrey Pavlov2015-08-186-0/+300
This patch adds support of Sahara CLI to Openstackclient by setting entry points and implementing interface functions. Also it adds Plugins functionality and unit tests to cover it. Co-Authored-By: Sergey Reshetnyak <sreshetniak@mirantis.com> Partially implements: blueprint cli-as-openstackclient-plugin Change-Id: If5c33f8446d64385a71e02a0ae7bf23d7b40f862