cloudflare/cloudflared

Public

mirrored from https://github.com/cloudflare/cloudflaredAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
2025.10.1

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.ci/scripts/component-tests.sh

25lines · modecode

1#!/bin/bash
2set -e -o pipefail
3
4# Fetch cloudflared from the artifacts folder
5mv ./artifacts/cloudflared ./cloudflared
6
7python3 -m venv env
8. env/bin/activate
9
10pip install --upgrade -r component-tests/requirements.txt
11
12# Creates and routes a Named Tunnel for this build. Also constructs
13# config file from env vars.
14python3 component-tests/setup.py --type create
15
16# Define the cleanup function
17cleanup() {
18 # The Named Tunnel is deleted and its route unprovisioned here.
19 python3 component-tests/setup.py --type cleanup
20}
21
22# The trap will call the cleanup function on script exit
23trap cleanup EXIT
24
25pytest component-tests -o log_cli=true --log-cli-level=INFO --junit-xml=report.xml
26