Skip to content

Commit ee1e161

Browse files
committed
Merge branch 'release-v5.5.0'
2 parents 69a07aa + e08971e commit ee1e161

16 files changed

+1896
-264
lines changed

.github/workflows/main.yml

+21-4
Original file line numberDiff line numberDiff line change
@@ -73,23 +73,40 @@ jobs:
7373
exit 1
7474
fi
7575
76-
- name: Run the demo script to smoke test installed version
76+
- name: Test shell autocomplete
77+
run: |
78+
register-python-argcomplete nfctl
79+
80+
- name: Run the demo script and NF CLI to smoke test installed version
7781
env:
7882
NETWORK_NAME: github_smoketest_run${{ github.run_id }}
7983
NETFOUNDRY_CLIENT_ID: ${{ secrets.NETFOUNDRY_CLIENT_ID }}
8084
NETFOUNDRY_PASSWORD: ${{ secrets.NETFOUNDRY_PASSWORD }}
8185
NETFOUNDRY_OAUTH_URL: ${{ secrets.NETFOUNDRY_OAUTH_URL }}
8286
run: |
83-
python3 -m netfoundry.demo \
87+
set -x
88+
nfdemo \
89+
--verbose \
8490
--network ${NETWORK_NAME} \
8591
--create-client \
8692
--create-private \
8793
--regions Americas \
8894
-- create
89-
python3 -m netfoundry.demo \
95+
nfctl \
96+
--verbose \
97+
--profile default \
98+
--network ${NETWORK_NAME}
99+
nfctl \
100+
--verbose \
101+
--profile default \
102+
--network ${NETWORK_NAME} \
103+
list services
104+
nfctl \
105+
--verbose \
106+
--profile default \
90107
--network ${NETWORK_NAME} \
91108
--yes \
92-
-- delete
109+
delete network
93110
94111
- name: Append 'latest' tag if release published
95112
env:

.github/workflows/mattermost-ziti-webhook.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
name: POST Webhook
1818
steps:
1919
- uses: openziti/ziti-webhook-action@main
20+
if: github.repository_owner == 'netfoundry'
2021
with:
2122
ziti-id: ${{ secrets.ZITI_MATTERMOST_IDENTITY }}
2223
webhook-url: ${{ secrets.ZITI_MATTERMOST_WEBHOOK_URL }}

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ COPY ./dist/netfoundry-*.tar.gz /tmp/
33
RUN pip install --upgrade pip
44
RUN pip install /tmp/netfoundry-*.tar.gz
55
RUN rm -f /tmp/netfoundry-*.tar.gz
6-
CMD ["python3 -m netfoundry.version"]
6+
CMD ["nfctl --version"]

Dockerfile.demo

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
FROM netfoundry/python
22
ARG network_name=BibbidiBobbidiBoo
33
ENV NETWORK_NAME=${network_name}
4-
CMD python3 -m netfoundry.demo --network ${NETWORK_NAME}
4+
CMD nfdemo --network ${NETWORK_NAME}

netfoundry/__init__.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
"""Interface to NetFoundry management API."""
22

3+
import sys
4+
35
from . import _version
4-
from .network import Network
5-
from .network_group import NetworkGroup
6-
from .organization import Organization
6+
7+
try:
8+
assert (sys.version_info[0] == 3), "Python version must be 3"
9+
except Exception as e:
10+
print (e)
11+
exit(1)
712

813
__version__ = _version.get_versions()['version']

0 commit comments

Comments
 (0)