skipcheck

TM1 Testcontainers · Docs · Where TM1 comes from

Tm1Seed

using Skipcheck.Tm1.Testcontainers;

Used in the walkthrough Test your code against a real TM1.

Objects the image puts into an empty database on first start (its TM1_SEED setting). The samples come from the TM1 install itself, so they're only available where the install includes them.

A server seeded with IBM's SData sample:

var source = Tm1Source.Discover() ?? throw new InvalidOperationException("Set TM1_HOME_DIR or TM1_BUNDLE_DIR");
// SData's login is admin / apple, and the server must be this version
await using var server = new Tm1ServerContainer(source).WithSeed(Tm1Seed.Sdata).WithExpectedVersion(Tm1Version.Parse("11.8.03500.6"));
await server.StartAsync();
// Declared after the server, so the client closes before the container stops
await using var tm1 = Tm1Client.Builder().BaseUrl(server.RestUrl).BasicAuth(server.Username, server.Password).Build();
// SData's cubes, such as SalesCube
return await tm1.Cubes.ModelCubesAsync(ODataQuery.None().Select(Cube.Fields.Name)).Select(cube => cube.Name!).ToListAsync();

Members

Empty staticAn empty database; admin with no password.
Sdata staticIBM's SData sample; admin / apple.

Empty

static
Empty

An empty database; admin with no password.

Sdata

static
Sdata

IBM's SData sample; admin / apple.