@gooddata/fixtures
v3.3.2
Published
Tool for creating projects inside GoodData platform programmatically in node.js
Maintainers
Keywords
Readme
FixtureJS
Tool for creating projects inside GoodData platform programmatically in node.js
Usage
Add package to your project
Using npm
npm install @gooddata/fixturesUsing yarn
yarn add @gooddata/fixturesImport the module inside your project
import { createFixture } from '@gooddata/fixtures';Use the
createFixture functioncreateFixture(basePath, username, password, hostname, authorizationToken, projectTitle)Use TIGER function
createTigerWorkspace(workspaceTitle, token, host, backend) createTigerWorkspaceWithPrefix(workspacePrefix, token, host, backend) setTigerWorkspaceLayout(workspaceId, token, host, backend, declarativeWorkspaceModel) setTigerWorkspaceLayoutFromFixtures(workspaceId, fixtureType, dataSource, token, host, backend) setTigerWorkspaceLayoutFromCustomFile(workspaceId, token, host, backend, dataSource, fixtureFile) createMdObjects(configPath, workspaceId, token, host, backend) deleteTigerWorkspace(workspaceId, token, host, backend) cleanupExpiredTigerWorkspaces(workspacePrefix, timeExpired, includeWS, sizeWS, token, host, backend) cleanupExpiredTigerUsers(userPrefix, timeExpired, sizeList, token, host, backend) getOrganizationLayout( token, host, backend) exportOrganizationLayout(token, host, backend, outputFile)Note For
setTigerWorkspaceLayoutFromCustomFilemethod, it's used for workspace permission test from KD repo, the fixtureFile is created from fixture's KD repository
Development
Install Node.js and Yarn with versions matching those mentioned in docker/.config file.
Install dependencies:
yarn install --frozen-lockfileRelease
See this guide
