public abstract class AbstractPodSecurityContextAssert<S extends AbstractPodSecurityContextAssert<S,A>,A extends io.fabric8.kubernetes.api.model.PodSecurityContext>
extends org.assertj.core.api.AbstractAssert<S,A>
PodSecurityContext
specific assertions - Generated by CustomAssertionGenerator.Modifier | Constructor and Description |
---|---|
protected |
AbstractPodSecurityContextAssert(A actual,
Class<S> selfType)
Creates a new
to make assertions on actual PodSecurityContext. |
Modifier and Type | Method and Description |
---|---|
S |
doesNotHaveSupplementalGroups(Long... supplementalGroups)
Verifies that the actual PodSecurityContext's supplementalGroups does not contain the given Long elements.
|
S |
hasAdditionalProperties(Map additionalProperties)
Verifies that the actual PodSecurityContext's additionalProperties is equal to the given one.
|
S |
hasFsGroup(Long fsGroup)
Verifies that the actual PodSecurityContext's fsGroup is equal to the given one.
|
S |
hasNoSupplementalGroups()
Verifies that the actual PodSecurityContext has no supplementalGroups.
|
S |
hasOnlySupplementalGroups(Long... supplementalGroups)
Verifies that the actual PodSecurityContext's supplementalGroups contains only the given Long elements and nothing else in whatever order.
|
S |
hasRunAsNonRoot(Boolean runAsNonRoot)
Verifies that the actual PodSecurityContext's runAsNonRoot is equal to the given one.
|
S |
hasRunAsUser(Long runAsUser)
Verifies that the actual PodSecurityContext's runAsUser is equal to the given one.
|
S |
hasSeLinuxOptions(io.fabric8.kubernetes.api.model.SELinuxOptions seLinuxOptions)
Verifies that the actual PodSecurityContext's seLinuxOptions is equal to the given one.
|
S |
hasSupplementalGroups(Long... supplementalGroups)
Verifies that the actual PodSecurityContext's supplementalGroups contains the given Long 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 AbstractPodSecurityContextAssert(A actual, Class<S> selfType)
AbstractPodSecurityContextAssert
to make assertions on actual PodSecurityContext.actual
- the PodSecurityContext we want to make assertions on.public S hasAdditionalProperties(Map additionalProperties)
additionalProperties
- the given additionalProperties to compare the actual PodSecurityContext's additionalProperties to.AssertionError
- - if the actual PodSecurityContext's additionalProperties is not equal to the given one.public S hasFsGroup(Long fsGroup)
fsGroup
- the given fsGroup to compare the actual PodSecurityContext's fsGroup to.AssertionError
- - if the actual PodSecurityContext's fsGroup is not equal to the given one.public S hasRunAsNonRoot(Boolean runAsNonRoot)
runAsNonRoot
- the given runAsNonRoot to compare the actual PodSecurityContext's runAsNonRoot to.AssertionError
- - if the actual PodSecurityContext's runAsNonRoot is not equal to the given one.public S hasRunAsUser(Long runAsUser)
runAsUser
- the given runAsUser to compare the actual PodSecurityContext's runAsUser to.AssertionError
- - if the actual PodSecurityContext's runAsUser is not equal to the given one.public S hasSeLinuxOptions(io.fabric8.kubernetes.api.model.SELinuxOptions seLinuxOptions)
seLinuxOptions
- the given seLinuxOptions to compare the actual PodSecurityContext's seLinuxOptions to.AssertionError
- - if the actual PodSecurityContext's seLinuxOptions is not equal to the given one.public S hasSupplementalGroups(Long... supplementalGroups)
supplementalGroups
- the given elements that should be contained in actual PodSecurityContext's supplementalGroups.AssertionError
- if the actual PodSecurityContext's supplementalGroups does not contain all given Long elements.public S hasOnlySupplementalGroups(Long... supplementalGroups)
supplementalGroups
- the given elements that should be contained in actual PodSecurityContext's supplementalGroups.AssertionError
- if the actual PodSecurityContext's supplementalGroups does not contain all given Long elements.public S doesNotHaveSupplementalGroups(Long... supplementalGroups)
supplementalGroups
- the given elements that should not be in actual PodSecurityContext's supplementalGroups.AssertionError
- if the actual PodSecurityContext's supplementalGroups contains any given Long elements.public S hasNoSupplementalGroups()
AssertionError
- if the actual PodSecurityContext's supplementalGroups is not empty.Copyright © 2011–2016 Red Hat. All rights reserved.