-
Notifications
You must be signed in to change notification settings - Fork 619
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update teams antivirus settings to configure notification
- Loading branch information
Rex Scaria
committed
Feb 8, 2024
1 parent
cca23db
commit f119e22
Showing
3 changed files
with
57 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:enhancement | ||
teams_rules: `AntiVirus` settings includes notification settings | ||
``` |
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 |
---|---|---|
|
@@ -53,44 +53,49 @@ func TestTeamsAccountConfiguration(t *testing.T) { | |
"messages": [], | ||
"result": { | ||
"settings": { | ||
"antivirus": { | ||
"enabled_download_phase": true | ||
}, | ||
"tls_decrypt": { | ||
"enabled": true | ||
}, | ||
"protocol_detection": { | ||
"enabled": true | ||
}, | ||
"fips": { | ||
"tls": true | ||
}, | ||
"activity_log": { | ||
"enabled": true | ||
}, | ||
"block_page": { | ||
"enabled": true, | ||
"name": "Cloudflare", | ||
"footer_text": "--footer--", | ||
"header_text": "--header--", | ||
"mailto_address": "[email protected]", | ||
"mailto_subject": "Blocked User Inquiry", | ||
"logo_path": "https://logos.com/a.png", | ||
"background_color": "#ff0000", | ||
"suppress_footer": true | ||
}, | ||
"browser_isolation": { | ||
"url_browser_isolation_enabled": true, | ||
"non_identity_enabled": true | ||
}, | ||
"body_scanning": { | ||
"inspection_mode": "deep" | ||
}, | ||
"extended_email_matching": { | ||
"enabled": true | ||
"antivirus": { | ||
"enabled_download_phase": true, | ||
"notification_settings": { | ||
"enabled":true, | ||
"msg":"msg", | ||
"support_url":"https://hi.com" | ||
} | ||
} | ||
} | ||
}, | ||
"tls_decrypt": { | ||
"enabled":true | ||
}, | ||
"protocol_detection": { | ||
"enabled":true | ||
}, | ||
"fips": { | ||
"tls":true | ||
}, | ||
"activity_log": { | ||
"enabled":true | ||
}, | ||
"block_page": { | ||
"enabled":true, | ||
"name":"Cloudflare", | ||
"footer_text":"--footer--", | ||
"header_text":"--header--", | ||
"mailto_address":"[email protected]", | ||
"mailto_subject":"Blocked User Inquiry", | ||
"logo_path":"https://logos.com/a.png", | ||
"background_color":"#ff0000", | ||
"suppress_footer":true | ||
}, | ||
"browser_isolation": { | ||
"url_browser_isolation_enabled":true, | ||
"non_identity_enabled":true | ||
}, | ||
"body_scanning": { | ||
"inspection_mode":"deep" | ||
}, | ||
"extended_email_matching": { | ||
"enabled":true | ||
} | ||
} | ||
} | ||
} | ||
`) | ||
} | ||
|
@@ -101,7 +106,14 @@ func TestTeamsAccountConfiguration(t *testing.T) { | |
|
||
if assert.NoError(t, err) { | ||
assert.Equal(t, actual.Settings, TeamsAccountSettings{ | ||
Antivirus: &TeamsAntivirus{EnabledDownloadPhase: true}, | ||
Antivirus: &TeamsAntivirus{ | ||
EnabledDownloadPhase: true, | ||
NotificationSettings: &TeamsNotificationSettings{ | ||
Enabled: &trueValue, | ||
Message: "msg", | ||
SupportURL: "https://hi.com", | ||
}, | ||
}, | ||
ActivityLog: &TeamsActivityLog{Enabled: true}, | ||
TLSDecrypt: &TeamsTLSDecrypt{Enabled: true}, | ||
ProtocolDetection: &TeamsProtocolDetection{Enabled: true}, | ||
|