Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteObject ¶
DeleteObject deletes obj from c. Succeeds on success or if obj already did not exist in c. Fails the test if calling Delete() returns an error other than NotFound.
Does not ensure the object is actually deleted, just sends a delete request via the passed Client. See #1596 for why this is non-trivial to guarantee.
Tests should not rely on objects being deleted from the API Server which were used in other tests; they should instead use unique object names and namespaces to eliminate cross-talk. More explicitly: if you are writing a test which must make use of this cleanup function, you are risking cross-talk between tests and should instead modify your test.
func NewLogger ¶
NewLogger creates a logger specifically for t which logs directly to the test. Use test-specific loggers so that when tests fail, only the log messages from the offending test are printed rather than log messages for every test in the package.