File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2888,7 +2888,7 @@ Struct[{
28882888 Optional['MemoryHigh'] => Systemd::Unit::AmountOrPercent,
28892889 Optional['MemoryMax'] => Systemd::Unit::AmountOrPercent,
28902890 Optional['MemoryLimit'] => Systemd::Unit::Amount,
2891- Optional['MemorySwapMax'] => Systemd::Unit::Amount ,
2891+ Optional['MemorySwapMax'] => Systemd::Unit::AmountOrPercent ,
28922892 Optional['TasksAccounting'] => Boolean,
28932893 Optional['TasksMax'] => Systemd::Unit::AmountOrPercent,
28942894 Optional['IOAccounting'] => Boolean,
Original file line number Diff line number Diff line change 103103 )
104104 }
105105
106+ it { is_expected . to allow_value ( { 'MemorySwapMax' => '80%' } ) }
107+
106108 it { is_expected . not_to allow_value ( { 'CPUQuota' => 50 } ) }
107109 it { is_expected . not_to allow_value ( { 'CPUQuota' => '0%' } ) }
108110 it { is_expected . not_to allow_value ( { 'MemoryHigh' => '1Y' } ) }
Original file line number Diff line number Diff line change 5757 Optional[' MemoryHigh' ] => Systemd::Unit::AmountOrPercent,
5858 Optional[' MemoryMax' ] => Systemd::Unit::AmountOrPercent,
5959 Optional[' MemoryLimit' ] => Systemd::Unit::Amount,
60- Optional[' MemorySwapMax' ] => Systemd::Unit::Amount ,
60+ Optional[' MemorySwapMax' ] => Systemd::Unit::AmountOrPercent ,
6161 Optional[' TasksAccounting' ] => Boolean,
6262 Optional[' TasksMax' ] => Systemd::Unit::AmountOrPercent,
6363 Optional[' IOAccounting' ] => Boolean,
You can’t perform that action at this time.
0 commit comments