From 3453264c35275af52a2fdcde33f6e8347a65d15b Mon Sep 17 00:00:00 2001 From: marine Date: Fri, 18 Jun 2021 17:51:46 +0200 Subject: External license as "toggleable feature" Code modification in onboarding BE and onboarding UI so that the External License can be seen as a toggleable feature. By default this will set to true but could be disabled. Issue-ID: SDC-3618 Signed-off-by: sebdet Change-Id: I01690c4cb44d3df590987bb340e8fbb58fe960e0 Signed-off-by: marine --- .../sdc-onboard-backend/recipes/ON_5_setup_configuration.rb | 8 ++++++++ .../sdc-onboard-backend/templates/default/features.properties.erb | 1 + openecomp-be/dist/sdc-onboard-backend-docker/artifacts/startup.sh | 1 + 3 files changed, 10 insertions(+) create mode 100644 openecomp-be/dist/sdc-onboard-backend-docker/artifacts/chef-repo/cookbooks/sdc-onboard-backend/templates/default/features.properties.erb (limited to 'openecomp-be/dist') diff --git a/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/chef-repo/cookbooks/sdc-onboard-backend/recipes/ON_5_setup_configuration.rb b/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/chef-repo/cookbooks/sdc-onboard-backend/recipes/ON_5_setup_configuration.rb index cb8d392741..1cd2ed284f 100644 --- a/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/chef-repo/cookbooks/sdc-onboard-backend/recipes/ON_5_setup_configuration.rb +++ b/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/chef-repo/cookbooks/sdc-onboard-backend/recipes/ON_5_setup_configuration.rb @@ -70,3 +70,11 @@ template "ExternalTestingConfiguration" do :EP2_CONFIG => node['EXTTEST']['ep2_config'] }) end + +template "FeaturesProperties" do + path "#{ENV['JETTY_BASE']}/config/onboarding-be/features.properties" + source "features.properties.erb" + owner "#{ENV['JETTY_USER']}" + group "#{ENV['JETTY_GROUP']}" + mode "0755" +end diff --git a/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/chef-repo/cookbooks/sdc-onboard-backend/templates/default/features.properties.erb b/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/chef-repo/cookbooks/sdc-onboard-backend/templates/default/features.properties.erb new file mode 100644 index 0000000000..1f87ee24d4 --- /dev/null +++ b/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/chef-repo/cookbooks/sdc-onboard-backend/templates/default/features.properties.erb @@ -0,0 +1 @@ +EXTERNAL_LICENSE=true \ No newline at end of file diff --git a/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/startup.sh b/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/startup.sh index 7381d50dfe..dc68d6f3a5 100644 --- a/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/startup.sh +++ b/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/startup.sh @@ -6,6 +6,7 @@ JAVA_OPTIONS="$JAVA_OPTIONS \ -Dlog.home=$JETTY_BASE/logs \ -Dlogback.configurationFile=$JETTY_BASE/config/onboarding-be/logback.xml \ -Dconfiguration.yaml=$JETTY_BASE/config/onboarding-be/onboarding_configuration.yaml \ + -Dfeatures.properties=$JETTY_BASE/config/onboarding-be/features.properties \ -Dconfig.location=$JETTY_BASE/config/onboarding-be/." cd $JETTY_BASE -- cgit 1.2.3-korg