Skip to content

Commit

Permalink
Removed the old 1.2 and 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
adhilto committed Jan 16, 2024
1 parent bed2296 commit a982989
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 73 deletions.
24 changes: 1 addition & 23 deletions Testing/RegoTests/calendar/calendar01_test.rego
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package calendar
import future.keywords

#
# Policy 1
# GWS.CALENDAR.1.1v0.1
#--
test_ExtSharingPrimaryCal_Correct_V1 if {
# Test external sharing for primary calendars when there's only one event
Expand Down Expand Up @@ -391,26 +391,4 @@ test_ExtSharingPrimaryCal_Incorrect_V5 if {
not RuleOutput[0].NoSuchEvent
RuleOutput[0].ReportDetails == "Requirement failed in Secondary OU."
}

#
# GWS.CALENDAR.1.2v0.1
#--

test_External_Sharing_Options_V1 if {
# Not-Implemented
PolicyId := "GWS.CALENDAR.1.2v0.1"
Output := tests with input as {
"calendar_logs": {"items": [
]},
"tenant_info": {
"topLevelOU": "Test Top-Level OU"
}
}

RuleOutput := [Result | some Result in Output; Result.PolicyId == PolicyId]
count(RuleOutput) == 1
not RuleOutput[0].RequirementMet
RuleOutput[0].NoSuchEvent
RuleOutput[0].ReportDetails == "Currently not able to be tested automatically; please manually check."
}
#--
24 changes: 1 addition & 23 deletions Testing/RegoTests/calendar/calendar03_test.rego
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package calendar
import future.keywords

#
# Policy 1
# GWS.CALENDAR.3.1v0.1
#--
test_ExtSharingSecondaryCal_Correct_V1 if {
# Test external sharing for secondary calendars when there's only one event
Expand Down Expand Up @@ -186,26 +186,4 @@ test_ExtSharingSecondaryCal_Incorrect_V3 if {
" is shared outside Test Top-Level Domain but outsiders cannot change calendars."
])
}

#
# GWS.CALENDAR.3.2v0.1
#--

test_ExternalSharingOptions_Secondary__Correct_V1 if {
# Not-Implemented
PolicyId := "GWS.CALENDAR.3.2v0.1"
Output := tests with input as {
"calendar_logs": {"items": [
]},
"tenant_info": {
"topLevelOU": "Test Top-Level OU"
}
}

RuleOutput := [Result | some Result in Output; Result.PolicyId == PolicyId]
count(RuleOutput) == 1
not RuleOutput[0].RequirementMet
RuleOutput[0].NoSuchEvent
RuleOutput[0].ReportDetails == "Currently not able to be tested automatically; please manually check."
}
#--
27 changes: 0 additions & 27 deletions rego/Calendar.rego
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,6 @@ if {
}
#--

#
# Baseline GWS.CALENDAR.1.2v0.1
#--
tests contains {
"PolicyId": "GWS.CALENDAR.1.2v0.1",
"Criticality": "May/Not-Implemented",
"ReportDetails": "Currently not able to be tested automatically; please manually check.",
"ActualValue": "",
"RequirementMet": false,
"NoSuchEvent": true
}
#--

##################
# GWS.CALENDAR.2 #
##################
Expand Down Expand Up @@ -186,20 +173,6 @@ if {
}
#--

#
# Baseline GWS.CALENDAR.3.2v0.1
#--
tests contains {
"PolicyId": "GWS.CALENDAR.3.2v0.1",
"Criticality": "May/Not-Implemented",
"ReportDetails": "Currently not able to be tested automatically; please manually check.",
"ActualValue": "",
"RequirementMet": false,
"NoSuchEvent": true
}
#--



##################
# GWS.CALENDAR.4 #
Expand Down

0 comments on commit a982989

Please sign in to comment.