@gooddata/fixtures

1.32.26 • Public • Published

FixtureJS

Tool for creating projects inside GoodData platform programmatically in node.js

Usage

  1. Add package to your project

    Using npm

    npm install @gooddata/fixtures

    Using yarn

    yarn add @gooddata/fixtures

  2. Import the module inside your project

    import { createFixture } from '@gooddata/fixtures';
  3. Use the createFixture function

    createFixture(basePath, username, password, hostname, authorizationToken, projectTitle)
  4. 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 setTigerWorkspaceLayoutFromCustomFile method, it's used for workspace permission test from KD repo, the fixtureFile is created from fixture's KD repository

Development

Install Node.js (node 18.17.0, npm v9.6.7) and Yarn 1.22.19.

Install dependencies:

yarn install --frozen-lockfile

Release

See this guide

Readme

Keywords

none

Package Sidebar

Install

npm i @gooddata/fixtures

Weekly Downloads

464

Version

1.32.26

License

UNLICENSED

Unpacked Size

310 MB

Total Files

154

Last publish

Collaborators

  • lucy.doan
  • khuongnguyen
  • ondrejvelisekgd
  • ondrej.kvinta
  • hkad98
  • vasek.zmrhal
  • david.zoufaly
  • hoaimy
  • amilieta
  • kirill.kazakov.gd
  • bertold8
  • mkoldus
  • bich.nguyen
  • good-andy
  • pjiranek
  • phong.nguyen
  • martin.milicka
  • hung.cao
  • rodri360
  • jaceksan
  • ivan.mjartan
  • lupko
  • tomas.kratochvil
  • stanislavhacker
  • vojtasii
  • pbenes
  • gooddata-ci
  • nikolacech
  • petrjanu
  • xmort
  • no23reason
  • matyas.kandl
  • tu.bui
  • my.duong
  • hang.ngo
  • scavnickyj
  • thao-luong
  • thuong.nguyen
  • huyen.nguyen
  • nestor_encinas
  • tmuchka
  • gdjan
  • tuan.tran_gd