From 9d117a10f71681b1c0f02fb051aec042eb55fbdc Mon Sep 17 00:00:00 2001 From: Spencer Amann Date: Thu, 10 Feb 2022 08:47:47 -0500 Subject: [PATCH] quick fixes in docs --- docs/testing.md | 8 ++++++++ hack/local-monitor-testing/deploy_MDM_VM.sh | 2 +- pkg/operator/README.md | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/testing.md b/docs/testing.md index 4e334f03ce3..cac75642475 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -8,6 +8,14 @@ To run RP unit tests: make test-go ``` +To Run Go tests with coverage: + +```bash +# first navigate to your directory with the code you'd like to see coverage on +t="/tmp/go-cover.$$.tmp" +go test -coverprofile=$t $@ && go tool cover -html=$t && unlink $t +``` + To run python client and `az aro` CLI tests: ```bash diff --git a/hack/local-monitor-testing/deploy_MDM_VM.sh b/hack/local-monitor-testing/deploy_MDM_VM.sh index 07350dd98e6..783b5040a06 100755 --- a/hack/local-monitor-testing/deploy_MDM_VM.sh +++ b/hack/local-monitor-testing/deploy_MDM_VM.sh @@ -45,7 +45,7 @@ PUBLICIP=$( az vm list-ip-addresses --name $VMName -g $RESOURCEGROUP | jq -r '.[ echo "Found IP $PUBLICIP" scp $BASE/secrets/rp-metrics-int.pem $CLOUDUSER@$PUBLICIP:mdm.pem -scp $BASE/hack/local-monitor-testing-MACOS/2configureRemote.sh $CLOUDUSER@$PUBLICIP: +scp $BASE/hack/local-monitor-testing/configureRemote.sh $CLOUDUSER@$PUBLICIP: ssh $CLOUDUSER@$PUBLICIP "sudo cp mdm.pem /etc/mdm.pem" ssh $CLOUDUSER@$PUBLICIP "sudo ./configureRemote.sh" diff --git a/pkg/operator/README.md b/pkg/operator/README.md index 40ca5003da6..e442916638f 100644 --- a/pkg/operator/README.md +++ b/pkg/operator/README.md @@ -67,7 +67,7 @@ make admin.kubeconfig export KUBECONFIG=$(pwd)/admin.kubeconfig oc scale -n openshift-azure-operator deployment/aro-operator-master --replicas=0 make generate -go run ./cmd/aro operator master +go run -tags aro ./cmd/aro operator master ``` ### How to run a custom operator image