@@ -189,10 +189,10 @@ func TestPodLifecycle(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestCreatePodWithOptionalInexistantSecrets tries to create a pod referencing optional, inexistant secrets.
|
// TestCreatePodWithOptionalInexistentSecrets tries to create a pod referencing optional, inexistent secrets.
|
||||||
// It then verifies that the pod is created successfully.
|
// It then verifies that the pod is created successfully.
|
||||||
func TestCreatePodWithOptionalInexistantSecrets(t *testing.T) {
|
func TestCreatePodWithOptionalInexistentSecrets(t *testing.T) {
|
||||||
// Create a pod with a single container referencing optional, inexistant secrets.
|
// Create a pod with a single container referencing optional, inexistent secrets.
|
||||||
pod, err := f.CreatePod(f.CreatePodObjectWithOptionalSecretKey())
|
pod, err := f.CreatePod(f.CreatePodObjectWithOptionalSecretKey())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
@@ -220,10 +220,10 @@ func TestCreatePodWithOptionalInexistantSecrets(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestCreatePodWithMandatoryInexistantSecrets tries to create a pod referencing inexistant secrets.
|
// TestCreatePodWithMandatoryInexistentSecrets tries to create a pod referencing inexistent secrets.
|
||||||
// It then verifies that the pod is not created.
|
// It then verifies that the pod is not created.
|
||||||
func TestCreatePodWithMandatoryInexistantSecrets(t *testing.T) {
|
func TestCreatePodWithMandatoryInexistentSecrets(t *testing.T) {
|
||||||
// Create a pod with a single container referencing inexistant secrets.
|
// Create a pod with a single container referencing inexistent secrets.
|
||||||
pod, err := f.CreatePod(f.CreatePodObjectWithMandatorySecretKey())
|
pod, err := f.CreatePod(f.CreatePodObjectWithMandatorySecretKey())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
@@ -246,14 +246,14 @@ func TestCreatePodWithMandatoryInexistantSecrets(t *testing.T) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
if _, err := findPodInPodStats(stats, pod); err == nil {
|
if _, err := findPodInPodStats(stats, pod); err == nil {
|
||||||
t.Fatalf("Expecting to NOT find pod \"%s/%s\" having mandatory, inexistant secrets.", pod.Namespace, pod.Name)
|
t.Fatalf("Expecting to NOT find pod \"%s/%s\" having mandatory, inexistent secrets.", pod.Namespace, pod.Name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestCreatePodWithOptionalInexistantConfigMap tries to create a pod referencing optional, inexistant config map.
|
// TestCreatePodWithOptionalInexistentConfigMap tries to create a pod referencing optional, inexistent config map.
|
||||||
// It then verifies that the pod is created successfully.
|
// It then verifies that the pod is created successfully.
|
||||||
func TestCreatePodWithOptionalInexistantConfigMap(t *testing.T) {
|
func TestCreatePodWithOptionalInexistentConfigMap(t *testing.T) {
|
||||||
// Create a pod with a single container referencing optional, inexistant config map.
|
// Create a pod with a single container referencing optional, inexistent config map.
|
||||||
pod, err := f.CreatePod(f.CreatePodObjectWithOptionalConfigMapKey())
|
pod, err := f.CreatePod(f.CreatePodObjectWithOptionalConfigMapKey())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
@@ -281,10 +281,10 @@ func TestCreatePodWithOptionalInexistantConfigMap(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestCreatePodWithMandatoryInexistantConfigMap tries to create a pod referencing inexistant secrets.
|
// TestCreatePodWithMandatoryInexistentConfigMap tries to create a pod referencing inexistent secrets.
|
||||||
// It then verifies that the pod is not created.
|
// It then verifies that the pod is not created.
|
||||||
func TestCreatePodWithMandatoryInexistantConfigMap(t *testing.T) {
|
func TestCreatePodWithMandatoryInexistentConfigMap(t *testing.T) {
|
||||||
// Create a pod with a single container referencing inexistant config map.
|
// Create a pod with a single container referencing inexistent config map.
|
||||||
pod, err := f.CreatePod(f.CreatePodObjectWithMandatoryConfigMapKey())
|
pod, err := f.CreatePod(f.CreatePodObjectWithMandatoryConfigMapKey())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
@@ -307,7 +307,7 @@ func TestCreatePodWithMandatoryInexistantConfigMap(t *testing.T) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
if _, err := findPodInPodStats(stats, pod); err == nil {
|
if _, err := findPodInPodStats(stats, pod); err == nil {
|
||||||
t.Fatalf("Expecting to NOT find pod \"%s/%s\" having mandatory, inexistant config map.", pod.Namespace, pod.Name)
|
t.Fatalf("Expecting to NOT find pod \"%s/%s\" having mandatory, inexistent config map.", pod.Namespace, pod.Name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user