Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
Signed-off-by: Le Zhang <[email protected]>
  • Loading branch information
LiilyZhang committed Jul 19, 2023
1 parent 40b8c8b commit bbfa070
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
6 changes: 5 additions & 1 deletion test/docker/fs/etc/agent-in-kube/deployment.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: agent
namespace: openhorizon-agent
namespace: lily-test
spec:
replicas: 1
selector:
Expand Down Expand Up @@ -52,3 +52,7 @@ spec:
value: "1"
- name: ANAX_LOG_LEVEL
value: "5"
- name: HZN_NAMESPACE_SCOPED
value: "true"
- name: AGENT_NAMESPACE
value: "lily-test"
6 changes: 5 additions & 1 deletion test/docker/fs/etc/agent-in-kube/deployment_nocert.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: agent
namespace: openhorizon-agent
namespace: lily-test
spec:
replicas: 1
selector:
Expand Down Expand Up @@ -47,3 +47,7 @@ spec:
value: "1"
- name: ANAX_LOG_LEVEL
value: "5"
- name: HZN_NAMESPACE_SCOPED
value: "true"
- name: AGENT_NAMESPACE
value: "lily-test"
2 changes: 1 addition & 1 deletion test/docker/fs/etc/agent-in-kube/persistent-claim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: agent-pvc-horizon
namespace: openhorizon-agent
namespace: lily-test
spec:
storageClassName: "microk8s-hostpath"
accessModes:
Expand Down
3 changes: 2 additions & 1 deletion test/gov/run_kube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ANAX_SOURCE=$2
EXCH_ROOTPW=$3
DOCKER_TEST_NETWORK=$4

NAME_SPACE="openhorizon-agent"
NAME_SPACE="lily-test"
CONFIGMAP_NAME="agent-configmap-horizon"
SECRET_NAME="agent-secret-cert"
PVC_NAME="agent-pvc-horizon"
Expand Down Expand Up @@ -265,5 +265,6 @@ $cprefix microk8s.kubectl cp $PWD/gov/input_files/k8s_deploy/node.policy.json ${
$cprefix microk8s.kubectl cp $PWD/gov/input_files/k8s_deploy/node_ui.json ${NAME_SPACE}/${POD}:/home/agentuser/.

$cprefix microk8s.kubectl exec ${POD} -it -n ${NAME_SPACE} -- env ARCH=${ARCH} /usr/bin/hzn register -f /home/agentuser/node_ui.json -p [email protected]/sk8s -u root/root:${EXCH_ROOTPW}
#$cprefix microk8s.kubectl exec ${POD} -it -n ${NAME_SPACE} -- env ARCH=${ARCH} /usr/bin/hzn register -f /home/agentuser/node_ui.json --policy /home/agentuser/node_ui.json -u root/root:${EXCH_ROOTPW}

echo "Configured agent for policy, waiting for the agbot to start."
2 changes: 1 addition & 1 deletion test/gov/stop_kube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# set -x

NAME_SPACE="openhorizon-agent"
NAME_SPACE="lily-test"
CONFIGMAP_NAME="agent-configmap-horizon"
SECRET_NAME="agent-secret-cert"

Expand Down

0 comments on commit bbfa070

Please sign in to comment.