Skip to content

Commit

Permalink
Get rid of unnecessary api package in approval tests for crd-generator
Browse files Browse the repository at this point in the history
  • Loading branch information
baloo42 authored and manusa committed Apr 27, 2024
1 parent b948114 commit 8d98cb8
Show file tree
Hide file tree
Showing 33 changed files with 45 additions and 45 deletions.
Expand Up @@ -17,13 +17,13 @@

import io.fabric8.crd.generator.CRDGenerator;
import io.fabric8.crd.generator.CRDInfo;
import io.fabric8.crd.generator.approvaltests.annotated.api.Annotated;
import io.fabric8.crd.generator.approvaltests.complex.api.Complex;
import io.fabric8.crd.generator.approvaltests.inherited.api.Child;
import io.fabric8.crd.generator.approvaltests.json.api.ContainingJson;
import io.fabric8.crd.generator.approvaltests.k8svalidation.api.K8sValidation;
import io.fabric8.crd.generator.approvaltests.map.api.ContainingMaps;
import io.fabric8.crd.generator.approvaltests.nocyclic.api.NoCyclic;
import io.fabric8.crd.generator.approvaltests.annotated.Annotated;
import io.fabric8.crd.generator.approvaltests.complex.Complex;
import io.fabric8.crd.generator.approvaltests.inherited.Child;
import io.fabric8.crd.generator.approvaltests.json.ContainingJson;
import io.fabric8.crd.generator.approvaltests.k8svalidation.K8sValidation;
import io.fabric8.crd.generator.approvaltests.map.ContainingMaps;
import io.fabric8.crd.generator.approvaltests.nocyclic.NoCyclic;
import io.fabric8.kubernetes.client.CustomResource;
import org.approvaltests.Approvals;
import org.junit.jupiter.api.io.TempDir;
Expand Down Expand Up @@ -83,8 +83,8 @@ static Stream<Arguments> crdApprovalTests() {
cases.add(new TestCase("k8svalidations.samples.fabric8.io", crdVersion, parallel, K8sValidation.class));
cases.add(new TestCase("containingmaps.sample.fabric8.io", crdVersion, parallel, ContainingMaps.class));
cases.add(new TestCase("multiples.sample.fabric8.io", crdVersion, parallel,
io.fabric8.crd.generator.approvaltests.multipleversions.api.v1.Multiple.class,
io.fabric8.crd.generator.approvaltests.multipleversions.api.v2.Multiple.class));
io.fabric8.crd.generator.approvaltests.multipleversions.v1.Multiple.class,
io.fabric8.crd.generator.approvaltests.multipleversions.v2.Multiple.class));
cases.add(new TestCase("nocyclics.sample.fabric8.io", crdVersion, parallel, NoCyclic.class));
}
}
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.annotated.api;
package io.fabric8.crd.generator.approvaltests.annotated;

import io.fabric8.kubernetes.client.CustomResource;
import io.fabric8.kubernetes.model.annotation.Group;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.annotated.api;
package io.fabric8.crd.generator.approvaltests.annotated;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.complex.api;
package io.fabric8.crd.generator.approvaltests.complex;

import io.fabric8.kubernetes.api.model.Namespaced;
import io.fabric8.kubernetes.client.CustomResource;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.complex.api;
package io.fabric8.crd.generator.approvaltests.complex;

import java.util.ArrayList;
import java.util.List;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.complex.api;
package io.fabric8.crd.generator.approvaltests.complex;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.fabric8.crd.generator.annotation.PrinterColumn;
Expand Down
Expand Up @@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.complex.api;
package io.fabric8.crd.generator.approvaltests.complex;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import io.fabric8.crd.generator.approvaltests.complex.api.k8s.ObjectMeta;
import io.fabric8.crd.generator.approvaltests.complex.api.k8s.ServiceSpec;
import io.fabric8.crd.generator.approvaltests.complex.k8s.ObjectMeta;
import io.fabric8.crd.generator.approvaltests.complex.k8s.ServiceSpec;
import io.fabric8.generator.annotation.Nullable;

@SuppressWarnings("LombokGetterMayBeUsed")
Expand Down
Expand Up @@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.complex.api;
package io.fabric8.crd.generator.approvaltests.complex;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import io.fabric8.crd.generator.approvaltests.complex.api.k8s.ObjectMeta;
import io.fabric8.crd.generator.approvaltests.complex.api.k8s.StatefulSetSpec;
import io.fabric8.crd.generator.approvaltests.complex.k8s.ObjectMeta;
import io.fabric8.crd.generator.approvaltests.complex.k8s.StatefulSetSpec;

