Skip to content

Commit 44b417e

Browse files
(PE-40377) test with plan
1 parent 0fa1949 commit 44b417e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

spec/acceptance/peadm_spec/plans/test_migration.pp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Optional[Peadm::SingleTargetSpec] $new_replica_host = undef,
88
Optional[Peadm::SingleTargetSpec] $new_primary_postgresql_host = undef,
99
Optional[Peadm::SingleTargetSpec] $new_replica_postgresql_host = undef,
10-
Optional[Peadm::SingleTargetSpec] $new_pe_version = undef,
10+
Optional[Peadm::SingleTargetSpec] $upgrade_version = undef,
1111
) {
1212
out::message("primary_host:${primary_host}.")
1313
out::message("replica_host:${replica_host}.")
@@ -29,11 +29,11 @@
2929
fail_plan('Cluster is not healthy, aborting')
3030
}
3131

32-
# # perform the migration
33-
# run_plan('peadm::migrate',
34-
# old_primary_host => $primary_host,
35-
# new_primary_host => $new_primary_host,
36-
# )
32+
# perform the migration
33+
run_plan('peadm::migrate',
34+
old_primary_host => $primary_host,
35+
new_primary_host => $new_primary_host,
36+
)
3737

3838
# run infra status on the new primary
3939
out::message("Running peadm::status on new primary host ${new_primary_host}")
@@ -77,11 +77,11 @@
7777
}
7878
7979
# if a new PE version was specified then check it has been upgraded
80-
if $new_pe_version {
81-
if $peadm_config['params']['pe_version'] == $new_pe_version {
82-
out::message("Upgraded to new PE version ${new_pe_version} correctly")
80+
if $upgrade_version {
81+
if $peadm_config['params']['pe_version'] == $upgrade_version {
82+
out::message("Upgraded to new PE version ${upgrade_version} correctly")
8383
} else {
84-
fail_plan("Failed to upgrade to new PE version ${new_pe_version} correctly")
84+
fail_plan("Failed to upgrade to new PE version ${upgrade_version} correctly")
8585
}
8686
}
8787
}

0 commit comments

Comments
 (0)