Commit ad08989e authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Several changes:

Common:
- Improvements in Database API definition and unit tests
- Implemented additional Assertions to be used by unitary tests

Context and Device:
- Improved logging of errors.

Service:
- Implemented service methods (except GetConnectionList). All methods are under active debug.
- Partially implemented unitary tests
parent 72a67e71
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ service ServiceService {
  rpc GetServiceList (context.Empty) returns (ServiceList) {}
  rpc CreateService (Service) returns (ServiceId) {}
  rpc UpdateService (Service) returns (ServiceId) {}
  rpc DeleteService (Service) returns (ServiceId) {}
  rpc DeleteService (Service) returns (context.Empty) {}
  rpc GetServiceById (ServiceId) returns (Service) {}
  rpc GetConnectionList (context.Empty) returns (ConnectionList) {}
  
+1 −1
Original line number Diff line number Diff line
@@ -6,6 +6,6 @@ RCFILE=~/teraflow/controller/coverage/.coveragerc
echo
echo "Coverage report:"
echo "----------------"
coverage report --rcfile=$RCFILE --skip-covered --sort cover --show-missing
coverage report --rcfile=$RCFILE --sort cover --show-missing --skip-covered
#coverage html --rcfile=$RCFILE
#coverage xml --rcfile=$RCFILE
+1 −1
Original line number Diff line number Diff line
#!/bin/bash

./report_coverage_all.sh | grep --color -E -i "^.*context.*$|$"
./report_coverage_all.sh | grep --color -E -i "^context/.*$|$"
+1 −1
Original line number Diff line number Diff line
#!/bin/bash

./report_coverage_all.sh | grep --color -E -i "^.*device.*$|$"
./report_coverage_all.sh | grep --color -E -i "^device/.*$|$"
+3 −0
Original line number Diff line number Diff line
#!/bin/bash

./report_coverage_all.sh | grep --color -E -i "^service/.*$|$"
Loading