Add logic to correctly switch between channels; Determine channel from ensure #185
Annotations
5 errors
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L4
snapd class package resource changes installed channel behaves like an idempotent resource applies with no errors
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'ubuntu1804-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_084203004.pIkCIb.pp
Last 10 lines of output were:
Info: methods = [:purge, :status, :mark, :instance, :source, :vendor, :source=, :mark=, :command=, :adminfile=, :responsefile=, :configfiles=, :category=, :platform, :allowcdrom=, :enable_only=, :flavor=, :install_only=, :install_options=, :vendor=, :ensure=, :uninstall_options=, :allow_virtual=, :reinstall_on_refresh=, :install_only, :install_options, :uninstall_options, :category, :package_settings, :package_settings=, :root=, :uninstall, :description, :adminfile, :responsefile, :configfiles, :allowcdrom, :enable_only, :allow_virtual, :install, :instance=, :root, :reinstall_on_refresh, :provider, :latest, :flavor, :ensure, :command, :platform=, :provider=, :snap_cmd, :update, :query, :description=, :modify_snap, :status=, :determine_channel, :targetable?, :has_feature, :virtual_packages?, :has_features, :satisfies?, :uninstallable?, :upgradeable?, :purgeable?, :versionable?, :version_ranges?, :reinstallable?, :holdable?, :install_only?, :features, :uninstall_options?, :install_options?, :feature?, :disableable?, :supports_flavors?, :package_settings?, :installable?, :validate_source, :join_options, :flush, :properties, :info, :get, :emerg, :debug, :notice, :alert, :crit, :execute, :inspect, :to_s, :warning, :resource=, :err, :<=>, :resource, :set, :execpipe, :clear, :name, :clamp, :between?, :<=, :>=, :==, :>, :<, :error_context, :exceptwrap, :devfail, :adderrorcontext, :fail, :meta_undef, :class_def, :to_yaml, :daemonize, :meta_eval, :meta_def, :singleton_class, :_, :n_, :s_, :N_, :Nn_, :ns_, :to_pson, :to_json, :dup, :itself, :yield_self, :then, :taint, :tainted?, :untaint, :untrust, :untrusted?, :trust, :frozen?, :methods, :singleton_methods, :protected_methods, :private_methods, :public_methods, :instance_variables, :instance_variable_get, :instance_variable_set, :instance_variable_defined?, :remove_instance_variable, :instance_of?, :kind_of?, :is_a?, :tap, :clone, :display, :hash, :class, :public_send, :method, :public_method, :singleton_method, :define_singleton_method, :extend, :to_enum, :enum_for, :===, :=~, :!~, :nil?, :eql?, :respond_to?, :freeze, :object_id, :send, :__send__, :!, :!=, :equal?, :__id__, :instance_eval, :instance_exec]
Info: called install
Info: called query
Info: @installed_snaps =
Info: installed
Info: current_ensure = absent
Info: install snap
Error: Could not update: Request failed with snap "hello-world" is already installed
Error: /Stage[main]/Main/Package[hello-world]/ensure: change from 'latest/candidate' to 'latest/beta' failed: Could not update: Request failed with snap "hello-world" is already installed
�[mNotice: Applied catalog in 0.01 seconds
Shared Example Group: "an idempotent resource" called from ./spec/acceptance/01_snapd_spec.rb:90
|
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L8
snapd class package resource changes installed channel behaves like an idempotent resource applies a second time without changes
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'ubuntu1804-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_084204756.ZiqMV2.pp
Last 10 lines of output were:
Info: methods = [:purge, :status, :mark, :instance, :source, :vendor, :source=, :mark=, :command=, :adminfile=, :responsefile=, :configfiles=, :category=, :platform, :allowcdrom=, :enable_only=, :flavor=, :install_only=, :install_options=, :vendor=, :ensure=, :uninstall_options=, :allow_virtual=, :reinstall_on_refresh=, :install_only, :install_options, :uninstall_options, :category, :package_settings, :package_settings=, :root=, :uninstall, :description, :adminfile, :responsefile, :configfiles, :allowcdrom, :enable_only, :allow_virtual, :install, :instance=, :root, :reinstall_on_refresh, :provider, :latest, :flavor, :ensure, :command, :platform=, :provider=, :snap_cmd, :update, :query, :description=, :modify_snap, :status=, :determine_channel, :targetable?, :has_feature, :virtual_packages?, :has_features, :satisfies?, :uninstallable?, :upgradeable?, :purgeable?, :versionable?, :version_ranges?, :reinstallable?, :holdable?, :install_only?, :features, :uninstall_options?, :install_options?, :feature?, :disableable?, :supports_flavors?, :package_settings?, :installable?, :validate_source, :join_options, :flush, :properties, :info, :get, :emerg, :debug, :notice, :alert, :crit, :execute, :inspect, :to_s, :warning, :resource=, :err, :<=>, :resource, :set, :execpipe, :clear, :name, :clamp, :between?, :<=, :>=, :==, :>, :<, :error_context, :exceptwrap, :devfail, :adderrorcontext, :fail, :meta_undef, :class_def, :to_yaml, :daemonize, :meta_eval, :meta_def, :singleton_class, :_, :n_, :s_, :N_, :Nn_, :ns_, :to_pson, :to_json, :dup, :itself, :yield_self, :then, :taint, :tainted?, :untaint, :untrust, :untrusted?, :trust, :frozen?, :methods, :singleton_methods, :protected_methods, :private_methods, :public_methods, :instance_variables, :instance_variable_get, :instance_variable_set, :instance_variable_defined?, :remove_instance_variable, :instance_of?, :kind_of?, :is_a?, :tap, :clone, :display, :hash, :class, :public_send, :method, :public_method, :singleton_method, :define_singleton_method, :extend, :to_enum, :enum_for, :===, :=~, :!~, :nil?, :eql?, :respond_to?, :freeze, :object_id, :send, :__send__, :!, :!=, :equal?, :__id__, :instance_eval, :instance_exec]
Info: called install
Info: called query
Info: @installed_snaps =
Info: installed
Info: current_ensure = absent
Info: install snap
Error: Could not update: Request failed with snap "hello-world" is already installed
Error: /Stage[main]/Main/Package[hello-world]/ensure: change from 'latest/candidate' to 'latest/beta' failed: Could not update: Request failed with snap "hello-world" is already installed
�[mNotice: Applied catalog in 0.02 seconds
Shared Example Group: "an idempotent resource" called from ./spec/acceptance/01_snapd_spec.rb:90
|
spec/acceptance/01_snapd_spec.rb#L93
snapd class package resource changes installed channel Command "snap list --unicode=never --color=never" stdout is expected to match /beta/
Failure/Error: is_expected.to match(%r{beta})
expected "Name Version Rev Tracking Publisher Notes\ncore 16-2.61.4...e canonical** core\nhello-world 6.4 29 latest/candidate canonical** -\n" to match /beta/
Diff:
@@ -1,3 +1,5 @@
-/beta/
+Name Version Rev Tracking Publisher Notes
+core 16-2.61.4-20240607 17200 latest/stable canonical** core
+hello-world 6.4 29 latest/candidate canonical** -
|
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.2.0/lib/voxpupuli/acceptance/examples.rb#L8
snapd class installs latest/stable when ensure: latest behaves like an idempotent resource applies a second time without changes
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'ubuntu1804-64-puppet7.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_084214146.4JxpoG.pp
Last 10 lines of output were:
Info: version = 6.4
Info: called install
Info: called query
Info: @installed_snaps =
Info: installed
Info: current_ensure = absent
Info: install snap
Error: Could not update: Request failed with snap "hello-world" is already installed
Error: /Stage[main]/Main/Package[hello-world]/ensure: change from 'latest/stable' to '6.4' failed: Could not update: Request failed with snap "hello-world" is already installed
�[mNotice: Applied catalog in 0.31 seconds
Shared Example Group: "an idempotent resource" called from ./spec/acceptance/01_snapd_spec.rb:128
|
|
The logs for this run have expired and are no longer available.
Loading