-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from almenscorner/dev
v1.3.1
- Loading branch information
Showing
7 changed files
with
156 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[metadata] | ||
name = IntuneCD | ||
version = 1.3.0 | ||
version = 1.3.1 | ||
author = Tobias Almén | ||
author_email = [email protected] | ||
description = Tool to backup and update configurations in Intune | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,14 @@ def setUp(self): | |
"excludedApplications": ["d4ebce55-015a-49b5-a083-c84d1797ae8c"], | ||
}, | ||
}, | ||
"grantControls": {}, | ||
"grantControls": { | ||
"operator": "OR", | ||
"authenticationStrength": { | ||
"id": "test", | ||
"displayName": "test", | ||
"description": "test", | ||
}, | ||
}, | ||
} | ||
] | ||
} | ||
|
@@ -44,7 +51,14 @@ def setUp(self): | |
"excludedApplications": ["d4ebce55-015a-49b5-a083-c84d1797ae8c", "2"], | ||
}, | ||
}, | ||
"grantControls": {}, | ||
"grantControls": { | ||
"operator": "OR", | ||
"authenticationStrength": { | ||
"id": "test", | ||
"displayName": "test", | ||
"description": "test", | ||
}, | ||
}, | ||
} | ||
|
||
self.makeapirequest_patch = patch("src.IntuneCD.update_conditionalAccess.makeapirequest") | ||
|
@@ -113,7 +127,7 @@ def test_update_config_grantControls(self): | |
"""The count should be 0 and makeapirequestPost should not be called.""" | ||
|
||
self.repo_data["conditions"]["applications"]["excludedApplications"] = ["d4ebce55-015a-49b5-a083-c84d1797ae8c"] | ||
self.mem_data["value"][0]["grantControls"] = {"[email protected]": "test"} | ||
|
||
self.makeapirequest.return_value = self.mem_data | ||
|
||
self.count = update(self.directory.path, self.token, report=False) | ||
|
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