morpheus-cli 8.0.4.1 → 8.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +1 -1
  3. data/lib/morpheus/api/api_client.rb +8 -0
  4. data/lib/morpheus/api/backup_results_interface.rb +4 -0
  5. data/lib/morpheus/api/clusters_interface.rb +8 -0
  6. data/lib/morpheus/api/network_floating_ips_interface.rb +3 -0
  7. data/lib/morpheus/api/server_devices_interface.rb +30 -0
  8. data/lib/morpheus/api/storage_datastores_interface.rb +44 -0
  9. data/lib/morpheus/cli/commands/backups_command.rb +16 -2
  10. data/lib/morpheus/cli/commands/clients_command.rb +14 -7
  11. data/lib/morpheus/cli/commands/cloud_datastores_command.rb +113 -1
  12. data/lib/morpheus/cli/commands/clouds.rb +0 -1
  13. data/lib/morpheus/cli/commands/clouds_types.rb +0 -1
  14. data/lib/morpheus/cli/commands/clusters.rb +36 -1
  15. data/lib/morpheus/cli/commands/containers_command.rb +21 -19
  16. data/lib/morpheus/cli/commands/hosts.rb +25 -4
  17. data/lib/morpheus/cli/commands/license.rb +12 -2
  18. data/lib/morpheus/cli/commands/network_domains_command.rb +1 -1
  19. data/lib/morpheus/cli/commands/network_floating_ips.rb +39 -1
  20. data/lib/morpheus/cli/commands/network_routers_command.rb +14 -1
  21. data/lib/morpheus/cli/commands/server_devices_command.rb +207 -0
  22. data/lib/morpheus/cli/commands/storage_datastores.rb +457 -0
  23. data/lib/morpheus/cli/commands/user_settings_command.rb +22 -6
  24. data/lib/morpheus/cli/mixins/infrastructure_helper.rb +1 -0
  25. data/lib/morpheus/cli/mixins/provisioning_helper.rb +16 -3
  26. data/lib/morpheus/cli/option_types.rb +5 -5
  27. data/lib/morpheus/cli/version.rb +1 -1
  28. data/test/api/clients_interface_test.rb +23 -0
  29. data/test/cli/clients_test.rb +45 -0
  30. metadata +10 -2
@@ -0,0 +1,45 @@
1
+ require 'morpheus_test'
2
+
3
+ class MorpheusTest::ClientsTest < MorpheusTest::TestCase
4
+
5
+ def test_clients_list
6
+ assert_execute %(clients list)
7
+ assert_execute %(clients list "System Admin")
8
+ end
9
+
10
+ # def test_clients_get_system_admin
11
+ # assert_execute %(clients get "System Admin")
12
+ # assert_execute %(clients get "System Admin" --permissions)
13
+ # end
14
+
15
+ def test_clients_get
16
+ record = client.clients.list({})['clients'][0]
17
+ if record
18
+ assert_execute %(clients get "#{record['id']}")
19
+ name_arg = record['clientId']
20
+ assert_execute %(clients get "#{escape_arg name_arg}")
21
+ else
22
+ puts "No client found, unable to execute test `#{__method__}`"
23
+ end
24
+ end
25
+
26
+ def test_clients_get_morph_cli
27
+ assert_execute %(clients get morph-cli)
28
+ end
29
+
30
+ # todo: test all the other commands
31
+
32
+ # def test_clients_add
33
+ # assert_execute %(clients add "test_client_#{random_id}" -N)
34
+ # end
35
+
36
+ # def test_clients_update
37
+ # #skip "Test needs to be added"
38
+ # assert_execute %(clients update "test_client_#{random_id}" --description "neat")
39
+ # end
40
+
41
+ # def test_clients_remove
42
+ # assert_execute %(clients remove "test_client_#{random_id}" -y")
43
+ # end
44
+
45
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morpheus-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.4.1
4
+ version: 8.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Estes
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2025-03-19 00:00:00.000000000 Z
14
+ date: 2025-05-22 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: public_suffix
@@ -365,12 +365,14 @@ files:
365
365
  - lib/morpheus/api/security_package_types_interface.rb
366
366
  - lib/morpheus/api/security_packages_interface.rb
367
367
  - lib/morpheus/api/security_scans_interface.rb
368
+ - lib/morpheus/api/server_devices_interface.rb
368
369
  - lib/morpheus/api/server_types_interface.rb
369
370
  - lib/morpheus/api/servers_interface.rb
370
371
  - lib/morpheus/api/service_catalog_interface.rb
371
372
  - lib/morpheus/api/service_plans_interface.rb
372
373
  - lib/morpheus/api/setup_interface.rb
373
374
  - lib/morpheus/api/snapshots_interface.rb
375
+ - lib/morpheus/api/storage_datastores_interface.rb
374
376
  - lib/morpheus/api/storage_providers_interface.rb
375
377
  - lib/morpheus/api/storage_server_types_interface.rb
376
378
  - lib/morpheus/api/storage_servers_interface.rb
@@ -548,6 +550,7 @@ files:
548
550
  - lib/morpheus/cli/commands/security_packages.rb
549
551
  - lib/morpheus/cli/commands/security_scans.rb
550
552
  - lib/morpheus/cli/commands/self_service_command.rb
553
+ - lib/morpheus/cli/commands/server_devices_command.rb
551
554
  - lib/morpheus/cli/commands/service_catalog_command.rb
552
555
  - lib/morpheus/cli/commands/service_plans_command.rb
553
556
  - lib/morpheus/cli/commands/set_prompt_command.rb
@@ -557,6 +560,7 @@ files:
557
560
  - lib/morpheus/cli/commands/snapshots.rb
558
561
  - lib/morpheus/cli/commands/source_command.rb
559
562
  - lib/morpheus/cli/commands/ssl_verification_command.rb
563
+ - lib/morpheus/cli/commands/storage_datastores.rb
560
564
  - lib/morpheus/cli/commands/storage_providers_command.rb
561
565
  - lib/morpheus/cli/commands/storage_server_types.rb
562
566
  - lib/morpheus/cli/commands/storage_servers.rb
@@ -628,6 +632,7 @@ files:
628
632
  - lib/morpheus/terminal.rb
629
633
  - lib/morpheus/util.rb
630
634
  - morpheus-cli.gemspec
635
+ - test/api/clients_interface_test.rb
631
636
  - test/api/containers_interface_test.rb
632
637
  - test/api/instances_interface_test.rb
633
638
  - test/api/network_routers_interface_test.rb
@@ -635,6 +640,7 @@ files:
635
640
  - test/cli/access_token_test.rb
636
641
  - test/cli/auth_test.rb
637
642
  - test/cli/cli_test.rb
643
+ - test/cli/clients_test.rb
638
644
  - test/cli/containers_test.rb
639
645
  - test/cli/help_test.rb
640
646
  - test/cli/instances_test.rb
@@ -674,6 +680,7 @@ signing_key:
674
680
  specification_version: 4
675
681
  summary: Provides CLI Interface to the Morpheus Public/Private Cloud Appliance
676
682
  test_files:
683
+ - test/api/clients_interface_test.rb
677
684
  - test/api/containers_interface_test.rb
678
685
  - test/api/instances_interface_test.rb
679
686
  - test/api/network_routers_interface_test.rb
@@ -681,6 +688,7 @@ test_files:
681
688
  - test/cli/access_token_test.rb
682
689
  - test/cli/auth_test.rb
683
690
  - test/cli/cli_test.rb
691
+ - test/cli/clients_test.rb
684
692
  - test/cli/containers_test.rb
685
693
  - test/cli/help_test.rb
686
694
  - test/cli/instances_test.rb