Documentation ¶
Overview ¶
package storetest contains SHARED testing logic that is common to our data-store implementations.
Index ¶
Constants ¶
View Source
const ( ResourceType1 = "System.Resources/resourceType1" ResourceType2 = "System.Resources/resourceType2" NestedResourceType1 = "System.Resources/resourceType1/nestedType" ResourcePath1 = "System.Resources/resourceType1/resource1" ResourcePath2 = "System.Resources/resourceType2/resource2" ResourcePath3 = "System.Resources/resourceType2/Resource3" NestedResourcePath1 = "System.Resources/resourceType1/resource1/nestedType/nested1" RadiusScope = "/planes/radius/local/" PlaneScope = "/planes" ResourceGroup1Scope = "/planes/radius/local/resourceGroups/group1" ResourceGroup2Scope = "/planes/radius/local/resourceGroups/group2" ARMResourceScope = "/subscriptions/abc/resourceGroups/group3" APIVersion = "test-api-version" )
Variables ¶
View Source
var ARMResourceID = parseOrPanic(ARMResourceScope + "/providers/" + ResourcePath1)
View Source
var Data1 = map[string]any{ "value": "1", "properties": map[string]any{ "resource": "1", }, }
View Source
var Data2 = map[string]any{ "value": "2", "properties": map[string]any{ "resource": "2", }, }
View Source
var NestedData1 = map[string]any{ "value": "3", "properties": map[string]any{ "resource": "3", }, }
View Source
var NestedResource1ID = parseOrPanic(ResourceGroup1Scope + "/providers/" + NestedResourcePath1)
View Source
var RadiusPlaneData = map[string]any{ "value:": "1", "properties": map[string]any{ "plane": "1", }, }
View Source
var RadiusPlaneID = parseOrPanic(RadiusScope)
View Source
var Resource1ID = parseOrPanic(ResourceGroup1Scope + "/providers/" + ResourcePath1)
View Source
var Resource2ID = parseOrPanic(ResourceGroup2Scope + "/providers/" + ResourcePath2)
View Source
var Resource3ID = parseOrPanic(ResourceGroup2Scope + "/providers/" + ResourcePath3)
View Source
var ResourceGroup1Data = map[string]any{ "value": "1", "properties": map[string]any{ "group": "1", }, }
View Source
var ResourceGroup1ID = parseOrPanic(ResourceGroup1Scope)
View Source
var ResourceGroup2Data = map[string]any{ "value": "2", "properties": map[string]any{ "group": "2", }, }
View Source
var ResourceGroup2ID = parseOrPanic(ResourceGroup2Scope)
Functions ¶
func CompareObjectLists ¶
CompareObjectLists compares two slices of store.Objects, ignoring their ETags.
func MarshalOrPanic ¶
MarshalOrPanic takes in any type and returns a byte slice, panicking if an error occurs while marshalling.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.