cdenneen
03/07/2024, 5:35 PMcdenneen
03/07/2024, 5:37 PMGavin Didrichsen
03/08/2024, 11:16 AMbastelfreak
03/08/2024, 11:22 AMDr Bunsen Honeydew
03/08/2024, 11:22 AMbastelfreak
03/08/2024, 11:26 AMbastelfreak
03/08/2024, 2:23 PMLumiere
03/11/2024, 7:32 PMPuppet::Environments::EnvironmentNotFound:
Could not find a directory environment named 'production' anywhere in the path:
in (pdk) tests?bastelfreak
03/12/2024, 3:55 PMYury Bushmelev
03/13/2024, 12:39 PMreferences an unresolved type 'Result'
error.Lumiere
03/13/2024, 9:58 PMPuppet::Environments::EnvironmentNotFound:
Could not find a directory environment named 'production' anywhere in the path: /home/me/products/puppet/profile_puppet/spec. Does the directory exist?
Yury Bushmelev
03/15/2024, 6:20 PMYury Bushmelev
03/15/2024, 7:16 PMhave_received
to ensure the function was called actuallyYury Bushmelev
03/18/2024, 10:38 AMlet(:mocked_function) {
find_function(<the function name>).func
}
it do
allow(mocked_function).to receive(:<the function name>).with(<args>).and_return(<result>)
end
Yury Bushmelev
03/18/2024, 10:39 AMYury Bushmelev
03/18/2024, 10:41 AMhave_received()
to ensure it was called actuallyYury Bushmelev
03/18/2024, 11:28 AMhave_received()
w/o allow()
first.. and it’s impossible to wrap it with spy()
because it won’t be mocked then..Yury Bushmelev
03/18/2024, 11:40 AMYury Bushmelev
03/18/2024, 11:41 AMisaiahfrantz
03/22/2024, 12:09 AMos_facts[:os]
in my context line and a notify in my catalog to print out $facts['os']
. os_facts says its rhel7 but my catalog is saying rhel9?!?!:
# notify in puppet class getting printed to output
Untouched resources:
Notify[
secondary_ip=>10.1.0.5<
bonds=>{pri => , sec => {ip => 10.1.0.5, netmask => 255.255.255.128, network => 10.1.0.0, dev => bond0.103}}<
hostname=>app1<
os=>{architecture => x86_64, distro => {codename => Plow, description => Red Hat Enterprise Linux release 9.0 (Plow), id => RedHatEnterprise, release => {full => 9.0, major => 9, minor => 0}}, family => RedHat, hardware => x86_64, name => RedHat, release => {full => 9.0, major => 9, minor => 0}, selinux => {config_mode => enforcing, config_policy => targeted, current_mode => enforcing, enabled => true, enforced => true, policy_version => 33}}}<]
# context line printout
1) networking::db_backup_route on redhat-7-x86_64 for test_name=>sku_name_db_plain< hostname=>db1< gets_files=>true< os_facts=>{"architecture"=>"x86_64", "distro"=>{"codename"=>"Maipo", "description"=>"Red Hat Enterprise Linux Server release 7.9 (Maipo)", "id"=>"RedHatEnterpriseServer", "release"=>{"full"=>"7.9", "major"=>"7", "minor"=>"9"}}, "family"=>"RedHat", "hardware"=>"x86_64", "name"=>"RedHat", "release"=>{"full"=>"7.9", "major"=>"7", "minor"=>"9"}, "selinux"=>{"config_mode"=>"enforcing", "config_policy"=>"targeted", "current_mode"=>"enforcing", "enabled"=>true, "enforced"=>true, "policy_version"=>"31"}}< is expected to contain File[/etc/sysconfig/network-scripts/route-bond0.103]
isaiahfrantz
03/22/2024, 12:12 AMRyChannel
04/02/2024, 4:35 PMbastelfreak
04/02/2024, 4:35 PMr10k puppetfile install
bastelfreak
04/02/2024, 4:36 PMRyChannel
04/02/2024, 4:40 PMbastelfreak
04/02/2024, 4:41 PMYury Bushmelev
04/05/2024, 7:22 PMsmortex
04/09/2024, 2:07 AMbastelfreak
04/16/2024, 12:38 PMMassimiliano (Max)
04/17/2024, 12:15 PM.ruby-lsp
I ran pdk build
and the built image was 30 MB instead of 30K. I checked the tarball, and it contains the .ruby-lsb directory.
I removed .rub-lsb, ran pdk build again, and the package size is 30k.
Smells like a bug.