From e0141ea61cb86911a12a49b35933f068dd5b92dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phanie=20Jaumotte?= Date: Tue, 30 Jul 2024 11:46:34 +0200 Subject: [PATCH] modif name --- manifests/license.pp | 2 +- spec/unit/provider/elasticsearch_license/xpack_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/license.pp b/manifests/license.pp index 866b85775..ea6025a11 100644 --- a/manifests/license.pp +++ b/manifests/license.pp @@ -72,7 +72,7 @@ port => $api_port, timeout => $api_timeout, } - -> elasticsearch_license { 'xpack': + -> elasticsearch_license { 'license': ensure => $ensure, content => $_content, protocol => $api_protocol, diff --git a/spec/unit/provider/elasticsearch_license/xpack_spec.rb b/spec/unit/provider/elasticsearch_license/xpack_spec.rb index 2176b808a..997a3d165 100644 --- a/spec/unit/provider/elasticsearch_license/xpack_spec.rb +++ b/spec/unit/provider/elasticsearch_license/xpack_spec.rb @@ -3,11 +3,11 @@ require_relative '../../../helpers/unit/provider/elasticsearch_rest_shared_examples' describe Puppet::Type.type(:elasticsearch_license).provider(:ruby) do # rubocop:disable RSpec/MultipleMemoizedHelpers - let(:name) { 'ruby' } + let(:name) { 'license' } let(:example1) do { - name: 'xpack', + name: 'license', ensure: :present, provider: :ruby, content: {