io.fabric8.kubernetes.api.model.AbstractPersistentVolumeSpecAssert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of assertions Show documentation
Show all versions of assertions Show documentation
A port of Kubernetes Assertions Library by Fabric8
package io.fabric8.kubernetes.api.model;
import org.assertj.core.api.AbstractAssert;
import org.assertj.core.api.Assertions;
import org.assertj.core.api.AssertFactory;
import com.stakater.kubernetes.assertions.NavigationListAssert;
import static org.assertj.core.api.Assertions.assertThat;
import static io.fabric8.kubernetes.assertions.internal.Assertions.assertThat;
/**
* Abstract base class for {@link PersistentVolumeSpec} specific assertions - Generated by CustomAssertionGenerator.
*/
public abstract class AbstractPersistentVolumeSpecAssert, A extends PersistentVolumeSpec> extends AbstractAssert {
/**
* Creates a new {@link AbstractPersistentVolumeSpecAssert}
to make assertions on actual PersistentVolumeSpec.
* @param actual the PersistentVolumeSpec we want to make assertions on.
*/
protected AbstractPersistentVolumeSpecAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Navigates to the property accessModes so that assertions can be done on it
*/
public NavigationListAssert accessModes() {
isNotNull();
// return the assertion for the property
AssertFactory assertFactory = new AssertFactory() {
public org.assertj.core.api.StringAssert createAssert(String t) {
return (org.assertj.core.api.StringAssert) assertThat(t);
}
};
NavigationListAssert answer = new NavigationListAssert(actual.getAccessModes(), assertFactory);
answer.describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "accessModes"));
return answer;
}
/**
* Navigates to the property additionalProperties so that assertions can be done on it
*/
public org.assertj.core.api.MapAssert additionalProperties() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.MapAssert) assertThat(actual.getAdditionalProperties()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "additionalProperties"));
}
/**
* Navigates to the property awsElasticBlockStore so that assertions can be done on it
*/
public AWSElasticBlockStoreVolumeSourceAssert awsElasticBlockStore() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (AWSElasticBlockStoreVolumeSourceAssert) assertThat(actual.getAwsElasticBlockStore()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "awsElasticBlockStore"));
}
/**
* Navigates to the property azureDisk so that assertions can be done on it
*/
public AzureDiskVolumeSourceAssert azureDisk() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (AzureDiskVolumeSourceAssert) assertThat(actual.getAzureDisk()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "azureDisk"));
}
/**
* Navigates to the property azureFile so that assertions can be done on it
*/
public AzureFileVolumeSourceAssert azureFile() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (AzureFileVolumeSourceAssert) assertThat(actual.getAzureFile()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "azureFile"));
}
/**
* Navigates to the property capacity so that assertions can be done on it
*/
public org.assertj.core.api.MapAssert capacity() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.MapAssert) assertThat(actual.getCapacity()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "capacity"));
}
/**
* Navigates to the property cephfs so that assertions can be done on it
*/
public CephFSVolumeSourceAssert cephfs() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (CephFSVolumeSourceAssert) assertThat(actual.getCephfs()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "cephfs"));
}
/**
* Navigates to the property cinder so that assertions can be done on it
*/
public CinderVolumeSourceAssert cinder() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (CinderVolumeSourceAssert) assertThat(actual.getCinder()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "cinder"));
}
/**
* Navigates to the property claimRef so that assertions can be done on it
*/
public ObjectReferenceAssert claimRef() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (ObjectReferenceAssert) assertThat(actual.getClaimRef()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "claimRef"));
}
/**
* Navigates to the property fc so that assertions can be done on it
*/
public FCVolumeSourceAssert fc() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (FCVolumeSourceAssert) assertThat(actual.getFc()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "fc"));
}
/**
* Navigates to the property flexVolume so that assertions can be done on it
*/
public FlexVolumeSourceAssert flexVolume() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (FlexVolumeSourceAssert) assertThat(actual.getFlexVolume()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "flexVolume"));
}
/**
* Navigates to the property flocker so that assertions can be done on it
*/
public FlockerVolumeSourceAssert flocker() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (FlockerVolumeSourceAssert) assertThat(actual.getFlocker()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "flocker"));
}
/**
* Navigates to the property gcePersistentDisk so that assertions can be done on it
*/
public GCEPersistentDiskVolumeSourceAssert gcePersistentDisk() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (GCEPersistentDiskVolumeSourceAssert) assertThat(actual.getGcePersistentDisk()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "gcePersistentDisk"));
}
/**
* Navigates to the property glusterfs so that assertions can be done on it
*/
public GlusterfsVolumeSourceAssert glusterfs() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (GlusterfsVolumeSourceAssert) assertThat(actual.getGlusterfs()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "glusterfs"));
}
/**
* Navigates to the property hostPath so that assertions can be done on it
*/
public HostPathVolumeSourceAssert hostPath() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (HostPathVolumeSourceAssert) assertThat(actual.getHostPath()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "hostPath"));
}
/**
* Navigates to the property iscsi so that assertions can be done on it
*/
public ISCSIVolumeSourceAssert iscsi() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (ISCSIVolumeSourceAssert) assertThat(actual.getIscsi()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "iscsi"));
}
/**
* Navigates to the property local so that assertions can be done on it
*/
public LocalVolumeSourceAssert local() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (LocalVolumeSourceAssert) assertThat(actual.getLocal()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "local"));
}
/**
* Navigates to the property nfs so that assertions can be done on it
*/
public NFSVolumeSourceAssert nfs() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (NFSVolumeSourceAssert) assertThat(actual.getNfs()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "nfs"));
}
/**
* Navigates to the property persistentVolumeReclaimPolicy so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert persistentVolumeReclaimPolicy() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getPersistentVolumeReclaimPolicy()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "persistentVolumeReclaimPolicy"));
}
/**
* Navigates to the property photonPersistentDisk so that assertions can be done on it
*/
public PhotonPersistentDiskVolumeSourceAssert photonPersistentDisk() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (PhotonPersistentDiskVolumeSourceAssert) assertThat(actual.getPhotonPersistentDisk()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "photonPersistentDisk"));
}
/**
* Navigates to the property portworxVolume so that assertions can be done on it
*/
public PortworxVolumeSourceAssert portworxVolume() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (PortworxVolumeSourceAssert) assertThat(actual.getPortworxVolume()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "portworxVolume"));
}
/**
* Navigates to the property quobyte so that assertions can be done on it
*/
public QuobyteVolumeSourceAssert quobyte() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (QuobyteVolumeSourceAssert) assertThat(actual.getQuobyte()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "quobyte"));
}
/**
* Navigates to the property rbd so that assertions can be done on it
*/
public RBDVolumeSourceAssert rbd() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (RBDVolumeSourceAssert) assertThat(actual.getRbd()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "rbd"));
}
/**
* Navigates to the property scaleIO so that assertions can be done on it
*/
public ScaleIOVolumeSourceAssert scaleIO() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (ScaleIOVolumeSourceAssert) assertThat(actual.getScaleIO()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "scaleIO"));
}
/**
* Navigates to the property storageClassName so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert storageClassName() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getStorageClassName()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "storageClassName"));
}
/**
* Navigates to the property storageos so that assertions can be done on it
*/
public StorageOSPersistentVolumeSourceAssert storageos() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (StorageOSPersistentVolumeSourceAssert) assertThat(actual.getStorageos()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "storageos"));
}
/**
* Navigates to the property vsphereVolume so that assertions can be done on it
*/
public VsphereVirtualDiskVolumeSourceAssert vsphereVolume() {
// check that actual PersistentVolumeSpec we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (VsphereVirtualDiskVolumeSourceAssert) assertThat(actual.getVsphereVolume()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "vsphereVolume"));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy