import { aiCluster } from './day1-ai-cluster';
import { day2FlowIds } from '../constants';

const ocmSubscription = {
  billing_expiration_date: '0001-01-01T00:00:00Z',
  capabilities: [{ inherited: true, name: 'capability.cluster.subscribed_ocp', value: 'true' }],
  cloud_provider_id: 'baremetal',
  id: day2FlowIds.day1.ocmSubscriptionId,
  cluster_id: day2FlowIds.day1.ocmClusterId,
  cluster: aiCluster,
  external_cluster_id: day2FlowIds.day1.aiClusterId,
  console_url: 'https://console-openshift-console.apps.day2-flow.redhat.com',
  created_at: '2023-06-22T14:16:30.369657Z',
  creator: {
    email: 'someone@redhat.com',
    href: '/api/accounts_mgmt/v1/accounts/a',
    id: 'a',
    kind: 'Account',
    name: 'Someone',
    username: 'rh-ee-someone',
  },
  display_name: 'day2-flow',
  eval_expiration_date: '2023-08-21T14:16:30.369657Z',
  href: `/api/accounts_mgmt/v1/subscriptions/${day2FlowIds.day1.ocmSubscriptionId}`,
  kind: 'Subscription',
  last_reconcile_date: '0001-01-01T00:00:00Z',
  last_released_at: '0001-01-01T00:00:00Z',
  last_telemetry_date: '2023-06-22T14:56:30.371341Z',
  managed: false,
  metrics: [
    {
      arch: 'amd64',
      cloud_provider: 'baremetal',
      cluster_type: '',
      compute_nodes_cpu: {
        total: { unit: '', value: 0 },
        updated_timestamp: '0001-01-01T00:00:00Z',
        used: { unit: '', value: 0 },
      },
      compute_nodes_memory: {
        total: { unit: 'B', value: 0 },
        updated_timestamp: '0001-01-01T00:00:00Z',
        used: { unit: 'B', value: 0 },
      },
      compute_nodes_sockets: {
        total: { unit: '', value: 0 },
        updated_timestamp: '0001-01-01T00:00:00Z',
        used: { unit: '', value: 0 },
      },
      console_url: 'https://console-openshift-console.apps.day2-flow.redhat.com',
      cpu: {
        total: { unit: '', value: 12 },
        updated_timestamp: '2023-06-22T15:05:07.318Z',
        used: { unit: '', value: 4.609546322523068 },
      },
      critical_alerts_firing: 0,
      health_state: 'unhealthy',
      memory: {
        total: { unit: 'B', value: 50392289280 },
        updated_timestamp: '2023-06-22T15:05:07.705Z',
        used: { unit: 'B', value: 21396344832 },
      },
      nodes: { compute: 0, infra: 0, master: 3, total: 3 },
      nodes_arch: [{ arch: 'amd64', compute: 0, infra: 0, master: 3, total: 3 }],
      non_virt_nodes: 0,
      openshift_version: '4.12.21',
      operating_system: '',
      operators_condition_failing: 1,
      query_timestamp: '2023-06-22T15:05:06Z',
      region: '',
      sockets: {
        total: { unit: '', value: 0 },
        updated_timestamp: '0001-01-01T00:00:00Z',
        used: { unit: '', value: 0 },
      },
      state: 'ready',
      state_description: '',
      storage: {
        total: { unit: 'B', value: 0 },
        updated_timestamp: '0001-01-01T00:00:00Z',
        used: { unit: 'B', value: 0 },
      },
      subscription_cpu_total: 0,
      subscription_obligation_exists: 1,
      subscription_socket_total: 0,
      upgrade: {
        available: false,
        state: '',
        updated_timestamp: '2023-06-22T15:05:07.519Z',
        version: '',
      },
    },
  ],
  organization_id: 'some-org-id',
  plan: {
    category: 'AssistedInstall',
    href: '/api/accounts_mgmt/v1/plans/OCP-AssistedInstall',
    id: 'OCP-AssistedInstall',
    kind: 'Plan',
    type: 'OCP',
  },
  provenance: 'Provisioning',
  status: 'Active',
  support_level: 'Eval',
  trial_end_date: '0001-01-01T00:00:00Z',
  updated_at: '2023-06-22T15:06:25.022039Z',
};

export { ocmSubscription };
