Sha256: 81442a237b73d86fde5cda4393e4579043e73cdec856fbd1cb9e57b53b997919

Contents?: true

Size: 1.27 KB

Versions: 3

Compression:

Stored size: 1.27 KB

Contents

import { noop } from 'patternfly-react';

export const accounts = {
  Account1: {
    id: 1,
    upload_report_status: 'running',
    generate_report_status: 'running',
  },
  Account2: {
    id: 2,
    upload_report_status: 'unknown',
    generate_report_status: 'failure',
  },
  Account3: {
    id: 3,
    upload_report_status: 'success',
    generate_report_status: 'running',
  },
};

export const accountIDs = Object.keys(accounts);

export const API_SUCCESS_RESPONSE = accounts;

export const pollingProcessID = 0;

export const error = 'some-error';

export const accountID = 'user@redhat.com';

export const processStatusName = 'upload_report_status';

export const autoUploadEnabled = true;

export const hostObfuscationEnabled = true;

export const ipsObfuscationEnabled = true;

export const filterTerm = 'some_filter';

export const cloudToken = 'some-cloud-token';

export const excludePackages = false;

export const props = {
  accounts,
  fetchAccountsStatus: noop,
  startAccountStatusPolling: noop,
  stopAccountStatusPolling: noop,
  pollingProcessID,
};

export const pollingResponse = {
  accounts,
  autoUploadEnabled,
  hostObfuscationEnabled,
  ipsObfuscationEnabled,
  cloudToken,
  excludePackages,
};

export const fetchAccountsStatusResponse = {
  data: pollingResponse,
};

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_rh_cloud-2.0.18.1 webpack/ForemanInventoryUpload/Components/AccountList/AccountList.fixtures.js
foreman_rh_cloud-1.0.18 webpack/ForemanInventoryUpload/Components/AccountList/AccountList.fixtures.js
foreman_rh_cloud-2.0.18 webpack/ForemanInventoryUpload/Components/AccountList/AccountList.fixtures.js