diff --git a/plugins/aws/eks/eksKubernetesVersion.spec.js b/plugins/aws/eks/eksKubernetesVersion.spec.js index b53206f8d2..0997f85358 100644 --- a/plugins/aws/eks/eksKubernetesVersion.spec.js +++ b/plugins/aws/eks/eksKubernetesVersion.spec.js @@ -82,7 +82,7 @@ describe('eksKubernetesVersion', function () { "cluster": { "name": "mycluster", "arn": "arn:aws:eks:us-east-1:012345678911:cluster/mycluster", - "version": "1.27", + "version": "1.29", } } ); diff --git a/plugins/aws/route53/domainTransferLock.js b/plugins/aws/route53/domainTransferLock.js index 10c0e41422..64e147ab8c 100644 --- a/plugins/aws/route53/domainTransferLock.js +++ b/plugins/aws/route53/domainTransferLock.js @@ -34,12 +34,40 @@ module.exports = { return callback(null, results, source); } + + var dtlUnsupportedDomains= [ + '.za', + '.cl', + '.ar', + '.au', + '.nz', + '.au', + '.jp', + '.qa', + '.ru', + '.ch', + '.de', + '.es', + '.eu', + 'fi', + '.it', + '.nl', + '.se', + ]; + var unsupported = false; + for (var i in listDomains.data) { var domain = listDomains.data[i]; + if (!domain.DomainName) continue; - // Skip .uk and .co.uk domains - if (domain.DomainName.indexOf('.uk') > -1) { + dtlUnsupportedDomains.forEach((region) => { + if (domain.DomainName.includes(region)) { + unsupported = true; + } + }); + // Skip the unsupported domains + if (unsupported) { helpers.addResult(results, 0, 'Domain: ' + domain.DomainName + ' does not support transfer locks', 'global', domain.DomainName); diff --git a/plugins/aws/route53/domainTransferLock.spec.js b/plugins/aws/route53/domainTransferLock.spec.js index 889aee3be5..f0c388560a 100644 --- a/plugins/aws/route53/domainTransferLock.spec.js +++ b/plugins/aws/route53/domainTransferLock.spec.js @@ -15,7 +15,7 @@ const domains = [ "Expiry": 1602712345.0 }, { - "DomainName": "example.com.uk", + "DomainName": "example.com.jp", "AutoRenew": true, "TransferLock": true, "Expiry": 1602712345.0