Skip to content

Commit

Permalink
[test]Add feature for CRI plugins (#1565)
Browse files Browse the repository at this point in the history
Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>

Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
  • Loading branch information
helsaawy authored Nov 17, 2022
1 parent a67a79a commit f83cc58
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/cri-containerd/containerdrestart_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ func Test_ContainerdRestart_LCOW(t *testing.T) {

// test restarting containers and pods
func Test_Container_CRI_Restart(t *testing.T) {
requireFeatures(t, featureCRIPlugin)

client := newTestRuntimeClient(t)
pluginClient := newTestPluginClient(t)
ctx, cancel := context.WithCancel(context.Background())
Expand Down Expand Up @@ -220,6 +222,8 @@ func Test_Container_CRI_Restart_State(t *testing.T) {
testFile := "t.txt"
wcowTestFile := `C:\Users\ContainerUser\t.txt`

requireFeatures(t, featureCRIPlugin)

client := newTestRuntimeClient(t)
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
Expand Down
4 changes: 4 additions & 0 deletions test/cri-containerd/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ const (
featureTerminateOnRestart = "TerminateOnRestart"
featureLCOWIntegrity = "LCOWIntegrity"
featureLCOWCrypt = "LCOWCrypt"
featureCRIPlugin = "CRIPlugin"
)

var allFeatures = []string{
Expand All @@ -117,6 +118,9 @@ var allFeatures = []string{
featureGPU,
featureCRIUpdateContainer,
featureTerminateOnRestart,
featureLCOWIntegrity,
featureLCOWCrypt,
featureCRIPlugin,
}

func init() {
Expand Down

0 comments on commit f83cc58

Please sign in to comment.