Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
33ea77a
cloud test setup documentation (#495)
grafnu Jun 24, 2020
048bf20
1.6.0 release
henry54809 Jun 25, 2020
b244709
fix image pull in cmd/build (#503)
henry54809 Jun 25, 2020
588189c
1.6.1 release
henry54809 Jun 25, 2020
ab7eed7
USI (#496)
henry54809 Jun 26, 2020
f211531
Update Minimum Send Test (#498)
noursaidi Jun 29, 2020
4e33982
Minor UDMI updates for pubber keygen
grafnu Jun 30, 2020
970c9d6
add check for git version tag in Travis (#519)
pbatta Jun 30, 2020
83f8375
Add DAQ version to origin summary (#522)
grafnu Jul 7, 2020
06e4660
1.7.0 release
pbatta Jul 7, 2020
499bff9
Feature/usi OVS switch (#521)
henry54809 Jul 7, 2020
79768e4
NTPv4 support (#487)
frgitdaq Jul 8, 2020
fde4289
UDMI registrar error handling updates (#508)
grafnu Jul 9, 2020
7478825
Use trunk rather than stack between switches (#526)
grafnu Jul 9, 2020
a0bc2b7
using usi in daq (#520)
henry54809 Jul 10, 2020
9a95b36
Update troubleshooting doc (#528)
pbatta Jul 10, 2020
02f1fee
Add troubleshooting script (#529)
pbatta Jul 13, 2020
ca5a7f6
Remove deprecated topology files (#530)
grafnu Jul 13, 2020
2361f80
Support for alternate sec switch (not managed by DAQ) (#531)
grafnu Jul 13, 2020
fe0bf8b
Additional DHCP test part 1 (#532)
henry54809 Jul 14, 2020
9f6add8
Refactor ipaddress module (#536)
grafnu Jul 15, 2020
ff20a21
Remove old python2 components (#537)
grafnu Jul 16, 2020
02e4cc8
Additional DHCP test part 2. Multisubnet test (#539)
henry54809 Jul 16, 2020
adb4c25
Use multiple NTP requests and the monitor pcap capture, to reduce fla…
pbatta Jul 17, 2020
b2bfed7
Disable GCP combine check (#542)
grafnu Jul 18, 2020
9848021
Additional DHCP test part 3. Ip change test (#543)
henry54809 Jul 18, 2020
1eaaffd
USI cisco9300 fix (#545)
henry54809 Jul 20, 2020
e77a6e8
Refactor UDMI to external repo (#544)
grafnu Jul 20, 2020
1a2f90d
Purge UDMI files
grafnu Jul 20, 2020
bf366e0
USI parsing logic fix (#547)
henry54809 Jul 21, 2020
84c8b6f
Build check for updated deps (#549)
grafnu Jul 21, 2020
45942a4
Bump lodash from 4.17.15 to 4.17.19 in /firebase/functions (#538)
dependabot[bot] Jul 21, 2020
5bc04f3
add security.ssh.version test (#523)
noursaidi Jul 21, 2020
ec5151f
Move ntp test to monitor pcap to reduce flakiness (#546)
pbatta Jul 21, 2020
f63be9d
Update dependency gradle to v6.5.1 (#518)
renovate[bot] Jul 21, 2020
2bde09e
Update dependency @google-cloud/pubsub to v2.2.0 (#527)
renovate[bot] Jul 21, 2020
cc71574
Update dependency com.github.jengelman.gradle.plugins:shadow to v6 (#…
renovate[bot] Jul 21, 2020
07b70d1
USI not to use background shell (#548)
grafnu Jul 21, 2020
f3ce97e
Pin to UDMI version 1.0.0
grafnu Jul 21, 2020
00c7701
1.8.0 release
grafnu Jul 21, 2020
d5fb5ac
Restore gcp combine report test (#553)
henry54809 Jul 21, 2020
b0e83b3
Update dependency @google-cloud/pubsub to v2.3.0 (#554)
renovate[bot] Jul 21, 2020
537688b
Update dependency firebase-admin to v9 (#535)
renovate[bot] Jul 21, 2020
338cada
Update dependency com.github.johnrengelman.shadow:com.github.johnreng…
renovate[bot] Jul 21, 2020
845b12c
Update dependency io.grpc:grpc-netty-shaded to v1.30.2 (#512)
renovate[bot] Jul 21, 2020
c216cd2
Update dependency com.fasterxml.jackson.dataformat:jackson-dataformat…
renovate[bot] Jul 22, 2020
5407413
Update dependency io.grpc:grpc-bom to v1.30.2 (#511)
renovate[bot] Jul 22, 2020
2c32e90
Update dependency io.grpc:grpc-protobuf to v1.30.2 (#513)
renovate[bot] Jul 22, 2020
098b315
Updating changelog
grafnu Jul 22, 2020
123316f
1.8.1 release
grafnu Jul 22, 2020
c7a5eaf
GRPC timeouts + usi first command wait fix. (#555)
henry54809 Jul 22, 2020
c316494
Update dependency jsoneditor to v9.0.3 (#501)
renovate[bot] Jul 22, 2020
29f168e
Update dependency io.grpc:grpc-stub to v1.30.2 (#514)
renovate[bot] Jul 22, 2020
b26d5d9
Update dependency firebase-functions to v3.8.0 (#533)
renovate[bot] Jul 22, 2020
56af1e4
Adding more changelog items
grafnu Jul 22, 2020
097ea2d
1.8.2 release
grafnu Jul 22, 2020
368db70
Update dependency com.fasterxml.jackson.core:jackson-databind to v2.1…
renovate[bot] Jul 22, 2020
336710b
Automatic build script (#557)
grafnu Jul 23, 2020
e38c4a2
27 NTP Update (#525)
frgitdaq Jul 28, 2020
2ee7ea5
Incorporate manual test comments (#499)
noursaidi Jul 29, 2020
c49a1d1
Update dependency io.grpc:grpc-bom to v1.31.0 (#561)
renovate[bot] Jul 31, 2020
673550a
Update dependency io.grpc:grpc-stub to v1.31.0 (#566)
renovate[bot] Jul 31, 2020
898111a
Update dependency io.grpc:grpc-protobuf to v1.31.0 (#564)
renovate[bot] Jul 31, 2020
820f101
Update dependency io.grpc:grpc-netty-shaded to v1.31.0 (#562)
renovate[bot] Jul 31, 2020
63cde47
misc updates to docs (#568)
pbatta Jul 31, 2020
9a36bae
Github actions (#558)
henry54809 Aug 2, 2020
83172aa
Remove faux dependencies from subset directory (#567)
noursaidi Aug 3, 2020
85b132a
Test infrastructure cleanup (#572)
grafnu Aug 3, 2020
4886fec
Cleanup Network Tests and Network Test Module (#565)
noursaidi Aug 4, 2020
67511b4
1.9.0 release
henry54809 Aug 4, 2020
9fbd8d3
Fix google-cloud-core version (#574)
grafnu Aug 5, 2020
8372ad4
security.admin.password changes (#461)
em-redstone Aug 5, 2020
a9aaf3a
Minor cleanup (#577)
grafnu Aug 6, 2020
64179be
Add perodic tests (#575)
grafnu Aug 6, 2020
8b811f2
Adding default dns for static ip faux devices (#576)
henry54809 Aug 6, 2020
75a3d0a
Remove deprecated UDMI docs
grafnu Aug 7, 2020
9947cd0
Update dependency gradle to v6.6 (#585)
renovate[bot] Aug 10, 2020
470d9e4
Update dependency commons-net:commons-net to v3.7 (#578)
renovate[bot] Aug 10, 2020
248f47e
Update dependency firebase-functions to v3.9.0 (#569)
renovate[bot] Aug 10, 2020
d281472
refactoring for vlan trigger (#582)
henry54809 Aug 11, 2020
8f385a0
fix gcp combine report test (#587)
henry54809 Aug 11, 2020
784dc6a
Feature/vlan trigger (#588)
henry54809 Aug 12, 2020
e4fccdf
Update dependency firebase-admin to v9.1.0 (#594)
renovate[bot] Aug 13, 2020
ba1324d
Update dependency io.grpc:grpc-protobuf to v1.31.1 (#592)
renovate[bot] Aug 13, 2020
678cb21
Update dependency io.grpc:grpc-netty-shaded to v1.31.1 (#591)
renovate[bot] Aug 13, 2020
f0a8f06
Update dependency io.grpc:grpc-bom to v1.31.1 (#590)
renovate[bot] Aug 13, 2020
1ed4cb9
Update dependency org.apache.maven.plugins:maven-resources-plugin to …
renovate[bot] Aug 13, 2020
040f96f
Update dependency io.grpc:grpc-stub to v1.31.1 (#593)
renovate[bot] Aug 13, 2020
e718927
Update dependency firebase-functions to v3.9.1 (#589)
renovate[bot] Aug 14, 2020
c83ed79
Update registrar tool for latest UDMI version (#596)
grafnu Aug 14, 2020
749e33f
security.nmap.http test (#563)
pisuke Aug 14, 2020
46ed8d2
Update dependency jsoneditor to v9.0.4 (#597)
renovate[bot] Aug 17, 2020
46dfa01
Do not infinite spawn ntp (#598)
grafnu Aug 17, 2020
ffd96eb
Update dependency @google-cloud/pubsub to v2.5.0 (#599)
renovate[bot] Aug 18, 2020
dd08f42
Refactor base test module and use stable test set id (#600)
grafnu Aug 18, 2020
f842fd3
Feature/convert switchtests (#601)
henry54809 Aug 19, 2020
1b73798
Build script tweaks
grafnu Aug 19, 2020
9e008a2
1.9.1 changelog
grafnu Aug 19, 2020
8b57239
Updating docker_images
grafnu Aug 19, 2020
c35b375
Add assert for module name length (#603)
grafnu Aug 19, 2020
5369725
Auto rewrite usi_set.url (#602)
henry54809 Aug 19, 2020
ed46069
Cleaning up build script
grafnu Aug 19, 2020
253be7e
1.9.3 release
grafnu Aug 20, 2020
368f729
USI debug messages (#606)
henry54809 Aug 20, 2020
173e60f
Update dependency firebase-admin to v9.1.1 (#608)
renovate[bot] Aug 20, 2020
63328b6
Add module config system logging (#607)
grafnu Aug 21, 2020
5a50a50
Adding enum defaults and more USI AT switch tests (#610)
henry54809 Aug 21, 2020
9c0ad5e
Update dependency firebase-functions to v3.11.0 (#604)
renovate[bot] Aug 21, 2020
6f2879b
Improvements for test development debugging (#609)
grafnu Aug 22, 2020
68830e6
Increase nmap module timeout (#611)
grafnu Aug 22, 2020
18124ad
Changelog 1.9.5
grafnu Aug 22, 2020
a8cae2d
1.9.5 release
grafnu Aug 22, 2020
d8fb74d
Restore tab redaction (#612)
grafnu Aug 22, 2020
3f855f3
usi logs gcp and local capture (#613)
henry54809 Aug 23, 2020
f7da973
Add usi to build check path (#614)
grafnu Aug 23, 2020
ce3bf1b
Removing usi gcp log driver setup
grafnu Aug 23, 2020
702baad
Use daq_run_id for gcp combine_results (#616)
grafnu Aug 24, 2020
0986517
USI docker gcplogs config (#615)
henry54809 Aug 25, 2020
55c879f
Update dependency gradle to v6.6.1 (#617)
renovate[bot] Aug 25, 2020
b452810
Cisco Switches parsing fix (#623)
henry54809 Sep 1, 2020
9ce0f14
Switch poe updates (#605)
jhughesoti Sep 4, 2020
f08737a
Add DNS tests
noursaidi Sep 12, 2020
520428b
some sticklr fix, bug fix
noursaidi Sep 12, 2020
7f6c206
remove debug code
noursaidi Sep 12, 2020
b95218b
Add CI tests
noursaidi Sep 12, 2020
30fc158
flip ci pass/fail/skip order
noursaidi Sep 13, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

<module name="LineLength">
<property name="fileExtensions" value="java"/>
<property name="max" value="100"/>
<property name="max" value="120"/>
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
</module>

Expand Down
75 changes: 75 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: DAQ test suite

on:
push:
pull_request:
schedule:
- cron: '0 */2 * * *'

jobs:
integration_tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
test: [base, many, aux, topo, modules, dhcp]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Set up JDK 1.11
uses: actions/setup-java@v1
with:
java-version: 1.11
- name: Installing dependencies
run: |
bin/setup_daq
- name: Running ${{ matrix.test }} test
env:
DOCKER_STARTUP_TIMEOUT_MS: 60000
GCP_BASE64_CRED: ${{ secrets.GCP_BASE64_CRED }}
run: |
bin/test_daq ${{ matrix.test }}
- name: Generated test report
if: ${{ always() }}
run: |
echo '************* Use sed to filter out timestamp prefix *************'
echo 'Download log archive, find the right job, and use:'
echo " sed -e 's/^[-:.0-9TZ]\+ //' 7_Generated\ test\ report.txt"
cat inst/test_${{ matrix.test }}.out

unit_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
bin/setup_dev
- name: Check style
run: |
bin/check_style
- name: Unit test
run: |
testing/run_unit_tests.sh

usi_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.11
uses: actions/setup-java@v1
with:
java-version: 1.11
- name: Build with Maven
run: mvn -B clean compile test assembly:single --file usi/pom.xml
19 changes: 9 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,15 @@ validations/
*.save

# Runtime or sub-module files
inst/
faucet/
forch/
mininet/
local/
local_xxx
local.old
firebase/.firebaserc
firebase/.firebase
firebase/functions/package-lock.json
/inst/
/faucet/
/forch/
/udmi/
/mininet/
/local/
/firebase/.firebaserc
/firebase/.firebase
/firebase/functions/package-lock.json
nohup.out
**/node_modules/
.vscode/
Expand Down
5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![CI Tests](https://github.com/faucetsdn/daq/workflows/DAQ%20test%20suite/badge.svg?branch=master)

# DAQ: <b>D</b>evice <b>A</b>utomated <b>Q</b>ualification for IoT Devices.

DAQ is a framework designed to test and operate IoT devices in an enterprise IoT environment.
Expand All @@ -17,10 +19,6 @@ More details about the goals and objectives behind this can be found in the IEEE
[SDN capabilities](https://queue.acm.org/detail.cfm?id=2560327), such as the
[FAUCET OpenFlow controller](https://faucet.nz/), to orchestrate "microsegmentation" on
the network for improved security.
* [_Universal Device Management Interface (UDMI)_](schemas/udmi/README.md): An interface
specification designed to normalize the management of IoT devices from different manufacturers.
This is a simple standard that provides for many of the common features not present in
existing protocols (e.g. BACnet).
* _Device Management Tools_: A suite of tools, consoles, and dashboards that help operate
a robust ecosystem of IoT devices. (Details forthcoming.)

Expand Down
24 changes: 24 additions & 0 deletions bin/alt_faucet
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash -e

ROOT=$(realpath $(dirname $0)/..)
cd $ROOT
source etc/config_base.sh

if [ -z "$switch_setup_ext_br" ]; then
echo switch_setup.ext_br not defined for alternate faucet setup.
false
fi

if [ -z "$switch_setup_alt_port" ]; then
echo switch_setup.alt_port not defined for alternate faucet setup.
false
fi

inst_name=$switch_setup_ext_br

inst_dir=inst/faucet/daq-faucet-$inst_name
mkdir -p $inst_dir
cp config/faucet/faucet_$inst_name.yaml $inst_dir/faucet.yaml
echo Launching alternate faucet install $inst_name on $switch_setup_alt_port
echo DAQ autoclean docker kill daq-faucet-$inst_name
cmd/faucet $inst_name $switch_setup_alt_port
2 changes: 1 addition & 1 deletion bin/build_hash
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ build_built=.build_built
faucet_version=$(cd faucet; git rev-list -n 1 HEAD)
echo "$faucet_version faucet/HEAD" > $build_files

find docker/ subset/ -type f | sort | xargs sha1sum >> $build_files
find docker/ subset/ usi/ -type f | sort | xargs sha1sum >> $build_files
build_hash=`cat $build_files | sha256sum | awk '{print $1}'`

if [ "$1" == check ]; then
Expand Down
7 changes: 7 additions & 0 deletions bin/build_proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ sha1sum $proto_files > $WEB_ROOT/protos.hash

gen_path=$ROOT/protoc-gen-doc/bin/protoc-gen-doc

if [ -d venv ]; then
echo Entering virtual python environment...
source venv/bin/activate
fi

mkdir -p build/daq/proto build/proto
cp $proto_files build/daq/proto/
proto_files2=
Expand All @@ -56,3 +61,5 @@ mkdir -p libs/proto/
touch libs/proto/__init__.py
cp build/daq/proto/*.py libs/proto/
cp build/protos.html $WEB_ROOT/

python3 -m grpc_tools.protoc -I usi/src/main/proto/ --python_out=libs/proto/ --grpc_python_out=libs/proto/ usi/src/main/proto/usi.proto
75 changes: 75 additions & 0 deletions bin/build_release
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
#!/bin/bash -e

if [ $# != 1 ]; then
echo $0 RELEASE_VERSION
false
fi

VERSION=$1
shift

ROOT=$(realpath $(dirname $0)/..)
cd $ROOT

changes=`git status --porcelain`
if [ -n "$changes" ]; then
echo Working tree not clean.
false
fi

git checkout release_stable
git fetch faucet
git merge faucet/release_stable
git checkout master

changed=`git diff --name-only release_stable docs/changelog.md`
if [ -z "$changed" ]; then
git log release_stable..HEAD --pretty=oneline | sed -e 's/^[a-z0-9]\+ //g'
echo docs/changelog.md has not been updated since last release_stable
echo Use the log lines above for inspiration.
false
fi

tagged=`git rev-list -n 1 $VERSION 2>/dev/null` || true
if [ -n "$tagged" ]; then
echo Tag $VERSION already exists. Try the next version.
false
fi

source etc/config_base.sh

if [ "$host_tests" != config/modules/all.conf ]; then
echo Configure your system with host_tests=config/modules/all.conf
false
fi

cmd/build force $VERSION

cmd/build push

git commit -a -m "$VERSION release"
git tag -a $VERSION -m "$VERSION release"
firebase/deploy.sh bos-daq-testing

git push
git push --tags

# Check to see if a remote 'faucet' is defined, and if so, also update that.
faucetgit=`git config remote.faucet.url`
if [ -n "$faucetgit" ]; then
git push faucet
git push faucet --tags
fi

git checkout release_testing && git reset --hard $VERSION
git push
if [ -n "$faucetgit" ]; then
git push faucet
fi

git log -n 1

# QA pass to make sure everything is ok.
# `firebase/deploy.sh daq-qualification-labs`
# `git checkout release_stable && git reset --hard $VERSION`
# `git push`
9 changes: 1 addition & 8 deletions bin/combine_reports
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,4 @@ cd $ROOT

source etc/config_base.sh

FAILED=
PYTHONPATH=daq python3 bin/python/combine_reports_from_date_range.py $conf_file $@ || FAILED=true

if [ -n "$FAILED" ]; then
echo
echo Usage: $0 [from_time] [to_time] [from_gcp]
false
fi
PYTHONPATH=daq python3 bin/python/combine_reports.py $conf_file $@
9 changes: 7 additions & 2 deletions bin/external_ovs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@ source etc/config_base.sh

ext_intf=$switch_setup_data_intf
ext_dpid=$switch_setup_of_dpid
ext_ofpt=$switch_setup_lo_port
ext_brid=$switch_setup_ext_br
ext_brpt=$switch_setup_uplink_port

ext_pri=${ext_intf}
ext_sec=${ext_intf%-pri}-sec

echo ext_dpid is $ext_dpid
if [ -z "$switch_setup_alt_port" ]; then
ext_ofpt=$switch_setup_lo_port
else
ext_ofpt=$switch_setup_alt_port
fi

echo ext_dpid is $ext_dpid on port $ext_ofpt
echo network_config is $network_config

dpid=$(printf %016x $ext_dpid)
Expand Down
3 changes: 3 additions & 0 deletions bin/physical_sec
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ else
sudo ip addr flush dev $ext_ctrl
fi

echo Warmup ping for $ext_addr
ping -n -c 2 $ext_addr || true

echo Checking external connection to $ext_addr
if ! ping -n -c 2 $ext_addr; then
echo
Expand Down
Loading