Sha256: babb06c72a94b72ca616d89ee4ac419acfe9fa23bcfb19d510c838630b119e3f

Contents?: true

Size: 1.86 KB

Versions: 16

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

16 entries across 16 versions & 1 rubygems

Version Path
foreman_templates-10.0.2 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js
foreman_templates-10.0.1 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js
foreman_templates-10.0.0 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js
foreman_templates-9.5.1 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js
foreman_templates-9.5.0 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js
foreman_templates-9.3.3 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js
foreman_templates-9.3.2 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js
foreman_templates-9.3.1 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js
foreman_templates-9.4.0 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js
foreman_templates-9.3.0 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js
foreman_templates-9.2.0 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js
foreman_templates-9.1.0 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js
foreman_templates-9.0.2 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js
foreman_templates-9.0.1 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js
foreman_templates-9.0.0 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js
foreman_templates-8.0.0 webpack/components/TemplateSyncResult/__fixtures__/templateSyncResult.fixtures.js