Skip to content

Commit

Permalink
fix: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
metacosm committed Mar 16, 2021
1 parent 3404c6d commit 5fcb758
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,17 @@
*/
package io.fabric8.crd.zookeeper;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

import io.fabric8.kubernetes.api.model.apiextensions.v1beta1.CustomResourceDefinition;
import io.fabric8.kubernetes.api.model.apiextensions.v1beta1.CustomResourceDefinitionVersion;
import io.fabric8.kubernetes.api.model.apiextensions.v1beta1.JSONSchemaProps;
import io.fabric8.kubernetes.client.utils.Serialization;
import org.junit.Test;

import java.util.List;
import java.util.Optional;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import org.junit.Test;

public class ZookeeperCustomResourceIT {

Expand All @@ -47,7 +46,7 @@ public void testCrd() {
Optional<CustomResourceDefinitionVersion> v1 = d.getSpec().getVersions().stream().filter(v -> v.getName().equals("v1")).findFirst();
assertTrue(v1.isPresent());
v1.ifPresent(v -> {
//Let's version that version is marekd as reqired
//Let's check that version is marked as required
Object spec = v.getSchema().getOpenAPIV3Schema().getProperties().get("spec");
assertNotNull(spec);
JSONSchemaProps props = (JSONSchemaProps) spec;
Expand All @@ -58,7 +57,7 @@ public void testCrd() {
Optional<CustomResourceDefinitionVersion> v1alpha1 = d.getSpec().getVersions().stream().filter(v -> v.getName().equals("v1alpha1")).findFirst();
assertTrue(v1alpha1.isPresent());
v1.ifPresent(v -> {
//Let's version that version is marekd as reqired
//Let's check that version is marked as required
Object spec = v.getSchema().getOpenAPIV3Schema().getProperties().get("spec");
assertNotNull(spec);
JSONSchemaProps props = (JSONSchemaProps) spec;
Expand Down

0 comments on commit 5fcb758

Please sign in to comment.