Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-10486

Remove deprecated Enumeration type

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 7.0.0
    • Component/s: None
    • Template:
    • Team:
      Night's Watch
    • Story Points:
      1
    • Sprint:
      NW - 2020-08-18
    • Release Notes:
      Deprecation
    • Release Notes Summary:
      Hide
      The Enumeration class was deprecated in PUP-5648 and will be removed in Puppet 7 since its functionality has been moved to Iterable.
      Show
      The Enumeration class was deprecated in PUP-5648 and will be removed in Puppet 7 since its functionality has been moved to Iterable.
    • QA Risk Assessment:
      Needs Assessment

      Description

      locales/puppet.pot:msgid "Enumeration.enumerator is deprecated. Use Iterable.on instead"
      spec/unit/pops/types/enumeration_spec.rb:  expect(Enumeration.enumerator([1,2,3]).respond_to?(:next)).to eql(true)
      spec/unit/pops/types/enumeration_spec.rb:    expect(Enumeration.enumerator({:a=>1}).respond_to?(:next)).to eql(true)
      spec/unit/pops/types/enumeration_spec.rb:    enum = Enumeration.enumerator("abc")
      spec/unit/pops/types/enumeration_spec.rb:    enum = Enumeration.enumerator(2)
      spec/unit/pops/types/enumeration_spec.rb:    enum = Enumeration.enumerator(range)
      spec/unit/pops/types/enumeration_spec.rb:    enum = Enumeration.enumerator(range)
      spec/unit/pops/types/enumeration_spec.rb:    enum = Enumeration.enumerator(range)
      spec/unit/pops/types/enumeration_spec.rb:      enum = Enumeration.enumerator(x)
      lib/puppet/pops/types/enumeration.rb:# The Enumeration class provides default Enumerable::Enumerator creation for Puppet Programming Language
      lib/puppet/pops/types/enumeration.rb:  class Enumeration
      lib/puppet/pops/types/enumeration.rb:      Puppet.deprecation_warning(_('Enumeration.enumerator is deprecated. Use Iterable.on instead'))
      lib/puppet/pops/types/enumeration.rb:      Puppet.deprecation_warning(_('Enumeration.enumerator is deprecated. Use Iterable.on instead'))
      

        Attachments

          Activity

            People

            Assignee:
            dorin.pleava Dorin Pleava
            Reporter:
            gheorghe.popescu Gheorghe Popescu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support