Skip to content

Commit

Permalink
woke-ignore kubernetes master role
Browse files Browse the repository at this point in the history
  • Loading branch information
addyess committed Jun 20, 2024
1 parent 824ec74 commit 15bd592
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions tests/unit/test_cloud_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ def test_cloud_aws(harness):
event = mock.MagicMock()
harness.charm.cloud_integration.integrate(event)
mock_cloud.tag_instance.assert_called_once_with(
{"kubernetes.io/cluster/my-cluster": "owned", "k8s.io/role/master": "true"}
{
"kubernetes.io/cluster/my-cluster": "owned",
"k8s.io/role/master": "true", # wokeignore:rule=master
}
)
mock_cloud.tag_instance_security_group.assert_called_once_with(
{"kubernetes.io/cluster/my-cluster": "owned"}
Expand Down Expand Up @@ -74,7 +77,10 @@ def test_cloud_gce(harness):
event = mock.MagicMock()
harness.charm.cloud_integration.integrate(event)
mock_cloud.tag_instance.assert_called_once_with(
{"k8s-io-cluster-name": "my-cluster", "k8s-io-role-master": "master"}
{
"k8s-io-cluster-name": "my-cluster",
"k8s-io-role-master": "master", # wokeignore:rule=master
}
)
mock_cloud.enable_object_storage_management.assert_called_once()
mock_cloud.enable_security_management.assert_called_once()
Expand All @@ -95,7 +101,10 @@ def test_cloud_azure(harness):
event = mock.MagicMock()
harness.charm.cloud_integration.integrate(event)
mock_cloud.tag_instance.assert_called_once_with(
{"k8s-io-cluster-name": "my-cluster", "k8s-io-role-master": "master"}
{
"k8s-io-cluster-name": "my-cluster",
"k8s-io-role-master": "master", # wokeignore:rule=master
}
)
mock_cloud.enable_object_storage_management.assert_called_once()
mock_cloud.enable_security_management.assert_called_once()
Expand Down

0 comments on commit 15bd592

Please sign in to comment.