The line in tests `assert "CPUAffinity=1,2,3,4" in systemd_content` should ensure that the failure is picked up. The test reads /etc/systemd/system.conf.
I built a test system using the current 'master' for the charm, cpu-affinity-range was "". Content of /etc/systemd/system.conf included #CPUAffinity=1 2.
The line in tests `assert "CPUAffinity= 1,2,3,4" in systemd_content` should ensure that the failure is picked up. The test reads /etc/systemd/ system. conf.
I built a test system using the current 'master' for the charm, cpu-affinity-range was "". Content of /etc/systemd/ system. conf included #CPUAffinity=1 2.
Change: focal-local cpu-affinity- range=" 1,2,3,4"
juju config sysconfig-
/etc/systemd/ system. conf included CPUAffinity=1,2,3,4
My test was using focal, and charm code which at the time matches stable/21.04