@@ -57,9 +57,14 @@ var _ = Describe("PhysicalMachineChaos", func() {
 				Spec: PhysicalMachineChaosSpec{
 					Action: "stress-mem",
 					PhysicalMachineSelector: PhysicalMachineSelector{
-						Address: []string{
-							"123.123.123.123.123",
+						Selector: PhysicalMachineSelectorSpec{
+							GenericSelectorSpec: GenericSelectorSpec{
+								LabelSelectors: map[string]string{
+									"foo": "bar",
+								},
+							},
 						},
+						Mode: OneMode,
 					},
 					ExpInfo: ExpInfo{
 						StressMemory: &StressMemorySpec{
// Copyright 2021 Chaos Mesh Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

package v1alpha1

import (
	"context"

	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"

	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/apimachinery/pkg/types"
)

// These tests are written in BDD-style using Ginkgo framework. Refer to
// http://onsi.github.io/ginkgo to learn more.

var _ = Describe("PhysicalMachineChaos", func() {
	var (
		key              types.NamespacedName
		created, fetched *PhysicalMachineChaos
	)

	BeforeEach(func() {
		// Add any setup steps that needs to be executed before each test
	})

	AfterEach(func() {
		// Add any teardown steps that needs to be executed after each test
	})

	Context("Create API", func() {
		It("should create an object successfully", func() {
			key = types.NamespacedName{
				Name:      "foo",
				Namespace: "default",
			}

			created = &PhysicalMachineChaos{
				ObjectMeta: metav1.ObjectMeta{
					Name:      "foo",
					Namespace: "default",
				},
				Spec: PhysicalMachineChaosSpec{
					Action: "stress-mem",
					PhysicalMachineSelector: PhysicalMachineSelector{
						Address: []string{
							"123.123.123.123.123",
						},
					},
					ExpInfo: ExpInfo{
						StressMemory: &StressMemorySpec{
							Size: "10MB",
						},
					},
				},
			}

			By("creating an API obj")
			Expect(k8sClient.Create(context.TODO(), created)).To(Succeed())

			fetched = &PhysicalMachineChaos{}
			Expect(k8sClient.Get(context.TODO(), key, fetched)).To(Succeed())
			Expect(fetched).To(Equal(created))

			By("deleting the created object")
			Expect(k8sClient.Delete(context.TODO(), created)).To(Succeed())
			Expect(k8sClient.Get(context.TODO(), key, created)).ToNot(Succeed())
		})
	})
})

How about creating a new test case, keep the old one