morpheus-cli 8.0.11.1 → 8.0.12

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.
@@ -127,7 +127,8 @@ module Morpheus::Routes
127
127
  buckets: {},
128
128
  },
129
129
  :'image-builder' => {},
130
- :vdi => {}
130
+ :migrations => {},
131
+ :vdi => {},
131
132
  },
132
133
  admin: {
133
134
  accounts: {}, # Tenants
@@ -0,0 +1,39 @@
1
+ require 'morpheus_test'
2
+
3
+ class MorpheusTest::MigrationsTest < MorpheusTest::TestCase
4
+
5
+ def test_migrations_list
6
+ assert_execute %(migrations list)
7
+ assert_execute %(migrations list "apitest")
8
+ end
9
+
10
+ def test_migrations_get
11
+ # migration = client.migrations.list({})['migrations'][0]
12
+ migration = client.migrations.list({})['migrations'].find {|r| r['authority'] !~ /\A\d+\Z/}
13
+ if migration
14
+ assert_execute %(migrations get "#{migration['id']}")
15
+ # beware that duplicates may exist
16
+ name_arg = migration['name']
17
+ assert_execute %(migrations get "#{escape_arg name_arg}")
18
+ else
19
+ puts "No migration found, unable to execute test `#{__method__}`"
20
+ end
21
+ end
22
+
23
+
24
+ # todo: test all the other commands
25
+
26
+ # def test_migrations_add
27
+ # assert_execute %(migrations add "test_migration_#{random_id}" -N)
28
+ # end
29
+
30
+ # def test_migrations_update
31
+ # #skip "Test needs to be added"
32
+ # assert_execute %(migrations update "test_migration_#{random_id}" --description "neat")
33
+ # end
34
+
35
+ # def test_migrations_remove
36
+ # assert_execute %(migrations remove "test_migration_#{random_id}" -y")
37
+ # end
38
+
39
+ 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.11.1
4
+ version: 8.0.12
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-11-20 00:00:00.000000000 Z
14
+ date: 2025-12-25 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: tins
@@ -317,6 +317,7 @@ files:
317
317
  - lib/morpheus/api/load_balancers_interface.rb
318
318
  - lib/morpheus/api/log_settings_interface.rb
319
319
  - lib/morpheus/api/logs_interface.rb
320
+ - lib/morpheus/api/migrations_interface.rb
320
321
  - lib/morpheus/api/monitoring_alerts_interface.rb
321
322
  - lib/morpheus/api/monitoring_apps_interface.rb
322
323
  - lib/morpheus/api/monitoring_checks_interface.rb
@@ -445,6 +446,7 @@ files:
445
446
  - lib/morpheus/cli/commands/cloud_resource_pools_command.rb
446
447
  - lib/morpheus/cli/commands/clouds.rb
447
448
  - lib/morpheus/cli/commands/clouds_types.rb
449
+ - lib/morpheus/cli/commands/cluster_types.rb
448
450
  - lib/morpheus/cli/commands/clusters.rb
449
451
  - lib/morpheus/cli/commands/coloring_command.rb
450
452
  - lib/morpheus/cli/commands/containers_command.rb
@@ -509,6 +511,7 @@ files:
509
511
  - lib/morpheus/cli/commands/logout.rb
510
512
  - lib/morpheus/cli/commands/logs_command.rb
511
513
  - lib/morpheus/cli/commands/man_command.rb
514
+ - lib/morpheus/cli/commands/migrations.rb
512
515
  - lib/morpheus/cli/commands/monitoring_alerts_command.rb
513
516
  - lib/morpheus/cli/commands/monitoring_apps_command.rb
514
517
  - lib/morpheus/cli/commands/monitoring_checks_command.rb
@@ -659,6 +662,7 @@ files:
659
662
  - test/cli/help_test.rb
660
663
  - test/cli/instances_test.rb
661
664
  - test/cli/man_test.rb
665
+ - test/cli/migrations_test.rb
662
666
  - test/cli/network_routers_test.rb
663
667
  - test/cli/remote_test.rb
664
668
  - test/cli/roles_test.rb
@@ -707,6 +711,7 @@ test_files:
707
711
  - test/cli/help_test.rb
708
712
  - test/cli/instances_test.rb
709
713
  - test/cli/man_test.rb
714
+ - test/cli/migrations_test.rb
710
715
  - test/cli/network_routers_test.rb
711
716
  - test/cli/remote_test.rb
712
717
  - test/cli/roles_test.rb