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 'ubuntu2004-64-puppet8.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_084209068.zsoeWI.pp
Last 10 lines of output were:
Info: methods = [:status=, :ensure, :update, :description=, :purge, :adminfile, :responsefile, :configfiles, :allowcdrom, :enable_only, :allow_virtual, :query, :reinstall_on_refresh, :status, :vendor, :source, :provider, :mark, :latest, :instance, :snap_cmd, :modify_snap, :root=, :category, :provider=, :root, :determine_channel, :instance=, :description, :command, :ensure=, :source=, :flavor=, :mark=, :command=, :adminfile=, :responsefile=, :configfiles=, :category=, :vendor=, :allowcdrom=, :platform, :flavor, :install_only=, :enable_only=, :uninstall_options=, :install_options=, :reinstall_on_refresh=, :allow_virtual=, :install_only, :install_options, :uninstall_options, :package_settings, :install, :package_settings=, :platform=, :uninstall, :targetable?, :has_features, :has_feature, :uninstallable?, :upgradeable?, :installable?, :purgeable?, :versionable?, :reinstallable?, :holdable?, :version_ranges?, :install_options?, :install_only?, :satisfies?, :feature?, :disableable?, :features, :uninstall_options?, :virtual_packages?, :supports_flavors?, :package_settings?, :join_options, :properties, :flush, :validate_source, :resource=, :name, :get, :debug, :notice, :execute, :err, :clear, :inspect, :to_s, :execpipe, :set, :<=>, :info, :warning, :resource, :alert, :emerg, :crit, :clamp, :between?, :<=, :>=, :==, :<, :>, :error_context, :exceptwrap, :devfail, :adderrorcontext, :fail, :daemonize, :meta_eval, :meta_def, :meta_undef, :class_def, :singleton_class, :to_yaml, :s_, :p_, :ns_, :np_, :_, :N_, :Nn_, :n_, :to_json, :hash, :dup, :itself, :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?, :display, :public_send, :extend, :clone, :class, :===, :!~, :tap, :then, :frozen?, :nil?, :eql?, :respond_to?, :method, :public_method, :singleton_method, :define_singleton_method, :freeze, :object_id, :yield_self, :send, :to_enum, :enum_for, :!, :equal?, :__send__, :__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 'ubuntu2004-64-puppet8.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_084211147.2Ompmf.pp
Last 10 lines of output were:
Info: methods = [:status=, :ensure, :update, :description=, :purge, :adminfile, :responsefile, :configfiles, :allowcdrom, :enable_only, :allow_virtual, :query, :reinstall_on_refresh, :status, :vendor, :source, :provider, :mark, :latest, :instance, :snap_cmd, :modify_snap, :root=, :category, :provider=, :root, :determine_channel, :instance=, :description, :command, :ensure=, :source=, :flavor=, :mark=, :command=, :adminfile=, :responsefile=, :configfiles=, :category=, :vendor=, :allowcdrom=, :platform, :flavor, :install_only=, :enable_only=, :uninstall_options=, :install_options=, :reinstall_on_refresh=, :allow_virtual=, :install_only, :install_options, :uninstall_options, :package_settings, :install, :package_settings=, :platform=, :uninstall, :targetable?, :has_features, :has_feature, :uninstallable?, :upgradeable?, :installable?, :purgeable?, :versionable?, :reinstallable?, :holdable?, :version_ranges?, :install_options?, :install_only?, :satisfies?, :feature?, :disableable?, :features, :uninstall_options?, :virtual_packages?, :supports_flavors?, :package_settings?, :join_options, :properties, :flush, :validate_source, :resource=, :name, :get, :debug, :notice, :execute, :err, :clear, :inspect, :to_s, :execpipe, :set, :<=>, :info, :warning, :resource, :alert, :emerg, :crit, :clamp, :between?, :<=, :>=, :==, :<, :>, :error_context, :exceptwrap, :devfail, :adderrorcontext, :fail, :daemonize, :meta_eval, :meta_def, :meta_undef, :class_def, :singleton_class, :to_yaml, :s_, :p_, :ns_, :np_, :_, :N_, :Nn_, :n_, :to_json, :hash, :dup, :itself, :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?, :display, :public_send, :extend, :clone, :class, :===, :!~, :tap, :then, :frozen?, :nil?, :eql?, :respond_to?, :method, :public_method, :singleton_method, :define_singleton_method, :freeze, :object_id, :yield_self, :send, :to_enum, :enum_for, :!, :equal?, :__send__, :__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
|
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 'ubuntu2004-64-puppet8.example.com' exited with 4 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_084221352.CxbEj1.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.25 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