aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-ui/src/sdc-app/common/activity-log/ActivityLogView.jsx
blob: 0c62abc0bb359843ce0c07cd56e50d6496dc0e4c (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
/*!
 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */
import React, { Component } from 'react';
import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger.js';
import Tooltip from 'react-bootstrap/lib/Tooltip.js';
import ListEditorView from 'nfvo-components/listEditor/ListEditorView.jsx';
import { SVGIcon } from 'onap-ui-react';
import i18n from 'nfvo-utils/i18n/i18n.js';

function ActivityLogSortableCellHeader({ isHeader, data, isDes, onSort }) {
    //TODO check icon sdc-ui
    if (isHeader) {
        return (
            <span className="date-header" onClick={onSort}>
                <span>{data}</span>
                <span
                    className={`header-sort-arrow ${isDes ? 'up' : 'down'}`}
                />
            </span>
        );
    }
    return (
        <span className="date-cell">
            <span>
                {i18n.dateNormal(data, {
                    year: 'numeric',
                    month: 'numeric',
                    day: 'numeric'
                })}
            </span>
            <span>
                {i18n.dateNormal(data, {
                    hour: 'numeric',
                    minute: 'numeric',
                    hour12: true
                })}
            </span>
        </span>
    );
}

function ActivityLogStatus({ status, isHeader }) {
    if (isHeader) {
        return <span>{status}</span>;
    }
    let { message, success } = status;
    return (
        <span>
            <span className={`status-icon ${success}`}>{`${
                success ? i18n('Success') : i18n('Failure')
            }`}</span>
            {success && <SVGIcon name="checkCircle" color="positive" />}
            {!success && (
                <OverlayTrigger
                    placement="bottom"
                    overlay={
                        <Tooltip
                            className="activity-log-message-tooltip"
                            id={'activity-log-message-tooltip'}>
                            <div className="message-block">{message}</div>
                        </Tooltip>
                    }>
                    <span className="message-further-info-icon">{'?'}</span>
                </OverlayTrigger>
            )}
        </span>
    );
}

export function ActivityListItem({ activity, isHeader, isDes, onSort }) {
    let { type, timestamp, comment, user, status } = activity;
    return (
        <li
            className={`activity-list-item ${isHeader ? 'header' : ''}`}
            data-test-id="activity-list-item">
            <div
                className="table-cell activity-date"
                data-test-id="activity-date">
                <ActivityLogSortableCellHeader
                    isHeader={isHeader}
                    data={timestamp}
                    isDes={isDes}
                    onSort={onSort}
                />
            </div>
            <div
                className="table-cell activity-action"
                data-test-id="activity-action">
                {i18n(type)}
            </div>
            <div
                className="table-cell activity-comment"
                title={isHeader ? '' : comment}
                data-test-id="activity-comment">
                <span>{i18n(comment)}</span>
            </div>
            <div
                className="table-cell activity-username"
                data-test-id="activity-username">
                {isHeader
                    ? i18n(activity.user)
                    : `${i18n(user.name)} (${user.id})`}
            </div>
            <div
                className="table-cell activity-status"
                data-test-id="activity-status">
                <ActivityLogStatus isHeader={isHeader} status={status} />
            </div>
        </li>
    );
}

class ActivityLogView extends Component {
    state = {
        localFilter: '',
        sortDescending: true
    };

    render() {
        return (
            <div className="activity-log-view">
                <ListEditorView
                    title={i18n('Activity Log')}
                    filterValue={this.state.localFilter}
                    onFilter={filter => this.setState({ localFilter: filter })}>
                    <ActivityListItem
                        activity={{
                            timestamp: 'Date',
                            type: 'Action',
                            comment: 'Comment',
                            user: 'Username',
                            status: 'Status'
                        }}
                        isDes={this.state.sortDescending}
                        onSort={() =>
                            this.setState({
                                sortDescending: !this.state.sortDescending
                            })
                        }
                        isHeader
                    />
                    {this.sortActivities(
                        this.filterActivities(),
                        this.state.sortDescending
                    ).map(activity => (
                        <ActivityListItem
                            key={activity.id}
                            activity={activity}
                        />
                    ))}
                </ListEditorView>
            </div>
        );
    }

    filterActivities() {
        let { activities } = this.props;
        let { localFilter } = this.state;
        if (localFilter.trim()) {
            const filter = new RegExp(escape(localFilter), 'i');
            return activities.filter(
                ({ user = { id: '', name: '' }, comment = '', type = '' }) =>
                    escape(user.id).match(filter) ||
                    escape(user.name).match(filter) ||
                    escape(comment).match(filter) ||
                    escape(type).match(filter)
            );
        } else {
            return activities;
        }
    }

    sortActivities(activities) {
        if (this.state.sortDescending) {
            return activities.sort((a, b) => a.timestamp - b.timestamp);
        } else {
            return activities.reverse();
        }
    }
}

export default ActivityLogView;
#n604'>604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~  Copyright © 2017-2019 AT&T, IBM, Bell Canada.
  ~
  ~  Licensed under the Apache License, Version 2.0 (the "License");
  ~  you may not use this file except in compliance with the License.
  ~  You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~  Unless required by applicable law or agreed to in writing, software
  ~  distributed under the License is distributed on an "AS IS" BASIS,
  ~  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~  See the License for the specific language governing permissions and
  ~  limitations under the License.
  -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.onap.ccsdk.cds</groupId>
        <artifactId>blueprintsprocessor</artifactId>
        <version>1.3.1-SNAPSHOT</version>
    </parent>

    <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
    <artifactId>blueprintsprocessor-parent</artifactId>
    <packaging>pom</packaging>

    <name>MS Blueprints Processor Parent</name>

    <properties>
        <!-- Override CDS version from parent to be project.version -->
        <error.catalog.version>${project.version}</error.catalog.version>
        <dmaap.client.version>1.1.5</dmaap.client.version>
        <springfox.swagger2.version>3.0.0</springfox.swagger2.version>
        <eelf.version>1.0.0</eelf.version>
        <onap.logger.slf4j>1.2.2</onap.logger.slf4j>
        <hazelcast.version>4.2.2</hazelcast.version>

        <h2database.version>1.4.197</h2database.version>
        <powermock.version>1.7.4</powermock.version>
        <mockkserver.version>5.5.1</mockkserver.version>
        <json.unit.version>2.8.0</json.unit.version>
        <xmlunit.version>2.6.3</xmlunit.version>

  
   
        <sshd.version>2.2.0</sshd.version>
        <jsch.version>0.1.55</jsch.version>
        <jslt.version>0.1.8</jslt.version>
        <jython.version>2.7.2</jython.version>
        <jinja.version>2.5.1</jinja.version>
        <guava.version>27.0.1-jre</guava.version>
        <json-patch.version>1.9</json-patch.version>
        <json-smart.version>2.4.6</json-smart.version>

        <commons-io-version>2.8.0</commons-io-version>
        <commons-compress-version>1.21</commons-compress-version>
        <commons-collections-version>3.2.2</commons-collections-version>
    </properties>

    <dependencyManagement>
        <dependencies>
            <!-- Spring Boot -->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-parent</artifactId>
                <version>${spring.boot.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>org.springframework.kafka</groupId>
                <artifactId>spring-kafka</artifactId>
                <version>${spring-kafka.version}</version>
            </dependency>

            <!--Swagger Dependencies -->
            <dependency>
                <groupId>io.springfox</groupId>
                <artifactId>springfox-boot-starter</artifactId>
                <version>${springfox.swagger2.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-api</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>

            <!-- Common Utils Dependencies -->
            <dependency>
                <groupId>commons-collections</groupId>
                <artifactId>commons-collections</artifactId>
                <version>${commons-collections-version}</version>
            </dependency>
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>${commons-io-version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-compress</artifactId>
                <version>${commons-compress-version}</version>
            </dependency>
            <dependency>
                <groupId>com.hubspot.jinjava</groupId>
                <artifactId>jinjava</artifactId>
                <version>${jinja.version}</version>
            </dependency>
            <dependency>
                <groupId>com.schibsted.spt.data</groupId>
                <artifactId>jslt</artifactId>
                <version>${jslt.version}</version>
            </dependency>
            <dependency>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
                <version>${guava.version}</version>
            </dependency>
            <dependency>
                <groupId>net.javacrumbs.json-unit</groupId>
                <artifactId>json-unit-json-path</artifactId>
                <version>${json.unit.version}</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>org.python</groupId>
                <artifactId>jython-standalone</artifactId>
                <version>${jython.version}</version>
            </dependency>
            <dependency>
                <groupId>net.minidev</groupId>
                <artifactId>json-smart</artifactId>
                <version>${json-smart.version}</version>
            </dependency>

            <!-- Kotlin Dependencies -->
            <dependency>
                <groupId>org.jetbrains.kotlin</groupId>
                <artifactId>kotlin-stdlib</artifactId>
                <version>${kotlin.version}</version>
            </dependency>
            <dependency>
                <groupId>org.jetbrains.kotlin</groupId>
                <artifactId>kotlin-stdlib-common</artifactId>
                <version>${kotlin.version}</version>
            </dependency>
            <!--Use kotlin-compiler-embeddable instead koltin-compiler wrap-->
            <!--guava dependency inside kotlin-compiler creating classpath issues at runtime-->
            <dependency>
                <groupId>org.jetbrains.kotlin</groupId>
                <artifactId>kotlin-scripting-jvm-host</artifactId>
                <version>${kotlin.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.jetbrains.kotlin</groupId>
                        <artifactId>kotlin-compile</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.jetbrains.kotlin</groupId>
                <artifactId>kotlin-compiler-embeddable</artifactId>
                <version>${kotlin.version}</version>
            </dependency>
            <dependency>
                <groupId>org.jetbrains.kotlin</groupId>
                <artifactId>kotlin-script-util</artifactId>
                <version>${kotlin.version}</version>
            </dependency>
            <dependency>
                <groupId>org.jetbrains.kotlin</groupId>
                <artifactId>kotlin-script-runtime</artifactId>
                <version>${kotlin.version}</version>
            </dependency>
            <dependency>
                <groupId>org.jetbrains.kotlinx</groupId>
                <artifactId>kotlinx-coroutines-core</artifactId>
                <version>${kotlin.couroutines.version}</version>
            </dependency>
            <dependency>
                <groupId>org.jetbrains.kotlinx</groupId>
                <artifactId>kotlinx-coroutines-reactor</artifactId>
                <version>${kotlin.couroutines.version}</version>
            </dependency>
            <dependency>
                <groupId>org.jetbrains.kotlin</groupId>
                <artifactId>kotlin-reflect</artifactId>
                <version>${kotlin.version}</version>
            </dependency>
            <dependency>
                <groupId>com.github.marcoferrer.krotoplus</groupId>
                <artifactId>kroto-plus-coroutines</artifactId>
                <version>${kroto-plus.version}</version>
            </dependency>
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-tcnative-boringssl-static</artifactId>
                <version>${netty-ssl}</version>
            </dependency>

            <!-- NATS -->
            <dependency>
                <groupId>io.nats</groupId>
                <artifactId>jnats</artifactId>
                <version>${nats.version}</version>
            </dependency>
            <dependency>
                <groupId>io.nats</groupId>
                <artifactId>java-nats-streaming</artifactId>
                <version>${nats.streaming.version}</version>
            </dependency>

            <!-- Hazelcast -->
            <dependency>
                <groupId>com.hazelcast</groupId>
                <artifactId>hazelcast-all</artifactId>
                <version>${hazelcast.version}</version>
            </dependency>

            <!-- Adaptors -->
            <dependency>
                <groupId>org.apache.sshd</groupId>
                <artifactId>sshd-core</artifactId>
                <version>${sshd.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-api</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.jcraft</groupId>
                <artifactId>jsch</artifactId>
                <version>${jsch.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.kafka</groupId>
                <artifactId>kafka-clients</artifactId>
                <version>${kafka.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.kafka</groupId>
                <artifactId>kafka-streams</artifactId>
                <version>${kafka.version}</version>
            </dependency>

            <!-- Error Catalog -->
            <dependency>
                <groupId>org.onap.ccsdk.cds.error.catalog</groupId>
                <artifactId>error-catalog-core</artifactId>
                <version>${error.catalog.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>*</groupId>
                        <artifactId>*</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.error.catalog</groupId>
                <artifactId>error-catalog-services</artifactId>
                <version>${error.catalog.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>*</groupId>
                        <artifactId>*</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>

            <!-- SLI Version -->
            <dependency>
                <groupId>org.onap.ccsdk.sli.core</groupId>
                <artifactId>sli-provider</artifactId>
                <version>${ccsdk.sli.core.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>commons-lang</groupId>
                        <artifactId>commons-lang</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.apache.commons</groupId>
                        <artifactId>*</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.slf4j</groupId>
                        <artifactId>*</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.opendaylight.mdsal.model</groupId>
                        <artifactId>*</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.opendaylight.controller</groupId>
                        <artifactId>*</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.apache.tomcat</groupId>
                        <artifactId>*</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.apache.karaf.shell</groupId>
                        <artifactId>*</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.mariadb.jdbc</groupId>
                        <artifactId>*</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.powermock</groupId>
                        <artifactId>*</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>

            <!-- Blueprint Processor Application Module Dependencies -->
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
                <artifactId>processor-core</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
                <artifactId>db-lib</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
                <artifactId>rest-lib</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
                <artifactId>nats-lib</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
                <artifactId>ssh-lib</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>

            <!-- message-lib dependency -->
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
                <artifactId>message-lib</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
                <artifactId>dmaap-lib</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
                <artifactId>grpc-lib</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
                <artifactId>execution-service</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
                <artifactId>workflow-service</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>

            <!-- North Bound -->
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
                <artifactId>configs-api</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
                <artifactId>designer-api</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
                <artifactId>resource-api</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
                <artifactId>selfservice-api</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
                <artifactId>blueprintsprocessor-application</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>

            <!-- Functions -->
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
                <artifactId>resource-resolution</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
                <artifactId>restful-executor</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
                <artifactId>python-executor</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
                <artifactId>ansible-awx-executor</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
                <artifactId>netconf-executor</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
                <artifactId>restconf-executor</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
                <artifactId>cli-executor</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
                <artifactId>config-snapshots</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
                <artifactId>message-prioritization</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
                <artifactId>k8s-connection-plugin</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
                <artifactId>health-api</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
                <artifactId>health-api-common</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <!-- Diff capability providers for config-snapshots -->
            <dependency>
                <groupId>com.github.fge</groupId>
                <artifactId>json-patch</artifactId>
                <version>${json-patch.version}</version>
            </dependency>
            <dependency>
                <groupId>org.xmlunit</groupId>
                <artifactId>xmlunit-core</artifactId>
                <version>${xmlunit.version}</version>
            </dependency>

            <!-- Controller Blueprints Application Dependency -->
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
                <artifactId>resource-dict</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
                <artifactId>blueprint-core</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
                <artifactId>blueprint-proto</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>
            <dependency>
                <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
                <artifactId>blueprint-validation</artifactId>
                <version>${ccsdk.cds.version}</version>
            </dependency>

            <!-- Database -->
            <dependency>
                <groupId>com.h2database</groupId>
                <artifactId>h2</artifactId>
                <version>${h2database.version}</version>
                <scope>test</scope>
            </dependency>

            <!-- Test Dependency -->
            <dependency>
                <groupId>io.mockk</groupId>
                <artifactId>mockk</artifactId>
                <version>${mockk.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.mock-server</groupId>
                <artifactId>mockserver-netty</artifactId>
                <version>${mockkserver.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.powermock</groupId>
                <artifactId>powermock-api-mockito2</artifactId>
                <version>${powermock.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.nhaarman.mockitokotlin2</groupId>
                <artifactId>mockito-kotlin</artifactId>
                <version>2.2.0</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.jetbrains.kotlin</groupId>
                <artifactId>kotlin-test-junit</artifactId>
                <version>${kotlin.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.jetbrains.kotlinx</groupId>
                <artifactId>kotlinx-coroutines-test</artifactId>
                <version>${kotlin.couroutines.version}</version>
                <scope>test</scope>
            </dependency>

            <!-- Spring Kafka -->
            <dependency>
                <groupId>org.springframework.kafka</groupId>
                <artifactId>spring-kafka-test</artifactId>
                <version>${spring-kafka.version}</version>
                <scope>test</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-collections</groupId>
            <artifactId>commons-collections</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
        </dependency>
        <dependency>
            <groupId>com.jayway.jsonpath</groupId>
            <artifactId>json-path</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-api</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>net.minidev</groupId>
            <artifactId>json-smart</artifactId>
        </dependency>
        <dependency>
            <groupId>net.javacrumbs.json-unit</groupId>
            <artifactId>json-unit-json-path</artifactId>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
        </dependency>
        <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-boot-starter</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-stdlib</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-script-util</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jetbrains.kotlinx</groupId>
            <artifactId>kotlinx-coroutines-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jetbrains.kotlinx</groupId>
            <artifactId>kotlinx-coroutines-reactor</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.module</groupId>
            <artifactId>jackson-module-kotlin</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-compiler-embeddable</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-scripting-jvm-host</artifactId>
            <!--Use kotlin-compiler-embeddable as koltin-compiler wrap-->
            <!--guava dependency creating classpath issues at runtime-->
            <exclusions>
                <exclusion>
                    <groupId>org.jetbrains.kotlin</groupId>
                    <artifactId>kotlin-compiler</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <!-- GRPC Dependencies -->
        <dependency>
            <groupId>io.grpc</groupId>
            <artifactId>grpc-netty</artifactId>
        </dependency>
        <dependency>
            <groupId>io.grpc</groupId>
            <artifactId>grpc-protobuf</artifactId>
        </dependency>
        <dependency>
            <groupId>io.grpc</groupId>
            <artifactId>grpc-stub</artifactId>
        </dependency>
        <dependency>
            <groupId>io.grpc</groupId>
            <artifactId>grpc-netty-shaded</artifactId>
        </dependency>
        <dependency>
            <groupId>io.grpc</groupId>
            <artifactId>grpc-grpclb</artifactId>
        </dependency>
        <dependency>
            <groupId>com.google.protobuf</groupId>
            <artifactId>protobuf-java</artifactId>
        </dependency>
        <dependency>
            <groupId>com.google.protobuf</groupId>
            <artifactId>protobuf-java-util</artifactId>
        </dependency>
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-tcnative-boringssl-static</artifactId>
        </dependency>
        <!-- javax.annotations Needed for Java 11 migration-->
        <dependency>
            <groupId>javax.annotation</groupId>
            <artifactId>javax.annotation-api</artifactId>
            <version>${javax-annotation.version}</version>
        </dependency>
        <dependency>
            <groupId>org.onap.ccsdk.cds.error.catalog</groupId>
            <artifactId>error-catalog-core</artifactId>
        </dependency>
        <!-- required for java 11 -->
        <dependency>
            <groupId>javax.xml.bind</groupId>
            <artifactId>jaxb-api</artifactId>
        </dependency>
        <dependency>
            <groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-core</artifactId>
            <version>2.3.0</version>
        </dependency>
        <dependency>
            <groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-impl</artifactId>
            <version>2.3.0</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-validation</artifactId>
        </dependency>

        <!-- Micrometer Prometheus -->
        <dependency>
            <groupId>io.micrometer</groupId>
            <artifactId>micrometer-registry-prometheus</artifactId>
        </dependency>
    </dependencies>

    <repositories>
        <repository>
            <id>spring-libs-milestone</id>
            <name>Spring Milestone Maven Repository</name>
            <url>http://oss.jfrog.org/artifactory/oss-release-local/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>spring-libs-milestone-snapshot</id>
            <name>Spring Milestone Maven Repository - snapshots</name>
            <url>http://oss.jfrog.org/artifactory/oss-snapshot-local/</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>

    <build>
        <plugins>
            <plugin>
                <groupId>org.jetbrains.kotlin</groupId>
                <artifactId>kotlin-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>compile</id>
                        <goals>
                            <goal>compile</goal>
                        </goals>
                        <configuration>
                            <sourceDirs>
                                <sourceDir>${project.basedir}/src/main/kotlin</sourceDir>
                                <sourceDir>${project.basedir}/src/main/java</sourceDir>
                            </sourceDirs>
                        </configuration>
                    </execution>
                    <execution>
                        <id>test-compile</id>
                        <goals>
                            <goal>test-compile</goal>
                        </goals>
                        <configuration>
                            <sourceDirs>
                                <sourceDir>${project.basedir}/src/test/kotlin</sourceDir>
                                <sourceDir>${project.basedir}/src/test/java</sourceDir>
                            </sourceDirs>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>