diff --git a/test/gov/input_files/k8s_deploy/k8s-mms-operator/k8s-mms-operator.tar.gz b/test/gov/input_files/k8s_deploy/k8s-mms-operator/k8s-mms-operator.tar.gz new file mode 100644 index 000000000..f8fb637cf Binary files /dev/null and b/test/gov/input_files/k8s_deploy/k8s-mms-operator/k8s-mms-operator.tar.gz differ diff --git a/test/gov/input_files/k8s_deploy/k8s-mms-operator/node.policy.json b/test/gov/input_files/k8s_deploy/k8s-mms-operator/node.policy.json new file mode 100644 index 000000000..59c7b95e5 --- /dev/null +++ b/test/gov/input_files/k8s_deploy/k8s-mms-operator/node.policy.json @@ -0,0 +1 @@ +{"properties":[{"name":"purpose","value":"k8s-service-mms-testing"}],"constraints":["policy.purpose == k8s-service-mms-testing"]} \ No newline at end of file diff --git a/test/gov/input_files/k8s_deploy/k8s-mms-operator/node_ui.json b/test/gov/input_files/k8s_deploy/k8s-mms-operator/node_ui.json new file mode 100644 index 000000000..dc477032e --- /dev/null +++ b/test/gov/input_files/k8s_deploy/k8s-mms-operator/node_ui.json @@ -0,0 +1,27 @@ +[ + { + "serviceOrgid": "e2edev@somecomp.com", + "serviceUrl": "k8s-hello-mms", + "serviceArch": "amd64", + "serviceVersionRange": "[1.0.0,INFINITY)", + "inputs": [ + { + "name": "LISTEN_PORT", + "value": "8347" + }, + { + "name": "MMS_OBJECT_TYPES", + "value": ["model", "model1", "model2"] + }, + { + "name": "SERVICE_TO_START", + "value": "openhorizon/hello-k8s-mms-consumer_amd64:2.0.0" + }, + { + "name": "MMS_HELPER_SERVICE_TO_START", + "value": "openhorizon/hello-k8s-mms-helper_amd64:2.0.0" + } + ] + } +] + diff --git a/test/gov/service_apireg.sh b/test/gov/service_apireg.sh index a6df8eb84..cc2e43e4a 100755 --- a/test/gov/service_apireg.sh +++ b/test/gov/service_apireg.sh @@ -762,6 +762,50 @@ then exit 2 fi +cat <$KEY_TEST_DIR/svc_k8s_mms.json +{ + "label":"MMS cluster service for amd64", + "description":"Cluster Service Test k8s-hello-mms", + "public":true, + "sharable":"multiple", + "url":"k8s-hello-mms", + "version":"$VERS", + "arch":"${ARCH}", + "requiredServices":[ + ], + "userInput": [ + { + "name": "LISTEN_PORT", + "value": "8347" + }, + { + "name": "MMS_OBJECT_TYPES", + "value": ["model", "model1", "model2"] + }, + { + "name": "SERVICE_TO_START", + "value": "openhorizon/hello-k8s-mms-consumer_amd64:2.0.0" + }, + { + "name": "MMS_HELPER_SERVICE_TO_START", + "value": "openhorizon/hello-k8s-mms-helper_amd64:2.0.0" + } + ], + "clusterDeployment": { + "operatorYamlArchive": "/root/input_files/k8s_deploy/k8s-mms-operator/k8s-mms-operator.tar.gz" + }, + "clusterDeploymentSignature": "" +} +EOF + +echo -e "Register k8s-hello-mms $VERS:" +hzn exchange service publish -I -u $E2EDEV_ADMIN_AUTH -o e2edev@somecomp.com -f $KEY_TEST_DIR/svc_k8s_mms.json -k $KEY_TEST_DIR/*private.key -K $KEY_TEST_DIR/*public.pem +if [ $? -ne 0 ] +then + echo -e "hzn exchange service publish failed for k8s-hello-mms." + exit 2 +fi + echo -e "Listing services:" hzn exchange service list -o e2edev@somecomp.com @@ -1609,6 +1653,48 @@ echo -e "Register business policy bp_k8s_secret for k8s-hello-secret:" results "$RES" fi +read -d '' bpk8smmsdef <