Sha256: 6f7a2f93788e854bd6fb8692161201f797e1883fed73cbf2325fd2661a081995

Contents?: true

Size: 1.86 KB

Versions: 6

Compression:

Stored size: 1.86 KB

Contents

export const exportTemplates = [
  {
    name: 'random template',
    templateFile: 'random_template.erb',
    additionalErrors: null,
    errors: {},
    snippet: true,
    locked: true,
    className: 'JobTemplate',
    humanizedClassName: 'Job Template',
  },
  {
    name: 'CoreOS default',
    templateFile: 'coreos_default.erb',
    additionalErrors: null,
    errors: {},
    snippet: false,
    locked: false,
    className: 'Ptable',
    humanizedClassName: 'Ptable',
  },
];

export const noName = {
  name: null,
  templateFile: 'random_template.erb',
  additionalErrors: 'No "name" found in metadata',
  errors: null,
};

export const epel = {
  name: 'EPEL',
  templateFile: 'epel.erb',
  additionalErrors: null,
  errors: { base: ['This template is locked'] },
  snippet: true,
  locked: true,
  className: 'ProvisioningTemplate',
  kind: 'Provision',
  humanizedClassName: 'Provisioning Template',
};

export const coreos = {
  name: 'CoreOS default',
  templateFile: 'coreos_default.erb',
  additionalErrors: null,
  errors: {},
  snippet: false,
  locked: false,
  className: 'Ptable',
  humanizedClassName: 'Ptable',
};

export const filteredOut = {
  name: 'CoreOS default',
  templateFile: 'coreos_default.erb',
  additionalErrors: null,
  additionalInfo: 'Skipping, this template was filtered out.',
  errors: {},
  snippet: false,
  locked: false,
  className: 'Ptable',
  humanizedClassName: 'Ptable',
};

export const importTemplates = [
  noName,
  epel,
  coreos,
  {
    name: null,
    templateFile: 'no_model.erb',
    additionalErrors: 'No "model" found in metadata',
    errors: null,
  },
  {
    name: 'Kickstart fake',
    templateFile: 'kickstart_fake.erb',
    additionalErrors: null,
    errors: { name: ['has already been taken'] },
    snippet: true,
    locked: true,
    className: 'ProvisioningTemplate',
    humanizedClassName: 'Provisioning Template',
  },
];

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman_templates-7.0.7 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js
foreman_templates-7.0.6 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js
foreman_templates-7.0.5 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js
foreman_templates-7.0.4 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js
foreman_templates-7.0.3 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js
foreman_templates-7.0.2 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js