Skip to content

Commit

Permalink
More path updates, remove zssPort from default json
Browse files Browse the repository at this point in the history
Signed-off-by: 1000TurquoisePogs <[email protected]>
  • Loading branch information
1000TurquoisePogs committed Dec 2, 2019
1 parent 70001e7 commit 7fdadce
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 25 deletions.
15 changes: 6 additions & 9 deletions files/zlux/config/zluxserver.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"ipAddresses": ["0.0.0.0"],
"port": 8544,
//pfx (string), keys, certificates, certificateAuthorities, and certificateRevocationLists are all valid here.
"keys": ["../deploy/product/ZLUX/serverConfig/zlux.keystore.key"],
"certificates": ["../deploy/product/ZLUX/serverConfig/zlux.keystore.cer"],
"certificateAuthorities": ["../deploy/product/ZLUX/serverConfig/apiml-localca.cer"]
"keys": ["../defaults/serverConfig/zlux.keystore.key"],
"certificates": ["../defaults/serverConfig/zlux.keystore.cer"],
"certificateAuthorities": ["../defaults/serverConfig/apiml-localca.cer"]
},
"mediationLayer": {
"server": {
Expand Down Expand Up @@ -37,13 +37,12 @@

// All paths relative to ZLUX/node or ZLUX/bin
// In real installations, these values will be configured during the install.
"rootDir":"../deploy",
"productDir":"../deploy/product",
"productDir":"../defaults",
"siteDir":"../deploy/site",
"instanceDir":"../deploy/instance",
"groupsDir":"../deploy/instance/groups",
"usersDir":"../deploy/instance/users",
"pluginsDir":"../deploy/instance/ZLUX/plugins",
"pluginsDir":"../defaults/plugins",

"dataserviceAuthentication": {
//this specifies the default authentication type for dataservices that didn't specify which type to use. These dataservices therefore should not expect a particular type of authentication to be used.
Expand All @@ -66,7 +65,5 @@
}

}
},
// internal port, do not connect browser to this port
"zssPort":8542
}
}
10 changes: 5 additions & 5 deletions scripts/zowe-install-zlux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ do
fi
done

mkdir -p zlux-app-server/pluginDefaults/org.zowe.zlux.ng2desktop/ui/launchbar/plugins
cp -f ${INSTALL_DIR}/files/zlux/config/pinnedPlugins.json zlux-app-server/pluginDefaults/org.zowe.zlux.ng2desktop/ui/launchbar/plugins/
cp -f ${INSTALL_DIR}/files/zlux/config/zluxserver.json zlux-app-server/config/
cp -f ${INSTALL_DIR}/files/zlux/config/plugins/* zlux-app-server/plugins/
mkdir -p zlux-app-server/defaults/ZLUX/pluginStorage/org.zowe.zlux.ng2desktop/ui/launchbar/plugins
cp -f ${INSTALL_DIR}/files/zlux/config/pinnedPlugins.json zlux-app-server/defaults/ZLUX/pluginStorage/org.zowe.zlux.ng2desktop/ui/launchbar/plugins/
cp -f ${INSTALL_DIR}/files/zlux/config/zluxserver.json zlux-app-server/defaults/serverConfig/server.json
cp -f ${INSTALL_DIR}/files/zlux/config/plugins/* zlux-app-server/defaults/plugins

echo "Unpax zssServer " >> $LOG_FILE
cd zlux-app-server/bin
Expand All @@ -53,4 +53,4 @@ chmod ug+w bin/zssServer
# and create logs
chmod a+w log

cd $INSTALL_DIR
cd $INSTALL_DIR
2 changes: 1 addition & 1 deletion scripts/zowe-verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ fi
# "api-mediation/scripts/api-mediation-start-gateway.sh" \
# "explorer-jobs-api/scripts/jobs-api-server-start.sh" \
# "explorer-data-sets-api/scripts/data-sets-api-server-start.sh" \
# "zlux-app-server/config/zluxserver.json" \
# "zlux-app-server/defaults/serverConfig/server.json" \
# "vt-ng2/_defaultVT.json" \
# "tn3270-ng2/_defaultTN3270.json" \
# "jes_explorer/server/configs/config.json" \
Expand Down
11 changes: 5 additions & 6 deletions tests/data/zluxserver.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"https": {
"port": 8544,
//pfx (string), keys, certificates, certificateAuthorities, and certificateRevocationLists are all valid here.
"keys": ["../deploy/product/ZLUX/serverConfig/zlux.keystore.key"],
"certificates": ["../deploy/product/ZLUX/serverConfig/zlux.keystore.cer"],
"certificateAuthorities": ["../deploy/product/ZLUX/serverConfig/apiml-localca.cer"]
"keys": ["../defaults/serverConfig/zlux.keystore.key"],
"certificates": ["../defaults/serverConfig/zlux.keystore.cer"],
"certificateAuthorities": ["../defaults/serverConfig/apiml-localca.cer"]
},
"mediationLayer": {
"server": {
Expand All @@ -24,13 +24,12 @@
},
// All paths relative to ZLUX/node or ZLUX/bin
// In real installations, these values will be configured during the install.
"rootDir":"../deploy",
"productDir":"../deploy/product",
"productDir":"../defaults",
"siteDir":"../deploy/site",
"instanceDir":"../deploy/instance",
"groupsDir":"../deploy/instance/groups",
"usersDir":"../deploy/instance/users",
"pluginsDir":"../deploy/instance/ZLUX/plugins",
"pluginsDir":"../defaults/plugins",

"dataserviceAuthentication": {
//this specifies the default authentication type for dataservices that didn't specify which type to use. These dataservices therefore should not expect a particular type of authentication to be used.
Expand Down
8 changes: 4 additions & 4 deletions tests/test_zowe-zlux-configure-certificates.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@


def test_script_replaces_correctly():
if not os.path.exists("tmp/zlux-app-server/config"):
os.makedirs("tmp/zlux-app-server/config")
if not os.path.exists("tmp/zlux-app-server/defaults/serverConfig"):
os.makedirs("tmp/zlux-app-server/defaults/serverConfig")
shutil.copy("tests/data/zluxserver.json",
"tmp/zlux-app-server/config/zluxserver.json")
"tmp/zlux-app-server/defaults/serverConfig/server.json")

env = {
"LOG_FILE": os.path.join(os.getcwd(), "tmp", "test.log"),
Expand All @@ -38,7 +38,7 @@ def test_script_replaces_correctly():
assert result.stdout.strip() == ""
assert result.stderr.strip() == ""

with open(os.path.join(env["TEMP_DIR"], "zlux-app-server", "config", "zluxserver.json")) as json_data:
with open(os.path.join(env["TEMP_DIR"], "zlux-app-server", "defaults", "serverConfig", "server.json")) as json_data:
lines = []
for line in json_data.readlines():
if not line.strip().startswith("//"):
Expand Down

0 comments on commit 7fdadce

Please sign in to comment.