Skip to content

Commit

Permalink
Update git.config operation tests for new fact kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Nov 16, 2024
1 parent 80d4b30 commit 752befb
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 10 deletions.
4 changes: 3 additions & 1 deletion tests/operations/git.config/add_existing_multi_value.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
},
"facts": {
"git.GitConfig": {
"key": ["value"]
"repo=None, system=False": {
"key": ["value"]
}
}
},
"commands": []
Expand Down
4 changes: 3 additions & 1 deletion tests/operations/git.config/add_first_multi_value.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"multi_value": true
},
"facts": {
"git.GitConfig": {}
"git.GitConfig": {
"repo=None, system=False": {}
}
},
"commands": [
"git config --global --add key \"value\""
Expand Down
4 changes: 3 additions & 1 deletion tests/operations/git.config/add_second_multi_value.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
},
"facts": {
"git.GitConfig": {
"key": ["value"]
"repo=None, system=False": {
"key": ["value"]
}
}
},
"commands": [
Expand Down
4 changes: 3 additions & 1 deletion tests/operations/git.config/edit_global.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"args": ["key", "value"],
"facts": {
"git.GitConfig": {
"key": ["wrongvalue"]
"repo=None, system=False": {
"key": ["wrongvalue"]
}
}
},
"commands": [
Expand Down
4 changes: 3 additions & 1 deletion tests/operations/git.config/edit_system.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
},
"facts": {
"git.GitConfig": {
"key": ["wrongvalue"]
"repo=None, system=True": {
"key": ["wrongvalue"]
}
}
},
"commands": [
Expand Down
4 changes: 3 additions & 1 deletion tests/operations/git.config/set_existing_global.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"args": ["key", "value"],
"facts": {
"git.GitConfig": {
"key": ["value"]
"repo=None, system=False": {
"key": ["value"]
}
}
},
"commands": [],
Expand Down
4 changes: 3 additions & 1 deletion tests/operations/git.config/set_existing_system.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
},
"facts": {
"git.GitConfig": {
"key": ["value"]
"repo=None, system=True": {
"key": ["value"]
}
}
},
"commands": [],
Expand Down
4 changes: 3 additions & 1 deletion tests/operations/git.config/set_global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"args": ["key", "value"],
"facts": {
"git.GitConfig": {}
"git.GitConfig": {
"repo=None, system=False": {}
}
},
"commands": [
"git config --global key \"value\""
Expand Down
2 changes: 1 addition & 1 deletion tests/operations/git.config/set_repo.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"facts": {
"git.GitConfig": {
"repo=/my/repo": {
"repo=/my/repo, system=False": {
"another_key": ["value"]
}
},
Expand Down
4 changes: 3 additions & 1 deletion tests/operations/git.config/set_system.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"system": true
},
"facts": {
"git.GitConfig": {}
"git.GitConfig": {
"repo=None, system=True": {}
}
},
"commands": [
"git config --system key \"value\""
Expand Down

0 comments on commit 752befb

Please sign in to comment.