@SuppressWarnings("LombokGetterMayBeUsed")
public class StatefulSetConfiguration {
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.complex.api.k8s;
package io.fabric8.crd.generator.approvaltests.complex.k8s;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.complex.api.k8s;
package io.fabric8.crd.generator.approvaltests.complex.k8s;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.complex.api.k8s;
package io.fabric8.crd.generator.approvaltests.complex.k8s;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.inherited.api;
package io.fabric8.crd.generator.approvaltests.inherited;

import io.fabric8.kubernetes.api.model.Namespaced;
import io.fabric8.kubernetes.client.CustomResource;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.inherited.api;
package io.fabric8.crd.generator.approvaltests.inherited;

public class BaseSpec {
private int baseInt;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.inherited.api;
package io.fabric8.crd.generator.approvaltests.inherited;

/**
* @author <a href="claprun@redhat.com">Christophe Laprun</a>
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.inherited.api;
package io.fabric8.crd.generator.approvaltests.inherited;

import io.fabric8.kubernetes.api.model.Namespaced;
import io.fabric8.kubernetes.model.annotation.Group;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.inherited.api;
package io.fabric8.crd.generator.approvaltests.inherited;

import java.util.Map;

Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.inherited.api;
package io.fabric8.crd.generator.approvaltests.inherited;

/**
* @author <a href="claprun@redhat.com">Christophe Laprun</a>
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.json.api;
package io.fabric8.crd.generator.approvaltests.json;

import io.fabric8.kubernetes.client.CustomResource;
import io.fabric8.kubernetes.model.annotation.Group;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.json.api;
package io.fabric8.crd.generator.approvaltests.json;

import com.fasterxml.jackson.databind.JsonNode;

Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.json.api;
package io.fabric8.crd.generator.approvaltests.json;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.k8svalidation.api;
package io.fabric8.crd.generator.approvaltests.k8svalidation;

import io.fabric8.generator.annotation.ValidationRule;
import io.fabric8.kubernetes.client.CustomResource;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.k8svalidation.api;
package io.fabric8.crd.generator.approvaltests.k8svalidation;

import io.fabric8.generator.annotation.Required;
import io.fabric8.generator.annotation.ValidationRule;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.k8svalidation.api;
package io.fabric8.crd.generator.approvaltests.k8svalidation;

public class K8sValidationStatus {
Integer availableReplicas;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.map.api;
package io.fabric8.crd.generator.approvaltests.map;

import io.fabric8.kubernetes.client.CustomResource;
import io.fabric8.kubernetes.model.annotation.Group;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.map.api;
package io.fabric8.crd.generator.approvaltests.map;

import java.util.HashMap;
import java.util.List;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.multipleversions.api.v1;
package io.fabric8.crd.generator.approvaltests.multipleversions.v1;

import io.fabric8.kubernetes.client.CustomResource;
import io.fabric8.kubernetes.model.annotation.Group;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.multipleversions.api.v1;
package io.fabric8.crd.generator.approvaltests.multipleversions.v1;

public class MultipleSpec {
private String v1;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.multipleversions.api.v2;
package io.fabric8.crd.generator.approvaltests.multipleversions.v2;

import io.fabric8.kubernetes.client.CustomResource;
import io.fabric8.kubernetes.model.annotation.Group;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.multipleversions.api.v2;
package io.fabric8.crd.generator.approvaltests.multipleversions.v2;

public class MultipleSpec {
private String v2;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.nocyclic.api;
package io.fabric8.crd.generator.approvaltests.nocyclic;

import io.fabric8.kubernetes.api.model.Namespaced;
import io.fabric8.kubernetes.client.CustomResource;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.nocyclic.api;
package io.fabric8.crd.generator.approvaltests.nocyclic;

public class NoCyclicSpec {
private Ref ref1;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.nocyclic.api;
package io.fabric8.crd.generator.approvaltests.nocyclic;

public class NoCyclicStatus {
private String message;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.fabric8.crd.generator.approvaltests.nocyclic.api;
package io.fabric8.crd.generator.approvaltests.nocyclic;

public class Ref {

Expand Down

0 comments on commit 8d98cb8

Please sign in to comment.