-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy pathaz.yaml
114 lines (96 loc) · 2.8 KB
/
az.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
package:
name: az
version: "2.70.0"
epoch: 0
description: Azure CLI
copyright:
- license: MIT
dependencies:
runtime:
- py3-cryptography
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- py3-cryptography
- py3-pip
- python-3
- python-3-dev
pipeline:
- uses: git-checkout
with:
repository: https://github.com/Azure/azure-cli/
tag: azure-cli-${{package.version}}
expected-commit: 610453d14e73a7d6b2da5fefc5c3f1e5538e5853
- name: Python Build
runs: |
pip install wheel
cd src/azure-cli
python setup.py bdist_wheel
cd ../azure-cli-core
python setup.py bdist_wheel
- runs: |
# Install the built wheels directly into the package filesystem
pip install --prefix=${{targets.destdir}}/usr --no-compile src/azure-cli/dist/*.whl src/azure-cli-core/dist/*.whl
- uses: strip
update:
enabled: true
github:
identifier: Azure/azure-cli
strip-prefix: azure-cli-
test:
pipeline:
- name: Validate Core CLI Commands
runs: |
# Check az version in multiple formats
az version -o json
az version -o table
az version -o yaml
# Check top-level help commands
az -h
az --help
# Verify that core command groups exist
for cmd in account group network storage; do
if ! az "$cmd" -h > /dev/null; then
echo "Core command group '$cmd' not found"
exit 1
fi
done
echo "Basic command tests passed!"
- name: Extended CLI Functionality Checks
runs: |
# Test cloud-related commands without authentication
az cloud list -o table
az cloud show -n AzureCloud -o json
# Test configure commands
az configure -h
az configure --list-defaults
# Verify presence of additional command groups
for cmd in cloud extension configure; do
if ! az "$cmd" -h > /dev/null; then
echo "Command group '$cmd' not found"
exit 1
fi
done
# List available extensions (no need to install them)
az extension list-available --output table
# Check if 'az find' help works
az find --help
# Validate debug output
az version --debug
# Verify additional commands are available
for cmd in feedback rest upgrade interactive; do
if ! az "$cmd" -h > /dev/null; then
echo "Command group or command '$cmd' not found"
exit 1
fi
done
# Check help for these commands explicitly
az feedback -h
az rest -h
az upgrade -h
az interactive -h
echo "Expanded command tests passed!"
- uses: test/tw/ldd-check