Remove deprecated features, bump version to 6.0.0 (#5326)

* Bump version to 6.0.0.

* sender option is now required.

* Default of want_proxmox_nodes_ansible_host changed from true to false.

* username is now an alias of user, and no longer of workspace.

* Remove deprecated return values in favor of end_state.

* Remove debug option.

* Change default of ignore_volatile_options from true to false.

* gitlab_group must now always contain the full path.

* Change default of norc from false to ture.

* Remove deprecated property.

* Add PR URL.

* Adjust bitbucket unit tests.

* Adjust module_helper integration test.
This commit is contained in:
Felix Fontein
2022-10-25 08:07:21 +02:00
committed by GitHub
parent 091bdc77c3
commit 2830a3452d
28 changed files with 70 additions and 243 deletions

View File

@@ -22,7 +22,7 @@ class TestBucketAccessKeyModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'label': 'key name',
'state': 'present',
@@ -57,7 +57,7 @@ class TestBucketAccessKeyModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'key': 'public_key',
'label': 'key name',
@@ -108,7 +108,7 @@ class TestBucketAccessKeyModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'key': 'new public key',
'label': 'mykey',
@@ -159,7 +159,7 @@ class TestBucketAccessKeyModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'key': 'new public key',
'label': 'mykey',
@@ -210,7 +210,7 @@ class TestBucketAccessKeyModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'key': 'new public key',
'label': 'mykey',
@@ -261,7 +261,7 @@ class TestBucketAccessKeyModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'label': 'mykey',
'state': 'absent',
@@ -279,7 +279,7 @@ class TestBucketAccessKeyModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'label': 'mykey',
'state': 'absent',
@@ -327,7 +327,7 @@ class TestBucketAccessKeyModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'label': 'mykey',
'state': 'absent',

View File

@@ -22,7 +22,7 @@ class TestBucketPipelineKeyPairModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'state': 'present',
})
@@ -56,7 +56,7 @@ class TestBucketPipelineKeyPairModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'public_key': 'public',
'private_key': 'PRIVATE',
@@ -79,7 +79,7 @@ class TestBucketPipelineKeyPairModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'public_key': 'public',
'private_key': 'PRIVATE',
@@ -101,7 +101,7 @@ class TestBucketPipelineKeyPairModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'public_key': 'public',
'private_key': 'PRIVATE',
@@ -123,7 +123,7 @@ class TestBucketPipelineKeyPairModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'public_key': 'public',
'private_key': 'PRIVATE',
@@ -146,7 +146,7 @@ class TestBucketPipelineKeyPairModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'state': 'absent',
})
@@ -163,7 +163,7 @@ class TestBucketPipelineKeyPairModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'state': 'absent',
})
@@ -183,7 +183,7 @@ class TestBucketPipelineKeyPairModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'state': 'absent',
'_ansible_check_mode': True,

View File

@@ -29,7 +29,7 @@ class TestBucketPipelineKnownHostModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'name': 'bitbucket.org',
'state': 'present',
@@ -78,7 +78,7 @@ class TestBucketPipelineKnownHostModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'name': 'bitbucket.org',
'state': 'present',
@@ -97,7 +97,7 @@ class TestBucketPipelineKnownHostModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'name': 'bitbucket.org',
'state': 'present',
@@ -128,7 +128,7 @@ class TestBucketPipelineKnownHostModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'name': 'bitbucket.org',
'state': 'absent',
@@ -147,7 +147,7 @@ class TestBucketPipelineKnownHostModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'name': 'bitbucket.org',
'state': 'absent',
@@ -177,7 +177,7 @@ class TestBucketPipelineKnownHostModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'name': 'bitbucket.org',
'state': 'absent',

View File

@@ -20,7 +20,7 @@ class TestBucketPipelineVariableModule(ModuleTestCase):
def test_without_required_parameters(self):
with self.assertRaises(AnsibleFailJson) as exec_info:
set_module_args({
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'name': 'PIPELINE_VAR_NAME',
'state': 'absent',
@@ -34,7 +34,7 @@ class TestBucketPipelineVariableModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'name': 'PIPELINE_VAR_NAME',
'state': 'present',
@@ -52,7 +52,7 @@ class TestBucketPipelineVariableModule(ModuleTestCase):
def test_oauth_env_vars_params(self, *args):
with self.assertRaises(AnsibleExitJson):
set_module_args({
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'name': 'PIPELINE_VAR_NAME',
'state': 'absent',
@@ -100,7 +100,7 @@ class TestBucketPipelineVariableModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'name': 'PIPELINE_VAR_NAME',
'value': '42',
@@ -126,7 +126,7 @@ class TestBucketPipelineVariableModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'name': 'PIPELINE_VAR_NAME',
'value': '42',
@@ -150,7 +150,7 @@ class TestBucketPipelineVariableModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'name': 'PIPELINE_VAR_NAME',
'value': '42',
@@ -176,7 +176,7 @@ class TestBucketPipelineVariableModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'name': 'PIPELINE_VAR_NAME',
'value': '42',
@@ -202,7 +202,7 @@ class TestBucketPipelineVariableModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'name': 'PIPELINE_VAR_NAME',
'value': '42',
@@ -227,7 +227,7 @@ class TestBucketPipelineVariableModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'name': 'PIPELINE_VAR_NAME',
'value': '42',
@@ -253,7 +253,7 @@ class TestBucketPipelineVariableModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'name': 'PIPELINE_VAR_NAME',
'state': 'absent',
@@ -271,7 +271,7 @@ class TestBucketPipelineVariableModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'name': 'PIPELINE_VAR_NAME',
'state': 'absent',
@@ -295,7 +295,7 @@ class TestBucketPipelineVariableModule(ModuleTestCase):
set_module_args({
'client_id': 'ABC',
'client_secret': 'XXX',
'username': 'name',
'workspace': 'name',
'repository': 'repo',
'name': 'PIPELINE_VAR_NAME',
'state': 'absent',