-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
honor the section of the systemd file also in tests and rules
- Loading branch information
1 parent
2213e02
commit f5a750c
Showing
10 changed files
with
17 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
shared/templates/systemd_dropin_configuration/tests/correct_dir.pass.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/bin/bash | ||
SECTION="{{{ SECTION }}}" | ||
PARAM="{{{ PARAM }}}" | ||
VALUE="{{{ VALUE }}}" | ||
DROPIN_DIR="{{{ DROPIN_DIR }}}" | ||
[ -d $DROPIN_DIR ] || mkdir -p $DROPIN_DIR | ||
echo "$PARAM=$VALUE" >> "$DROPIN_DIR/ssg.conf" | ||
echo -e "[$SECTION]\n$PARAM=$VALUE" >> "$DROPIN_DIR/ssg.conf" |
3 changes: 2 additions & 1 deletion
3
shared/templates/systemd_dropin_configuration/tests/correct_master.pass.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/bin/bash | ||
SECTION="{{{ SECTION }}}" | ||
PARAM="{{{ PARAM }}}" | ||
VALUE="{{{ VALUE }}}" | ||
MASTER_CFG_FILE="{{{ MASTER_CFG_FILE }}}" | ||
echo "$PARAM=$VALUE" >> "$MASTER_CFG_FILE" | ||
echo -e "[$SECTION]\n$PARAM=$VALUE" >> "$MASTER_CFG_FILE" |
7 changes: 4 additions & 3 deletions
7
shared/templates/systemd_dropin_configuration/tests/multiple_vals.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
#!/bin/bash | ||
SECTION="{{{ SECTION }}}" | ||
PARAM="{{{ PARAM }}}" | ||
VALUE="{{{ VALUE }}}" | ||
DROPIN_DIR="{{{ DROPIN_DIR }}}" | ||
MASTER_CFG_FILE="{{{ MASTER_CFG_FILE }}}" | ||
[ -d $DROPIN_DIR ] || mkdir -p $DROPIN_DIR | ||
echo "$PARAM=$VALUE" >> "$DROPIN_DIR/ssg.conf" | ||
echo "$PARAM=badval" >> "$DROPIN_DIR/gss.conf" | ||
echo "$PARAM=foobarzoo" >> "$MASTER_CFG_FILE" | ||
echo -e "[$SECTION]\n$PARAM=$VALUE" >> "$DROPIN_DIR/ssg.conf" | ||
echo -e "[$SECTION]\n$PARAM=badval" >> "$DROPIN_DIR/gss.conf" | ||
echo -e "[$SECTION]\n$PARAM=foobarzoo" >> "$MASTER_CFG_FILE" |
3 changes: 2 additions & 1 deletion
3
shared/templates/systemd_dropin_configuration/tests/wrong_dir.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/bin/bash | ||
SECTION="{{{ SECTION }}}" | ||
PARAM="{{{ PARAM }}}" | ||
DROPIN_DIR="{{{ DROPIN_DIR }}}" | ||
[ -d $DROPIN_DIR ] || mkdir -p $DROPIN_DIR | ||
echo "$PARAM=badval" >> "$DROPIN_DIR/ssg.conf" | ||
echo -e "[$SECTION]\n$PARAM=badval" >> "$DROPIN_DIR/ssg.conf" |
4 changes: 2 additions & 2 deletions
4
shared/templates/systemd_dropin_configuration/tests/wrong_master.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
SECTION="{{{ SECTION }}}" | ||
PARAM="{{{ PARAM }}}" | ||
VALUE="{{{ VALUE }}}" | ||
MASTER_CFG_FILE="{{{ MASTER_CFG_FILE }}}" | ||
echo "$PARAM=badval" >> "$MASTER_CFG_FILE" | ||
echo -e "[$SECTION]\n$PARAM=badval" >> "$MASTER_CFG_FILE" |