public abstract class AbstractServiceAccountAssert<S extends AbstractServiceAccountAssert<S,A>,A extends io.fabric8.kubernetes.api.model.ServiceAccount>
extends org.assertj.core.api.AbstractAssert<S,A>
ServiceAccount
specific assertions - Generated by CustomAssertionGenerator.Modifier | Constructor and Description |
---|---|
protected |
AbstractServiceAccountAssert(A actual,
Class<S> selfType)
Creates a new
to make assertions on actual ServiceAccount. |
Modifier and Type | Method and Description |
---|---|
S |
doesNotHaveImagePullSecrets(io.fabric8.kubernetes.api.model.LocalObjectReference... imagePullSecrets)
Verifies that the actual ServiceAccount's imagePullSecrets does not contain the given LocalObjectReference elements.
|
S |
doesNotHaveSecrets(io.fabric8.kubernetes.api.model.ObjectReference... secrets)
Verifies that the actual ServiceAccount's secrets does not contain the given ObjectReference elements.
|
S |
hasAdditionalProperties(Map additionalProperties)
Verifies that the actual ServiceAccount's additionalProperties is equal to the given one.
|
S |
hasApiVersion(io.fabric8.kubernetes.api.model.ServiceAccount.ApiVersion apiVersion)
Verifies that the actual ServiceAccount's apiVersion is equal to the given one.
|
S |
hasImagePullSecrets(io.fabric8.kubernetes.api.model.LocalObjectReference... imagePullSecrets)
Verifies that the actual ServiceAccount's imagePullSecrets contains the given LocalObjectReference elements.
|
S |
hasKind(String kind)
Verifies that the actual ServiceAccount's kind is equal to the given one.
|
S |
hasMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)
Verifies that the actual ServiceAccount's metadata is equal to the given one.
|
S |
hasNoImagePullSecrets()
Verifies that the actual ServiceAccount has no imagePullSecrets.
|
S |
hasNoSecrets()
Verifies that the actual ServiceAccount has no secrets.
|
S |
hasOnlyImagePullSecrets(io.fabric8.kubernetes.api.model.LocalObjectReference... imagePullSecrets)
Verifies that the actual ServiceAccount's imagePullSecrets contains only the given LocalObjectReference elements and nothing else in whatever order.
|
S |
hasOnlySecrets(io.fabric8.kubernetes.api.model.ObjectReference... secrets)
Verifies that the actual ServiceAccount's secrets contains only the given ObjectReference elements and nothing else in whatever order.
|
S |
hasSecrets(io.fabric8.kubernetes.api.model.ObjectReference... secrets)
Verifies that the actual ServiceAccount's secrets contains the given ObjectReference elements.
|
as, as, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage, usingComparator, usingDefaultComparator
protected AbstractServiceAccountAssert(A actual, Class<S> selfType)
AbstractServiceAccountAssert
to make assertions on actual ServiceAccount.actual
- the ServiceAccount we want to make assertions on.public S hasAdditionalProperties(Map additionalProperties)
additionalProperties
- the given additionalProperties to compare the actual ServiceAccount's additionalProperties to.AssertionError
- - if the actual ServiceAccount's additionalProperties is not equal to the given one.public S hasApiVersion(io.fabric8.kubernetes.api.model.ServiceAccount.ApiVersion apiVersion)
apiVersion
- the given apiVersion to compare the actual ServiceAccount's apiVersion to.AssertionError
- - if the actual ServiceAccount's apiVersion is not equal to the given one.public S hasImagePullSecrets(io.fabric8.kubernetes.api.model.LocalObjectReference... imagePullSecrets)
imagePullSecrets
- the given elements that should be contained in actual ServiceAccount's imagePullSecrets.AssertionError
- if the actual ServiceAccount's imagePullSecrets does not contain all given LocalObjectReference elements.public S hasOnlyImagePullSecrets(io.fabric8.kubernetes.api.model.LocalObjectReference... imagePullSecrets)
imagePullSecrets
- the given elements that should be contained in actual ServiceAccount's imagePullSecrets.AssertionError
- if the actual ServiceAccount's imagePullSecrets does not contain all given LocalObjectReference elements.public S doesNotHaveImagePullSecrets(io.fabric8.kubernetes.api.model.LocalObjectReference... imagePullSecrets)
imagePullSecrets
- the given elements that should not be in actual ServiceAccount's imagePullSecrets.AssertionError
- if the actual ServiceAccount's imagePullSecrets contains any given LocalObjectReference elements.public S hasNoImagePullSecrets()
AssertionError
- if the actual ServiceAccount's imagePullSecrets is not empty.public S hasKind(String kind)
kind
- the given kind to compare the actual ServiceAccount's kind to.AssertionError
- - if the actual ServiceAccount's kind is not equal to the given one.public S hasMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)
metadata
- the given metadata to compare the actual ServiceAccount's metadata to.AssertionError
- - if the actual ServiceAccount's metadata is not equal to the given one.public S hasSecrets(io.fabric8.kubernetes.api.model.ObjectReference... secrets)
secrets
- the given elements that should be contained in actual ServiceAccount's secrets.AssertionError
- if the actual ServiceAccount's secrets does not contain all given ObjectReference elements.public S hasOnlySecrets(io.fabric8.kubernetes.api.model.ObjectReference... secrets)
secrets
- the given elements that should be contained in actual ServiceAccount's secrets.AssertionError
- if the actual ServiceAccount's secrets does not contain all given ObjectReference elements.public S doesNotHaveSecrets(io.fabric8.kubernetes.api.model.ObjectReference... secrets)
secrets
- the given elements that should not be in actual ServiceAccount's secrets.AssertionError
- if the actual ServiceAccount's secrets contains any given ObjectReference elements.public S hasNoSecrets()
AssertionError
- if the actual ServiceAccount's secrets is not empty.Copyright © 2011–2016 Red Hat. All rights reserved.