Sha256: 6347a066c4a493fdbfef2962066c1dcd1a48a1ea8101990d13c08f38f3b2247a

Contents?: true

Size: 812 Bytes

Versions: 65

Compression:

Stored size: 812 Bytes

Contents

import Immutable from 'seamless-immutable';

import { ansibleRolesLong } from './ansibleRolesData.fixtures';

export const successPayload = {
  page: 1,
  perPage: 5,
  subtotal: 11,
  results: ansibleRolesLong,
  initialAssignedRoles: ansibleRolesLong.slice(3, 6),
  inheritedRoleIds: [4],
};

export const successState = Immutable({
  loading: false,
  itemCount: 11,
  pagination: {
    page: 1,
    perPage: 5,
  },
  assignedRoles: [
    { ...ansibleRolesLong[3], inherited: true },
    ...ansibleRolesLong.slice(4, 6),
  ],
  results: ansibleRolesLong,
  toDestroyRoles: [],
  assignedPagination: {
    page: 1,
    perPage: 20,
  },
  error: { errorMsg: '', status: '', statusText: '' },
});

export const errorPayload = {
  errorMsg: 'Failed to fetch Ansible Roles from server.',
  statusText: '500',
};

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
foreman_ansible-6.3.2 webpack/components/AnsibleRolesSwitcher/__fixtures__/ansibleRolesSwitcherReducer.fixtures.js
foreman_ansible-6.3.1 webpack/components/AnsibleRolesSwitcher/__fixtures__/ansibleRolesSwitcherReducer.fixtures.js
foreman_ansible-6.4.1 webpack/components/AnsibleRolesSwitcher/__fixtures__/ansibleRolesSwitcherReducer.fixtures.js
foreman_ansible-6.4.0 webpack/components/AnsibleRolesSwitcher/__fixtures__/ansibleRolesSwitcherReducer.fixtures.js
foreman_ansible-6.3.0 webpack/components/AnsibleRolesSwitcher/__fixtures__/ansibleRolesSwitcherReducer.fixtures.js