Thetype exposes the following members.
Returns the Couchbase Bucket to be used to interact with Couchbase.
Returns the running container's short ID or null if the container has not been started.(Inherited from ContainerFixture.)
Returns the running container's name or null if the container has not been started.(Inherited from ContainerFixture.)
Returns true if the fixture has been initialized.(Inherited from TestFixture.)
Returns the JsonClient.
Returns the Couchbase password.
Returns the CouchbaseSettings used to connect to the bucket.
Used by unit test classes to persist arbitrary name/value information across individual unit tests.(Inherited from TestFixture.)
Returns the Couchbase username.
Removes all data and indexes from the database bucket and then recreates the primary index if an index was specified when the fixture was started.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.(Inherited from TestFixture.)
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Serves as the default hash function.(Inherited from Object.)
Gets the Type of the current instance.(Inherited from Object.)
(Inherited from TestFixture.)
Called when an already started fixture is being restarted. This provides the fixture an opportunity to do some custom initialization. This base method does nothing.
This method completely resets the fixture by removing the Couchbase container from Docker. Use Clear if you just want to clear the database.(Overrides ContainerFixtureReset.)
Restarts the container. This is a handy way to deploy a fresh container with the same properties while running unit tests.(Inherited from ContainerFixture.)
Starts the fixture if it hasn't already been started including invoking the optional Action when the first time Start(Action) is called for a fixture instance.(Inherited from TestFixture.)
|Start(String, String, String, IEnumerableString, IEnumerableString, Boolean, Boolean, ContainerLimits)|
(Inherited from ContainerFixture.)
Starts the container.
|Start(CouchbaseSettings, String, String, String, String, String, Boolean, String, ContainerLimits)|
Starts a Couchbase container if it's not already running. You'll generally want to call this in your test class constructor instead of Start(Action).
|StartAsComposed(String, String, String, IEnumerableString, IEnumerableString, Boolean, Boolean, ContainerLimits)|
Used to start the fixture within a ComposedFixture.(Inherited from ContainerFixture.)
|StartAsComposed(CouchbaseSettings, String, String, String, String, String, Boolean, String, ContainerLimits)|
Used to start the fixture within a ComposedFixture.
Returns a string that represents the current object.(Inherited from Object.)
IMPORTANT: The base Neon TestFixture implementation DOES NOT support parallel test execution because fixtures may impact global machine state like starting a Docker container, modifying the local DNS hosts file, or configuring a test database.
You should explicitly disable parallel execution in all test assemblies that rely on test fixtures by adding a C# file called AssemblyInfo.cs with:
[assembly: CollectionBehavior(DisableTestParallelization = true, MaxParallelThreads = 1)]
This fixture assumes that Couchbase is not currently running on the local workstation or as a container named cb-test. You may see port conflict errors if either of these conditions are not true.
A somewhat safer but slower alternative, is to use the DockerFixture instead and add as a subfixture. The advantage is that DockerFixture will ensure that all (potentially conflicting) containers are removed before the Couchbase fixture is started.