aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/karma.conf.js
blob: 1f2613a34697141ad86cc33e6a286b7173f27824 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Karma configuration file, see link for more information
// https://karma-runner.github.io/0.13/config/configuration-file.html

module.exports = function (config) {
  config.set({
    basePath: '',
    frameworks: ['jasmine', 'angular-cli'],
    plugins: [
      require('karma-jasmine'),
      require('karma-chrome-launcher'),
      require('karma-remap-istanbul'),
      require('angular-cli/plugins/karma')
    ],
    files: [
      { pattern: './src/test.ts', watched: false }
    ],
    preprocessors: {
      './src/test.ts': ['angular-cli']
    },
    mime: {
      'text/x-typescript': ['ts','tsx']
    },
    remapIstanbulReporter: {
      reports: {
        html: 'coverage',
        lcovonly: './coverage/coverage.lcov'
      }
    },
    angularCli: {
      config: './angular-cli.json',
      environment: 'dev'
    },
    reporters: config.angularCli && config.angularCli.codeCoverage
              ? ['progress', 'karma-remap-istanbul']
              : ['progress'],
    port: 9876,
    colors: true,
    logLevel: config.LOG_INFO,
    autoWatch: true,
    browsers: ['Chrome'],
    singleRun: false
  });
};
{ "id": "Northern Virginia", "aic_version": "2.5", "lcp_clli": "IAD", "region_id": "IAD", "identity_service_id": "$DCP_CLLI" }, { "id": "Chicago", "aic_version": "2.5", "lcp_clli": "ORD", "region_id": "ORD", "identity_service_id": "$DCP_CLLI" } ], EOF fi # Update the SO configuration file. read -d '' MSO_CONFIG_UPDATES <<-EOF { "default_attributes": { "asdc-connections": { "asdc-controller1": { "environmentName": "$DMAAP_TOPIC" } }, "mso-po-adapter-config": { $CLOUD_SITES "identity_services": [ {"dcp_clli": "$DCP_CLLI", "identity_url": "$KEYSTONE_URL/v2.0", "mso_id": "$OPENSTACK_USERNAME", "mso_pass": "$OPENSTACK_APIKEY", "admin_tenant": "service", "member_role": "admin", "tenant_metadata": "true", "identity_server_type": "KEYSTONE", "identity_authentication_type": "$AUTH_TYPE" } ] } } } EOF export MSO_CONFIG_UPDATES # Deploy the environment cd /opt/test_lab git pull chmod +x deploy.sh #This script takes in input 2 nexus repos (the first one for the SO image, the second one for mariadb) ./deploy.sh $NEXUS_DOCKER_REPO $NEXUS_USERNAME $NEXUS_PASSWD $NEXUS_DOCKER_REPO $NEXUS_USERNAME $NEXUS_PASSWD