forked from ClusterLabs/crmsh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: pre-migration: check removed resource agents (jsc#PED-11808)
- Loading branch information
1 parent
a2518dd
commit 5e56723
Showing
4 changed files
with
118 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
ocf::heartbeat:CTDB | ||
ocf::heartbeat:ClusterMon | ||
ocf::heartbeat:Delay | ||
ocf::heartbeat:Dummy | ||
ocf::heartbeat:Filesystem | ||
ocf::heartbeat:IPaddr2 | ||
ocf::heartbeat:IPsrcaddr | ||
ocf::heartbeat:IPv6addr | ||
ocf::heartbeat:LVM-activate | ||
ocf::heartbeat:MailTo | ||
ocf::heartbeat:NodeUtilization | ||
ocf::heartbeat:Raid1 | ||
ocf::heartbeat:Route | ||
ocf::heartbeat:SAPDatabase | ||
ocf::heartbeat:SAPInstance | ||
ocf::heartbeat:SendArp | ||
ocf::heartbeat:Squid | ||
ocf::heartbeat:Stateful | ||
ocf::heartbeat:VirtualDomain | ||
ocf::heartbeat:WAS | ||
ocf::heartbeat:WAS6 | ||
ocf::heartbeat:Xinetd | ||
ocf::heartbeat:aliyun-vpc-move-ip | ||
ocf::heartbeat:apache | ||
ocf::heartbeat:aws-vpc-move-ip | ||
ocf::heartbeat:aws-vpc-route53 | ||
ocf::heartbeat:awseip | ||
ocf::heartbeat:awsvip | ||
ocf::heartbeat:azure-events | ||
ocf::heartbeat:azure-events-az | ||
ocf::heartbeat:azure-lb | ||
ocf::heartbeat:conntrackd | ||
ocf::heartbeat:corosync-qnetd | ||
ocf::heartbeat:crypt | ||
ocf::heartbeat:db2 | ||
ocf::heartbeat:dhcpd | ||
ocf::heartbeat:docker | ||
ocf::heartbeat:docker-compose | ||
ocf::heartbeat:dummypy | ||
ocf::heartbeat:ethmonitor | ||
ocf::heartbeat:exportfs | ||
ocf::heartbeat:galera | ||
ocf::heartbeat:garbd | ||
ocf::heartbeat:gcp-ilb | ||
ocf::heartbeat:gcp-pd-move | ||
ocf::heartbeat:gcp-vpc-move-ip | ||
ocf::heartbeat:gcp-vpc-move-vip | ||
ocf::heartbeat:iSCSILogicalUnit | ||
ocf::heartbeat:iSCSITarget | ||
ocf::heartbeat:iface-bridge | ||
ocf::heartbeat:iface-macvlan | ||
ocf::heartbeat:iface-vlan | ||
ocf::heartbeat:ldirectord | ||
ocf::heartbeat:lvmlockd | ||
ocf::heartbeat:mariadb | ||
ocf::heartbeat:mdraid | ||
ocf::heartbeat:mpathpersist | ||
ocf::heartbeat:mysql | ||
ocf::heartbeat:mysql-proxy | ||
ocf::heartbeat:named | ||
ocf::heartbeat:nfsnotify | ||
ocf::heartbeat:nfsserver | ||
ocf::heartbeat:nginx | ||
ocf::heartbeat:nvmet-namespace | ||
ocf::heartbeat:nvmet-port | ||
ocf::heartbeat:nvmet-subsystem | ||
ocf::heartbeat:oraasm | ||
ocf::heartbeat:oracle | ||
ocf::heartbeat:oralsnr | ||
ocf::heartbeat:osceip | ||
ocf::heartbeat:ovsmonitor | ||
ocf::heartbeat:pgagent | ||
ocf::heartbeat:pgsql | ||
ocf::heartbeat:podman | ||
ocf::heartbeat:portblock | ||
ocf::heartbeat:postfix | ||
ocf::heartbeat:powervs-subnet | ||
ocf::heartbeat:rabbitmq-cluster | ||
ocf::heartbeat:rabbitmq-server-ha | ||
ocf::heartbeat:redis | ||
ocf::heartbeat:rsyncd | ||
ocf::heartbeat:sfex | ||
ocf::heartbeat:sg_persist | ||
ocf::heartbeat:slapd | ||
ocf::heartbeat:storage-mon | ||
ocf::heartbeat:symlink | ||
ocf::heartbeat:tomcat | ||
ocf::suse:aws-vpc-move-ip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import unittest | ||
from unittest import mock | ||
|
||
from crmsh import migration | ||
|
||
|
||
class TestCheckRemovedResourceAgents(unittest.TestCase): | ||
def setUp(self): | ||
self._handler = mock.Mock(migration.CheckResultHandler) | ||
|
||
def test_unsupported_resource_agent(self): | ||
migration._check_removed_resource_agents(self._handler, {'foo::bar'}) | ||
self._handler.handle_problem.assert_called_once() | ||
|
||
def test_supported_resource_agent(self): | ||
migration._check_removed_resource_agents(self._handler, {'ocf::heartbeat:IPaddr2'}) | ||
self._handler.handle_problem.assert_not_called() |