Skip to content

Commit

Permalink
test (Azure#4496)
Browse files Browse the repository at this point in the history
  • Loading branch information
huguesBouvier authored Feb 26, 2021
1 parent eb554ab commit f7b44f4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
4 changes: 4 additions & 0 deletions builds/e2e/isa-95-smoke-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ stages:
parameters:
agentName: $(deviceLvl3AgentName)
lvl: 3
- pwsh: |
#Sleep 30s to let the rules time to set
Start-Sleep -s 30
displayName: Wait for network to lock
- template: templates/nested-get-root-ca.yaml
- template: templates/e2e-setup.yaml
- template: templates/e2e-run.yaml
Expand Down
3 changes: 2 additions & 1 deletion builds/e2e/templates/e2e-run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ steps:
$filter += '&Category!=NestedEdgeOnly'
}
sudo --preserve-env dotnet test $testFile --logger:trx --testcasefilter:$filter
sudo --preserve-env dotnet test $testFile --logger:trx --testcasefilter:$filter
displayName: Run tests ${{ parameters.test_type }}
continueOnError: true
env:
Expand Down
13 changes: 11 additions & 2 deletions scripts/linux/nested-edge-deploy-agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,26 @@ EOF
echo "Adding proxy configuration to docker"
sudo mkdir -p /etc/systemd/system/docker.service.d/
{ echo "[Service]";
echo "Environment=${PROXY_ADDRESS}";
echo "Environment=HTTPS_PROXY=${PROXY_ADDRESS}";
} | sudo tee /etc/systemd/system/docker.service.d/http-proxy.conf
sudo systemctl daemon-reload
sudo systemctl restart docker

echo "Adding proxy configuration to IoT Edge daemon"
sudo mkdir -p /etc/systemd/system/aziot-identityd.service.d/
{ echo "[Service]";
echo "Environment=HTTPS_PROXY=${PROXY_ADDRESS}";
} | sudo tee /etc/systemd/system/aziot-identityd.service.d/proxy.conf
sudo systemctl daemon-reload

echo "Adding proxy configuration to IoT Edge daemon"
sudo mkdir -p /etc/systemd/system/aziot-edged.service.d/
{ echo "[Service]";
echo "Environment=${PROXY_ADDRESS}";
echo "Environment=HTTPS_PROXY=${PROXY_ADDRESS}";
} | sudo tee /etc/systemd/system/aziot-edged.service.d/proxy.conf
sudo systemctl daemon-reload


fi

echo "Start IoT edge"
Expand Down

0 comments on commit f7b44f4

Please sign in to comment.