|
void | PUT_Attribute_Null< TProperty > (Expression< Func< T, TProperty > > PropertyExpression) |
| Ensure that when doing a PUT with the specified attribute null, the original value of the attribute is unchanged.
|
|
void | PUT_ListAttribute_Duplicates< TItem, TValue > (Expression< Func< T, ICollection< TItem > > > PropertyExpression, TValue valueToDuplicate, bool shouldSucceed) |
|
void | PUT_ListAttribute_Empty< TItem > (Expression< Func< T, ICollection< TItem > > > PropertyExpression, bool? shouldSucceed=null) |
|
void | PUT_Reference_EmptyStringId< TRefType > (Expression< Func< T, IReference< TRefType > > > PropertyExpression) |
| Modifies a reference with a empty string Id and verifies the correct error is returned.
|
|
void | PUT_Reference_NonExistantId< TRefType > (Expression< Func< T, IReference< TRefType > > > PropertyExpression) |
| Modifies a reference with a non-existent Id and verifies the correct error is returned.
|
|
void | PUT_Reference_NullId< TRefType > (Expression< Func< T, IReference< TRefType > > > PropertyExpression) |
| Modifies a reference with a null Id and verifies the correct error is returned.
|
|
void | PUT_ReferenceList_NonExistantId< TRefType > (Expression< Func< T, ICollection< IReference< TRefType > > > > PropertyExpression) |
| Modifies a reference list with a non-existent Id and verifies the correct error is returned.
|
|
void | PUT_StringAttribute_Empty (Expression< Func< T, string > > PropertyExpression, bool? shouldSucceed=null) |
| Ensure that when doing a PUT with the specified attribute set to an empty string, the PUT succeeds or fails with the correct error.
|
|
T | PUT_WithChanges_Fails (Func< T, T > modifyTestResource) |
| POST a valid resource, then test doing a PUT on the resource after modifying it in some way, and assert that the PUT fails due to a "BadRequest" error.
|
|
virtual T | PUT_WithChanges_Succeeds (Func< T, T > modifyTestResource) |
| POST a valid resource, then test doing a PUT on the resource after modifying it in some way, and assert that the PUT succeeds.
|
|
T | PUT_WithValue< TProperty > (Expression< Func< T, TProperty > > PropertyExpression, TProperty newValue, bool shouldSucceed) |
| POST a valid resource, then test doing a PUT on the resource after changing a specified attribute.
|
|
void | Test_Agent_POST_Hostname_Blank () |
|
void | Test_Agent_POST_Hostname_Null () |
|
void | Test_Agent_PUT_Hostname () |
|
void | Test_Agent_PUT_Hostname_Blank () |
|
void | Test_Agent_PUT_Hostname_Null () |
|
virtual void | Test_Resource_PUT_CreatedAndModified () |
|
virtual void | Test_Resource_PUT_Description () |
|
virtual void | Test_Resource_PUT_Description_Blank () |
|
virtual void | Test_Resource_PUT_Description_Null () |
|
virtual void | Test_Resource_PUT_Metadata_Empty () |
|
virtual void | Test_Resource_PUT_Metadata_InvalidValues () |
|
virtual void | Test_Resource_PUT_Metadata_MixedTypes () |
|
virtual void | Test_Resource_PUT_Metadata_Null () |
|
virtual void | Test_Resource_PUT_NoChanges () |
|
Definition at line 25 of file Test_Agent.cs.
Ensure that when doing a PUT with the specified attribute null, the original value of the attribute is unchanged.
As reported in BUG ARE-2618, there are several inconsistencies with how 'null' (or omitted) properties are handled by the server. Sometimes it "resets" them to their default value, and sometimes it leaves them unchanged. TODO: Change this test to check the behaviour when the property is initially set to some value other than the default value - so that we can see whether the server property is actually leaving the current value alone, or resetting it to its default.
- Template Parameters
-
TProperty | The type of the property being modified. |
- Parameters
-
PropertyExpression | An expression indicating the T property to modify. |
- Exceptions
-
ArgumentException | Can only be used on properties whose default type is null. |
Definition at line 176 of file BaseMutableResourceTestSuite.cs.