io.fabric8.kubernetes.api.model.AbstractVolumeAssert 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 Volume} specific assertions - Generated by CustomAssertionGenerator.
*/
public abstract class AbstractVolumeAssert, A extends Volume> extends AbstractAssert {
/**
* Creates a new {@link AbstractVolumeAssert}
to make assertions on actual Volume.
* @param actual the Volume we want to make assertions on.
*/
protected AbstractVolumeAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Navigates to the property additionalProperties so that assertions can be done on it
*/
public org.assertj.core.api.MapAssert additionalProperties() {
// check that actual Volume 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 Volume 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 Volume 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 Volume 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 cephfs so that assertions can be done on it
*/
public CephFSVolumeSourceAssert cephfs() {
// check that actual Volume 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 Volume 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 configMap so that assertions can be done on it
*/
public ConfigMapVolumeSourceAssert configMap() {
// check that actual Volume we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (ConfigMapVolumeSourceAssert) assertThat(actual.getConfigMap()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "configMap"));
}
/**
* Navigates to the property downwardAPI so that assertions can be done on it
*/
public DownwardAPIVolumeSourceAssert downwardAPI() {
// check that actual Volume we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (DownwardAPIVolumeSourceAssert) assertThat(actual.getDownwardAPI()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "downwardAPI"));
}
/**
* Navigates to the property emptyDir so that assertions can be done on it
*/
public EmptyDirVolumeSourceAssert emptyDir() {
// check that actual Volume we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (EmptyDirVolumeSourceAssert) assertThat(actual.getEmptyDir()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "emptyDir"));
}
/**
* Navigates to the property fc so that assertions can be done on it
*/
public FCVolumeSourceAssert fc() {
// check that actual Volume 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 Volume 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 Volume 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 Volume 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 gitRepo so that assertions can be done on it
*/
public GitRepoVolumeSourceAssert gitRepo() {
// check that actual Volume we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (GitRepoVolumeSourceAssert) assertThat(actual.getGitRepo()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "gitRepo"));
}
/**
* Navigates to the property glusterfs so that assertions can be done on it
*/
public GlusterfsVolumeSourceAssert glusterfs() {
// check that actual Volume 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 Volume 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 Volume 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 name so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert name() {
// check that actual Volume we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getName()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "name"));
}
/**
* Navigates to the property nfs so that assertions can be done on it
*/
public NFSVolumeSourceAssert nfs() {
// check that actual Volume 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 persistentVolumeClaim so that assertions can be done on it
*/
public PersistentVolumeClaimVolumeSourceAssert persistentVolumeClaim() {
// check that actual Volume we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (PersistentVolumeClaimVolumeSourceAssert) assertThat(actual.getPersistentVolumeClaim()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "persistentVolumeClaim"));
}
/**
* Navigates to the property photonPersistentDisk so that assertions can be done on it
*/
public PhotonPersistentDiskVolumeSourceAssert photonPersistentDisk() {
// check that actual Volume 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 Volume 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 projected so that assertions can be done on it
*/
public ProjectedVolumeSourceAssert projected() {
// check that actual Volume we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (ProjectedVolumeSourceAssert) assertThat(actual.getProjected()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "projected"));
}
/**
* Navigates to the property quobyte so that assertions can be done on it
*/
public QuobyteVolumeSourceAssert quobyte() {
// check that actual Volume 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 Volume 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 Volume 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 secret so that assertions can be done on it
*/
public SecretVolumeSourceAssert secret() {
// check that actual Volume we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (SecretVolumeSourceAssert) assertThat(actual.getSecret()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "secret"));
}
/**
* Navigates to the property storageos so that assertions can be done on it
*/
public StorageOSVolumeSourceAssert storageos() {
// check that actual Volume we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (StorageOSVolumeSourceAssert) 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 Volume 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 - 2025 Weber Informatics LLC | Privacy Policy