Package org.projectnessie.jaxrs.tests
Class BaseTestNessieRest
- java.lang.Object
-
- org.projectnessie.jaxrs.tests.BaseTestNessieApi
-
- org.projectnessie.jaxrs.tests.BaseTestNessieRest
-
public abstract class BaseTestNessieRest extends BaseTestNessieApi
REST specific tests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classBaseTestNessieRest.RelativeReferences
-
Field Summary
Fields Modifier and Type Field Description protected java.net.URIclientUri-
Fields inherited from class org.projectnessie.jaxrs.tests.BaseTestNessieApi
EMPTY, soft
-
-
Constructor Summary
Constructors Constructor Description BaseTestNessieRest()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidassignAndDeleteRefWithoutType()voidenableLogging()voidgetRefByNameHashNotAllowed()protected abstract booleanisNewModel()voidreferenceTypeInvalidValue()protected static io.restassured.specification.RequestSpecificationrest()voidtestCommitMetaAttributes()voidtestGetContent(java.lang.String ns, java.lang.String name)voidtestGetUnknownContentType()voidtestInvalidTag(java.lang.String invalidTagName)voidtestNotFoundUrls(java.lang.String path)voidtestNullMergePayload()voidtestNullTagPayload()voidtestReferenceConflictDetailsV1()voidtestReferenceConflictDetailsV2()-
Methods inherited from class org.projectnessie.jaxrs.tests.BaseTestNessieApi
allReferences, api, apiV2, commitLog, commitLogForNamelessReference, commitMergeTransplant, commitParents, config, contents, contentsOnDefaultBranch, createReference, diff, diffWithLimitInFirstPage, dummyPut, entries, entriesWithLimitInFirstPage, entryContentId, fetchEntriesByNamelessReference, fullPagingSupport, isV2, mergeTransplantDryRunWithConflictInResult, namespaces, pagingSupported, prepCommit, referenceHistory, references, referencesUntyped, referencesWithLimitInFirstPage, relativeCommitLocations, specVersion, tearDown, testDiffByNamelessReference, testErrorsV2
-
-
-
-
Method Detail
-
isNewModel
protected abstract boolean isNewModel()
-
enableLogging
@BeforeEach public void enableLogging()
-
rest
protected static io.restassured.specification.RequestSpecification rest()
-
testNotFoundUrls
@ParameterizedTest @ValueSource(strings={"trees/not-there-using","contents/not-there-using","something/not-there-using",""}) public void testNotFoundUrls(java.lang.String path)
-
testReferenceConflictDetailsV1
@Test public void testReferenceConflictDetailsV1()
-
testReferenceConflictDetailsV2
@Test public void testReferenceConflictDetailsV2()
-
testGetContent
@ParameterizedTest @CsvSource({"simple,name","simple,dotted.txt","dotted.prefix,name","dotted.prefix,dotted.txt"}) public void testGetContent(java.lang.String ns, java.lang.String name) throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
testGetUnknownContentType
@Test public void testGetUnknownContentType()
-
testNullMergePayload
@Test public void testNullMergePayload()
-
testNullTagPayload
@Test public void testNullTagPayload()
-
testInvalidTag
@ParameterizedTest @ValueSource(strings={"","abc\'",".foo","abc\'def\'..\'blah","abc\'de..blah","abc\'de@{blah"}) public void testInvalidTag(java.lang.String invalidTagName)
-
testCommitMetaAttributes
@Test public void testCommitMetaAttributes()
-
referenceTypeInvalidValue
@Test public void referenceTypeInvalidValue()
-
getRefByNameHashNotAllowed
@Test public void getRefByNameHashNotAllowed()
-
assignAndDeleteRefWithoutType
@Test public void assignAndDeleteRefWithoutType() throws java.lang.Exception- Throws:
java.lang.Exception
-
-