Skip to content

Commit

Permalink
test: do not use service in resource names
Browse files Browse the repository at this point in the history
Signed-off-by: Artsiom Koltun <artsiom.koltun@intel.com>
  • Loading branch information
artek-koltun committed Feb 1, 2024
1 parent 152d19b commit cf31f02
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions storage/test/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,44 +8,38 @@ import "go.einride.tech/aip/resourcename"

func resourceIDToVolumeName(resourceID string) string {
return resourcename.Join(
"//storage.opiproject.org/",
"volumes", resourceID,
)
}

func resourceIDToSubsystemName(resourceID string) string {
return resourcename.Join(
"//storage.opiproject.org/",
"subsystems", resourceID,
)
}

func resourceIDToNamespaceName(subsysResourceID, ctrlrResourceID string) string {
return resourcename.Join(
"//storage.opiproject.org/",
"subsystems", subsysResourceID,
"namespaces", ctrlrResourceID,
)
}

func resourceIDToControllerName(subsysResourceID, ctrlrResourceID string) string {
return resourcename.Join(
"//storage.opiproject.org/",
"subsystems", subsysResourceID,
"controllers", ctrlrResourceID,
)
}

func resourceIDToRemoteControllerName(resourceID string) string {
return resourcename.Join(
"//storage.opiproject.org/",
"nvmeRemoteControllers", resourceID,
)
}

func resourceIDToNvmePathName(ctrlrResourceID, pathResourceID string) string {
return resourcename.Join(
"//storage.opiproject.org/",
"nvmeRemoteControllers", ctrlrResourceID,
"nvmePaths", pathResourceID,
)
Expand Down

0 comments on commit cf31f02

Please sign in to comment.