-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new usecases, test profiles, double reporting, test fix
Logic for usecases and test profiles provided for consistent testing. Removed line that doubled all counts at the end of run. Modify requirement unittest to pass. Signed-off-by: Tomas <[email protected]>
- Loading branch information
1 parent
396543b
commit fd3f8b6
Showing
12 changed files
with
228 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"SchemaDefinition": "RedfishInteroperabilityProfile.v1_5_0", | ||
"ProfileName": "ChassisType5", | ||
"ProfileVersion": "1.0.0", | ||
"Purpose": "Ensures at least one chassis is an 'Enclosure'. This test should pass.", | ||
"Resources": { | ||
"Thermal": { | ||
"PropertyRequirements": { | ||
"Temperatures": { | ||
"PropertyRequirements": { | ||
"PhysicalContext": { | ||
"Comparison": "AllOf", | ||
"Values": [ "Intake", "CPU" ] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,18 @@ | ||
{ | ||
"SchemaDefinition": "RedfishInteroperabilityProfile.v1_5_0", | ||
"ProfileName": "ChassisType1", | ||
"ProfileVersion": "1.0.0", | ||
"Purpose": "Ensures at least one chassis is an 'Enclosure'. This test should pass (MultiBladeEncl is an Enclosure).", | ||
"Resources": { | ||
"Chassis": { | ||
"PropertyRequirements": { | ||
"ChassisType": { | ||
"Comparison": "AnyOf", | ||
"Values": [ | ||
"Enclosure" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
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,19 @@ | ||
{ | ||
"SchemaDefinition": "RedfishInteroperabilityProfile.v1_5_0", | ||
"ProfileName": "ChassisType2", | ||
"ProfileVersion": "1.0.0", | ||
"Purpose": "Ensures at least one chassis is an 'Enclosure' or a 'Rack'. This test should pass (MultiBladeEncl is an Enclosure).", | ||
"Resources": { | ||
"Chassis": { | ||
"PropertyRequirements": { | ||
"ChassisType": { | ||
"Comparison": "AnyOf", | ||
"Values": [ | ||
"Enclosure", | ||
"Rack" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
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,19 @@ | ||
{ | ||
"SchemaDefinition": "RedfishInteroperabilityProfile.v1_5_0", | ||
"ProfileName": "ChassisType3", | ||
"ProfileVersion": "1.0.0", | ||
"Purpose": "Ensures at least one chassis is an 'Enclosure' and a 'Rack'. This test should fail (there are no 'Rack' chassis).", | ||
"Resources": { | ||
"Chassis": { | ||
"PropertyRequirements": { | ||
"ChassisType": { | ||
"Comparison": "AllOf", | ||
"Values": [ | ||
"Enclosure", | ||
"Rack" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
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,19 @@ | ||
{ | ||
"SchemaDefinition": "RedfishInteroperabilityProfile.v1_5_0", | ||
"ProfileName": "ChassisType4", | ||
"ProfileVersion": "1.0.0", | ||
"Purpose": "Ensures at least one chassis is an 'Enclosure' and a 'Blade'. This test should pass.", | ||
"Resources": { | ||
"Chassis": { | ||
"PropertyRequirements": { | ||
"ChassisType": { | ||
"Comparison": "AllOf", | ||
"Values": [ | ||
"Enclosure", | ||
"Blade" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
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,18 @@ | ||
{ | ||
"SchemaDefinition": "RedfishInteroperabilityProfile.v1_5_0", | ||
"ProfileName": "ChassisType5", | ||
"ProfileVersion": "1.0.0", | ||
"Purpose": "Ensures at least one chassis is an 'Enclosure'. This test should pass.", | ||
"Resources": { | ||
"Chassis": { | ||
"PropertyRequirements": { | ||
"ChassisType": { | ||
"Comparison": "AllOf", | ||
"Values": [ | ||
"Enclosure" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
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,23 @@ | ||
{ | ||
"SchemaDefinition": "RedfishInteroperabilityProfile.v1_5_0", | ||
"ProfileName": "UseCaseType_ChassisType", | ||
"ProfileVersion": "1.0.0", | ||
"Purpose": "Test for UseCaseType 'ChassisType'. Should pass one test for every Sensor in public-rackmount1.", | ||
"Resources": { | ||
"Sensor": { | ||
"UseCases": [ | ||
{ | ||
"UseCaseTitle": "Chassis Sensor", | ||
"UseCaseType": "ChassisType", | ||
"UseCaseComparison": "Equal", | ||
"UseCaseKeyValues": [ | ||
"RackMount" | ||
], | ||
"PropertyRequirements": { | ||
"PhysicalContext": {} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
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,23 @@ | ||
{ | ||
"SchemaDefinition": "RedfishInteroperabilityProfile.v1_5_0", | ||
"ProfileName": "UseCaseType_PortProtocol", | ||
"ProfileVersion": "1.0.0", | ||
"Purpose": "Test for UseCaseType 'PortProtocol'. Should pass one test for each PortMetrics in public-acd.", | ||
"Resources": { | ||
"Sensor": { | ||
"UseCases": [ | ||
{ | ||
"UseCaseTitle": "Port Metrics", | ||
"UseCaseType": "PortProtocol", | ||
"UseCaseComparison": "Equal", | ||
"UseCaseKeyValues": [ | ||
"RackMount" | ||
], | ||
"PropertyRequirements": { | ||
"PhysicalContext": {} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
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,30 @@ | ||
{ | ||
"SchemaDefinition": "RedfishInteroperabilityProfile.v1_5_0", | ||
"ProfileName": "UseCaseType_PortProtocol", | ||
"ProfileVersion": "1.0.0", | ||
"Purpose": "Test for UseCaseType 'ProcessorType'. Should pass one test for each SubProcessor in public-tower.", | ||
"Resources": { | ||
"Processor": { | ||
"UseCases": [ | ||
{ | ||
"UseCaseTitle": "Sub Processor", | ||
"UseCaseType": "ProcessorType", | ||
"UseCaseComparison": "Equal", | ||
"UseCaseKeyValues": [ | ||
"CPU" | ||
], | ||
"PropertyRequirements": { | ||
"ProcessorType": { | ||
"ReadRequirement": "Mandatory", | ||
"Comparison": "AnyOf", | ||
"Values": [ | ||
"Thread", | ||
"Core" | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
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