Skip to content

Commit

Permalink
ci_latest
Browse files Browse the repository at this point in the history
  • Loading branch information
vlo-rte committed Oct 19, 2020
2 parents 93168ef + a945811 commit 7363ca8
Show file tree
Hide file tree
Showing 361 changed files with 8,089 additions and 3,115 deletions.
8 changes: 8 additions & 0 deletions CICD/prepare_release_version.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/usr/bin/env bash

# Copyright (c) 2018-2020, RTE (http://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX-License-Identifier: MPL-2.0
# This file is part of the OperatorFabric project.

display_usage() {
echo "This script makes the necessary changes to version controlled files to prepare for a RELEASE version."
echo -e "Usage:\n"
Expand Down
9 changes: 9 additions & 0 deletions CICD/travis/check_version.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/usr/bin/env bash

# Copyright (c) 2018-2020, RTE (http://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX-License-Identifier: MPL-2.0
# This file is part of the OperatorFabric project.


display_usage() {
echo "This script checks that the version specified in the VERSION file is appropriate for the current branch"
echo -e "Usage:\n"
Expand Down
9 changes: 9 additions & 0 deletions CICD/travis/upload_doc.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/usr/bin/env bash

# Copyright (c) 2018-2020, RTE (http://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX-License-Identifier: MPL-2.0
# This file is part of the OperatorFabric project.


. ${BASH_SOURCE%/*}/../../bin/load_variables.sh

CURRENT_PATH=$(pwd)
Expand Down
28 changes: 0 additions & 28 deletions PULL_REQUEST_TEMPLATE.adoc

This file was deleted.

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.6.0.RELEASE
1.7.0.RELEASE
8 changes: 8 additions & 0 deletions bin/add_header.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/usr/bin/env bash

# Copyright (c) 2018-2020, RTE (http://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX-License-Identifier: MPL-2.0
# This file is part of the OperatorFabric project.

SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
Expand Down
9 changes: 9 additions & 0 deletions bin/load_environment_light.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/bin/bash

# Copyright (c) 2018-2020, RTE (http://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX-License-Identifier: MPL-2.0
# This file is part of the OperatorFabric project.


. ${BASH_SOURCE%/*}/load_variables.sh

sdk use gradle 6.5.1
Expand Down
8 changes: 8 additions & 0 deletions bin/load_variables.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/usr/bin/env bash

# Copyright (c) 2018-2020, RTE (http://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX-License-Identifier: MPL-2.0
# This file is part of the OperatorFabric project.

SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
Expand Down
9 changes: 9 additions & 0 deletions bin/run_all.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/usr/bin/env bash

# Copyright (c) 2018-2020, RTE (http://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX-License-Identifier: MPL-2.0
# This file is part of the OperatorFabric project.


. ${BASH_SOURCE%/*}/load_variables.sh

SOURCE="${BASH_SOURCE[0]}"
Expand Down
9 changes: 9 additions & 0 deletions bin/setup_dockerized_environment.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/bin/bash

# Copyright (c) 2018-2020, RTE (http://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX-License-Identifier: MPL-2.0
# This file is part of the OperatorFabric project.


SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/* Copyright (c) 2018-2020, RTE (http://www.rte-france.com)
* See AUTHORS.txt
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
* SPDX-License-Identifier: MPL-2.0
* This file is part of the OperatorFabric project.
*/

package org.lfenergy.operatorfabric.businessconfig.model;

public enum LinkTypeEnum {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/* Copyright (c) 2020, RTE (http://www.rte-france.com)
*
/* Copyright (c) 2018-2020, RTE (http://www.rte-france.com)
* See AUTHORS.txt
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
* SPDX-License-Identifier: MPL-2.0
* This file is part of the OperatorFabric project.
*/


package org.lfenergy.operatorfabric.businessconfig.model;

/**
Expand Down
7 changes: 6 additions & 1 deletion config/dev/cards-publication-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,10 @@ users:
externalRecipients-url: "{\
processAction: \"http://localhost:8090/test\", \
api_test_externalRecipient1: \"http://localhost:8090/test\", \
api_test_externalRecipient2: \"http://localhost:8090/test\" \
api_test_externalRecipient2: \"http://localhost:8090/test\", \
externalRecipient1: \"http://localhost:8090/test\", \
externalRecipient2: \"http://localhost:8090/test\" \
}"

# WARNING : If you set this parameter to false , all users have the rights to respond to all cards
checkPerimeterForResponseCard: true
1 change: 1 addition & 0 deletions config/dev/common-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ security:
enabled: false

operatorfabric:
businessLogActivated: true
security:
oauth2:
client-id: opfab-client
Expand Down
2 changes: 1 addition & 1 deletion config/dev/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:
- "89:8080"
- "90:9990"
web-ui:
image: "lfeoperatorfabric/of-web-ui:1.6.0.RELEASE"
image: "lfeoperatorfabric/of-web-ui:1.7.0.RELEASE"
#user: ${USER_ID}:${USER_GID}
ports:
- "2002:80"
Expand Down
3 changes: 3 additions & 0 deletions config/dev/users-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@ operatorfabric.users.default:
user-settings:
- login: rte-operator
description: Da Operator Rulez
#logging:
# level:
# ROOT: DEBUG
1 change: 1 addition & 0 deletions config/dev/web-ui-test.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "OperatorFabric (Test)",
"checkPerimeterForResponseCard": true,
"logo": {
"base64" : "PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHht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",
"height":50,
Expand Down
6 changes: 5 additions & 1 deletion config/dev/web-ui.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"title": "OperatorFabric (Dev Mode)",
"checkPerimeterForResponseCard": true,
"archive": {
"filters": {
"page": {
Expand Down Expand Up @@ -34,7 +35,7 @@
"display": "BUSINESS"
},
"hideAckFilter": false,
"secondsBeforeLttdForClockDisplay": 180
"secondsBeforeLttdForClockDisplay": 3700
},
"notify": false,
"timeline": {
Expand Down Expand Up @@ -132,5 +133,8 @@
"navbar": {
"hidden": [],
"businessmenus" : {"type":"BOTH"}
},
"admin": {
"hidden": false
}
}
9 changes: 7 additions & 2 deletions config/docker/cards-publication-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,10 @@ users:
externalRecipients-url: "{\
processAction: \"http://localhost:8090/test\", \
api_test_externalRecipient1: \"http://localhost:8090/test\", \
api_test_externalRecipient2: \"http://localhost:8090/test\" \
}"
api_test_externalRecipient2: \"http://localhost:8090/test\", \
externalRecipient1: \"http://localhost:8090/test\", \
externalRecipient2: \"http://localhost:8090/test\" \
}"

# WARNING : If you set this parameter to false , all users have the rights to respond to all cards
checkPerimeterForResponseCard: true
2 changes: 1 addition & 1 deletion config/docker/common-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ operatorfabric:
jwt:
login-claim: preferred_username
expire-claim: exp

businessLogActivated: false
10 changes: 5 additions & 5 deletions config/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
# - "90:9990"
users:
container_name: users
image: "lfeoperatorfabric/of-users-business-service:1.6.0.RELEASE"
image: "lfeoperatorfabric/of-users-business-service:1.7.0.RELEASE"
user: ${USER_ID}:${USER_GID}
ports:
- "2103:8080"
Expand All @@ -40,7 +40,7 @@ services:
- "./common-docker.yml:/config/common-docker.yml"
businessconfig:
container_name: businessconfig
image: "lfeoperatorfabric/of-businessconfig-business-service:1.6.0.RELEASE"
image: "lfeoperatorfabric/of-businessconfig-business-service:1.7.0.RELEASE"
depends_on:
- mongodb
user: ${USER_ID}:${USER_GID}
Expand All @@ -55,7 +55,7 @@ services:
- "./businessconfig-docker.yml:/config/application-docker.yml"
cards-publication:
container_name: cards-publication
image: "lfeoperatorfabric/of-cards-publication-business-service:1.6.0.RELEASE"
image: "lfeoperatorfabric/of-cards-publication-business-service:1.7.0.RELEASE"
depends_on:
- mongodb
user: ${USER_ID}:${USER_GID}
Expand All @@ -69,7 +69,7 @@ services:
- "./cards-publication-docker.yml:/config/application-docker.yml"
cards-consultation:
container_name: cards-consultation
image: "lfeoperatorfabric/of-cards-consultation-business-service:1.6.0.RELEASE"
image: "lfeoperatorfabric/of-cards-consultation-business-service:1.7.0.RELEASE"
user: ${USER_ID}:${USER_GID}
ports:
- "2104:8080"
Expand All @@ -80,7 +80,7 @@ services:
- "./common-docker.yml:/config/common-docker.yml"
- "./cards-consultation-docker.yml:/config/application-docker.yml"
web-ui:
image: "lfeoperatorfabric/of-web-ui:1.6.0.RELEASE"
image: "lfeoperatorfabric/of-web-ui:1.7.0.RELEASE"
ports:
- "2002:80"
depends_on:
Expand Down
33 changes: 33 additions & 0 deletions config/docker/nginx-cors-permissive.conf
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,23 @@ server {
proxy_pass http://users:8080/$1;
}

location /users {
# enables `ng serve` mode
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' '*';
add_header 'Access-Control-Allow-Headers' '*';
add_header 'Content-Length' 0;
add_header 'Vary' 'Origin';
add_header 'Vary' 'Access-Control-Request-Method' ;
add_header 'Vary' 'Access-Control-Request-Headers';
return 204;
}
proxy_set_header Host $http_host;
proxy_pass http://users:8080/users;
}

location /groups {
# enables `ng serve` mode
if ($request_method = 'OPTIONS') {
Expand Down Expand Up @@ -195,6 +212,22 @@ server {
proxy_set_header Host $http_host;
proxy_pass http://cards-publication:8080/cards/userCard;
}
location /cardspub/cards/userAcknowledgement {
# enables `ng serve` mode
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' '*';
add_header 'Access-Control-Allow-Headers' '*';
add_header 'Content-Length' 0;
add_header 'Vary' 'Origin';
add_header 'Vary' 'Access-Control-Request-Method' ;
add_header 'Vary' 'Access-Control-Request-Headers';
return 204;
}
proxy_set_header Host $http_host;
proxy_pass http://cards-publication:8080/cards/userAcknowledgement;
}
location /archives {
# enables `ng serve` mode
if ($request_method = 'OPTIONS') {
Expand Down
4 changes: 4 additions & 0 deletions config/docker/ngnix.conf
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ server {
proxy_set_header Host $http_host;
proxy_pass http://businessconfig:8080;
}
location /users {
proxy_set_header Host $http_host;
proxy_pass http://users:8080/users;
}
location ~ "^/users/(.*)" {
proxy_set_header Host $http_host;
proxy_pass http://users:8080/$1;
Expand Down
6 changes: 5 additions & 1 deletion config/docker/web-ui.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"checkPerimeterForResponseCard": true,
"archive": {
"filters": {
"page": {
Expand Down Expand Up @@ -33,7 +34,7 @@
"display": "BUSINESS"
},
"hideAckFilter": false,
"secondsBeforeLttdForClockDisplay": 180
"secondsBeforeLttdForClockDisplay": 3700
},
"notify": false,
"timeline": {
Expand Down Expand Up @@ -131,5 +132,8 @@
"navbar": {
"hidden": ["calendar","logging","monitoring","usercard"],
"businessmenus" : {"type":"BOTH"}
},
"admin": {
"hidden": false
}
}
Loading

0 comments on commit 7363ca8

Please sign in to comment.