test/systemd_unit_create: add new options to unit test
Add the new options to the unit test.
This commit is contained in:
parent
80c84020dd
commit
e3fd572b94
1 changed files with 18 additions and 0 deletions
|
|
@ -74,6 +74,20 @@ def test_systemd_unit_create(tmp_path, stage_module, unit_type, unit_path, expec
|
|||
"ExecStart": [
|
||||
"mkdir -p /etc/mydir",
|
||||
"touch /etc/myfile"
|
||||
],
|
||||
"Environment": [
|
||||
{
|
||||
"key": "DEBUG",
|
||||
"value": "1",
|
||||
},
|
||||
{
|
||||
"key": "TRACE",
|
||||
"value": "1",
|
||||
},
|
||||
],
|
||||
"EnvironmentFile": [
|
||||
"/etc/example.env",
|
||||
"/etc/second.env",
|
||||
]
|
||||
},
|
||||
"Install": {
|
||||
|
|
@ -104,6 +118,10 @@ def test_systemd_unit_create(tmp_path, stage_module, unit_type, unit_path, expec
|
|||
RemainAfterExit=True
|
||||
ExecStart=mkdir -p /etc/mydir
|
||||
ExecStart=touch /etc/myfile
|
||||
Environment="DEBUG=1"
|
||||
Environment="TRACE=1"
|
||||
EnvironmentFile=/etc/example.env
|
||||
EnvironmentFile=/etc/second.env
|
||||
|
||||
[Install]
|
||||
WantedBy=local-fs.target
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue