public class KubernetesCrudDispatcher extends io.fabric8.mockwebserver.crud.CrudDispatcher implements KubernetesCrudPersistence, CustomResourceAware
attributeExtractor, context, map, responseComposerCREATION_TIMESTAMP, GENERATION, METADATA, RESOURCE_VERSION, UID| Constructor and Description |
|---|
KubernetesCrudDispatcher() |
KubernetesCrudDispatcher(List<io.fabric8.kubernetes.client.dsl.base.CustomResourceDefinitionContext> crdContexts) |
| Modifier and Type | Method and Description |
|---|---|
void |
expectCustomResource(io.fabric8.kubernetes.client.dsl.base.CustomResourceDefinitionContext rdc) |
Map.Entry<io.fabric8.mockwebserver.crud.AttributeSet,String> |
findResource(io.fabric8.mockwebserver.crud.AttributeSet attributes) |
io.fabric8.mockwebserver.crud.AttributeSet |
getKey(String path) |
okhttp3.mockwebserver.MockResponse |
handleCreate(okhttp3.mockwebserver.RecordedRequest request)
Adds the specified object to the in-memory db.
|
okhttp3.mockwebserver.MockResponse |
handleDelete(String path)
Performs a delete for the corresponding object from the in-memory db.
|
okhttp3.mockwebserver.MockResponse |
handleGet(String path)
Performs a get for the corresponding object from the in-memory db.
|
okhttp3.mockwebserver.MockResponse |
handlePatch(okhttp3.mockwebserver.RecordedRequest request)
Patches the specified object to the in-memory db.
|
okhttp3.mockwebserver.MockResponse |
handleUpdate(okhttp3.mockwebserver.RecordedRequest request)
Updates the specified object to the in-memory db.
|
okhttp3.mockwebserver.MockResponse |
handleWatch(String path)
Watch the resource list on `path` endpoint
|
boolean |
isStatusSubresourceEnabledForResource(String path) |
void |
processEvent(String path,
io.fabric8.mockwebserver.crud.AttributeSet pathAttributes,
io.fabric8.mockwebserver.crud.AttributeSet oldAttributes,
String newState) |
long |
requestResourceVersion() |
void |
reset()
return the resource to its initial state
|
dispatch, getAttributeExtractor, getMap, getResponseComposer, handleCreate, handlePatch, handleUpdateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasNode, asNode, merge, preserveMetadata, shouldIncreaseGeneration, shouldIncreaseGeneration, touchGeneration, touchResourceVersionpublic KubernetesCrudDispatcher()
public KubernetesCrudDispatcher(List<io.fabric8.kubernetes.client.dsl.base.CustomResourceDefinitionContext> crdContexts)
public okhttp3.mockwebserver.MockResponse handleCreate(okhttp3.mockwebserver.RecordedRequest request)
handleCreate in class io.fabric8.mockwebserver.crud.CrudDispatcherrequest - RecordedRequest information.public okhttp3.mockwebserver.MockResponse handleUpdate(okhttp3.mockwebserver.RecordedRequest request)
handleUpdate in class io.fabric8.mockwebserver.crud.CrudDispatcherrequest - RecordedRequest information.public okhttp3.mockwebserver.MockResponse handleGet(String path)
handleGet in class io.fabric8.mockwebserver.crud.CrudDispatcherpath - The path.MockResponsepublic okhttp3.mockwebserver.MockResponse handlePatch(okhttp3.mockwebserver.RecordedRequest request)
handlePatch in class io.fabric8.mockwebserver.crud.CrudDispatcherMockResponsepublic okhttp3.mockwebserver.MockResponse handleDelete(String path)
handleDelete in class io.fabric8.mockwebserver.crud.CrudDispatcherpath - StringMockResponsepublic long requestResourceVersion()
requestResourceVersion in interface KubernetesCrudPersistencepublic io.fabric8.mockwebserver.crud.AttributeSet getKey(String path)
getKey in interface KubernetesCrudPersistencepublic Map.Entry<io.fabric8.mockwebserver.crud.AttributeSet,String> findResource(io.fabric8.mockwebserver.crud.AttributeSet attributes)
findResource in interface KubernetesCrudPersistencepublic boolean isStatusSubresourceEnabledForResource(String path)
isStatusSubresourceEnabledForResource in interface KubernetesCrudPersistencepublic void processEvent(String path, io.fabric8.mockwebserver.crud.AttributeSet pathAttributes, io.fabric8.mockwebserver.crud.AttributeSet oldAttributes, String newState)
processEvent in interface KubernetesCrudPersistencepublic okhttp3.mockwebserver.MockResponse handleWatch(String path)
path - StringMockResponsepublic void reset()
Resetablepublic void expectCustomResource(io.fabric8.kubernetes.client.dsl.base.CustomResourceDefinitionContext rdc)
expectCustomResource in interface CustomResourceAwareCopyright © 2015–2023 Red Hat. All rights reserved.