[Arguments] ${controller_ip} ${num_cars}
${resp} Getcars ${controller_ip} ${PORT} ${0}
Should Be Equal As Strings ${resp.status_code} 200
- :FOR ${i} IN RANGE 1 ${num_cars}
+ :FOR ${i} IN RANGE 1 ${num_cars}+1
\ Should Contain ${resp.content} manufacturer${i}
Add People And Verify
[Arguments] ${controller_ip} ${num_people}
${resp} GetPersons ${controller_ip} ${PORT} ${0}
Should Be Equal As Strings ${resp.status_code} 200
- :FOR ${i} IN RANGE 1 ${num_people}
+ :FOR ${i} IN RANGE 1 ${num_people}+1
\ Should Contain ${resp.content} user${i}
Add Car Person And Verify
[Arguments] ${controller_ip} ${num_entries}
${resp} GetCarPersonMappings ${controller_ip} ${PORT} ${0}
Should Be Equal As Strings ${resp.status_code} 200
- :FOR ${i} IN RANGE 1 ${num_entries}
+ :FOR ${i} IN RANGE 1 ${num_entries}+1
\ Should Contain ${resp.content} user${i}
Buy Cars And Verify
Variables ../../../../csit/variables/Variables.py
Library ../../../../csit/libraries/RequestsLibrary.py
Library ../../../../csit/libraries/Common.py
-Library SanityLibrary
+Library SanityLibrary.py
Suite Setup Create Controllers Sessions
Suite Teardown Delete All Sessions
# External shell provisioner script for Fedora
# --------------------------------------------
-# Add EPEL repo for access to Puppet, git-review, etc.
-sudo yum install -y epel-release
-
-# Install other packages (must be done after EPEL repo add)
+# Install initial packages
sudo yum install -y \
puppet \
git
+
+#-----------------
+# Install netopeer
+#-----------------
+
+# Install required system dependencies
+sudo yum install -y \
+ readline \
+ readline-devel \
+ libssh2 \
+ libssh2-devel \
+ libxml2 \
+ libxml2-devel \
+ libxml2-python \
+ libxslt \
+ libxslt-devel \
+ libcurl \
+ libcurl-devel \
+ dbus \
+ dbus-devel \
+ libevent \
+ libevent-devel \
+ libssh-devel \
+ libtool
+
+# Install pyang (extensible YANG validator and converter in python)
+git clone https://github.com/mbj4668/pyang.git && \
+ cd pyang && \
+ sudo python setup.py install
+
+# Install libnetconf (NETCONF library in C)
+git clone https://code.google.com/p/libnetconf && \
+ cd libnetconf && \
+ ./configure --with-nacm-recovery-uid=1000 && \
+ make && \
+ sudo make install
+
+# Create softlink for libnetconf library in lib64
+sudo ln -s /usr/local/lib/libnetconf.so.0 /lib64
+
+# Install netopeer (set of NETCONF tools built on the libnetconf library)
+git clone https://code.google.com/p/netopeer && \
+ cd netopeer/server && \
+ ./configure && \
+ make && \
+ sudo make install
+
+# Add path to python site-package directory
+echo "/usr/local/lib/python2.7/site-packages" | sudo tee /usr/lib/python2.7/site-packages/netopeer.pth