public abstract class AbstractSecurityContextConstraintsAssert<S extends AbstractSecurityContextConstraintsAssert<S,A>,A extends io.fabric8.kubernetes.api.model.SecurityContextConstraints>
extends org.assertj.core.api.AbstractAssert<S,A>
SecurityContextConstraints
specific assertions - Generated by CustomAssertionGenerator.Modifier | Constructor and Description |
---|---|
protected |
AbstractSecurityContextConstraintsAssert(A actual,
Class<S> selfType)
Creates a new
to make assertions on actual SecurityContextConstraints. |
Modifier and Type | Method and Description |
---|---|
S |
hasAdditionalProperties(Map additionalProperties)
Verifies that the actual SecurityContextConstraints's additionalProperties is equal to the given one.
|
S |
hasAllowedCapabilities(String... allowedCapabilities)
Verifies that the actual SecurityContextConstraints's allowedCapabilities contains the given String elements.
|
S |
hasAllowHostDirVolumePlugin(Boolean allowHostDirVolumePlugin)
Verifies that the actual SecurityContextConstraints's allowHostDirVolumePlugin is equal to the given one.
|
S |
hasAllowHostNetwork(Boolean allowHostNetwork)
Verifies that the actual SecurityContextConstraints's allowHostNetwork is equal to the given one.
|
S |
hasAllowHostPorts(Boolean allowHostPorts)
Verifies that the actual SecurityContextConstraints's allowHostPorts is equal to the given one.
|
S |
hasAllowPrivilegedContainer(Boolean allowPrivilegedContainer)
Verifies that the actual SecurityContextConstraints's allowPrivilegedContainer is equal to the given one.
|
S |
hasApiVersion(io.fabric8.kubernetes.api.model.SecurityContextConstraints.ApiVersion apiVersion)
Verifies that the actual SecurityContextConstraints's apiVersion is equal to the given one.
|
S |
hasGroups(String... groups)
Verifies that the actual SecurityContextConstraints's groups contains the given String elements.
|
S |
hasKind(String kind)
Verifies that the actual SecurityContextConstraints's kind is equal to the given one.
|
S |
hasMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)
Verifies that the actual SecurityContextConstraints's metadata is equal to the given one.
|
S |
hasNoAllowedCapabilities()
Verifies that the actual SecurityContextConstraints has no allowedCapabilities.
|
S |
hasNoGroups()
Verifies that the actual SecurityContextConstraints has no groups.
|
S |
hasNoUsers()
Verifies that the actual SecurityContextConstraints has no users.
|
S |
hasRunAsUser(io.fabric8.kubernetes.api.model.RunAsUserStrategyOptions runAsUser)
Verifies that the actual SecurityContextConstraints's runAsUser is equal to the given one.
|
S |
hasSeLinuxContext(io.fabric8.kubernetes.api.model.SELinuxContextStrategyOptions seLinuxContext)
Verifies that the actual SecurityContextConstraints's seLinuxContext is equal to the given one.
|
S |
hasUsers(String... users)
Verifies that the actual SecurityContextConstraints's users contains the given String 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 AbstractSecurityContextConstraintsAssert(A actual, Class<S> selfType)
AbstractSecurityContextConstraintsAssert
to make assertions on actual SecurityContextConstraints.actual
- the SecurityContextConstraints we want to make assertions on.public S hasAdditionalProperties(Map additionalProperties)
additionalProperties
- the given additionalProperties to compare the actual SecurityContextConstraints's additionalProperties to.AssertionError
- - if the actual SecurityContextConstraints's additionalProperties is not equal to the given one.public S hasAllowHostDirVolumePlugin(Boolean allowHostDirVolumePlugin)
allowHostDirVolumePlugin
- the given allowHostDirVolumePlugin to compare the actual SecurityContextConstraints's allowHostDirVolumePlugin to.AssertionError
- - if the actual SecurityContextConstraints's allowHostDirVolumePlugin is not equal to the given one.public S hasAllowHostNetwork(Boolean allowHostNetwork)
allowHostNetwork
- the given allowHostNetwork to compare the actual SecurityContextConstraints's allowHostNetwork to.AssertionError
- - if the actual SecurityContextConstraints's allowHostNetwork is not equal to the given one.public S hasAllowHostPorts(Boolean allowHostPorts)
allowHostPorts
- the given allowHostPorts to compare the actual SecurityContextConstraints's allowHostPorts to.AssertionError
- - if the actual SecurityContextConstraints's allowHostPorts is not equal to the given one.public S hasAllowPrivilegedContainer(Boolean allowPrivilegedContainer)
allowPrivilegedContainer
- the given allowPrivilegedContainer to compare the actual SecurityContextConstraints's allowPrivilegedContainer to.AssertionError
- - if the actual SecurityContextConstraints's allowPrivilegedContainer is not equal to the given one.public S hasAllowedCapabilities(String... allowedCapabilities)
allowedCapabilities
- the given elements that should be contained in actual SecurityContextConstraints's allowedCapabilities.AssertionError
- if the actual SecurityContextConstraints's allowedCapabilities does not contain all given String elements.public S hasNoAllowedCapabilities()
AssertionError
- if the actual SecurityContextConstraints's allowedCapabilities is not empty.public S hasApiVersion(io.fabric8.kubernetes.api.model.SecurityContextConstraints.ApiVersion apiVersion)
apiVersion
- the given apiVersion to compare the actual SecurityContextConstraints's apiVersion to.AssertionError
- - if the actual SecurityContextConstraints's apiVersion is not equal to the given one.public S hasGroups(String... groups)
groups
- the given elements that should be contained in actual SecurityContextConstraints's groups.AssertionError
- if the actual SecurityContextConstraints's groups does not contain all given String elements.public S hasNoGroups()
AssertionError
- if the actual SecurityContextConstraints's groups is not empty.public S hasKind(String kind)
kind
- the given kind to compare the actual SecurityContextConstraints's kind to.AssertionError
- - if the actual SecurityContextConstraints'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 SecurityContextConstraints's metadata to.AssertionError
- - if the actual SecurityContextConstraints's metadata is not equal to the given one.public S hasRunAsUser(io.fabric8.kubernetes.api.model.RunAsUserStrategyOptions runAsUser)
runAsUser
- the given runAsUser to compare the actual SecurityContextConstraints's runAsUser to.AssertionError
- - if the actual SecurityContextConstraints's runAsUser is not equal to the given one.public S hasSeLinuxContext(io.fabric8.kubernetes.api.model.SELinuxContextStrategyOptions seLinuxContext)
seLinuxContext
- the given seLinuxContext to compare the actual SecurityContextConstraints's seLinuxContext to.AssertionError
- - if the actual SecurityContextConstraints's seLinuxContext is not equal to the given one.public S hasUsers(String... users)
users
- the given elements that should be contained in actual SecurityContextConstraints's users.AssertionError
- if the actual SecurityContextConstraints's users does not contain all given String elements.public S hasNoUsers()
AssertionError
- if the actual SecurityContextConstraints's users is not empty.Copyright © 2011–2015 Red Hat. All rights reserved.