From 5450bf069af8ee22b0cb44a982f1cb916c6719d6 Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Sat, 10 Sep 2016 11:51:31 -0400 Subject: [PATCH 01/31] Models for Iterable and IterValue working and tested --- bin/activate | 80 +++++++ bin/activate.csh | 42 ++++ bin/activate.fish | 74 +++++++ bin/activate_this.py | 34 +++ bin/django-admin | 10 + bin/django-admin.py | 5 + bin/easy_install | 10 + bin/easy_install-2.7 | 11 + bin/easy_install-3.4 | 10 + bin/gunicorn | 10 + bin/gunicorn_django | 10 + bin/gunicorn_paster | 10 + bin/ipcluster | 10 + bin/ipcluster2 | 10 + bin/ipcontroller | 10 + bin/ipcontroller2 | 10 + bin/ipdb | 11 + bin/ipengine | 10 + bin/ipengine2 | 10 + bin/iptest | 10 + bin/iptest2 | 10 + bin/ipython | 10 + bin/ipython2 | 10 + bin/livereload | 11 + bin/mrproxy | 32 +++ bin/netaddr | 37 ++++ bin/nsot-server | 10 + bin/pip | 11 + bin/pip2 | 11 + bin/pip2.7 | 11 + bin/port-for | 54 +++++ bin/py.test | 11 + bin/py.test-2.7 | 11 + bin/pybabel | 11 + bin/pygmentize | 11 + bin/python | Bin 0 -> 25152 bytes bin/python2 | 1 + bin/python2.7 | 1 + bin/rst2html.py | 23 ++ bin/rst2latex.py | 26 +++ bin/rst2man.py | 26 +++ bin/rst2odt.py | 30 +++ bin/rst2odt_prepstyles.py | 67 ++++++ bin/rst2pseudoxml.py | 23 ++ bin/rst2s5.py | 24 +++ bin/rst2xetex.py | 26 +++ bin/rst2xml.py | 23 ++ bin/rstpep2html.py | 25 +++ bin/snot-server | 10 + bin/sphinx-apidoc | 11 + bin/sphinx-autobuild | 11 + bin/sphinx-autogen | 11 + bin/sphinx-build | 11 + bin/sphinx-quickstart | 11 + bin/static | 10 + bin/watchmedo | 11 + bin/wheel | 11 + include/python2.7 | 1 + include/site/python2.7/greenlet/greenlet.h | 148 +++++++++++++ nsot/admin.py | 9 + nsot/migrations/0026_auto_20160907_1122.py | 232 +++++++++++++++++++++ nsot/migrations/0027_auto_20160907_1433.py | 29 +++ nsot/migrations/0028_itervalue.py | 23 ++ nsot/migrations/0029_auto_20160909_1320.py | 20 ++ nsot/models.py | 145 +++++++++++++ pip-selfcheck.json | 1 + share/man/man1/ipcluster.1.gz | Bin 0 -> 350 bytes share/man/man1/ipcontroller.1.gz | Bin 0 -> 353 bytes share/man/man1/ipengine.1.gz | Bin 0 -> 343 bytes share/man/man1/ipython.1.gz | Bin 0 -> 1039 bytes tests/model_tests/test_iterables.py | 60 ++++++ tests/model_tests/test_itervalues.py | 204 ++++++++++++++++++ 72 files changed, 1902 insertions(+) create mode 100644 bin/activate create mode 100644 bin/activate.csh create mode 100644 bin/activate.fish create mode 100644 bin/activate_this.py create mode 100755 bin/django-admin create mode 100755 bin/django-admin.py create mode 100755 bin/easy_install create mode 100755 bin/easy_install-2.7 create mode 100755 bin/easy_install-3.4 create mode 100755 bin/gunicorn create mode 100755 bin/gunicorn_django create mode 100755 bin/gunicorn_paster create mode 100755 bin/ipcluster create mode 100755 bin/ipcluster2 create mode 100755 bin/ipcontroller create mode 100755 bin/ipcontroller2 create mode 100755 bin/ipdb create mode 100755 bin/ipengine create mode 100755 bin/ipengine2 create mode 100755 bin/iptest create mode 100755 bin/iptest2 create mode 100755 bin/ipython create mode 100755 bin/ipython2 create mode 100755 bin/livereload create mode 100755 bin/mrproxy create mode 100755 bin/netaddr create mode 100755 bin/nsot-server create mode 100755 bin/pip create mode 100755 bin/pip2 create mode 100755 bin/pip2.7 create mode 100755 bin/port-for create mode 100755 bin/py.test create mode 100755 bin/py.test-2.7 create mode 100755 bin/pybabel create mode 100755 bin/pygmentize create mode 100755 bin/python create mode 120000 bin/python2 create mode 120000 bin/python2.7 create mode 100755 bin/rst2html.py create mode 100755 bin/rst2latex.py create mode 100755 bin/rst2man.py create mode 100755 bin/rst2odt.py create mode 100755 bin/rst2odt_prepstyles.py create mode 100755 bin/rst2pseudoxml.py create mode 100755 bin/rst2s5.py create mode 100755 bin/rst2xetex.py create mode 100755 bin/rst2xml.py create mode 100755 bin/rstpep2html.py create mode 100755 bin/snot-server create mode 100755 bin/sphinx-apidoc create mode 100755 bin/sphinx-autobuild create mode 100755 bin/sphinx-autogen create mode 100755 bin/sphinx-build create mode 100755 bin/sphinx-quickstart create mode 100755 bin/static create mode 100755 bin/watchmedo create mode 100755 bin/wheel create mode 120000 include/python2.7 create mode 100644 include/site/python2.7/greenlet/greenlet.h create mode 100644 nsot/migrations/0026_auto_20160907_1122.py create mode 100644 nsot/migrations/0027_auto_20160907_1433.py create mode 100644 nsot/migrations/0028_itervalue.py create mode 100644 nsot/migrations/0029_auto_20160909_1320.py create mode 100644 pip-selfcheck.json create mode 100644 share/man/man1/ipcluster.1.gz create mode 100644 share/man/man1/ipcontroller.1.gz create mode 100644 share/man/man1/ipengine.1.gz create mode 100644 share/man/man1/ipython.1.gz create mode 100644 tests/model_tests/test_iterables.py create mode 100644 tests/model_tests/test_itervalues.py diff --git a/bin/activate b/bin/activate new file mode 100644 index 00000000..2786526a --- /dev/null +++ b/bin/activate @@ -0,0 +1,80 @@ +# This file must be used with "source bin/activate" *from bash* +# you cannot run it directly + +deactivate () { + unset pydoc + + # reset old environment variables + if [ -n "${_OLD_VIRTUAL_PATH-}" ] ; then + PATH="$_OLD_VIRTUAL_PATH" + export PATH + unset _OLD_VIRTUAL_PATH + fi + if [ -n "${_OLD_VIRTUAL_PYTHONHOME-}" ] ; then + PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME" + export PYTHONHOME + unset _OLD_VIRTUAL_PYTHONHOME + fi + + # This should detect bash and zsh, which have a hash command that must + # be called to get it to forget past commands. Without forgetting + # past commands the $PATH changes we made may not be respected + if [ -n "${BASH-}" -o -n "${ZSH_VERSION-}" ] ; then + hash -r 2>/dev/null + fi + + if [ -n "${_OLD_VIRTUAL_PS1-}" ] ; then + PS1="$_OLD_VIRTUAL_PS1" + export PS1 + unset _OLD_VIRTUAL_PS1 + fi + + unset VIRTUAL_ENV + if [ ! "${1-}" = "nondestructive" ] ; then + # Self destruct! + unset -f deactivate + fi +} + +# unset irrelevant variables +deactivate nondestructive + +VIRTUAL_ENV="/Users/ajaychenampara/vagrant/nsot" +export VIRTUAL_ENV + +_OLD_VIRTUAL_PATH="$PATH" +PATH="$VIRTUAL_ENV/bin:$PATH" +export PATH + +# unset PYTHONHOME if set +# this will fail if PYTHONHOME is set to the empty string (which is bad anyway) +# could use `if (set -u; : $PYTHONHOME) ;` in bash +if [ -n "${PYTHONHOME-}" ] ; then + _OLD_VIRTUAL_PYTHONHOME="$PYTHONHOME" + unset PYTHONHOME +fi + +if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT-}" ] ; then + _OLD_VIRTUAL_PS1="$PS1" + if [ "x" != x ] ; then + PS1="$PS1" + else + if [ "`basename \"$VIRTUAL_ENV\"`" = "__" ] ; then + # special case for Aspen magic directories + # see http://www.zetadev.com/software/aspen/ + PS1="[`basename \`dirname \"$VIRTUAL_ENV\"\``] $PS1" + else + PS1="(`basename \"$VIRTUAL_ENV\"`)$PS1" + fi + fi + export PS1 +fi + +alias pydoc="python -m pydoc" + +# This should detect bash and zsh, which have a hash command that must +# be called to get it to forget past commands. Without forgetting +# past commands the $PATH changes we made may not be respected +if [ -n "${BASH-}" -o -n "${ZSH_VERSION-}" ] ; then + hash -r 2>/dev/null +fi diff --git a/bin/activate.csh b/bin/activate.csh new file mode 100644 index 00000000..8976c78c --- /dev/null +++ b/bin/activate.csh @@ -0,0 +1,42 @@ +# This file must be used with "source bin/activate.csh" *from csh*. +# You cannot run it directly. +# Created by Davide Di Blasi . + +alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc' + +# Unset irrelevant variables. +deactivate nondestructive + +setenv VIRTUAL_ENV "/Users/ajaychenampara/vagrant/nsot" + +set _OLD_VIRTUAL_PATH="$PATH" +setenv PATH "$VIRTUAL_ENV/bin:$PATH" + + + +if ("" != "") then + set env_name = "" +else + if (`basename "$VIRTUAL_ENV"` == "__") then + # special case for Aspen magic directories + # see http://www.zetadev.com/software/aspen/ + set env_name = `basename \`dirname "$VIRTUAL_ENV"\`` + else + set env_name = `basename "$VIRTUAL_ENV"` + endif +endif + +# Could be in a non-interactive environment, +# in which case, $prompt is undefined and we wouldn't +# care about the prompt anyway. +if ( $?prompt ) then + set _OLD_VIRTUAL_PROMPT="$prompt" + set prompt = "[$env_name] $prompt" +endif + +unset env_name + +alias pydoc python -m pydoc + +rehash + diff --git a/bin/activate.fish b/bin/activate.fish new file mode 100644 index 00000000..5947d713 --- /dev/null +++ b/bin/activate.fish @@ -0,0 +1,74 @@ +# This file must be used with "source bin/activate.fish" *from fish* (http://fishshell.com) +# you cannot run it directly + +function deactivate -d "Exit virtualenv and return to normal shell environment" + # reset old environment variables + if test -n "$_OLD_VIRTUAL_PATH" + set -gx PATH $_OLD_VIRTUAL_PATH + set -e _OLD_VIRTUAL_PATH + end + if test -n "$_OLD_VIRTUAL_PYTHONHOME" + set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME + set -e _OLD_VIRTUAL_PYTHONHOME + end + + if test -n "$_OLD_FISH_PROMPT_OVERRIDE" + # set an empty local fish_function_path, so fish_prompt doesn't automatically reload + set -l fish_function_path + # erase the virtualenv's fish_prompt function, and restore the original + functions -e fish_prompt + functions -c _old_fish_prompt fish_prompt + functions -e _old_fish_prompt + set -e _OLD_FISH_PROMPT_OVERRIDE + end + + set -e VIRTUAL_ENV + if test "$argv[1]" != "nondestructive" + # Self destruct! + functions -e deactivate + end +end + +# unset irrelevant variables +deactivate nondestructive + +set -gx VIRTUAL_ENV "/Users/ajaychenampara/vagrant/nsot" + +set -gx _OLD_VIRTUAL_PATH $PATH +set -gx PATH "$VIRTUAL_ENV/bin" $PATH + +# unset PYTHONHOME if set +if set -q PYTHONHOME + set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME + set -e PYTHONHOME +end + +if test -z "$VIRTUAL_ENV_DISABLE_PROMPT" + # fish uses a function instead of an env var to generate the prompt. + + # copy the current fish_prompt function as the function _old_fish_prompt + functions -c fish_prompt _old_fish_prompt + + # with the original prompt function copied, we can override with our own. + function fish_prompt + # Prompt override? + if test -n "" + printf "%s%s" "" (set_color normal) + _old_fish_prompt + return + end + # ...Otherwise, prepend env + set -l _checkbase (basename "$VIRTUAL_ENV") + if test $_checkbase = "__" + # special case for Aspen magic directories + # see http://www.zetadev.com/software/aspen/ + printf "%s[%s]%s " (set_color -b blue white) (basename (dirname "$VIRTUAL_ENV")) (set_color normal) + _old_fish_prompt + else + printf "%s(%s)%s" (set_color -b blue white) (basename "$VIRTUAL_ENV") (set_color normal) + _old_fish_prompt + end + end + + set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV" +end diff --git a/bin/activate_this.py b/bin/activate_this.py new file mode 100644 index 00000000..f18193bf --- /dev/null +++ b/bin/activate_this.py @@ -0,0 +1,34 @@ +"""By using execfile(this_file, dict(__file__=this_file)) you will +activate this virtualenv environment. + +This can be used when you must use an existing Python interpreter, not +the virtualenv bin/python +""" + +try: + __file__ +except NameError: + raise AssertionError( + "You must run this like execfile('path/to/activate_this.py', dict(__file__='path/to/activate_this.py'))") +import sys +import os + +old_os_path = os.environ.get('PATH', '') +os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + os.pathsep + old_os_path +base = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +if sys.platform == 'win32': + site_packages = os.path.join(base, 'Lib', 'site-packages') +else: + site_packages = os.path.join(base, 'lib', 'python%s' % sys.version[:3], 'site-packages') +prev_sys_path = list(sys.path) +import site +site.addsitedir(site_packages) +sys.real_prefix = sys.prefix +sys.prefix = base +# Move the added items to the front of the path: +new_sys_path = [] +for item in list(sys.path): + if item not in prev_sys_path: + new_sys_path.append(item) + sys.path.remove(item) +sys.path[:0] = new_sys_path diff --git a/bin/django-admin b/bin/django-admin new file mode 100755 index 00000000..db4026f8 --- /dev/null +++ b/bin/django-admin @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'Django==1.8.11','console_scripts','django-admin' +__requires__ = 'Django==1.8.11' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('Django==1.8.11', 'console_scripts', 'django-admin')() + ) diff --git a/bin/django-admin.py b/bin/django-admin.py new file mode 100755 index 00000000..c55ee3f3 --- /dev/null +++ b/bin/django-admin.py @@ -0,0 +1,5 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +from django.core import management + +if __name__ == "__main__": + management.execute_from_command_line() diff --git a/bin/easy_install b/bin/easy_install new file mode 100755 index 00000000..dba97f51 --- /dev/null +++ b/bin/easy_install @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==18.2','console_scripts','easy_install' +__requires__ = 'setuptools==18.2' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('setuptools==18.2', 'console_scripts', 'easy_install')() + ) diff --git a/bin/easy_install-2.7 b/bin/easy_install-2.7 new file mode 100755 index 00000000..ae9642ea --- /dev/null +++ b/bin/easy_install-2.7 @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from setuptools.command.easy_install import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/easy_install-3.4 b/bin/easy_install-3.4 new file mode 100755 index 00000000..874b2b33 --- /dev/null +++ b/bin/easy_install-3.4 @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==18.2','console_scripts','easy_install-3.4' +__requires__ = 'setuptools==18.2' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('setuptools==18.2', 'console_scripts', 'easy_install-3.4')() + ) diff --git a/bin/gunicorn b/bin/gunicorn new file mode 100755 index 00000000..14606447 --- /dev/null +++ b/bin/gunicorn @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'gunicorn==19.3.0','console_scripts','gunicorn' +__requires__ = 'gunicorn==19.3.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('gunicorn==19.3.0', 'console_scripts', 'gunicorn')() + ) diff --git a/bin/gunicorn_django b/bin/gunicorn_django new file mode 100755 index 00000000..c248ee95 --- /dev/null +++ b/bin/gunicorn_django @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'gunicorn==19.3.0','console_scripts','gunicorn_django' +__requires__ = 'gunicorn==19.3.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('gunicorn==19.3.0', 'console_scripts', 'gunicorn_django')() + ) diff --git a/bin/gunicorn_paster b/bin/gunicorn_paster new file mode 100755 index 00000000..3c557e4e --- /dev/null +++ b/bin/gunicorn_paster @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'gunicorn==19.3.0','console_scripts','gunicorn_paster' +__requires__ = 'gunicorn==19.3.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('gunicorn==19.3.0', 'console_scripts', 'gunicorn_paster')() + ) diff --git a/bin/ipcluster b/bin/ipcluster new file mode 100755 index 00000000..468558c6 --- /dev/null +++ b/bin/ipcluster @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipcluster' +__requires__ = 'ipython==3.1.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('ipython==3.1.0', 'console_scripts', 'ipcluster')() + ) diff --git a/bin/ipcluster2 b/bin/ipcluster2 new file mode 100755 index 00000000..8c9a0f6e --- /dev/null +++ b/bin/ipcluster2 @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipcluster2' +__requires__ = 'ipython==3.1.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('ipython==3.1.0', 'console_scripts', 'ipcluster2')() + ) diff --git a/bin/ipcontroller b/bin/ipcontroller new file mode 100755 index 00000000..a7a23330 --- /dev/null +++ b/bin/ipcontroller @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipcontroller' +__requires__ = 'ipython==3.1.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('ipython==3.1.0', 'console_scripts', 'ipcontroller')() + ) diff --git a/bin/ipcontroller2 b/bin/ipcontroller2 new file mode 100755 index 00000000..3a50a215 --- /dev/null +++ b/bin/ipcontroller2 @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipcontroller2' +__requires__ = 'ipython==3.1.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('ipython==3.1.0', 'console_scripts', 'ipcontroller2')() + ) diff --git a/bin/ipdb b/bin/ipdb new file mode 100755 index 00000000..bf30dc88 --- /dev/null +++ b/bin/ipdb @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from ipdb.__main__ import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/ipengine b/bin/ipengine new file mode 100755 index 00000000..a91727eb --- /dev/null +++ b/bin/ipengine @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipengine' +__requires__ = 'ipython==3.1.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('ipython==3.1.0', 'console_scripts', 'ipengine')() + ) diff --git a/bin/ipengine2 b/bin/ipengine2 new file mode 100755 index 00000000..4e39382d --- /dev/null +++ b/bin/ipengine2 @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipengine2' +__requires__ = 'ipython==3.1.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('ipython==3.1.0', 'console_scripts', 'ipengine2')() + ) diff --git a/bin/iptest b/bin/iptest new file mode 100755 index 00000000..1072172f --- /dev/null +++ b/bin/iptest @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','iptest' +__requires__ = 'ipython==3.1.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('ipython==3.1.0', 'console_scripts', 'iptest')() + ) diff --git a/bin/iptest2 b/bin/iptest2 new file mode 100755 index 00000000..a5e8f2c3 --- /dev/null +++ b/bin/iptest2 @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','iptest2' +__requires__ = 'ipython==3.1.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('ipython==3.1.0', 'console_scripts', 'iptest2')() + ) diff --git a/bin/ipython b/bin/ipython new file mode 100755 index 00000000..ba64410c --- /dev/null +++ b/bin/ipython @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipython' +__requires__ = 'ipython==3.1.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('ipython==3.1.0', 'console_scripts', 'ipython')() + ) diff --git a/bin/ipython2 b/bin/ipython2 new file mode 100755 index 00000000..0239a9dc --- /dev/null +++ b/bin/ipython2 @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipython2' +__requires__ = 'ipython==3.1.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('ipython==3.1.0', 'console_scripts', 'ipython2')() + ) diff --git a/bin/livereload b/bin/livereload new file mode 100755 index 00000000..0e40216c --- /dev/null +++ b/bin/livereload @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from livereload.cli import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/mrproxy b/bin/mrproxy new file mode 100755 index 00000000..9dd6d8d9 --- /dev/null +++ b/bin/mrproxy @@ -0,0 +1,32 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +import argparse +import BaseHTTPServer + +from mrproxy import UserProxyHandler + +def main(): + + description_msg = "Mediocre Reverse Proxy." + parser = argparse.ArgumentParser(description=description_msg) + + parser.add_argument("-p", "--listen-port", default=8888, type=int, + help="Port to listen on.") + parser.add_argument("-P", "--backend-port", default=8989, type=int, + help="Port to proxy to.") + parser.add_argument("--header", default=[], action="append", + help="Headers to pass to backend. e.g. --header") + + args = parser.parse_args() + + # localhost is hardcoded to discourage real use. :) + server = BaseHTTPServer.HTTPServer(('localhost', args.listen_port), UserProxyHandler) + server.args = args + try: + server.serve_forever() + except KeyboardInterrupt: + print "Bye!" + + +if __name__ == "__main__": + main() diff --git a/bin/netaddr b/bin/netaddr new file mode 100755 index 00000000..bad85570 --- /dev/null +++ b/bin/netaddr @@ -0,0 +1,37 @@ +#!/usr/bin/env python +#----------------------------------------------------------------------------- +# Copyright (c) 2008-2015, David P. D. Moss. All rights reserved. +# +# Released under the BSD license. See the LICENSE file for details. +#----------------------------------------------------------------------------- +"""an interactive shell for the netaddr library""" + +import os +import sys +import netaddr +from netaddr import * + +# aliases to save some typing ... +from netaddr import IPAddress as IP, IPNetwork as CIDR +from netaddr import EUI as MAC + +argv = sys.argv[1:] + +banner = "\nnetaddr shell %s - %s\n" % (netaddr.__version__, __doc__) +exit_msg = "\nShare and enjoy!" +rc_override = None + +try: + try: + # ipython >= 0.11 + from IPython.terminal.embed import InteractiveShellEmbed + ipshell = InteractiveShellEmbed(banner1=banner, exit_msg=exit_msg) + except ImportError: + # ipython < 0.11 + from IPython.Shell import IPShellEmbed + ipshell = IPShellEmbed(argv, banner, exit_msg, rc_override) +except ImportError: + sys.stderr.write('IPython (http://ipython.scipy.org/) not found!\n') + sys.exit(1) + +ipshell() diff --git a/bin/nsot-server b/bin/nsot-server new file mode 100755 index 00000000..cd977f25 --- /dev/null +++ b/bin/nsot-server @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'nsot==1.0.1','console_scripts','nsot-server' +__requires__ = 'nsot==1.0.1' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('nsot==1.0.1', 'console_scripts', 'nsot-server')() + ) diff --git a/bin/pip b/bin/pip new file mode 100755 index 00000000..2e8bb4e3 --- /dev/null +++ b/bin/pip @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from pip import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/pip2 b/bin/pip2 new file mode 100755 index 00000000..2e8bb4e3 --- /dev/null +++ b/bin/pip2 @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from pip import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/pip2.7 b/bin/pip2.7 new file mode 100755 index 00000000..2e8bb4e3 --- /dev/null +++ b/bin/pip2.7 @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from pip import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/port-for b/bin/port-for new file mode 100755 index 00000000..6472cca1 --- /dev/null +++ b/bin/port-for @@ -0,0 +1,54 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +""" +port-for is a command-line utility that +helps with local TCP ports managment. It +finds 'good' unused TCP localhost port and +remembers the association. + +Usage: + port-for + port-for --bind + port-for --bind --port + port-for --port + port-for --unbind + port-for --list + port-for --version + port-for --help + +Options: + -h --help Show this screen. + -v, --version Show version. + -b FOO, --bind FOO Find and return a port for FOO; this is an alias for + 'port-for FOO'. + -p PORT, --port PORT (Optional) specific port number for the --bind command. + -u FOO, --unbind FOO Remove association for FOO. + -l, --list List all associated ports. +""" + +import sys +import port_for +from port_for.docopt import docopt + +store = port_for.PortStore() + +def _list(): + for app, port in store.bound_ports(): + sys.stdout.write("%s: %s\n" % (app, port)) + +def _bind(app, port=None): + port = store.bind_port(app, port) + sys.stdout.write("%s\n" % port) + +def _unbind(app): + store.unbind_port(app) + +if __name__ == '__main__': + args = docopt(__doc__, version='port-for %s' % port_for.__version__) + if args['']: + _bind(args[''], args['--port']) + elif args['--bind']: + _bind(args['--bind'], args['--port']) + elif args['--list']: + _list() + elif args['--unbind']: + _unbind(args['--unbind']) diff --git a/bin/py.test b/bin/py.test new file mode 100755 index 00000000..33a369b7 --- /dev/null +++ b/bin/py.test @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from pytest import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/py.test-2.7 b/bin/py.test-2.7 new file mode 100755 index 00000000..33a369b7 --- /dev/null +++ b/bin/py.test-2.7 @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from pytest import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/pybabel b/bin/pybabel new file mode 100755 index 00000000..786a178e --- /dev/null +++ b/bin/pybabel @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from babel.messages.frontend import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/pygmentize b/bin/pygmentize new file mode 100755 index 00000000..3f2baf02 --- /dev/null +++ b/bin/pygmentize @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from pygments.cmdline import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/python b/bin/python new file mode 100755 index 0000000000000000000000000000000000000000..947e5658c0ca209d0afe940788365173d22802a8 GIT binary patch literal 25152 zcmeHPZEPGz8J-JveN7EHM=qqrDVJcQP^3F2jnfEd@P%BkRmXAsMM^%Fv%Se3+=sQd zPVD|bhCq@NJ;_24MXkbFGP?CyDQ zZ6_5Fl}PU^&&>NV^X|+ud(zI#JHEbr`HE6%15y*xhm?w-*uDcK5 zARq_`0)l`bAP5Kof`A|(2nYg#fFK|U++zs5@y|amy9wmQu z$uI^IUrK%@Ie6GNIBpZHLu~g9GQ${79v${oVjHg=N_?PhKRpUJIzH}$0zS~#NSoP7 z)6#PNIOgD^2l_eq;KoUfTpyGTW4vfvnfz(j80^Ol`1m7iH{iohet(8Bl|P%wPZ*i} zsRAkmeawHt>Bs!0KtFsAImQLu_CR7d;WI?Rd-LJW1vYg zp{>8q#E*$&7}?bAe1xM)Z9%Rip_~58hvJLBc zv|XuLRMB?0SCOdmEUHL5qDoDmdlrL;k>LSVqkOq)Q^zS9s_xea% zkkV)$m|9(hx;7+kq{XL-Ry>;-i%-mC*_V$au@5i5di?RWU+sD2XKHI?e&NM$@qOhO z)C1@l(xaYC-ARlEV`aOhzytY=qe!%|zZ;v7BXyh8=J=GI8q1o-WXev*W3hN_V8%`t z@=E8iQ&uWxo-J5kkB^#GF;mDFn{eQi{81#O;Fai?OuFEeJPteN;h@5#mZ7YmkourQUMNZIJYT760c>cIb}kcd?! z>deolU77PLBnSusf`A|(2nYg#!2bk+k!9%v7jFO(dvp|rcb(nS6^wZHLc|AvO;3yt_rb6PCjGu;posF^)#j7Nu@kRh6c|IR9>dA+ofRXf5_=FK|i7kRa#Rp(oD-iAEgpjm}{ zj^B%F=~lH`O=E?lmfj(UHIG{Q1GyNvUz6KM?ib_^k(&oMUdY8#lapC9mNSdR)M+y| zQOKn-d9`BLKXhQow9aJ4&0=h5+{#SaSg!S@@~5XzeWYmms(L<(nbY}{J!P$Fo66-< zR_19_J(V0%edZZ6tNIHz+^a)Q7nB-J4i5Dm?oSRH15XY29PT$tlYOGv(Yh0ePQ`{ zxtoWP&H?xs&Yp1qe#BC9$_lr18v`@OA?~3-Y~I{$q>5SNlx3QfBd(k`&r)o4#iE&? zpuD9f+Z5X%7ERmCpJ^ZI?>)M!v-2^iRmd=MX~Q|4G;#i(;^RNYEsg)0e*W+^Zkebv zNS{aApG-C408(uV;j|EcJR?N~U8lpxbCU^5-G{wCKH=k^^zp+!-t_U@d*SmK@4)kM z?~MC?@SyJX>@=>03g+TaYTQU#Rso0e-o&g-iRL&Nn$gqXa<*Cp{i-RqQWMr^-F`H_ZM7$o*V7~`TNEB^yU;S`g8lc3=!8~Co6*} z`~7+QJ&skWmETq1UPIIwXSX*H$RtmuAB}_7;=gkE?m2{^V}zB5HLFA+e--7dThcA< z70A5ju&@m_l>g~Hhl^+*c;(>D(M3_NbLEzwf~L6%qsl0YN|z5CjB) z4;q1yp3=?4=umHId1tk96TRsvz1CCi`a%d?`N1PBN{f{nG?cq?j@VcFd*zy=IqTHp zy=vCGR?XlGsR4;(Fn^5JvF)qWe=oz*M}+)Z+Y|xc|JW2khK^^S9@o V4g2K9I(X;BAK?7}^?t4e{2Rf%y59f* literal 0 HcmV?d00001 diff --git a/bin/python2 b/bin/python2 new file mode 120000 index 00000000..d8654aa0 --- /dev/null +++ b/bin/python2 @@ -0,0 +1 @@ +python \ No newline at end of file diff --git a/bin/python2.7 b/bin/python2.7 new file mode 120000 index 00000000..d8654aa0 --- /dev/null +++ b/bin/python2.7 @@ -0,0 +1 @@ +python \ No newline at end of file diff --git a/bin/rst2html.py b/bin/rst2html.py new file mode 100755 index 00000000..7c49c129 --- /dev/null +++ b/bin/rst2html.py @@ -0,0 +1,23 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $ +# Author: David Goodger +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing HTML. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates (X)HTML documents from standalone reStructuredText ' + 'sources. ' + default_description) + +publish_cmdline(writer_name='html', description=description) diff --git a/bin/rst2latex.py b/bin/rst2latex.py new file mode 100755 index 00000000..ab085000 --- /dev/null +++ b/bin/rst2latex.py @@ -0,0 +1,26 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $ +# Author: David Goodger +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing LaTeX. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline + +description = ('Generates LaTeX documents from standalone reStructuredText ' + 'sources. ' + 'Reads from (default is stdin) and writes to ' + ' (default is stdout). See ' + ' for ' + 'the full reference.') + +publish_cmdline(writer_name='latex', description=description) diff --git a/bin/rst2man.py b/bin/rst2man.py new file mode 100755 index 00000000..a9e6f533 --- /dev/null +++ b/bin/rst2man.py @@ -0,0 +1,26 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# Author: +# Contact: grubert@users.sf.net +# Copyright: This module has been placed in the public domain. + +""" +man.py +====== + +This module provides a simple command line interface that uses the +man page writer to output from ReStructuredText source. +""" + +import locale +try: + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description +from docutils.writers import manpage + +description = ("Generates plain unix manual documents. " + default_description) + +publish_cmdline(writer=manpage.Writer(), description=description) diff --git a/bin/rst2odt.py b/bin/rst2odt.py new file mode 100755 index 00000000..832d4737 --- /dev/null +++ b/bin/rst2odt.py @@ -0,0 +1,30 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# $Id: rst2odt.py 5839 2009-01-07 19:09:28Z dkuhlman $ +# Author: Dave Kuhlman +# Copyright: This module has been placed in the public domain. + +""" +A front end to the Docutils Publisher, producing OpenOffice documents. +""" + +import sys +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline_to_binary, default_description +from docutils.writers.odf_odt import Writer, Reader + + +description = ('Generates OpenDocument/OpenOffice/ODF documents from ' + 'standalone reStructuredText sources. ' + default_description) + + +writer = Writer() +reader = Reader() +output = publish_cmdline_to_binary(reader=reader, writer=writer, + description=description) + diff --git a/bin/rst2odt_prepstyles.py b/bin/rst2odt_prepstyles.py new file mode 100755 index 00000000..3b0c7c5c --- /dev/null +++ b/bin/rst2odt_prepstyles.py @@ -0,0 +1,67 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# $Id: rst2odt_prepstyles.py 5839 2009-01-07 19:09:28Z dkuhlman $ +# Author: Dave Kuhlman +# Copyright: This module has been placed in the public domain. + +""" +Fix a word-processor-generated styles.odt for odtwriter use: Drop page size +specifications from styles.xml in STYLE_FILE.odt. +""" + +# +# Author: Michael Schutte + +from lxml import etree +import sys +import zipfile +from tempfile import mkstemp +import shutil +import os + +NAMESPACES = { + "style": "urn:oasis:names:tc:opendocument:xmlns:style:1.0", + "fo": "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" +} + +def prepstyle(filename): + + zin = zipfile.ZipFile(filename) + styles = zin.read("styles.xml") + + root = etree.fromstring(styles) + for el in root.xpath("//style:page-layout-properties", + namespaces=NAMESPACES): + for attr in el.attrib: + if attr.startswith("{%s}" % NAMESPACES["fo"]): + del el.attrib[attr] + + tempname = mkstemp() + zout = zipfile.ZipFile(os.fdopen(tempname[0], "w"), "w", + zipfile.ZIP_DEFLATED) + + for item in zin.infolist(): + if item.filename == "styles.xml": + zout.writestr(item, etree.tostring(root)) + else: + zout.writestr(item, zin.read(item.filename)) + + zout.close() + zin.close() + shutil.move(tempname[1], filename) + + +def main(): + args = sys.argv[1:] + if len(args) != 1: + print >> sys.stderr, __doc__ + print >> sys.stderr, "Usage: %s STYLE_FILE.odt\n" % sys.argv[0] + sys.exit(1) + filename = args[0] + prepstyle(filename) + +if __name__ == '__main__': + main() + + +# vim:tw=78:sw=4:sts=4:et: diff --git a/bin/rst2pseudoxml.py b/bin/rst2pseudoxml.py new file mode 100755 index 00000000..5e7bba73 --- /dev/null +++ b/bin/rst2pseudoxml.py @@ -0,0 +1,23 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# $Id: rst2pseudoxml.py 4564 2006-05-21 20:44:42Z wiemann $ +# Author: David Goodger +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing pseudo-XML. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates pseudo-XML from standalone reStructuredText ' + 'sources (for testing purposes). ' + default_description) + +publish_cmdline(description=description) diff --git a/bin/rst2s5.py b/bin/rst2s5.py new file mode 100755 index 00000000..2a64c080 --- /dev/null +++ b/bin/rst2s5.py @@ -0,0 +1,24 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $ +# Author: Chris Liechti +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing HTML slides using +the S5 template system. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates S5 (X)HTML slideshow documents from standalone ' + 'reStructuredText sources. ' + default_description) + +publish_cmdline(writer_name='s5', description=description) diff --git a/bin/rst2xetex.py b/bin/rst2xetex.py new file mode 100755 index 00000000..3da01b7a --- /dev/null +++ b/bin/rst2xetex.py @@ -0,0 +1,26 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# $Id: rst2xetex.py 7038 2011-05-19 09:12:02Z milde $ +# Author: Guenter Milde +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing XeLaTeX source code. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline + +description = ('Generates XeLaTeX documents from standalone reStructuredText ' + 'sources. ' + 'Reads from (default is stdin) and writes to ' + ' (default is stdout). See ' + ' for ' + 'the full reference.') + +publish_cmdline(writer_name='xetex', description=description) diff --git a/bin/rst2xml.py b/bin/rst2xml.py new file mode 100755 index 00000000..2f75daa9 --- /dev/null +++ b/bin/rst2xml.py @@ -0,0 +1,23 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $ +# Author: David Goodger +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing Docutils XML. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates Docutils-native XML from standalone ' + 'reStructuredText sources. ' + default_description) + +publish_cmdline(writer_name='xml', description=description) diff --git a/bin/rstpep2html.py b/bin/rstpep2html.py new file mode 100755 index 00000000..7b993849 --- /dev/null +++ b/bin/rstpep2html.py @@ -0,0 +1,25 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $ +# Author: David Goodger +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing HTML from PEP +(Python Enhancement Proposal) documents. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates (X)HTML from reStructuredText-format PEP files. ' + + default_description) + +publish_cmdline(reader_name='pep', writer_name='pep_html', + description=description) diff --git a/bin/snot-server b/bin/snot-server new file mode 100755 index 00000000..a9dd3ffd --- /dev/null +++ b/bin/snot-server @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'nsot==1.0.1','console_scripts','snot-server' +__requires__ = 'nsot==1.0.1' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('nsot==1.0.1', 'console_scripts', 'snot-server')() + ) diff --git a/bin/sphinx-apidoc b/bin/sphinx-apidoc new file mode 100755 index 00000000..407146c9 --- /dev/null +++ b/bin/sphinx-apidoc @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from sphinx.apidoc import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/sphinx-autobuild b/bin/sphinx-autobuild new file mode 100755 index 00000000..428c2c85 --- /dev/null +++ b/bin/sphinx-autobuild @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from sphinx_autobuild import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/sphinx-autogen b/bin/sphinx-autogen new file mode 100755 index 00000000..b354e44b --- /dev/null +++ b/bin/sphinx-autogen @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from sphinx.ext.autosummary.generate import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/sphinx-build b/bin/sphinx-build new file mode 100755 index 00000000..dbe7f2c5 --- /dev/null +++ b/bin/sphinx-build @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from sphinx import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/sphinx-quickstart b/bin/sphinx-quickstart new file mode 100755 index 00000000..06775315 --- /dev/null +++ b/bin/sphinx-quickstart @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from sphinx.quickstart import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/static b/bin/static new file mode 100755 index 00000000..f0dcb186 --- /dev/null +++ b/bin/static @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'static3==0.6.1','console_scripts','static' +__requires__ = 'static3==0.6.1' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('static3==0.6.1', 'console_scripts', 'static')() + ) diff --git a/bin/watchmedo b/bin/watchmedo new file mode 100755 index 00000000..b2f8d0c1 --- /dev/null +++ b/bin/watchmedo @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from watchdog.watchmedo import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/wheel b/bin/wheel new file mode 100755 index 00000000..2278b9fa --- /dev/null +++ b/bin/wheel @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from wheel.tool import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/include/python2.7 b/include/python2.7 new file mode 120000 index 00000000..3fe034fc --- /dev/null +++ b/include/python2.7 @@ -0,0 +1 @@ +/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 \ No newline at end of file diff --git a/include/site/python2.7/greenlet/greenlet.h b/include/site/python2.7/greenlet/greenlet.h new file mode 100644 index 00000000..c5e5c3fe --- /dev/null +++ b/include/site/python2.7/greenlet/greenlet.h @@ -0,0 +1,148 @@ +/* vim:set noet ts=8 sw=8 : */ + +/* Greenlet object interface */ + +#ifndef Py_GREENLETOBJECT_H +#define Py_GREENLETOBJECT_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#define GREENLET_VERSION "0.4.9" + +typedef struct _greenlet { + PyObject_HEAD + char* stack_start; + char* stack_stop; + char* stack_copy; + intptr_t stack_saved; + struct _greenlet* stack_prev; + struct _greenlet* parent; + PyObject* run_info; + struct _frame* top_frame; + int recursion_depth; + PyObject* weakreflist; + PyObject* exc_type; + PyObject* exc_value; + PyObject* exc_traceback; + PyObject* dict; +} PyGreenlet; + +#define PyGreenlet_Check(op) PyObject_TypeCheck(op, &PyGreenlet_Type) +#define PyGreenlet_MAIN(op) (((PyGreenlet*)(op))->stack_stop == (char*) -1) +#define PyGreenlet_STARTED(op) (((PyGreenlet*)(op))->stack_stop != NULL) +#define PyGreenlet_ACTIVE(op) (((PyGreenlet*)(op))->stack_start != NULL) +#define PyGreenlet_GET_PARENT(op) (((PyGreenlet*)(op))->parent) + +#if (PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION >= 7) || (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION >= 1) || PY_MAJOR_VERSION > 3 +#define GREENLET_USE_PYCAPSULE +#endif + +/* C API functions */ + +/* Total number of symbols that are exported */ +#define PyGreenlet_API_pointers 8 + +#define PyGreenlet_Type_NUM 0 +#define PyExc_GreenletError_NUM 1 +#define PyExc_GreenletExit_NUM 2 + +#define PyGreenlet_New_NUM 3 +#define PyGreenlet_GetCurrent_NUM 4 +#define PyGreenlet_Throw_NUM 5 +#define PyGreenlet_Switch_NUM 6 +#define PyGreenlet_SetParent_NUM 7 + +#ifndef GREENLET_MODULE +/* This section is used by modules that uses the greenlet C API */ +static void **_PyGreenlet_API = NULL; + +#define PyGreenlet_Type (*(PyTypeObject *) _PyGreenlet_API[PyGreenlet_Type_NUM]) + +#define PyExc_GreenletError \ + ((PyObject *) _PyGreenlet_API[PyExc_GreenletError_NUM]) + +#define PyExc_GreenletExit \ + ((PyObject *) _PyGreenlet_API[PyExc_GreenletExit_NUM]) + +/* + * PyGreenlet_New(PyObject *args) + * + * greenlet.greenlet(run, parent=None) + */ +#define PyGreenlet_New \ + (* (PyGreenlet * (*)(PyObject *run, PyGreenlet *parent)) \ + _PyGreenlet_API[PyGreenlet_New_NUM]) + +/* + * PyGreenlet_GetCurrent(void) + * + * greenlet.getcurrent() + */ +#define PyGreenlet_GetCurrent \ + (* (PyGreenlet * (*)(void)) _PyGreenlet_API[PyGreenlet_GetCurrent_NUM]) + +/* + * PyGreenlet_Throw( + * PyGreenlet *greenlet, + * PyObject *typ, + * PyObject *val, + * PyObject *tb) + * + * g.throw(...) + */ +#define PyGreenlet_Throw \ + (* (PyObject * (*) \ + (PyGreenlet *self, PyObject *typ, PyObject *val, PyObject *tb)) \ + _PyGreenlet_API[PyGreenlet_Throw_NUM]) + +/* + * PyGreenlet_Switch(PyGreenlet *greenlet, PyObject *args) + * + * g.switch(*args, **kwargs) + */ +#define PyGreenlet_Switch \ + (* (PyObject * (*)(PyGreenlet *greenlet, PyObject *args, PyObject *kwargs)) \ + _PyGreenlet_API[PyGreenlet_Switch_NUM]) + +/* + * PyGreenlet_SetParent(PyObject *greenlet, PyObject *new_parent) + * + * g.parent = new_parent + */ +#define PyGreenlet_SetParent \ + (* (int (*)(PyGreenlet *greenlet, PyGreenlet *nparent)) \ + _PyGreenlet_API[PyGreenlet_SetParent_NUM]) + +/* Macro that imports greenlet and initializes C API */ +#ifdef GREENLET_USE_PYCAPSULE +#define PyGreenlet_Import() \ +{ \ + _PyGreenlet_API = (void**)PyCapsule_Import("greenlet._C_API", 0); \ +} +#else +#define PyGreenlet_Import() \ +{ \ + PyObject *module = PyImport_ImportModule("greenlet"); \ + if (module != NULL) { \ + PyObject *c_api_object = PyObject_GetAttrString( \ + module, "_C_API"); \ + if (c_api_object != NULL && PyCObject_Check(c_api_object)) { \ + _PyGreenlet_API = \ + (void **) PyCObject_AsVoidPtr(c_api_object); \ + Py_DECREF(c_api_object); \ + } \ + Py_DECREF(module); \ + } \ +} +#endif + +#endif /* GREENLET_MODULE */ + +#ifdef __cplusplus +} +#endif +#endif /* !Py_GREENLETOBJECT_H */ diff --git a/nsot/admin.py b/nsot/admin.py index 4f70ae3d..eeb6cea5 100644 --- a/nsot/admin.py +++ b/nsot/admin.py @@ -84,3 +84,12 @@ class InterfaceAdmin(admin.ModelAdmin): fields = list_display admin.site.register(models.Interface, InterfaceAdmin) + + +class IterableAdmin(admin.ModelAdmin): + pass +admin.site.register(models.Iterable, IterableAdmin) + +class IterValueAdmin(admin.ModelAdmin): + pass +admin.site.register(models.IterValue, IterValueAdmin) diff --git a/nsot/migrations/0026_auto_20160907_1122.py b/nsot/migrations/0026_auto_20160907_1122.py new file mode 100644 index 00000000..62d9eb1a --- /dev/null +++ b/nsot/migrations/0026_auto_20160907_1122.py @@ -0,0 +1,232 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models +import nsot.fields +import nsot.util.core +import django.db.models.deletion +from django.conf import settings +import django_extensions.db.fields.json + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0025_value_site'), + ] + + operations = [ + migrations.CreateModel( + name='Iterable', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(help_text='The name of the Iterable.', unique=True, max_length=255)), + ('description', models.TextField(default='', help_text='A helpful description for the Iterable.', blank=True)), + ], + ), + migrations.AlterField( + model_name='assignment', + name='address', + field=models.ForeignKey(related_name='assignments', to='nsot.Network', help_text='Network to which this assignment is bound.'), + ), + migrations.AlterField( + model_name='assignment', + name='interface', + field=models.ForeignKey(related_name='assignments', to='nsot.Interface', help_text='Interface to which this assignment is bound.'), + ), + migrations.AlterField( + model_name='attribute', + name='constraints', + field=django_extensions.db.fields.json.JSONField(help_text='Dictionary of Attribute constraints.', verbose_name='Constraints', blank=True), + ), + migrations.AlterField( + model_name='attribute', + name='description', + field=models.CharField(default='', help_text='A helpful description of the Attribute.', max_length=255, blank=True), + ), + migrations.AlterField( + model_name='attribute', + name='display', + field=models.BooleanField(default=False, help_text='Whether the Attribute should be be displayed by default in UIs. If required is set, this is also set.'), + ), + migrations.AlterField( + model_name='attribute', + name='multi', + field=models.BooleanField(default=False, help_text='Whether the Attribute should be treated as a list type.'), + ), + migrations.AlterField( + model_name='attribute', + name='name', + field=models.CharField(help_text='The name of the Attribute.', max_length=64, db_index=True), + ), + migrations.AlterField( + model_name='attribute', + name='required', + field=models.BooleanField(default=False, help_text='Whether the Attribute should be required.'), + ), + migrations.AlterField( + model_name='attribute', + name='resource_name', + field=models.CharField(help_text='The name of the Resource to which this Attribute is bound.', max_length=20, verbose_name='Resource Name', db_index=True, choices=[('Device', 'Device'), ('Interface', 'Interface'), ('Network', 'Network')]), + ), + migrations.AlterField( + model_name='attribute', + name='site', + field=models.ForeignKey(related_name='attributes', on_delete=django.db.models.deletion.PROTECT, verbose_name='Site', to='nsot.Site', help_text='Unique ID of the Site this Attribute is under.'), + ), + migrations.AlterField( + model_name='change', + name='_resource', + field=django_extensions.db.fields.json.JSONField(help_text='Local cache of the changed Resource. (Internal use only)', verbose_name='Resource', blank=True), + ), + migrations.AlterField( + model_name='change', + name='change_at', + field=models.DateTimeField(help_text='The timestamp of this Change.', auto_now_add=True), + ), + migrations.AlterField( + model_name='change', + name='event', + field=models.CharField(help_text='The type of event this Change represents.', max_length=10, choices=[('Create', 'Create'), ('Update', 'Update'), ('Delete', 'Delete')]), + ), + migrations.AlterField( + model_name='change', + name='resource_id', + field=models.IntegerField(help_text='The unique ID of the Resource for this Change.', verbose_name='Resource ID'), + ), + migrations.AlterField( + model_name='change', + name='resource_name', + field=models.CharField(help_text='The name of the Resource for this Change.', max_length=20, verbose_name='Resource Type', db_index=True, choices=[('Device', 'Device'), ('Attribute', 'Attribute'), ('Interface', 'Interface'), ('Site', 'Site'), ('Network', 'Network')]), + ), + migrations.AlterField( + model_name='change', + name='site', + field=models.ForeignKey(related_name='changes', verbose_name='Site', to='nsot.Site', help_text='Unique ID of the Site this Change is under.'), + ), + migrations.AlterField( + model_name='change', + name='user', + field=models.ForeignKey(related_name='changes', to=settings.AUTH_USER_MODEL, help_text='The User that initiated this Change.'), + ), + migrations.AlterField( + model_name='device', + name='_attributes_cache', + field=django_extensions.db.fields.json.JSONField(help_text='Local cache of attributes. (Internal use only)', blank=True), + ), + migrations.AlterField( + model_name='device', + name='hostname', + field=models.CharField(help_text='The hostname of the Device.', max_length=255, db_index=True), + ), + migrations.AlterField( + model_name='device', + name='site', + field=models.ForeignKey(related_name='devices', on_delete=django.db.models.deletion.PROTECT, verbose_name='Site', to='nsot.Site', help_text='Unique ID of the Site this Device is under.'), + ), + migrations.AlterField( + model_name='interface', + name='_attributes_cache', + field=django_extensions.db.fields.json.JSONField(help_text='Local cache of attributes. (Internal use only)', blank=True), + ), + migrations.AlterField( + model_name='interface', + name='addresses', + field=models.ManyToManyField(help_text='Network addresses assigned to this Interface', related_name='addresses', through='nsot.Assignment', to='nsot.Network', db_index=True), + ), + migrations.AlterField( + model_name='interface', + name='site', + field=models.ForeignKey(related_name='interfaces', on_delete=django.db.models.deletion.PROTECT, to='nsot.Site', help_text='Unique ID of the Site this Interface is under.'), + ), + migrations.AlterField( + model_name='interface', + name='speed', + field=models.IntegerField(default=1000, help_text='Integer of Mbps of interface (e.g. 20000 for 20 Gbps). If not provided, defaults to 1000.', db_index=True, blank=True), + ), + migrations.AlterField( + model_name='network', + name='_attributes_cache', + field=django_extensions.db.fields.json.JSONField(help_text='Local cache of attributes. (Internal use only)', blank=True), + ), + migrations.AlterField( + model_name='network', + name='broadcast_address', + field=nsot.fields.BinaryIPAddressField(help_text='The broadcast address for the Network. (Internal use only)', max_length=16, db_index=True), + ), + migrations.AlterField( + model_name='network', + name='is_ip', + field=models.BooleanField(default=False, help_text='Whether the Network is a host address or not.', db_index=True), + ), + migrations.AlterField( + model_name='network', + name='network_address', + field=nsot.fields.BinaryIPAddressField(help_text='The network address for the Network. The network address and the prefix length together uniquely define a network.', max_length=16, verbose_name='Network Address', db_index=True), + ), + migrations.AlterField( + model_name='network', + name='parent', + field=models.ForeignKey(related_name='children', on_delete=django.db.models.deletion.PROTECT, default=None, blank=True, to='nsot.Network', help_text='The parent Network of the Network.', null=True), + ), + migrations.AlterField( + model_name='network', + name='prefix_length', + field=models.IntegerField(help_text='Length of the Network prefix, in bits.', verbose_name='Prefix Length', db_index=True), + ), + migrations.AlterField( + model_name='network', + name='site', + field=models.ForeignKey(related_name='networks', on_delete=django.db.models.deletion.PROTECT, verbose_name='Site', to='nsot.Site', help_text='Unique ID of the Site this Network is under.'), + ), + migrations.AlterField( + model_name='network', + name='state', + field=models.CharField(default='allocated', help_text='The allocation state of the Network.', max_length=20, db_index=True, choices=[('allocated', 'Allocated'), ('assigned', 'Assigned'), ('orphaned', 'Orphaned'), ('reserved', 'Reserved')]), + ), + migrations.AlterField( + model_name='site', + name='description', + field=models.TextField(default='', help_text='A helpful description for the Site.', blank=True), + ), + migrations.AlterField( + model_name='site', + name='name', + field=models.CharField(help_text='The name of the Site.', unique=True, max_length=255), + ), + migrations.AlterField( + model_name='user', + name='secret_key', + field=models.CharField(default=nsot.util.core.generate_secret_key, help_text="The user's secret_key used for API authentication.", max_length=44), + ), + migrations.AlterField( + model_name='value', + name='attribute', + field=models.ForeignKey(related_name='values', on_delete=django.db.models.deletion.PROTECT, to='nsot.Attribute', help_text='The Attribute to which this Value is assigned.'), + ), + migrations.AlterField( + model_name='value', + name='name', + field=models.CharField(help_text='The name of the Attribute to which the Value is bound. (Internal use only)', max_length=64, verbose_name='Name', blank=True), + ), + migrations.AlterField( + model_name='value', + name='resource_id', + field=models.IntegerField(help_text='The unique ID of the Resource to which the Value is bound.', verbose_name='Resource ID'), + ), + migrations.AlterField( + model_name='value', + name='resource_name', + field=models.CharField(help_text='The name of the Resource type to which the Value is bound.', max_length=20, verbose_name='Resource Type', db_index=True, choices=[('Device', 'Device'), ('Attribute', 'Attribute'), ('Interface', 'Interface'), ('Site', 'Site'), ('Network', 'Network')]), + ), + migrations.AlterField( + model_name='value', + name='site', + field=models.ForeignKey(related_name='values', on_delete=django.db.models.deletion.PROTECT, verbose_name='Site', to='nsot.Site', help_text='Unique ID of the Site this Value is under.'), + ), + migrations.AlterField( + model_name='value', + name='value', + field=models.CharField(help_text='The Attribute value.', max_length=255, db_index=True, blank=True), + ), + ] diff --git a/nsot/migrations/0027_auto_20160907_1433.py b/nsot/migrations/0027_auto_20160907_1433.py new file mode 100644 index 00000000..62d54664 --- /dev/null +++ b/nsot/migrations/0027_auto_20160907_1433.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0026_auto_20160907_1122'), + ] + + operations = [ + migrations.AddField( + model_name='iterable', + name='increment', + field=models.IntegerField(default=1, help_text='Increment value of the Iterable by.'), + ), + migrations.AddField( + model_name='iterable', + name='max_val', + field=models.IntegerField(default=100, help_text='The maximum value of the Iterable.'), + ), + migrations.AddField( + model_name='iterable', + name='min_val', + field=models.IntegerField(default=1, help_text='The minimum value of the Iterable.'), + ), + ] diff --git a/nsot/migrations/0028_itervalue.py b/nsot/migrations/0028_itervalue.py new file mode 100644 index 00000000..626bcd93 --- /dev/null +++ b/nsot/migrations/0028_itervalue.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0027_auto_20160907_1433'), + ] + + operations = [ + migrations.CreateModel( + name='IterValue', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('val', models.IntegerField(default=1, help_text='The value of the iterable.', unique=True)), + ('u_id', models.TextField(help_text='A helpful description for the Iterable.', blank=True)), + ('iter_key', models.ForeignKey(to='nsot.Iterable')), + ], + ), + ] diff --git a/nsot/migrations/0029_auto_20160909_1320.py b/nsot/migrations/0029_auto_20160909_1320.py new file mode 100644 index 00000000..0308873a --- /dev/null +++ b/nsot/migrations/0029_auto_20160909_1320.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0028_itervalue'), + ] + + operations = [ + migrations.AlterField( + model_name='itervalue', + name='iter_key', + field=models.ForeignKey(to='nsot.Iterable', on_delete=django.db.models.deletion.PROTECT), + ), + ] diff --git a/nsot/models.py b/nsot/models.py index cdbc16c3..fb7dd89e 100644 --- a/nsot/models.py +++ b/nsot/models.py @@ -51,6 +51,151 @@ # Unique interface type IDs. INTERFACE_TYPES = [t[0] for t in settings.INTERFACE_TYPE_CHOICES] +class Iterable(models.Model): + """Generic iterable for stateful services - vlan#, po#, tenant ID etc""" + ''' + min/max_val = defines the valid range for the Iterable + increment = steps to increment the Iterable + + ''' + name = models.CharField( + max_length=255, unique=True, help_text='The name of the Iterable.' + ) + description = models.TextField( + default='', blank=True, help_text='A helpful description for the Iterable.' + ) + min_val = models.IntegerField( + default=1, help_text='The minimum value of the Iterable.' + ) + max_val = models.IntegerField( + default=100, help_text='The maximum value of the Iterable.' + ) + increment = models.IntegerField( + default = 1, help_text='Increment value of the Iterable by.' + ) + + + def __unicode__(self): + return str(self.name) + + def save(self, *args, **kwargs): + super(Iterable, self).save(*args, **kwargs) + + def to_dict(self): + return { + 'id': self.id, + 'name': self.name, + 'description': self.description, + 'min_val': self.min_val, + 'max_val': self.max_val, + 'increment': self.increment, + } + +#class IterValueManager(models.Manager): +# def getnext(self, iterable_fk): +# "Get the next value of the iterable" +# curr_val = IterValue.objects.filter(iter_key=iterable_fk).order_by('-val').values_list('val', flat=True)[0] +# incr = Iterable.objects.filter(id=iterable_fk.id).values_list('increment', flat=True)[0] +# return curr_val + incr +# +class IterValue(models.Model): + """Value table for the generic iterable defined above""" + ''' + val = contains the value + getnext = returns the next iterated value for this particular Iterable + save = saves the val + u_id = unique id to associate the value - query/deletes can be based on this unique id - This should also be set externally, to make it callable + iter_key = Foreign key that ties the Iterable with the value + ''' + iter_key = models.ForeignKey(Iterable, on_delete=models.PROTECT) + #self.default_val = 0 + #self.default_val = Iterable.objects.values_list('min_val', flat=True)[0] + + myvar = 1 + + val = models.IntegerField( + default=myvar, unique=True, help_text='The value of the iterable.' + ) + u_id = models.TextField( + blank=True, help_text='A helpful description for the Iterable.' + ) + + + def __unicode__(self): + return str(self.val) + + @classmethod + def getnext(cls, fk): + "Get the next value of the iterable" + try: + " First try to generate the next value based on the current allocation" + curr_val = IterValue.objects.filter(iter_key=fk).order_by('-val').values_list('val', flat=True)[0] + incr = Iterable.objects.filter(id=fk.id).values_list('increment', flat=True)[0] + next_val = curr_val + incr + try: + min_val = Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] + max_val = Iterable.objects.filter(id=fk.id).values_list('max_val', flat=True)[0] + if min_val <= next_val <= max_val: + return next_val + except: + log.debug('value out of range - exceeded') + raise exc.ValidationError({ + 'next_val': 'Out of range' + }) + except IndexError: + "Index Error implies that the table has not been intialized - so assign the first value" + return Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] + + + def save(self, *args, **kwargs): + super(IterValue, self).save(*args, **kwargs) + + def to_dict(self): + return { + 'id': self.id, + 'val': self.val, + } + @classmethod + def getnext_dict(cls, fx): + "Get the next value of the iterable" + try: + " First try to generate the next value based on the current allocation" + curr_val = IterValue.objects.filter(iter_key=fk).order_by('-val').values_list('val', flat=True)[0] + incr = Iterable.objects.filter(id=fk.id).values_list('increment', flat=True)[0] + next_val = curr_val + incr + try: + min_val = Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] + max_val = Iterable.objects.filter(id=fk.id).values_list('max_val', flat=True)[0] + if min_val <= next_val <= max_val: + return { + 'next_val' : next_val, + } + except: + log.debug('value out of range - exceeded') + raise exc.ValidationError({ + 'next_val': 'Out of range' + }) + except IndexError: + "Index Error implies that the table has not been intialized - so assign the first value" + first_val = Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] + return { + 'next_val' : next_val, + } + + + + + + + curr_val = IterValue.objects.filter(iter_key=fk).order_by('-val').values_list('val', flat=True)[0] + incr = Iterable.objects.filter(id=fk.id).values_list('increment', flat=True)[0] + next_val = curr_val + incr + return { + 'next_val' : next_val, + } + + + class Site(models.Model): """A namespace for attribtues, devices, and networks.""" diff --git a/pip-selfcheck.json b/pip-selfcheck.json new file mode 100644 index 00000000..a014b244 --- /dev/null +++ b/pip-selfcheck.json @@ -0,0 +1 @@ +{"last_check":"2016-09-02T17:40:33Z","pypi_version":"8.1.2"} \ No newline at end of file diff --git a/share/man/man1/ipcluster.1.gz b/share/man/man1/ipcluster.1.gz new file mode 100644 index 0000000000000000000000000000000000000000..30f43613e7db3c0e76942e06f9c5cb691da0e521 GIT binary patch literal 350 zcmV-k0ipgMiwFn>{vK5V18Hz$Y;|*VWpXYt0Bup-Zh|lvz3)?;aHC6*h;N{iMHVN7 z;>9v{QM5{v(vng%zWplxE?e?7X}_OyzH=Jn3&iQ`a!vCnLkRD^Qyk&g$7CE%Jb33I z0bO7<{fJ1hn~7#4yVi1pVuaQ*W5IAs?X+=lCtGQSh8ZR$m)PjK>8w!u9*2Iel9a}j zkYI)fSlgAZuV!jXf-J@tbYq29Ext)VHjn6Q7N>cftO&iZsyo#){a@OEkT+MTwc!xT z_0;SP4HuO@!fJFaf2`u8Z5mOepIP-=aLhR{U<_oFBN&RHFhA8hADOC16L0Ec_6TmS$7 literal 0 HcmV?d00001 diff --git a/share/man/man1/ipcontroller.1.gz b/share/man/man1/ipcontroller.1.gz new file mode 100644 index 0000000000000000000000000000000000000000..3b5f03da53e006070ede4b5390092fe7a2b12776 GIT binary patch literal 353 zcmV-n0iOOJiwFn>{vK5V18Hz$Z*FvQZ)|L3axO6dZBff^!Y~lL`zuztK&227{(wg+ zQqd%e(?dmiFt89yjvd7gh`;X=Xa%&=TC!*D*_m-rEFsS3X;S3rY8B-Wg7?;GgmCP` zWE@UB@GivyzJz4@9*BYg;g>nSeiPnLDJ9KYa;yt^{XlO($2vpRso6bpn zU_BlGOwx?UoCPzur({7M!x~KEq|p|>uD2HvpXYH_#A(7F1oYGG-|?=(UkO{)Sx3z5 zl^V5a5u~O&wYZD`s>+a=>lfl)a$D;_QE1pu`vz(Ol>WATre>vaxWIuKG#FhgwMOXyFbv=ZDZ1ctmBI8nuH0MIEqjwGm|JE&>1mRwJvO literal 0 HcmV?d00001 diff --git a/share/man/man1/ipengine.1.gz b/share/man/man1/ipengine.1.gz new file mode 100644 index 0000000000000000000000000000000000000000..5c597cc2ba03e4a5f3380b466a2ef657ab184876 GIT binary patch literal 343 zcmV-d0jT~TiwFn>{vK5V18Hz&Zf9w3WiBxQWl`O3gCG>X=P6FSX_u&}eS>y&tIMWF z+{H3?LEFwK=9Tpgk%=Ne3r}u2!V3NJ+C_iVoF5cu*60;@NSnpkszfi4wND?RqEF0WP4CNx$-1Ba7`3n z0tGZpVew82Kf`6^-NzSClc(@{-fHEH_OmmO%}XHPA@RnHLW|FOT~ze(1DbsamW$59 pNjQF+MhGnv%K3#m*qr|iYK2FXx@%E6sFAfX`32D5BCP%a005Dyq6z>2 literal 0 HcmV?d00001 diff --git a/share/man/man1/ipython.1.gz b/share/man/man1/ipython.1.gz new file mode 100644 index 0000000000000000000000000000000000000000..c3029f8c587da64d1e45d7c57266c6b8435398b5 GIT binary patch literal 1039 zcmV+q1n~PGiwFn>{vK5V18H!1bZBpGE-?U&Rbg-2HW2;JUvUTqIPGM49yV+UiUMxp zASxEev%CVqJfxI#ve-(bKvMDa?{_36+iCM*h5^aEyLa#2-O=&x0{++M4*Lj}_lxWF z3Z`$TAhjw>_r_v^xE0!1Xu0MMTGSD&7Wc~tOr^TIfDD1xHRQZC-aExy$>Q8SU0!dK zht+w+eENF?4e#moFay(N26HQv^a#pUs80X}xb`{J0gEdzh!iO=e|r=8=ll(ew|9`N zAGdc8E11K@$FA;S{%Zt3|1_Upc*u2)+z?3drK3`8B@7hYQt}EVK2tW0&%y|~C!2?F z`5t2z8fsDvg4d+sxmG5EQn{ECHOd^Xyi+WzQO`mcp4A9d-%b;O=pjCcLs}yxjwFYx3zM=HOn(5I> zc&IIq2_e(SzXk`>!aMo?%t8J*2W(o~d)L6hsWpf?H7(|%6!}rgQ$u|Pd#CeLI0z}y zyOF~%B~T$Rjug}M%uJ)lb^n^eOx`P(}=yMru8vR7fj(5HvZw zv#O!_%Yn48inO~Fl8F0WsLs+WEn3k_-iVy3>Jzzn3a zm?`x&fD+K9%J5!SqHOPH$|U`z1@ zmb|MiBe);#9`2X3c&ts7a7ymdk-E;E$|#8cqw46wmtH1EBs2sIc;^!t=BX0+jZy4SV4;q9r;R}uYa zS*}l3H&^2zutJ?0KBR=4Za<5YFkDy&3zN4`Av$jR$p9P*bzIqr+ibvi8Ym4iEdC<< zCOzsvf*-W77A0i8FJZLY(7#o!+J;sEw#XZJS6SPdtJ!Q%I&@h~t(Xmj$LIT){RePY JU6%?7008VY`q2OY literal 0 HcmV?d00001 diff --git a/tests/model_tests/test_iterables.py b/tests/model_tests/test_iterables.py new file mode 100644 index 00000000..8b9e6ef2 --- /dev/null +++ b/tests/model_tests/test_iterables.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +import pytest +# Allow everything in there to access the DB +pytestmark = pytest.mark.django_db + +from django.db import IntegrityError +from django.db.models import ProtectedError +from django.core.exceptions import (ValidationError as DjangoValidationError, + MultipleObjectsReturned) +import logging + +from nsot import exc, models + +from .fixtures import admin_user, user, site, transactional_db + + +def test_creation(): + itr = models.Iterable.objects.create( + name='test-vlan', + description='test vlan for testing', + min_val = 50, + max_val = 70, + increment = 2 + ) + + iterable = models.Iterable.objects.all() + + assert iterable.count() == 1 + assert iterable[0].id == itr.id + assert iterable[0].name == itr.name + assert iterable[0].min_val == itr.min_val + assert iterable[0].max_val == itr.max_val + assert iterable[0].increment == itr.increment + +def test_save(): + iterable = models.Iterable.objects.create( + name='testsave', + description='testsave Iterable', + min_val = 50, + max_val = 70, + increment = 2 + + ) + + iterable.save() + +def test_deletion(): + iterable = models.Iterable.objects.create( + name='test2', + description='test2 Iterable', + min_val = 50, + max_val = 70, + increment = 2 + + ) + + iterable.delete() + diff --git a/tests/model_tests/test_itervalues.py b/tests/model_tests/test_itervalues.py new file mode 100644 index 00000000..c3cb51c8 --- /dev/null +++ b/tests/model_tests/test_itervalues.py @@ -0,0 +1,204 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +import pytest +# Allow everything in there to access the DB +pytestmark = pytest.mark.django_db + +from django.db import IntegrityError +from django.db.models import ProtectedError +from django.core.exceptions import (ValidationError as DjangoValidationError, + MultipleObjectsReturned) +import logging + +from nsot import exc, models + +from .fixtures import admin_user, user, site, transactional_db + + +def test_creation(): + itr = models.Iterable.objects.create( + name='test-vlan', + description='test vlan for testing', + min_val = 1, + max_val = 70, + increment = 2 + ) + + itrv1 = models.IterValue.objects.create( + u_id='jasdgijn001', + iter_key=itr + + ) +# itrv2 = models.IterValue.objects.create( +# val = 23 +# u_id='jasdgijn002' +# ) + + iterable_val = models.Iterable.objects.values_list('min_val', flat=True)[0] + iterv_uid = models.IterValue.objects.values_list('u_id', flat=True)[0] + + assert itrv1.iter_key.id == itr.id + assert itrv1.val == iterable_val + assert itrv1.u_id == iterv_uid + +def test_getnext(): + itr = models.Iterable.objects.create( + name='test-vlan', + description='test vlan for testing', + min_val = 50, + max_val = 70, + increment = 2 + ) + itr2 = models.Iterable.objects.create( + name='test-vrf', + description='test vrf for testing', + min_val = 1200, + max_val = 2200, + increment = 100 + ) + itrv1 = models.IterValue.objects.create( + val = models.IterValue.getnext(itr), + u_id='jasdgijn001', + iter_key=itr + ) + itrv2 = models.IterValue.objects.create( + val = models.IterValue.getnext(itr), + u_id='jasdgijn002', + iter_key=itr + ) + itrv3 = models.IterValue.objects.create( + val = models.IterValue.getnext(itr2), + u_id='jasdgijn001', + iter_key=itr2 + ) + itrv4 = models.IterValue.objects.create( + val = models.IterValue.getnext(itr2), + u_id='jasdgijn002', + iter_key=itr2 + ) + + assert models.IterValue.getnext(itr) == 54 + assert itrv2.val == 52 + assert itrv4.val == 1300 + + +def test_save(): + itr = models.Iterable.objects.create( + name='test-vlan', + description='test vlan for testing', + min_val = 50, + max_val = 70, + increment = 2 + ) + itrv1 = models.IterValue.objects.create( + val = models.IterValue.getnext(itr), + u_id='jasdgijn001', + iter_key=itr + ) + itrv1.save() + +def test_delete(): + "Delete all rows in IterValues given the service identifier criteria" + service_UID = 'jasdgijn002' + itr = models.Iterable.objects.create( + name='test-vlan', + description='test vlan for testing', + min_val = 50, + max_val = 70, + increment = 2 + ) + itr2 = models.Iterable.objects.create( + name='test-vrf', + description='test vrf for testing', + min_val = 1200, + max_val = 2200, + increment = 100 + ) + itrv1 = models.IterValue.objects.create( + val = models.IterValue.getnext(itr), + u_id='jasdgijn001', + iter_key=itr + ) + itrv2 = models.IterValue.objects.create( + val = models.IterValue.getnext(itr), + u_id='jasdgijn002', + iter_key=itr + ) + itrv3 = models.IterValue.objects.create( + val = models.IterValue.getnext(itr2), + u_id='jasdgijn001', + iter_key=itr2 + ) + itrv4 = models.IterValue.objects.create( + val = models.IterValue.getnext(itr2), + u_id='jasdgijn002', + iter_key=itr2 + ) + + models.IterValue.objects.filter(u_id=service_UID).all().delete() + +def test_protected_delete(): + "Delete all rows in IterValues given the service identifier criteria" + service_UID = 'jasdgijn002' + itr = models.Iterable.objects.create( + name='test-vlan', + description='test vlan for testing', + min_val = 50, + max_val = 70, + increment = 2 + ) + itr2 = models.Iterable.objects.create( + name='test-vrf', + description='test vrf for testing', + min_val = 1200, + max_val = 2200, + increment = 100 + ) + itrv1 = models.IterValue.objects.create( + val = models.IterValue.getnext(itr), + u_id='jasdgijn001', + iter_key=itr + ) + itrv2 = models.IterValue.objects.create( + val = models.IterValue.getnext(itr), + u_id='jasdgijn002', + iter_key=itr + ) + itrv3 = models.IterValue.objects.create( + val = models.IterValue.getnext(itr2), + u_id='jasdgijn001', + iter_key=itr2 + ) + itrv4 = models.IterValue.objects.create( + val = models.IterValue.getnext(itr2), + u_id='jasdgijn002', + iter_key=itr2 + ) + #models.Iterable.objects.all().delete() + #assert models.IterValue.getnext(itr) == 54 + + #models.IterValue.objects.filter(u_id=service_UID).all().delete() + + +# assert type(itrv2) is not models.IterValue +# assert type(itrv4) is not models.IterValue + + +# +#def test_save(): +# iterable = models.Iterable.objects.create( +# name='testsave', +# description='testsave Iterable' +# ) +# +# iterable.save() +# +#def test_deletion(): +# iterable = models.Iterable.objects.create( +# name='test2', +# description='test2 Iterable' +# ) +# +# iterable.delete() +# From b877be059da01b7890873166da0adf7752df0e0a Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Mon, 12 Sep 2016 12:17:58 -0400 Subject: [PATCH 02/31] Update admin and models --- nsot/admin.py | 8 +- nsot/migrations/0001_initial.py | 179 ----------- nsot/migrations/0002_auto_20150810_1718.py | 54 ---- nsot/migrations/0003_auto_20150810_1751.py | 20 -- nsot/migrations/0004_auto_20150810_1806.py | 30 -- nsot/migrations/0005_auto_20150810_1847.py | 31 -- nsot/migrations/0006_auto_20150810_1947.py | 23 -- nsot/migrations/0007_auto_20150811_1201.py | 19 -- nsot/migrations/0008_auto_20150811_1222.py | 19 -- nsot/migrations/0009_auto_20150811_1245.py | 19 -- nsot/migrations/0010_auto_20150921_2120.py | 45 --- nsot/migrations/0011_auto_20150930_1557.py | 29 -- nsot/migrations/0012_auto_20151002_1427.py | 36 --- nsot/migrations/0013_auto_20151002_1443.py | 19 -- nsot/migrations/0014_auto_20151002_1653.py | 21 -- nsot/migrations/0015_move_attribute_fields.py | 205 ------------ nsot/migrations/0016_move_device_data.py | 34 -- nsot/migrations/0017_move_network_data.py | 39 --- nsot/migrations/0018_move_interface_data.py | 39 --- nsot/migrations/0019_move_assignment_data.py | 30 -- nsot/migrations/0020_move_value_data.py | 30 -- .../migrations/0021_remove_resource_object.py | 171 ---------- nsot/migrations/0022_auto_20151007_1847.py | 25 -- nsot/migrations/0023_auto_20151008_1351.py | 18 -- nsot/migrations/0024_network_state.py | 19 -- nsot/migrations/0025_value_site.py | 21 -- nsot/migrations/0026_auto_20160907_1122.py | 232 -------------- nsot/migrations/0027_auto_20160907_1433.py | 29 -- nsot/migrations/0028_itervalue.py | 23 -- nsot/migrations/0029_auto_20160909_1320.py | 20 -- nsot/migrations/__init__.py | 0 nsot/models.py | 295 +++++++++--------- tests/model_tests/test_iterables.py | 18 +- tests/model_tests/test_itervalues.py | 61 ++-- 34 files changed, 188 insertions(+), 1673 deletions(-) delete mode 100644 nsot/migrations/0001_initial.py delete mode 100644 nsot/migrations/0002_auto_20150810_1718.py delete mode 100644 nsot/migrations/0003_auto_20150810_1751.py delete mode 100644 nsot/migrations/0004_auto_20150810_1806.py delete mode 100644 nsot/migrations/0005_auto_20150810_1847.py delete mode 100644 nsot/migrations/0006_auto_20150810_1947.py delete mode 100644 nsot/migrations/0007_auto_20150811_1201.py delete mode 100644 nsot/migrations/0008_auto_20150811_1222.py delete mode 100644 nsot/migrations/0009_auto_20150811_1245.py delete mode 100644 nsot/migrations/0010_auto_20150921_2120.py delete mode 100644 nsot/migrations/0011_auto_20150930_1557.py delete mode 100644 nsot/migrations/0012_auto_20151002_1427.py delete mode 100644 nsot/migrations/0013_auto_20151002_1443.py delete mode 100644 nsot/migrations/0014_auto_20151002_1653.py delete mode 100644 nsot/migrations/0015_move_attribute_fields.py delete mode 100644 nsot/migrations/0016_move_device_data.py delete mode 100644 nsot/migrations/0017_move_network_data.py delete mode 100644 nsot/migrations/0018_move_interface_data.py delete mode 100644 nsot/migrations/0019_move_assignment_data.py delete mode 100644 nsot/migrations/0020_move_value_data.py delete mode 100644 nsot/migrations/0021_remove_resource_object.py delete mode 100644 nsot/migrations/0022_auto_20151007_1847.py delete mode 100644 nsot/migrations/0023_auto_20151008_1351.py delete mode 100644 nsot/migrations/0024_network_state.py delete mode 100644 nsot/migrations/0025_value_site.py delete mode 100644 nsot/migrations/0026_auto_20160907_1122.py delete mode 100644 nsot/migrations/0027_auto_20160907_1433.py delete mode 100644 nsot/migrations/0028_itervalue.py delete mode 100644 nsot/migrations/0029_auto_20160909_1320.py delete mode 100644 nsot/migrations/__init__.py diff --git a/nsot/admin.py b/nsot/admin.py index eeb6cea5..1c3c02b0 100644 --- a/nsot/admin.py +++ b/nsot/admin.py @@ -87,9 +87,13 @@ class InterfaceAdmin(admin.ModelAdmin): class IterableAdmin(admin.ModelAdmin): - pass + list_display = ('name', 'min_val', 'max_val', 'increment') + fields = list_display + admin.site.register(models.Iterable, IterableAdmin) class IterValueAdmin(admin.ModelAdmin): - pass + list_display = ('val', 'u_id', 'iter_key') + fields = list_display + admin.site.register(models.IterValue, IterValueAdmin) diff --git a/nsot/migrations/0001_initial.py b/nsot/migrations/0001_initial.py deleted file mode 100644 index e787506d..00000000 --- a/nsot/migrations/0001_initial.py +++ /dev/null @@ -1,179 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import nsot.util -import django.db.models.deletion -import django.utils.timezone -from django.conf import settings -import nsot.fields -import django_extensions.db.fields.json - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('auth', '0006_require_contenttypes_0002'), - ] - - operations = [ - migrations.CreateModel( - name='User', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('password', models.CharField(max_length=128, verbose_name='password')), - ('last_login', models.DateTimeField(null=True, verbose_name='last login', blank=True)), - ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), - ('email', models.EmailField(unique=True, max_length=255, verbose_name='email address', db_index=True)), - ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')), - ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), - ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), - ('secret_key', models.CharField(default=nsot.util.generate_secret_key, max_length=44)), - ('groups', models.ManyToManyField(related_query_name='user', related_name='user_set', to='auth.Group', blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', verbose_name='groups')), - ('user_permissions', models.ManyToManyField(related_query_name='user', related_name='user_set', to='auth.Permission', blank=True, help_text='Specific permissions for this user.', verbose_name='user permissions')), - ], - options={ - 'abstract': False, - 'verbose_name': 'user', - 'verbose_name_plural': 'users', - }, - ), - migrations.CreateModel( - name='Attribute', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('name', models.CharField(max_length=64, db_index=True)), - ('description', models.CharField(default='', max_length=255)), - ('required', models.BooleanField(default=False)), - ('display', models.BooleanField(default=False)), - ('multi', models.BooleanField(default=False)), - ('constraints', django_extensions.db.fields.json.JSONField(blank=True)), - ('resource_name', models.CharField(db_index=True, max_length=20, verbose_name='Resource Name', choices=[('Network', 'Network'), ('Device', 'Device')])), - ], - ), - migrations.CreateModel( - name='Change', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('change_at', models.DateTimeField(auto_now_add=True)), - ('event', models.CharField(max_length=10, choices=[('Create', 'Create'), ('Update', 'Update'), ('Delete', 'Delete')])), - ('resource_id', models.IntegerField(verbose_name='Resource ID')), - ('resource_name', models.CharField(db_index=True, max_length=20, verbose_name='Resource Type', choices=[('Device', 'Device'), ('Attribute', 'Attribute'), ('Permission', 'Permission'), ('Site', 'Site'), ('Network', 'Network')])), - ('_resource', django_extensions.db.fields.json.JSONField(verbose_name='Resource', blank=True)), - ], - options={ - 'get_latest_by': 'change_at', - }, - ), - migrations.CreateModel( - name='Resource', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('_attributes', django_extensions.db.fields.json.JSONField(blank=True)), - ], - options={ - 'abstract': False, - }, - ), - migrations.CreateModel( - name='Site', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('name', models.CharField(unique=True, max_length=255)), - ('description', models.TextField(default='', blank=True)), - ], - ), - migrations.CreateModel( - name='Value', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('value', models.CharField(db_index=True, max_length=255, blank=True)), - ('attribute', models.ForeignKey(related_name='values', on_delete=django.db.models.deletion.PROTECT, to='nsot.Attribute')), - ], - ), - migrations.CreateModel( - name='Device', - fields=[ - ('resource_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='nsot.Resource')), - ('hostname', models.CharField(max_length=255, db_index=True)), - ('site', models.ForeignKey(related_name='devices', on_delete=django.db.models.deletion.PROTECT, to='nsot.Site')), - ], - bases=('nsot.resource',), - ), - migrations.CreateModel( - name='Network', - fields=[ - ('resource_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='nsot.Resource')), - ('network_address', nsot.fields.BinaryIPAddressField(max_length=16, db_index=True)), - ('broadcast_address', nsot.fields.BinaryIPAddressField(max_length=16, db_index=True)), - ('prefix_length', models.IntegerField(db_index=True)), - ('ip_version', models.CharField(db_index=True, max_length=1, choices=[('4', '4'), ('6', '6')])), - ('is_ip', models.BooleanField(default=False, db_index=True)), - ('site', models.ForeignKey(related_name='networks', on_delete=django.db.models.deletion.PROTECT, to='nsot.Site')), - ], - bases=('nsot.resource',), - ), - migrations.AddField( - model_name='value', - name='resource', - field=models.ForeignKey(related_name='attributes', blank=True, to='nsot.Resource'), - ), - migrations.AddField( - model_name='resource', - name='parent', - field=models.ForeignKey(related_name='children', on_delete=django.db.models.deletion.PROTECT, default=None, blank=True, to='nsot.Resource', null=True), - ), - migrations.AddField( - model_name='resource', - name='polymorphic_ctype', - field=models.ForeignKey(related_name='polymorphic_nsot.resource_set+', editable=False, to='contenttypes.ContentType', null=True), - ), - migrations.AddField( - model_name='change', - name='site', - field=models.ForeignKey(related_name='changes', to='nsot.Site'), - ), - migrations.AddField( - model_name='change', - name='user', - field=models.ForeignKey(related_name='changes', to=settings.AUTH_USER_MODEL), - ), - migrations.AddField( - model_name='attribute', - name='site', - field=models.ForeignKey(related_name='attributes', on_delete=django.db.models.deletion.PROTECT, to='nsot.Site'), - ), - migrations.AlterUniqueTogether( - name='value', - unique_together=set([('attribute', 'value', 'resource')]), - ), - migrations.AlterIndexTogether( - name='value', - index_together=set([('attribute', 'value', 'resource')]), - ), - migrations.AlterUniqueTogether( - name='attribute', - unique_together=set([('site', 'resource_name', 'name')]), - ), - migrations.AlterIndexTogether( - name='attribute', - index_together=set([('site', 'resource_name', 'name')]), - ), - migrations.AlterUniqueTogether( - name='network', - unique_together=set([('site', 'ip_version', 'network_address', 'prefix_length')]), - ), - migrations.AlterIndexTogether( - name='network', - index_together=set([('site', 'ip_version', 'network_address', 'prefix_length')]), - ), - migrations.AlterUniqueTogether( - name='device', - unique_together=set([('site', 'hostname')]), - ), - migrations.AlterIndexTogether( - name='device', - index_together=set([('site', 'hostname')]), - ), - ] diff --git a/nsot/migrations/0002_auto_20150810_1718.py b/nsot/migrations/0002_auto_20150810_1718.py deleted file mode 100644 index 5cd6f316..00000000 --- a/nsot/migrations/0002_auto_20150810_1718.py +++ /dev/null @@ -1,54 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import macaddress.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0001_initial'), - ] - - operations = [ - migrations.CreateModel( - name='Assignment', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('created', models.DateTimeField(auto_now_add=True)), - ('address', models.ForeignKey(to='nsot.Network')), - ], - ), - migrations.CreateModel( - name='Interface', - fields=[ - ('resource_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='nsot.Resource')), - ('name', models.CharField(max_length=255, db_index=True)), - ('description', models.CharField(default='', max_length=255)), - ('type', models.IntegerField(db_index=True, verbose_name='Interface Type', choices=[('other', 1), ('ethernet', 6), ('loopback', 24), ('tunnel', 131), ('l2vlan', 135), ('l3vlan', 136), ('mpls', 150), ('lag', 161)])), - ('mac', macaddress.fields.MACAddressField(integer=True, db_index=True, blank=True)), - ('speed', models.IntegerField(db_index=True)), - ('addresses', models.ManyToManyField(related_name='addresses', through='nsot.Assignment', to='nsot.Network', db_index=True)), - ('device', models.ForeignKey(related_name='interfaces', to='nsot.Device')), - ], - bases=('nsot.resource',), - ), - migrations.AddField( - model_name='assignment', - name='interface', - field=models.ForeignKey(to='nsot.Interface'), - ), - migrations.AlterUniqueTogether( - name='interface', - unique_together=set([('device', 'name')]), - ), - migrations.AlterIndexTogether( - name='interface', - index_together=set([('device', 'name')]), - ), - migrations.AlterUniqueTogether( - name='assignment', - unique_together=set([('address', 'interface')]), - ), - ] diff --git a/nsot/migrations/0003_auto_20150810_1751.py b/nsot/migrations/0003_auto_20150810_1751.py deleted file mode 100644 index d58ac562..00000000 --- a/nsot/migrations/0003_auto_20150810_1751.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import macaddress.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0002_auto_20150810_1718'), - ] - - operations = [ - migrations.AlterField( - model_name='interface', - name='mac', - field=macaddress.fields.MACAddressField(db_index=True, integer=True, null=True, blank=True), - ), - ] diff --git a/nsot/migrations/0004_auto_20150810_1806.py b/nsot/migrations/0004_auto_20150810_1806.py deleted file mode 100644 index 2f0d319f..00000000 --- a/nsot/migrations/0004_auto_20150810_1806.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import macaddress.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0003_auto_20150810_1751'), - ] - - operations = [ - migrations.AlterField( - model_name='interface', - name='mac', - field=macaddress.fields.MACAddressField(default=0, integer=True, null=True, db_index=True, blank=True), - ), - migrations.AlterField( - model_name='interface', - name='speed', - field=models.IntegerField(default=1000, db_index=True), - ), - migrations.AlterField( - model_name='interface', - name='type', - field=models.IntegerField(default=6, db_index=True, verbose_name='Interface Type', choices=[('other', 1), ('ethernet', 6), ('loopback', 24), ('tunnel', 131), ('l2vlan', 135), ('l3vlan', 136), ('mpls', 150), ('lag', 161)]), - ), - ] diff --git a/nsot/migrations/0005_auto_20150810_1847.py b/nsot/migrations/0005_auto_20150810_1847.py deleted file mode 100644 index d30608ab..00000000 --- a/nsot/migrations/0005_auto_20150810_1847.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0004_auto_20150810_1806'), - ] - - operations = [ - migrations.AddField( - model_name='interface', - name='site', - field=models.ForeignKey(related_name='interfaces', on_delete=django.db.models.deletion.PROTECT, default=1, to='nsot.Site'), - preserve_default=False, - ), - migrations.AlterField( - model_name='attribute', - name='resource_name', - field=models.CharField(db_index=True, max_length=20, verbose_name='Resource Name', choices=[('Device', 'Device'), ('Interface', 'Interface'), ('Network', 'Network')]), - ), - migrations.AlterField( - model_name='change', - name='resource_name', - field=models.CharField(db_index=True, max_length=20, verbose_name='Resource Type', choices=[('Network', 'Network'), ('Permission', 'Permission'), ('Attribute', 'Attribute'), ('Site', 'Site'), ('Interface', 'Interface'), ('Device', 'Device')]), - ), - ] diff --git a/nsot/migrations/0006_auto_20150810_1947.py b/nsot/migrations/0006_auto_20150810_1947.py deleted file mode 100644 index 146a3469..00000000 --- a/nsot/migrations/0006_auto_20150810_1947.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0005_auto_20150810_1847'), - ] - - operations = [ - migrations.AlterField( - model_name='assignment', - name='interface', - field=models.ForeignKey(related_name='assignments', to='nsot.Interface'), - ), - migrations.AlterIndexTogether( - name='assignment', - index_together=set([('address', 'interface')]), - ), - ] diff --git a/nsot/migrations/0007_auto_20150811_1201.py b/nsot/migrations/0007_auto_20150811_1201.py deleted file mode 100644 index 4c666b4f..00000000 --- a/nsot/migrations/0007_auto_20150811_1201.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0006_auto_20150810_1947'), - ] - - operations = [ - migrations.RenameField( - model_name='interface', - old_name='mac', - new_name='mac_address', - ), - ] diff --git a/nsot/migrations/0008_auto_20150811_1222.py b/nsot/migrations/0008_auto_20150811_1222.py deleted file mode 100644 index 2ed61dd1..00000000 --- a/nsot/migrations/0008_auto_20150811_1222.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0007_auto_20150811_1201'), - ] - - operations = [ - migrations.AlterField( - model_name='assignment', - name='address', - field=models.ForeignKey(related_name='assignments', to='nsot.Network'), - ), - ] diff --git a/nsot/migrations/0009_auto_20150811_1245.py b/nsot/migrations/0009_auto_20150811_1245.py deleted file mode 100644 index 390ec5ed..00000000 --- a/nsot/migrations/0009_auto_20150811_1245.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0008_auto_20150811_1222'), - ] - - operations = [ - migrations.AlterField( - model_name='interface', - name='type', - field=models.IntegerField(default=6, db_index=True, verbose_name='Interface Type', choices=[(1, 'other'), (6, 'ethernet'), (24, 'loopback'), (131, 'tunnel'), (135, 'l2vlan'), (136, 'l3vlan'), (150, 'mpls'), (161, 'lag')]), - ), - ] diff --git a/nsot/migrations/0010_auto_20150921_2120.py b/nsot/migrations/0010_auto_20150921_2120.py deleted file mode 100644 index 6b8e8045..00000000 --- a/nsot/migrations/0010_auto_20150921_2120.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import nsot.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0009_auto_20150811_1245'), - ] - - operations = [ - migrations.AlterField( - model_name='attribute', - name='description', - field=models.CharField(default='', max_length=255, blank=True), - ), - migrations.AlterField( - model_name='interface', - name='description', - field=models.CharField(default='', max_length=255, blank=True), - ), - migrations.AlterField( - model_name='interface', - name='mac_address', - field=nsot.fields.MACAddressField(default=0, blank=True, help_text='If not provided, defaults to 00:00:00:00:00:00.', integer=True, null=True, verbose_name='MAC Address', db_index=True), - ), - migrations.AlterField( - model_name='interface', - name='name', - field=models.CharField(help_text='The name of the interface as it appears on the device.', max_length=255, db_index=True), - ), - migrations.AlterField( - model_name='interface', - name='speed', - field=models.IntegerField(default=10000, help_text='Integer of Mbps of interface (e.g. 20000 for 20 Gbps). If not provided, defaults to 10000.', db_index=True, blank=True), - ), - migrations.AlterField( - model_name='interface', - name='type', - field=models.IntegerField(default=6, help_text="If not provided, defaults to 'ethernet'.", db_index=True, verbose_name='Interface Type', choices=[(6, b'ethernet'), (1, b'other'), (135, b'l2vlan'), (136, b'l3vlan'), (161, b'lag'), (24, b'loopback'), (150, b'mpls'), (131, b'tunnel')]), - ), - ] diff --git a/nsot/migrations/0011_auto_20150930_1557.py b/nsot/migrations/0011_auto_20150930_1557.py deleted file mode 100644 index c271f13c..00000000 --- a/nsot/migrations/0011_auto_20150930_1557.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0010_auto_20150921_2120'), - ] - - operations = [ - migrations.RemoveField( - model_name='resource', - name='parent', - ), - migrations.AddField( - model_name='interface', - name='parent', - field=models.ForeignKey(related_name='children', on_delete=django.db.models.deletion.PROTECT, default=None, blank=True, to='nsot.Interface', null=True), - ), - migrations.AddField( - model_name='network', - name='parent', - field=models.ForeignKey(related_name='children', on_delete=django.db.models.deletion.PROTECT, default=None, blank=True, to='nsot.Network', null=True), - ), - ] diff --git a/nsot/migrations/0012_auto_20151002_1427.py b/nsot/migrations/0012_auto_20151002_1427.py deleted file mode 100644 index 9e921a17..00000000 --- a/nsot/migrations/0012_auto_20151002_1427.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import smart_selects.db_fields -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0011_auto_20150930_1557'), - ] - - operations = [ - migrations.AlterField( - model_name='interface', - name='description', - field=models.CharField(default='', help_text='A brief yet helpful description.', max_length=255, blank=True), - ), - migrations.AlterField( - model_name='interface', - name='device', - field=models.ForeignKey(related_name='interfaces', verbose_name='Device', to='nsot.Device', help_text='Unique ID of the connected Device.'), - ), - migrations.AlterField( - model_name='interface', - name='parent', - field=smart_selects.db_fields.ChainedForeignKey(chained_model_field='device', related_name='children', on_delete=django.db.models.deletion.PROTECT, default=None, auto_choose=True, to='nsot.Interface', chained_field='device', blank=True, help_text='Unique ID of the parent Interface.', null=True, verbose_name='Parent'), - ), - migrations.AlterField( - model_name='interface', - name='type', - field=models.IntegerField(default=6, help_text="If not provided, defaults to 'ethernet'.", db_index=True, verbose_name='Interface Type', choices=[(6, b'ethernet'), (1, b'other'), (135, b'l2vlan'), (136, b'l3vlan'), (161, b'lag'), (24, b'loopback'), (150, b'mpls'), (53, b'prop_virtual'), (131, b'tunnel')]), - ), - ] diff --git a/nsot/migrations/0013_auto_20151002_1443.py b/nsot/migrations/0013_auto_20151002_1443.py deleted file mode 100644 index ea49bf1f..00000000 --- a/nsot/migrations/0013_auto_20151002_1443.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0012_auto_20151002_1427'), - ] - - operations = [ - migrations.AlterField( - model_name='interface', - name='name', - field=models.CharField(help_text='The name of the interface as it appears on the Device.', max_length=255, db_index=True), - ), - ] diff --git a/nsot/migrations/0014_auto_20151002_1653.py b/nsot/migrations/0014_auto_20151002_1653.py deleted file mode 100644 index 240447b4..00000000 --- a/nsot/migrations/0014_auto_20151002_1653.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import smart_selects.db_fields -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0013_auto_20151002_1443'), - ] - - operations = [ - migrations.AlterField( - model_name='interface', - name='parent', - field=smart_selects.db_fields.ChainedForeignKey(chained_model_field='device', related_name='children', on_delete=django.db.models.deletion.PROTECT, default=None, to='nsot.Interface', chained_field='device', blank=True, help_text='Unique ID of the parent Interface.', null=True, verbose_name='Parent'), - ), - ] diff --git a/nsot/migrations/0015_move_attribute_fields.py b/nsot/migrations/0015_move_attribute_fields.py deleted file mode 100644 index 154e57df..00000000 --- a/nsot/migrations/0015_move_attribute_fields.py +++ /dev/null @@ -1,205 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import smart_selects.db_fields -import django.db.models.deletion -import django_extensions.db.fields.json -import nsot.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0014_auto_20151002_1653'), - ] - - operations = [ - - ########## - # Device # - ########## - # Create temp Device object - migrations.CreateModel( - name='Device_temp', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('_attributes_cache', django_extensions.db.fields.json.JSONField(blank=True)), - ('hostname', models.CharField(max_length=255, db_index=True)), - ('site', models.ForeignKey(related_name='devices', on_delete=django.db.models.deletion.PROTECT, to='nsot.Site')), - ], - ), - - # self._attributes_cache = self.resource_ptr._attributes - migrations.AddField( - model_name='device', - name='_attributes_cache', - field=django_extensions.db.fields.json.JSONField(blank=True), - ), - - # self.id = self.resource_ptr_id - migrations.AddField( - model_name='device', - name='new_id', - field=models.IntegerField(default=0, verbose_name='ID'), - preserve_default=False, - ), - - ########### - # Network # - ########### - migrations.CreateModel( - name='Network_temp', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('_attributes_cache', django_extensions.db.fields.json.JSONField(blank=True)), - ('network_address', nsot.fields.BinaryIPAddressField(max_length=16, db_index=True)), - ('broadcast_address', nsot.fields.BinaryIPAddressField(max_length=16, db_index=True)), - ('prefix_length', models.IntegerField(db_index=True)), - ('ip_version', models.CharField(db_index=True, max_length=1, choices=[('4', '4'), ('6', '6')])), - ('is_ip', models.BooleanField(default=False, db_index=True)), - ('parent', models.ForeignKey(related_name='children', on_delete=django.db.models.deletion.PROTECT, default=None, blank=True, to='nsot.Network_temp', null=True), - ), - ('site', models.ForeignKey(related_name='networks', on_delete=django.db.models.deletion.PROTECT, to='nsot.Site')), - ], - ), - - migrations.AddField( - model_name='network', - name='_attributes_cache', - field=django_extensions.db.fields.json.JSONField(blank=True), - ), - migrations.AddField( - model_name='network', - name='new_id', - field=models.IntegerField(default=0, verbose_name='ID'), - preserve_default=False, - ), - migrations.AddField( - model_name='network', - name='new_parent_id', - field=models.IntegerField(null=True, verbose_name='Parent ID'), - preserve_default=False, - ), - - ################## - # Assignment 1/2 # - ################## - - migrations.CreateModel( - name='Assignment_temp', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('address', models.ForeignKey(to='nsot.Network_temp')), - # ('interface', models.ForeignKey(to='nsot.Interface_temp')), - ('created', models.DateTimeField(auto_now_add=True)), - ], - ), - - ############# - # Interface # - ############# - migrations.CreateModel( - name='Interface_temp', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('_attributes_cache', django_extensions.db.fields.json.JSONField(blank=True)), - ('name', models.CharField(help_text='The name of the interface as it appears on the Device.', max_length=255, db_index=True)), - ('description', models.CharField(default='', help_text='A brief yet helpful description.', max_length=255, blank=True)), - ('type', models.IntegerField(default=6, help_text="If not provided, defaults to 'ethernet'.", db_index=True, verbose_name='Interface Type', choices=[(6, b'ethernet'), (1, b'other'), (135, b'l2vlan'), (136, b'l3vlan'), (161, b'lag'), (24, b'loopback'), (150, b'mpls'), (53, b'prop_virtual'), (131, b'tunnel')])), - ('mac_address', nsot.fields.MACAddressField(default=0, blank=True, help_text='If not provided, defaults to 00:00:00:00:00:00.', integer=True, null=True, verbose_name='MAC Address', db_index=True)), - ('speed', models.IntegerField(default=10000, help_text='Integer of Mbps of interface (e.g. 20000 for 20 Gbps). If not provided, defaults to 10000.', db_index=True, blank=True)), - ('addresses', models.ManyToManyField(related_name='addresses', through='nsot.Assignment_temp', to='nsot.Network_temp', db_index=True)), - ('device', models.ForeignKey(related_name='interfaces', verbose_name='Device', to='nsot.Device_temp', help_text='Unique ID of the connected Device.')), - ('parent', smart_selects.db_fields.ChainedForeignKey(chained_model_field='device', related_name='children', on_delete=django.db.models.deletion.PROTECT, default=None, auto_choose=True, to='nsot.Interface_temp', chained_field='device', blank=True, help_text='Unique ID of the parent Interface.', null=True, verbose_name='Parent')), - ('site', models.ForeignKey(related_name='interfaces', on_delete=django.db.models.deletion.PROTECT, to='nsot.Site')), - ], - ), - - migrations.AddField( - model_name='interface', - name='_attributes_cache', - field=django_extensions.db.fields.json.JSONField(blank=True), - ), - migrations.AddField( - model_name='interface', - name='new_id', - field=models.IntegerField(default=0, verbose_name='ID'), - preserve_default=False, - ), - migrations.AddField( - model_name='interface', - name='new_parent_id', - field=models.IntegerField(null=True, verbose_name='Parent ID'), - preserve_default=False, - ), - migrations.AddField( - model_name='device', - name='new_device_id', - field=models.IntegerField(default=0, verbose_name='Device ID'), - preserve_default=False, - ), - - ################## - # Assignment 2/2 # - ################## - migrations.AddField( - model_name='assignment_temp', - name='interface', - field=models.ForeignKey(to='nsot.Interface_temp'), - ), - migrations.AlterUniqueTogether( - name='interface_temp', - unique_together=set([('device', 'name')]), - ), - migrations.AlterIndexTogether( - name='interface_temp', - index_together=set([('device', 'name')]), - ), - migrations.AlterUniqueTogether( - name='assignment_temp', - unique_together=set([('address', 'interface')]), - ), - migrations.AlterIndexTogether( - name='assignment_temp', - index_together=set([('address', 'interface')]), - ), - - ######### - # Value # - ######### - - # self.attribute.name => self.name - migrations.AddField( - model_name='value', - name='name', - field=models.CharField(max_length=64, verbose_name='Name', blank=True), - ), - - # self.resource_id => self.new_resource_id - migrations.AddField( - model_name='value', - name='new_resource_id', - field=models.IntegerField(default=1, verbose_name='Resource ID'), - preserve_default=False, - ), - - # self.resource_name = self.resource.__class__.__name__ - migrations.AddField( - model_name='value', - name='resource_name', - field=models.CharField(default='BOGUS', max_length=20, verbose_name='Resource Type', db_index=True, choices=[('Device', 'Device'), ('Attribute', 'Attribute'), ('Interface', 'Interface'), ('Site', 'Site'), ('Network', 'Network')]), - preserve_default=False, - ), - - ########## - # Change # - ########## - - migrations.AlterField( - model_name='change', - name='resource_name', - field=models.CharField(db_index=True, max_length=20, verbose_name='Resource Type', choices=[('Device', 'Device'), ('Attribute', 'Attribute'), ('Interface', 'Interface'), ('Site', 'Site'), ('Network', 'Network')]), - ), - -] diff --git a/nsot/migrations/0016_move_device_data.py b/nsot/migrations/0016_move_device_data.py deleted file mode 100644 index f66116b0..00000000 --- a/nsot/migrations/0016_move_device_data.py +++ /dev/null @@ -1,34 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import django_extensions.db.fields.json - - -def migrate_device_fields(apps, schema_editor): - """ - Migrate new Device fields. - """ - Device = apps.get_model('nsot', 'Device') - Device_temp = apps.get_model('nsot', 'Device_temp') - for dev in Device.objects.iterator(): - dev_tmp = Device_temp.objects.create( - id=dev.resource_ptr_id, - hostname=dev.hostname, - _attributes_cache = dev._attributes, - site=dev.site, - ) - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0015_move_attribute_fields'), - ] - - operations = [ - - # Device _attributes_cache, new_id - migrations.RunPython(migrate_device_fields), - - ] diff --git a/nsot/migrations/0017_move_network_data.py b/nsot/migrations/0017_move_network_data.py deleted file mode 100644 index ff8c7d92..00000000 --- a/nsot/migrations/0017_move_network_data.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import django_extensions.db.fields.json - - -def migrate_network_fields(apps, schema_editor): - """ - Migrate new Network fields. - """ - Network = apps.get_model('nsot', 'Network') - Network_temp = apps.get_model('nsot', 'Network_temp') - for net in Network.objects.iterator(): - net_tmp = Network_temp.objects.create( - network_address=net.network_address, - broadcast_address=net.broadcast_address, - prefix_length=net.prefix_length, - ip_version=net.ip_version, - is_ip=net.is_ip, - id=net.resource_ptr_id, - parent_id=net.parent_id, - _attributes_cache=net._attributes, - site=net.site, - ) - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0016_move_device_data'), - ] - - operations = [ - - # Network _attributes_cache, new_id - migrations.RunPython(migrate_network_fields), - - ] diff --git a/nsot/migrations/0018_move_interface_data.py b/nsot/migrations/0018_move_interface_data.py deleted file mode 100644 index 74791e99..00000000 --- a/nsot/migrations/0018_move_interface_data.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -def migrate_interface_fields(apps, schema_editor): - """ - Migrate new Interface fields. - """ - Interface = apps.get_model('nsot', 'Interface') - Interface_temp = apps.get_model('nsot', 'Interface_temp') - for ifc in Interface.objects.iterator(): - ifc_tmp = Interface_temp.objects.create( - id=ifc.resource_ptr_id, - name=ifc.name, - description=ifc.description, - device_id=ifc.device_id, - parent_id=ifc.parent_id, - type=ifc.type, - speed=ifc.speed, - mac_address=ifc.mac_address, - site=ifc.site, - _attributes_cache = ifc._attributes, - ) - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0017_move_network_data'), - ] - - operations = [ - - # Interface _attributes_cache, new_id - migrations.RunPython(migrate_interface_fields), - - ] diff --git a/nsot/migrations/0019_move_assignment_data.py b/nsot/migrations/0019_move_assignment_data.py deleted file mode 100644 index e390ec0b..00000000 --- a/nsot/migrations/0019_move_assignment_data.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -def migrate_assignment_fields(apps, schema_editor): - """Migrate new Assignment fields.""" - Assignment = apps.get_model('nsot', 'Assignment') - Assignment_temp = apps.get_model('nsot', 'Assignment_temp') - for asn in Assignment.objects.iterator(): - asn_tmp = Assignment_temp.objects.create( - id = asn.id, - address_id=asn.address_id, - interface_id=asn.interface_id, - ) - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0018_move_interface_data'), - ] - - operations = [ - - # Assignment id, address_id, interface_id - migrations.RunPython(migrate_assignment_fields), - - ] diff --git a/nsot/migrations/0020_move_value_data.py b/nsot/migrations/0020_move_value_data.py deleted file mode 100644 index adc3bbf4..00000000 --- a/nsot/migrations/0020_move_value_data.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -def migrate_value_fields(apps, schema_editor): - """ - Migrate new Value fields. - """ - Value = apps.get_model('nsot', 'Value') - for val in Value.objects.iterator(): - val.resource_name = val.resource.polymorphic_ctype.model.title() - val.new_resource_id = val.resource_id - val.name = val.attribute.name - val.save() - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0019_move_assignment_data'), - ] - - operations = [ - - # Value name, resource_id, resource_name - migrations.RunPython(migrate_value_fields), - - ] diff --git a/nsot/migrations/0021_remove_resource_object.py b/nsot/migrations/0021_remove_resource_object.py deleted file mode 100644 index 2be3eca8..00000000 --- a/nsot/migrations/0021_remove_resource_object.py +++ /dev/null @@ -1,171 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations -import django.db.models.deletion -import django_extensions.db.fields.json -import smart_selects.db_fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0020_move_value_data'), - ] - - operations = [ - - ######### - # Value # - ######### - - # Fix constraints - migrations.AlterUniqueTogether( - name='value', - unique_together=set([('name', 'value', 'resource_name', 'new_resource_id')]), - ), - migrations.AlterIndexTogether( - name='value', - index_together=set([('name', 'value', 'resource_name')]), - ), - - # Delete the resource fk - migrations.RemoveField( - model_name='value', - name='resource', - ), - - # Rename resource_id - migrations.RenameField( - model_name='value', - old_name='new_resource_id', - new_name='resource_id', - ), - - ############# - # Resources # - ############# - - # Delete the now-legacy Resource-based multiple inheritance models. - - migrations.DeleteModel( - name='Assignment', - ), - - migrations.DeleteModel( - name='Interface', - ), - - migrations.DeleteModel( - name='Network', - ), - - migrations.DeleteModel( - name='Device', - ), - - # Delete the Resource model altogether - migrations.DeleteModel( - name='Resource', - ), - - ################# - # Rename models # - ################# - - # Start renaming the new Resource-abstract concrete models. - - # Network & Network relations - migrations.RenameModel( - old_name='Network_temp', - new_name='Network', - ), - migrations.AlterField( - model_name='network', - name='parent', - field=models.ForeignKey(related_name='children', on_delete=django.db.models.deletion.PROTECT, default=None, blank=True, to='nsot.Network', null=True), - ), - - # Device - migrations.RenameModel( - old_name='Device_temp', - new_name='Device', - ), - - # Interface & Interface relations - migrations.RenameModel( - old_name='Interface_temp', - new_name='Interface', - ), - - ############## - # Assignment # - ############## - - # Because Assignments is used as m2m-through on Interface, we have to - # create the model anew. - migrations.CreateModel( - name='Assignment', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('address', models.ForeignKey(related_name='assignments', to='nsot.Network')), - ('interface', models.ForeignKey(related_name='assignments', to='nsot.Interface', db_index=True)), - ('created', models.DateTimeField(auto_now_add=True)), - ], - ), - - # Interface => m2m throgh Assignment => Network - migrations.AlterField( - model_name='interface', - name='addresses', - field=models.ManyToManyField(related_name='addresses', through='nsot.Assignment', to='nsot.Network', db_index=True) - ), - - # Ditch the intermediate temp Assignment model - migrations.DeleteModel( - name='Assignment_temp', - ), - - # Interface relations - migrations.AlterField( - model_name='interface', - name='device', - field=models.ForeignKey(related_name='interfaces', verbose_name='Device', to='nsot.Device', help_text='Unique ID of the connected Device.') - ), - migrations.AlterField( - model_name='interface', - name='parent', - field=smart_selects.db_fields.ChainedForeignKey(chained_model_field='device', related_name='children', on_delete=django.db.models.deletion.PROTECT, default=None, to='nsot.Interface', chained_field='device', blank=True, help_text='Unique ID of the parent Interface.', null=True, verbose_name='Parent'), - ), - - ############### - # Constraints # - ############### - - migrations.AlterUniqueTogether( - name='assignment', - unique_together=set([('address', 'interface')]), - ), - migrations.AlterUniqueTogether( - name='device', - unique_together=set([('site', 'hostname')]), - ), - migrations.AlterUniqueTogether( - name='network', - unique_together=set([('site', 'ip_version', 'network_address', 'prefix_length')]), - ), - migrations.AlterIndexTogether( - name='assignment', - index_together=set([('address', 'interface')]), - ), - migrations.AlterIndexTogether( - name='device', - index_together=set([('site', 'hostname')]), - ), - migrations.AlterIndexTogether( - name='network', - index_together=set([('site', 'ip_version', 'network_address', 'prefix_length')]), - ), - - - ] diff --git a/nsot/migrations/0022_auto_20151007_1847.py b/nsot/migrations/0022_auto_20151007_1847.py deleted file mode 100644 index 0ac098b6..00000000 --- a/nsot/migrations/0022_auto_20151007_1847.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models -import django_extensions.db.fields.json - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0021_remove_resource_object'), - ] - - operations = [ - migrations.AddField( - model_name='interface', - name='_addresses_cache', - field=django_extensions.db.fields.json.JSONField(default=b'[]', blank=True), - ), - migrations.AddField( - model_name='interface', - name='_networks_cache', - field=django_extensions.db.fields.json.JSONField(default=b'[]', blank=True), - ), - ] diff --git a/nsot/migrations/0023_auto_20151008_1351.py b/nsot/migrations/0023_auto_20151008_1351.py deleted file mode 100644 index 9b08759a..00000000 --- a/nsot/migrations/0023_auto_20151008_1351.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0022_auto_20151007_1847'), - ] - - operations = [ - migrations.AlterIndexTogether( - name='value', - index_together=set([('resource_name', 'resource_id'), ('name', 'value', 'resource_name')]), - ), - ] diff --git a/nsot/migrations/0024_network_state.py b/nsot/migrations/0024_network_state.py deleted file mode 100644 index 7f44a733..00000000 --- a/nsot/migrations/0024_network_state.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0023_auto_20151008_1351'), - ] - - operations = [ - migrations.AddField( - model_name='network', - name='state', - field=models.CharField(default='allocated', max_length=20, db_index=True, choices=[('allocated', 'Allocated'), ('assigned', 'Assigned'), ('orphaned', 'Orphaned'), ('reserved', 'Reserved')]), - ), - ] diff --git a/nsot/migrations/0025_value_site.py b/nsot/migrations/0025_value_site.py deleted file mode 100644 index 913eb0ab..00000000 --- a/nsot/migrations/0025_value_site.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0024_network_state'), - ] - - operations = [ - migrations.AddField( - model_name='value', - name='site', - field=models.ForeignKey(related_name='values', on_delete=django.db.models.deletion.PROTECT, default=1, to='nsot.Site'), - preserve_default=False, - ), - ] diff --git a/nsot/migrations/0026_auto_20160907_1122.py b/nsot/migrations/0026_auto_20160907_1122.py deleted file mode 100644 index 62d9eb1a..00000000 --- a/nsot/migrations/0026_auto_20160907_1122.py +++ /dev/null @@ -1,232 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models -import nsot.fields -import nsot.util.core -import django.db.models.deletion -from django.conf import settings -import django_extensions.db.fields.json - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0025_value_site'), - ] - - operations = [ - migrations.CreateModel( - name='Iterable', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('name', models.CharField(help_text='The name of the Iterable.', unique=True, max_length=255)), - ('description', models.TextField(default='', help_text='A helpful description for the Iterable.', blank=True)), - ], - ), - migrations.AlterField( - model_name='assignment', - name='address', - field=models.ForeignKey(related_name='assignments', to='nsot.Network', help_text='Network to which this assignment is bound.'), - ), - migrations.AlterField( - model_name='assignment', - name='interface', - field=models.ForeignKey(related_name='assignments', to='nsot.Interface', help_text='Interface to which this assignment is bound.'), - ), - migrations.AlterField( - model_name='attribute', - name='constraints', - field=django_extensions.db.fields.json.JSONField(help_text='Dictionary of Attribute constraints.', verbose_name='Constraints', blank=True), - ), - migrations.AlterField( - model_name='attribute', - name='description', - field=models.CharField(default='', help_text='A helpful description of the Attribute.', max_length=255, blank=True), - ), - migrations.AlterField( - model_name='attribute', - name='display', - field=models.BooleanField(default=False, help_text='Whether the Attribute should be be displayed by default in UIs. If required is set, this is also set.'), - ), - migrations.AlterField( - model_name='attribute', - name='multi', - field=models.BooleanField(default=False, help_text='Whether the Attribute should be treated as a list type.'), - ), - migrations.AlterField( - model_name='attribute', - name='name', - field=models.CharField(help_text='The name of the Attribute.', max_length=64, db_index=True), - ), - migrations.AlterField( - model_name='attribute', - name='required', - field=models.BooleanField(default=False, help_text='Whether the Attribute should be required.'), - ), - migrations.AlterField( - model_name='attribute', - name='resource_name', - field=models.CharField(help_text='The name of the Resource to which this Attribute is bound.', max_length=20, verbose_name='Resource Name', db_index=True, choices=[('Device', 'Device'), ('Interface', 'Interface'), ('Network', 'Network')]), - ), - migrations.AlterField( - model_name='attribute', - name='site', - field=models.ForeignKey(related_name='attributes', on_delete=django.db.models.deletion.PROTECT, verbose_name='Site', to='nsot.Site', help_text='Unique ID of the Site this Attribute is under.'), - ), - migrations.AlterField( - model_name='change', - name='_resource', - field=django_extensions.db.fields.json.JSONField(help_text='Local cache of the changed Resource. (Internal use only)', verbose_name='Resource', blank=True), - ), - migrations.AlterField( - model_name='change', - name='change_at', - field=models.DateTimeField(help_text='The timestamp of this Change.', auto_now_add=True), - ), - migrations.AlterField( - model_name='change', - name='event', - field=models.CharField(help_text='The type of event this Change represents.', max_length=10, choices=[('Create', 'Create'), ('Update', 'Update'), ('Delete', 'Delete')]), - ), - migrations.AlterField( - model_name='change', - name='resource_id', - field=models.IntegerField(help_text='The unique ID of the Resource for this Change.', verbose_name='Resource ID'), - ), - migrations.AlterField( - model_name='change', - name='resource_name', - field=models.CharField(help_text='The name of the Resource for this Change.', max_length=20, verbose_name='Resource Type', db_index=True, choices=[('Device', 'Device'), ('Attribute', 'Attribute'), ('Interface', 'Interface'), ('Site', 'Site'), ('Network', 'Network')]), - ), - migrations.AlterField( - model_name='change', - name='site', - field=models.ForeignKey(related_name='changes', verbose_name='Site', to='nsot.Site', help_text='Unique ID of the Site this Change is under.'), - ), - migrations.AlterField( - model_name='change', - name='user', - field=models.ForeignKey(related_name='changes', to=settings.AUTH_USER_MODEL, help_text='The User that initiated this Change.'), - ), - migrations.AlterField( - model_name='device', - name='_attributes_cache', - field=django_extensions.db.fields.json.JSONField(help_text='Local cache of attributes. (Internal use only)', blank=True), - ), - migrations.AlterField( - model_name='device', - name='hostname', - field=models.CharField(help_text='The hostname of the Device.', max_length=255, db_index=True), - ), - migrations.AlterField( - model_name='device', - name='site', - field=models.ForeignKey(related_name='devices', on_delete=django.db.models.deletion.PROTECT, verbose_name='Site', to='nsot.Site', help_text='Unique ID of the Site this Device is under.'), - ), - migrations.AlterField( - model_name='interface', - name='_attributes_cache', - field=django_extensions.db.fields.json.JSONField(help_text='Local cache of attributes. (Internal use only)', blank=True), - ), - migrations.AlterField( - model_name='interface', - name='addresses', - field=models.ManyToManyField(help_text='Network addresses assigned to this Interface', related_name='addresses', through='nsot.Assignment', to='nsot.Network', db_index=True), - ), - migrations.AlterField( - model_name='interface', - name='site', - field=models.ForeignKey(related_name='interfaces', on_delete=django.db.models.deletion.PROTECT, to='nsot.Site', help_text='Unique ID of the Site this Interface is under.'), - ), - migrations.AlterField( - model_name='interface', - name='speed', - field=models.IntegerField(default=1000, help_text='Integer of Mbps of interface (e.g. 20000 for 20 Gbps). If not provided, defaults to 1000.', db_index=True, blank=True), - ), - migrations.AlterField( - model_name='network', - name='_attributes_cache', - field=django_extensions.db.fields.json.JSONField(help_text='Local cache of attributes. (Internal use only)', blank=True), - ), - migrations.AlterField( - model_name='network', - name='broadcast_address', - field=nsot.fields.BinaryIPAddressField(help_text='The broadcast address for the Network. (Internal use only)', max_length=16, db_index=True), - ), - migrations.AlterField( - model_name='network', - name='is_ip', - field=models.BooleanField(default=False, help_text='Whether the Network is a host address or not.', db_index=True), - ), - migrations.AlterField( - model_name='network', - name='network_address', - field=nsot.fields.BinaryIPAddressField(help_text='The network address for the Network. The network address and the prefix length together uniquely define a network.', max_length=16, verbose_name='Network Address', db_index=True), - ), - migrations.AlterField( - model_name='network', - name='parent', - field=models.ForeignKey(related_name='children', on_delete=django.db.models.deletion.PROTECT, default=None, blank=True, to='nsot.Network', help_text='The parent Network of the Network.', null=True), - ), - migrations.AlterField( - model_name='network', - name='prefix_length', - field=models.IntegerField(help_text='Length of the Network prefix, in bits.', verbose_name='Prefix Length', db_index=True), - ), - migrations.AlterField( - model_name='network', - name='site', - field=models.ForeignKey(related_name='networks', on_delete=django.db.models.deletion.PROTECT, verbose_name='Site', to='nsot.Site', help_text='Unique ID of the Site this Network is under.'), - ), - migrations.AlterField( - model_name='network', - name='state', - field=models.CharField(default='allocated', help_text='The allocation state of the Network.', max_length=20, db_index=True, choices=[('allocated', 'Allocated'), ('assigned', 'Assigned'), ('orphaned', 'Orphaned'), ('reserved', 'Reserved')]), - ), - migrations.AlterField( - model_name='site', - name='description', - field=models.TextField(default='', help_text='A helpful description for the Site.', blank=True), - ), - migrations.AlterField( - model_name='site', - name='name', - field=models.CharField(help_text='The name of the Site.', unique=True, max_length=255), - ), - migrations.AlterField( - model_name='user', - name='secret_key', - field=models.CharField(default=nsot.util.core.generate_secret_key, help_text="The user's secret_key used for API authentication.", max_length=44), - ), - migrations.AlterField( - model_name='value', - name='attribute', - field=models.ForeignKey(related_name='values', on_delete=django.db.models.deletion.PROTECT, to='nsot.Attribute', help_text='The Attribute to which this Value is assigned.'), - ), - migrations.AlterField( - model_name='value', - name='name', - field=models.CharField(help_text='The name of the Attribute to which the Value is bound. (Internal use only)', max_length=64, verbose_name='Name', blank=True), - ), - migrations.AlterField( - model_name='value', - name='resource_id', - field=models.IntegerField(help_text='The unique ID of the Resource to which the Value is bound.', verbose_name='Resource ID'), - ), - migrations.AlterField( - model_name='value', - name='resource_name', - field=models.CharField(help_text='The name of the Resource type to which the Value is bound.', max_length=20, verbose_name='Resource Type', db_index=True, choices=[('Device', 'Device'), ('Attribute', 'Attribute'), ('Interface', 'Interface'), ('Site', 'Site'), ('Network', 'Network')]), - ), - migrations.AlterField( - model_name='value', - name='site', - field=models.ForeignKey(related_name='values', on_delete=django.db.models.deletion.PROTECT, verbose_name='Site', to='nsot.Site', help_text='Unique ID of the Site this Value is under.'), - ), - migrations.AlterField( - model_name='value', - name='value', - field=models.CharField(help_text='The Attribute value.', max_length=255, db_index=True, blank=True), - ), - ] diff --git a/nsot/migrations/0027_auto_20160907_1433.py b/nsot/migrations/0027_auto_20160907_1433.py deleted file mode 100644 index 62d54664..00000000 --- a/nsot/migrations/0027_auto_20160907_1433.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0026_auto_20160907_1122'), - ] - - operations = [ - migrations.AddField( - model_name='iterable', - name='increment', - field=models.IntegerField(default=1, help_text='Increment value of the Iterable by.'), - ), - migrations.AddField( - model_name='iterable', - name='max_val', - field=models.IntegerField(default=100, help_text='The maximum value of the Iterable.'), - ), - migrations.AddField( - model_name='iterable', - name='min_val', - field=models.IntegerField(default=1, help_text='The minimum value of the Iterable.'), - ), - ] diff --git a/nsot/migrations/0028_itervalue.py b/nsot/migrations/0028_itervalue.py deleted file mode 100644 index 626bcd93..00000000 --- a/nsot/migrations/0028_itervalue.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0027_auto_20160907_1433'), - ] - - operations = [ - migrations.CreateModel( - name='IterValue', - fields=[ - ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('val', models.IntegerField(default=1, help_text='The value of the iterable.', unique=True)), - ('u_id', models.TextField(help_text='A helpful description for the Iterable.', blank=True)), - ('iter_key', models.ForeignKey(to='nsot.Iterable')), - ], - ), - ] diff --git a/nsot/migrations/0029_auto_20160909_1320.py b/nsot/migrations/0029_auto_20160909_1320.py deleted file mode 100644 index 0308873a..00000000 --- a/nsot/migrations/0029_auto_20160909_1320.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('nsot', '0028_itervalue'), - ] - - operations = [ - migrations.AlterField( - model_name='itervalue', - name='iter_key', - field=models.ForeignKey(to='nsot.Iterable', on_delete=django.db.models.deletion.PROTECT), - ), - ] diff --git a/nsot/migrations/__init__.py b/nsot/migrations/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/nsot/models.py b/nsot/models.py index fb7dd89e..800029a7 100644 --- a/nsot/models.py +++ b/nsot/models.py @@ -51,152 +51,6 @@ # Unique interface type IDs. INTERFACE_TYPES = [t[0] for t in settings.INTERFACE_TYPE_CHOICES] -class Iterable(models.Model): - """Generic iterable for stateful services - vlan#, po#, tenant ID etc""" - ''' - min/max_val = defines the valid range for the Iterable - increment = steps to increment the Iterable - - ''' - name = models.CharField( - max_length=255, unique=True, help_text='The name of the Iterable.' - ) - description = models.TextField( - default='', blank=True, help_text='A helpful description for the Iterable.' - ) - min_val = models.IntegerField( - default=1, help_text='The minimum value of the Iterable.' - ) - max_val = models.IntegerField( - default=100, help_text='The maximum value of the Iterable.' - ) - increment = models.IntegerField( - default = 1, help_text='Increment value of the Iterable by.' - ) - - - def __unicode__(self): - return str(self.name) - - def save(self, *args, **kwargs): - super(Iterable, self).save(*args, **kwargs) - - def to_dict(self): - return { - 'id': self.id, - 'name': self.name, - 'description': self.description, - 'min_val': self.min_val, - 'max_val': self.max_val, - 'increment': self.increment, - } - -#class IterValueManager(models.Manager): -# def getnext(self, iterable_fk): -# "Get the next value of the iterable" -# curr_val = IterValue.objects.filter(iter_key=iterable_fk).order_by('-val').values_list('val', flat=True)[0] -# incr = Iterable.objects.filter(id=iterable_fk.id).values_list('increment', flat=True)[0] -# return curr_val + incr -# -class IterValue(models.Model): - """Value table for the generic iterable defined above""" - ''' - val = contains the value - getnext = returns the next iterated value for this particular Iterable - save = saves the val - u_id = unique id to associate the value - query/deletes can be based on this unique id - This should also be set externally, to make it callable - iter_key = Foreign key that ties the Iterable with the value - ''' - iter_key = models.ForeignKey(Iterable, on_delete=models.PROTECT) - #self.default_val = 0 - #self.default_val = Iterable.objects.values_list('min_val', flat=True)[0] - - myvar = 1 - - val = models.IntegerField( - default=myvar, unique=True, help_text='The value of the iterable.' - ) - u_id = models.TextField( - blank=True, help_text='A helpful description for the Iterable.' - ) - - - def __unicode__(self): - return str(self.val) - - @classmethod - def getnext(cls, fk): - "Get the next value of the iterable" - try: - " First try to generate the next value based on the current allocation" - curr_val = IterValue.objects.filter(iter_key=fk).order_by('-val').values_list('val', flat=True)[0] - incr = Iterable.objects.filter(id=fk.id).values_list('increment', flat=True)[0] - next_val = curr_val + incr - try: - min_val = Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] - max_val = Iterable.objects.filter(id=fk.id).values_list('max_val', flat=True)[0] - if min_val <= next_val <= max_val: - return next_val - except: - log.debug('value out of range - exceeded') - raise exc.ValidationError({ - 'next_val': 'Out of range' - }) - except IndexError: - "Index Error implies that the table has not been intialized - so assign the first value" - return Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] - - - def save(self, *args, **kwargs): - super(IterValue, self).save(*args, **kwargs) - - def to_dict(self): - return { - 'id': self.id, - 'val': self.val, - } - @classmethod - def getnext_dict(cls, fx): - "Get the next value of the iterable" - try: - " First try to generate the next value based on the current allocation" - curr_val = IterValue.objects.filter(iter_key=fk).order_by('-val').values_list('val', flat=True)[0] - incr = Iterable.objects.filter(id=fk.id).values_list('increment', flat=True)[0] - next_val = curr_val + incr - try: - min_val = Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] - max_val = Iterable.objects.filter(id=fk.id).values_list('max_val', flat=True)[0] - if min_val <= next_val <= max_val: - return { - 'next_val' : next_val, - } - except: - log.debug('value out of range - exceeded') - raise exc.ValidationError({ - 'next_val': 'Out of range' - }) - except IndexError: - "Index Error implies that the table has not been intialized - so assign the first value" - first_val = Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] - return { - 'next_val' : next_val, - } - - - - - - - curr_val = IterValue.objects.filter(iter_key=fk).order_by('-val').values_list('val', flat=True)[0] - incr = Iterable.objects.filter(id=fk.id).values_list('increment', flat=True)[0] - next_val = curr_val + incr - return { - 'next_val' : next_val, - } - - - - class Site(models.Model): """A namespace for attribtues, devices, and networks.""" name = models.CharField( @@ -2050,3 +1904,152 @@ def change_api_updated_at(sender=None, instance=None, *args, **kwargs): change_api_updated_at, sender=Interface, dispatch_uid='invalidate_cache_post_delete_interface' ) + + + +class Iterable(models.Model): + """Generic iterable for stateful services - vlan#, po#, tenant ID etc""" + ''' + min/max_val = defines the valid range for the Iterable + increment = steps to increment the Iterable + + ''' + name = models.CharField( + max_length=255, unique=True, help_text='The name of the Iterable.' + ) + description = models.TextField( + default='', blank=True, help_text='A helpful description for the Iterable.' + ) + min_val = models.IntegerField( + default=1, help_text='The minimum value of the Iterable.' + ) + max_val = models.IntegerField( + default=100, help_text='The maximum value of the Iterable.' + ) + increment = models.IntegerField( + default = 1, help_text='Increment value of the Iterable by.' + ) + site = models.ForeignKey( + Site, db_index=True, related_name='Iterable', + on_delete=models.PROTECT, verbose_name='Site', + help_text='Unique ID of the Site this Attribute is under.' + ) + + + + def __unicode__(self): + return u'name=%s, min=%s, max=%s, increment=%s' % (self.name, self.min_val, self.max_val, self.increment ) + + def save(self, *args, **kwargs): + super(Iterable, self).save(*args, **kwargs) + + def to_dict(self): + return { + 'id': self.id, + 'name': self.name, + 'description': self.description, + 'min_val': self.min_val, + 'max_val': self.max_val, + 'increment': self.increment, + } + + +class IterValue(models.Model): + """Value table for the generic iterable defined above""" + ''' + val = contains the value + getnext = returns the next iterated value for this particular Iterable + save = saves the val + u_id = unique id to associate the value - query/deletes can be based on this unique id - This should also be set externally, to make it callable + iter_key = Foreign key that ties the Iterable with the value + ''' + iter_key = models.ForeignKey(Iterable, on_delete=models.PROTECT) + #self.default_val = 0 + #self.default_val = Iterable.objects.values_list('min_val', flat=True)[0] + + myvar = 1 + + val = models.IntegerField( + default=myvar, help_text='The value of the iterable.' + ) + u_id = models.TextField( + blank=True, help_text='A helpful description for the Iterable.' + ) + + + def __unicode__(self): + return u'value=%s, uuid=%s, iterable=%s' % (self.val, self.u_id, self.iter_key.name) + + @classmethod + def getnext(cls, fk): + "Get the next value of the iterable" + try: + " First try to generate the next value based on the current allocation" + curr_val = IterValue.objects.filter(iter_key=fk).order_by('-val').values_list('val', flat=True)[0] + incr = Iterable.objects.filter(id=fk.id).values_list('increment', flat=True)[0] + next_val = curr_val + incr + try: + min_val = Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] + max_val = Iterable.objects.filter(id=fk.id).values_list('max_val', flat=True)[0] + if min_val <= next_val <= max_val: + return next_val + except: + log.debug('value out of range - exceeded') + raise exc.ValidationError({ + 'next_val': 'Out of range' + }) + except IndexError: + "Index Error implies that the table has not been intialized - so assign the first value" + return Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] + + + def save(self, *args, **kwargs): + super(IterValue, self).save(*args, **kwargs) + + def to_dict(self): + return { + 'id': self.id, + 'val': self.val, + } + @classmethod + def getnext_dict(cls, fx): + "Get the next value of the iterable" + try: + " First try to generate the next value based on the current allocation" + curr_val = IterValue.objects.filter(iter_key=fk).order_by('-val').values_list('val', flat=True)[0] + incr = Iterable.objects.filter(id=fk.id).values_list('increment', flat=True)[0] + next_val = curr_val + incr + try: + min_val = Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] + max_val = Iterable.objects.filter(id=fk.id).values_list('max_val', flat=True)[0] + if min_val <= next_val <= max_val: + return { + 'next_val' : next_val, + } + except: + log.debug('value out of range - exceeded') + raise exc.ValidationError({ + 'next_val': 'Out of range' + }) + except IndexError: + "Index Error implies that the table has not been intialized - so assign the first value" + first_val = Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] + return { + 'next_val' : next_val, + } + + + + + + + curr_val = IterValue.objects.filter(iter_key=fk).order_by('-val').values_list('val', flat=True)[0] + incr = Iterable.objects.filter(id=fk.id).values_list('increment', flat=True)[0] + next_val = curr_val + incr + return { + 'next_val' : next_val, + } + + + + diff --git a/tests/model_tests/test_iterables.py b/tests/model_tests/test_iterables.py index 8b9e6ef2..03b3b5ed 100644 --- a/tests/model_tests/test_iterables.py +++ b/tests/model_tests/test_iterables.py @@ -16,44 +16,46 @@ from .fixtures import admin_user, user, site, transactional_db -def test_creation(): +def test_creation(site): itr = models.Iterable.objects.create( name='test-vlan', description='test vlan for testing', min_val = 50, max_val = 70, - increment = 2 + increment = 2, + site = site ) iterable = models.Iterable.objects.all() assert iterable.count() == 1 assert iterable[0].id == itr.id + assert iterable[0].site_id == site.id assert iterable[0].name == itr.name assert iterable[0].min_val == itr.min_val assert iterable[0].max_val == itr.max_val assert iterable[0].increment == itr.increment -def test_save(): +def test_save(site): iterable = models.Iterable.objects.create( name='testsave', description='testsave Iterable', min_val = 50, max_val = 70, - increment = 2 - + increment = 2, + site = site ) iterable.save() -def test_deletion(): +def test_deletion(site): iterable = models.Iterable.objects.create( name='test2', description='test2 Iterable', min_val = 50, max_val = 70, - increment = 2 - + increment = 2, + site = site ) iterable.delete() diff --git a/tests/model_tests/test_itervalues.py b/tests/model_tests/test_itervalues.py index c3cb51c8..f13ada24 100644 --- a/tests/model_tests/test_itervalues.py +++ b/tests/model_tests/test_itervalues.py @@ -16,13 +16,14 @@ from .fixtures import admin_user, user, site, transactional_db -def test_creation(): +def test_creation(site): itr = models.Iterable.objects.create( name='test-vlan', description='test vlan for testing', min_val = 1, max_val = 70, - increment = 2 + increment = 2, + site = site ) itrv1 = models.IterValue.objects.create( @@ -42,20 +43,22 @@ def test_creation(): assert itrv1.val == iterable_val assert itrv1.u_id == iterv_uid -def test_getnext(): +def test_getnext(site): itr = models.Iterable.objects.create( name='test-vlan', description='test vlan for testing', min_val = 50, max_val = 70, - increment = 2 + increment = 2, + site = site ) itr2 = models.Iterable.objects.create( name='test-vrf', description='test vrf for testing', min_val = 1200, max_val = 2200, - increment = 100 + increment = 100, + site = site ) itrv1 = models.IterValue.objects.create( val = models.IterValue.getnext(itr), @@ -83,13 +86,14 @@ def test_getnext(): assert itrv4.val == 1300 -def test_save(): +def test_save(site): itr = models.Iterable.objects.create( name='test-vlan', description='test vlan for testing', min_val = 50, max_val = 70, - increment = 2 + increment = 2, + site = site ) itrv1 = models.IterValue.objects.create( val = models.IterValue.getnext(itr), @@ -98,7 +102,7 @@ def test_save(): ) itrv1.save() -def test_delete(): +def test_delete(site): "Delete all rows in IterValues given the service identifier criteria" service_UID = 'jasdgijn002' itr = models.Iterable.objects.create( @@ -106,14 +110,16 @@ def test_delete(): description='test vlan for testing', min_val = 50, max_val = 70, - increment = 2 + increment = 2, + site = site ) itr2 = models.Iterable.objects.create( name='test-vrf', description='test vrf for testing', min_val = 1200, max_val = 2200, - increment = 100 + increment = 100, + site = site ) itrv1 = models.IterValue.objects.create( val = models.IterValue.getnext(itr), @@ -138,7 +144,7 @@ def test_delete(): models.IterValue.objects.filter(u_id=service_UID).all().delete() -def test_protected_delete(): +def test_protected_delete(site): "Delete all rows in IterValues given the service identifier criteria" service_UID = 'jasdgijn002' itr = models.Iterable.objects.create( @@ -146,14 +152,16 @@ def test_protected_delete(): description='test vlan for testing', min_val = 50, max_val = 70, - increment = 2 + increment = 2, + site = site ) itr2 = models.Iterable.objects.create( name='test-vrf', description='test vrf for testing', min_val = 1200, max_val = 2200, - increment = 100 + increment = 100, + site = site ) itrv1 = models.IterValue.objects.create( val = models.IterValue.getnext(itr), @@ -175,30 +183,7 @@ def test_protected_delete(): u_id='jasdgijn002', iter_key=itr2 ) - #models.Iterable.objects.all().delete() - #assert models.IterValue.getnext(itr) == 54 - #models.IterValue.objects.filter(u_id=service_UID).all().delete() + with pytest.raises(exc.ProtectedError): + models.Iterable.objects.all().delete() - -# assert type(itrv2) is not models.IterValue -# assert type(itrv4) is not models.IterValue - - -# -#def test_save(): -# iterable = models.Iterable.objects.create( -# name='testsave', -# description='testsave Iterable' -# ) -# -# iterable.save() -# -#def test_deletion(): -# iterable = models.Iterable.objects.create( -# name='test2', -# description='test2 Iterable' -# ) -# -# iterable.delete() -# From 1bb47121fc741d70571815ce48f7c3b40229ff02 Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Mon, 12 Sep 2016 13:59:06 -0400 Subject: [PATCH 03/31] working copy --- nsot/api/serializers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nsot/api/serializers.py b/nsot/api/serializers.py index e2880c6b..0205f414 100644 --- a/nsot/api/serializers.py +++ b/nsot/api/serializers.py @@ -252,6 +252,10 @@ class Meta: 'resource_id') + + + + ########### # Resources ########### From d9dfbda44bf3fb35992a9a1a96a50d99445007e6 Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Tue, 13 Sep 2016 10:38:47 -0400 Subject: [PATCH 04/31] Partially working API post - Iterable --- nsot/api/serializers.py | 28 +++++ nsot/api/urls.py | 2 + nsot/api/views.py | 14 +++ nsot/static/src/js/services.js | 38 +++++++ nsot/templates/ui/menu.html | 8 ++ tests/api_tests/test_iterable.py | 188 +++++++++++++++++++++++++++++++ 6 files changed, 278 insertions(+) create mode 100644 tests/api_tests/test_iterable.py diff --git a/nsot/api/serializers.py b/nsot/api/serializers.py index 0205f414..a6f2e9cd 100644 --- a/nsot/api/serializers.py +++ b/nsot/api/serializers.py @@ -252,6 +252,34 @@ class Meta: 'resource_id') +########### +# Iterable +########### +class IterableSerializer(NsotSerializer): + """Used for GET, DELETE on Iterables.""" + class Meta: + model = models.Iterable + +class IterableCreateSerializer(IterableSerializer): + """Used for POST on Iterables.""" + + site_id = fields.IntegerField( + label = get_field_attr(models.Iterable, 'site', 'verbose_name'), + help_text = get_field_attr(models.Iterable, 'site', 'help_text') + ) + + class Meta: + model = models.Iterable + fields = ( 'name', 'description', 'min_val', 'max_val', 'increment', 'site_id') + + +class IterableUpdateSerializer(BulkSerializerMixin, + IterableCreateSerializer): + """ Used for PUT, PATCH, on Iterables. """ + class Meta: + model = models.Iterable + list_serializer_class = BulkListSerializer + fields = ('id', 'name', 'description', 'min_val', 'max_val', 'increment', 'site_id') diff --git a/nsot/api/urls.py b/nsot/api/urls.py index 8727c373..1f2277e7 100644 --- a/nsot/api/urls.py +++ b/nsot/api/urls.py @@ -19,6 +19,7 @@ router.register(r'networks', views.NetworkViewSet) router.register(r'users', views.UserViewSet) router.register(r'values', views.ValueViewSet) +router.register(r'iterable', views.IterableViewSet) # Nested router for resources under /sites sites_router = routers.BulkNestedRouter( @@ -32,6 +33,7 @@ sites_router.register(r'interfaces', views.InterfaceViewSet) sites_router.register(r'networks', views.NetworkViewSet) sites_router.register(r'values', views.ValueViewSet) +sites_router.register(r'iterable', views.IterableViewSet) # Wire up our API using automatic URL routing. # Additionally, we include login URLs for the browsable API. diff --git a/nsot/api/views.py b/nsot/api/views.py index 42e1f17a..da0b7064 100644 --- a/nsot/api/views.py +++ b/nsot/api/views.py @@ -346,6 +346,20 @@ def get_serializer_class(self): return serializers.AttributeUpdateSerializer return self.serializer_class +class IterableViewSet(ResourceViewSet): + """ + API endpoint that allows Iterables to be viewed or edited. + """ + queryset = models.Iterable.objects.all() + serializer_class = serializers.IterableSerializer + filter_fields = ('name', 'description', 'min_val', 'max_val', 'increment') + def get_serializer_class(self): + if self.request.method == 'POST': + return serializers.IterableCreateSerializer + if self.request.method in ('PUT', 'PATCH'): + return serializers.IterableUpdateSerializer + return self.serializer_class + class DeviceViewSet(ResourceViewSet): """ diff --git a/nsot/static/src/js/services.js b/nsot/static/src/js/services.js index f0288893..aae5be67 100644 --- a/nsot/static/src/js/services.js +++ b/nsot/static/src/js/services.js @@ -164,6 +164,44 @@ return Attribute; }); + app.factory("Iterable", function($resource, $http){ + var Iterable = $resource( + "/api/sites/:siteId/iterables/:id/", + { siteId: "@siteId", id: "@id" }, + buildActions($http, "iterable", "iterables") + ); + + Iterable.prototype.updateFromForm = function(formData) { + return _.extend(this, { + name: formData.name, + description: formData.description, + min_val: formData.min_val, + max_val: formData.max_val, + increment: formData.increment, + }); + }; + + Iterable.fromForm = function(formData) { + var attr = new Iterable(); + attr.updateFromForm(formData); + return attr; + }; + + Iterable.prototype.toForm = function() { + return { + name: this.name, + description: this.description, + min_val: this.min_val, + max_val: this.max_val, + increment: this.increment, + //allowEmpty: this.constraints.allow_empty, + }; + }; + + return Iterable; + }); + + app.factory("Network", function($resource, $http){ var Network = $resource( "/api/sites/:siteId/networks/:id/", diff --git a/nsot/templates/ui/menu.html b/nsot/templates/ui/menu.html index 6fa18d59..b6aa0b1a 100644 --- a/nsot/templates/ui/menu.html +++ b/nsot/templates/ui/menu.html @@ -43,6 +43,14 @@ Attributes +
  • + + Iterable + +
  • +
  • diff --git a/tests/api_tests/test_iterable.py b/tests/api_tests/test_iterable.py new file mode 100644 index 00000000..35ee76fb --- /dev/null +++ b/tests/api_tests/test_iterable.py @@ -0,0 +1,188 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +import pytest + +# Allow everything in there to access the DB +pytestmark = pytest.mark.django_db + +import copy +from django.core.urlresolvers import reverse +import json +import logging +from rest_framework import status + + +from .fixtures import live_server, client, user, site +from .util import ( + assert_created, assert_error, assert_success, assert_deleted, load_json, + Client, load, get_result +) + + +log = logging.getLogger(__name__) + + +def test_creation(client, site): + """Test creation of Attributes.""" + + attr_uri = site.list_uri('attribute') + + # Test invalid attribute name + assert_error( + client.create( + attr_uri, + resource_name='Network', name='invalid attr1' + ), + status.HTTP_400_BAD_REQUEST + ) + + # Successfully create an Attribute + attr_resp = client.create(attr_uri, resource_name='Network', name='attr1') + attr = get_result(attr_resp) + attr_obj_uri = site.detail_uri('attribute', id=attr['id']) + assert_created(attr_resp, attr_obj_uri) + + # Successfully get all Network Attributes + payload = get_result(attr_resp) + expected = [payload] + assert_success(client.get(attr_uri), expected) + + # Successfully get a single Network Attribute + assert_success(client.get(attr_obj_uri), payload) + + +def test_bulk_operations(client, site): + """Test creating/updating multiple Attributes at once.""" + + attr_uri = site.list_uri('attribute') + + # Successfully create a collection of Attributes + collection = [ + {'name': 'attr1', 'resource_name': 'Network'}, + {'name': 'attr2', 'resource_name': 'Network'}, + {'name': 'attr3', 'resource_name': 'Network'}, + ] + collection_response = client.post( + attr_uri, + data=json.dumps(collection) + ) + assert_created(collection_response, None) + + # Successfully get all created Attributes + output = collection_response.json() + payload = get_result(output) + + assert_success( + client.get(attr_uri), + payload + ) + + # Test bulk update to add a description to each Attribute + updated = copy.deepcopy(payload) + + for item in updated: + item['description'] = 'This is the best attribute ever.' + updated_resp = client.put(attr_uri, data=json.dumps(updated)) + expected = updated_resp.json() + + assert updated == expected + + +def test_update(client, site): + """Test updating Attributes w/ PUT.""" + + attr_uri = site.list_uri('attribute') + + attr_resp = client.create(attr_uri, resource_name='Network', name='attr1') + attr = get_result(attr_resp) + attr_obj_uri = site.detail_uri('attribute', id=attr['id']) + + # Update the description + params = {'description': 'Attribute 1'} + attr1 = copy.deepcopy(attr) + attr1.update(params) + + assert_success( + client.update(attr_obj_uri, **params), + attr1 + ) + + # Update the required flag; which should also set display=True + params = {'required': True} + attr2 = copy.deepcopy(attr1) + attr2.update(params) + attr2['display'] = True + + assert_success( + client.update(attr_obj_uri, **params), + attr2 + ) + + # Reset the object back to it's initial state! + assert_success( + client.update(attr_obj_uri, **attr), + attr + ) + + +def test_partial_update(site, client): + """Test PATCH operations to partially update an Attribute.""" + attr_uri = site.list_uri('attribute') + + attr_resp = client.create(attr_uri, resource_name='Network', name='attr1') + attr = get_result(attr_resp) + attr_pk_uri = site.detail_uri('attribute', id=attr['id']) + + # Update display + params = {'display': True} + payload = copy.deepcopy(attr) + payload.update(params) + + assert_success( + client.partial_update(attr_pk_uri, **params), + payload + ) + + # Update constraints + params = { + u'constraints': { + u'allow_empty': True, u'pattern': u'', u'valid_values': [] + } + } + payload.update(params) + assert_success( + client.partial_update(attr_pk_uri, **params), + payload + ) + + +def test_deletion(client, site): + """Test DELETE operations for Attributes.""" + + attr_uri = site.list_uri('attribute') + net_uri = site.list_uri('network') + + attr_resp = client.create(attr_uri, resource_name='Network', name='attr1') + attr = get_result(attr_resp) + attr_obj_uri = site.detail_uri('attribute', id=attr['id']) + + # Create a Network with an attribute + net_resp = client.create( + net_uri, cidr='10.0.0.0/24', attributes={'attr1': 'foo'} + ) + net = get_result(net_resp) + + net_obj_uri = site.detail_uri('network', id=net['id']) + + # Don't allow delete when there's an attached network + assert_error( + client.delete(attr_obj_uri), + status.HTTP_409_CONFLICT + ) + + # Now delete the Network + client.delete(net_obj_uri) + + # And safely delete the Attribute + assert_deleted(client.delete(attr_obj_uri)) From 5b6f672bf5d03650dcd95a9c160b8bbf79edf59d Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Tue, 13 Sep 2016 16:45:40 -0400 Subject: [PATCH 05/31] Fixed API POST 400 error --- tests/api_tests/test_iterable.py | 306 +++++++++--------- ...1c628b50168e5044a6dc8e3034ef9312f44c6.json | 1 + ...95e49f6f87bba0c41bf27c3beab3efd9da5a9.json | 1 + 3 files changed, 150 insertions(+), 158 deletions(-) create mode 100644 tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json diff --git a/tests/api_tests/test_iterable.py b/tests/api_tests/test_iterable.py index 35ee76fb..bdafa0f6 100644 --- a/tests/api_tests/test_iterable.py +++ b/tests/api_tests/test_iterable.py @@ -24,165 +24,155 @@ def test_creation(client, site): - """Test creation of Attributes.""" + """Test creation of Iterables.""" - attr_uri = site.list_uri('attribute') + itr_uri = site.list_uri('iterable') + # Successfully create an iterable + itr_resp = client.create(itr_uri, name='itr1', description="test-iterable", min_val=10, max_val=20, increment=1) + itr = get_result(itr_resp) + itr_obj_uri = site.detail_uri('iterable', id=itr['id']) + assert_created(itr_resp, itr_obj_uri) - # Test invalid attribute name - assert_error( - client.create( - attr_uri, - resource_name='Network', name='invalid attr1' - ), - status.HTTP_400_BAD_REQUEST - ) - - # Successfully create an Attribute - attr_resp = client.create(attr_uri, resource_name='Network', name='attr1') - attr = get_result(attr_resp) - attr_obj_uri = site.detail_uri('attribute', id=attr['id']) - assert_created(attr_resp, attr_obj_uri) - - # Successfully get all Network Attributes - payload = get_result(attr_resp) + # Successfully get all s + payload = get_result(itr_resp) expected = [payload] - assert_success(client.get(attr_uri), expected) - + assert_success(client.get(itr_uri), expected) +# # Successfully get a single Network Attribute - assert_success(client.get(attr_obj_uri), payload) - - -def test_bulk_operations(client, site): - """Test creating/updating multiple Attributes at once.""" - - attr_uri = site.list_uri('attribute') - - # Successfully create a collection of Attributes - collection = [ - {'name': 'attr1', 'resource_name': 'Network'}, - {'name': 'attr2', 'resource_name': 'Network'}, - {'name': 'attr3', 'resource_name': 'Network'}, - ] - collection_response = client.post( - attr_uri, - data=json.dumps(collection) - ) - assert_created(collection_response, None) - - # Successfully get all created Attributes - output = collection_response.json() - payload = get_result(output) - - assert_success( - client.get(attr_uri), - payload - ) - - # Test bulk update to add a description to each Attribute - updated = copy.deepcopy(payload) - - for item in updated: - item['description'] = 'This is the best attribute ever.' - updated_resp = client.put(attr_uri, data=json.dumps(updated)) - expected = updated_resp.json() - - assert updated == expected - - -def test_update(client, site): - """Test updating Attributes w/ PUT.""" - - attr_uri = site.list_uri('attribute') - - attr_resp = client.create(attr_uri, resource_name='Network', name='attr1') - attr = get_result(attr_resp) - attr_obj_uri = site.detail_uri('attribute', id=attr['id']) - - # Update the description - params = {'description': 'Attribute 1'} - attr1 = copy.deepcopy(attr) - attr1.update(params) - - assert_success( - client.update(attr_obj_uri, **params), - attr1 - ) - - # Update the required flag; which should also set display=True - params = {'required': True} - attr2 = copy.deepcopy(attr1) - attr2.update(params) - attr2['display'] = True - - assert_success( - client.update(attr_obj_uri, **params), - attr2 - ) - - # Reset the object back to it's initial state! - assert_success( - client.update(attr_obj_uri, **attr), - attr - ) - - -def test_partial_update(site, client): - """Test PATCH operations to partially update an Attribute.""" - attr_uri = site.list_uri('attribute') - - attr_resp = client.create(attr_uri, resource_name='Network', name='attr1') - attr = get_result(attr_resp) - attr_pk_uri = site.detail_uri('attribute', id=attr['id']) - - # Update display - params = {'display': True} - payload = copy.deepcopy(attr) - payload.update(params) - - assert_success( - client.partial_update(attr_pk_uri, **params), - payload - ) - - # Update constraints - params = { - u'constraints': { - u'allow_empty': True, u'pattern': u'', u'valid_values': [] - } - } - payload.update(params) - assert_success( - client.partial_update(attr_pk_uri, **params), - payload - ) - - -def test_deletion(client, site): - """Test DELETE operations for Attributes.""" - - attr_uri = site.list_uri('attribute') - net_uri = site.list_uri('network') - - attr_resp = client.create(attr_uri, resource_name='Network', name='attr1') - attr = get_result(attr_resp) - attr_obj_uri = site.detail_uri('attribute', id=attr['id']) - - # Create a Network with an attribute - net_resp = client.create( - net_uri, cidr='10.0.0.0/24', attributes={'attr1': 'foo'} - ) - net = get_result(net_resp) - - net_obj_uri = site.detail_uri('network', id=net['id']) - - # Don't allow delete when there's an attached network - assert_error( - client.delete(attr_obj_uri), - status.HTTP_409_CONFLICT - ) - - # Now delete the Network - client.delete(net_obj_uri) - - # And safely delete the Attribute - assert_deleted(client.delete(attr_obj_uri)) + #assert_success(client.get(attr_obj_uri), payload) + + +#def test_bulk_operations(client, site): +# """Test creating/updating multiple Attributes at once.""" +# +# attr_uri = site.list_uri('attribute') +# +# # Successfully create a collection of Attributes +# collection = [ +# {'name': 'attr1', 'resource_name': 'Network'}, +# {'name': 'attr2', 'resource_name': 'Network'}, +# {'name': 'attr3', 'resource_name': 'Network'}, +# ] +# collection_response = client.post( +# attr_uri, +# data=json.dumps(collection) +# ) +# assert_created(collection_response, None) +# +# # Successfully get all created Attributes +# output = collection_response.json() +# payload = get_result(output) +# +# assert_success( +# client.get(attr_uri), +# payload +# ) +# +# # Test bulk update to add a description to each Attribute +# updated = copy.deepcopy(payload) +# +# for item in updated: +# item['description'] = 'This is the best attribute ever.' +# updated_resp = client.put(attr_uri, data=json.dumps(updated)) +# expected = updated_resp.json() +# +# assert updated == expected +# +# +#def test_update(client, site): +# """Test updating Attributes w/ PUT.""" +# +# attr_uri = site.list_uri('attribute') +# +# attr_resp = client.create(attr_uri, resource_name='Network', name='attr1') +# attr = get_result(attr_resp) +# attr_obj_uri = site.detail_uri('attribute', id=attr['id']) +# +# # Update the description +# params = {'description': 'Attribute 1'} +# attr1 = copy.deepcopy(attr) +# attr1.update(params) +# +# assert_success( +# client.update(attr_obj_uri, **params), +# attr1 +# ) +# +# # Update the required flag; which should also set display=True +# params = {'required': True} +# attr2 = copy.deepcopy(attr1) +# attr2.update(params) +# attr2['display'] = True +# +# assert_success( +# client.update(attr_obj_uri, **params), +# attr2 +# ) +# +# # Reset the object back to it's initial state! +# assert_success( +# client.update(attr_obj_uri, **attr), +# attr +# ) +# +# +#def test_partial_update(site, client): +# """Test PATCH operations to partially update an Attribute.""" +# attr_uri = site.list_uri('attribute') +# +# attr_resp = client.create(attr_uri, resource_name='Network', name='attr1') +# attr = get_result(attr_resp) +# attr_pk_uri = site.detail_uri('attribute', id=attr['id']) +# +# # Update display +# params = {'display': True} +# payload = copy.deepcopy(attr) +# payload.update(params) +# +# assert_success( +# client.partial_update(attr_pk_uri, **params), +# payload +# ) +# +# # Update constraints +# params = { +# u'constraints': { +# u'allow_empty': True, u'pattern': u'', u'valid_values': [] +# } +# } +# payload.update(params) +# assert_success( +# client.partial_update(attr_pk_uri, **params), +# payload +# ) +# +# +#def test_deletion(client, site): +# """Test DELETE operations for Attributes.""" +# +# attr_uri = site.list_uri('attribute') +# net_uri = site.list_uri('network') +# +# attr_resp = client.create(attr_uri, resource_name='Network', name='attr1') +# attr = get_result(attr_resp) +# attr_obj_uri = site.detail_uri('attribute', id=attr['id']) +# +# # Create a Network with an attribute +# net_resp = client.create( +# net_uri, cidr='10.0.0.0/24', attributes={'attr1': 'foo'} +# ) +# net = get_result(net_resp) +# +# net_obj_uri = site.detail_uri('network', id=net['id']) +# +# # Don't allow delete when there's an attached network +# assert_error( +# client.delete(attr_obj_uri), +# status.HTTP_409_CONFLICT +# ) +# +# # Now delete the Network +# client.delete(net_obj_uri) +# +# # And safely delete the Attribute +# assert_deleted(client.delete(attr_obj_uri)) diff --git a/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json b/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json new file mode 100644 index 00000000..4b7e74a6 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept": ["*/*"], "Connection": ["keep-alive"], "Accept-Encoding": ["gzip, deflate"], "X-NSoT-Email": ["admin@localhost"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=qQ62n3SrvDPWsjt1Nn3SrVSMQ1fr62n3ZvrV5Hvzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18yZLbyLbYXl+B5rutkB5UBDGRoKTSewAIzvNM3rhWYEiACWIiRpL39dobr+2NwzuHIxz2wjvvnz/FccOf4UxwKFapSt1S97srKUpFMPPkOSdPnimRJ+vjT7WBPF0NFWITu86nVx/xB+GonnVfAF4BNwDV+PSKID66IFYJfaOGEYjvC0ls3gmFh45NHAd3YJfA9L6wvJuJd7LvBmoMNQcUCN33YuChUS3lHhgWuBnnqS64L6QQZIEfxjegGTTizb0BUqiDu/zLOwJ6MIaqcxfpqgPu6RfIyycUd9NDcEs7BvuYwtP7cJ3FzSQc6G2JTQjM+wLGFb2nqChG/OtFC+gwjD0/hibUUYvvFXXfpXQ1iBEeCrqqBSJKDQIH3MV+om/uIKJ5V2GCfTHwrAIRAue+8EV/EAKEJvAjYBSICB5BdF+oMPsKUyCoB47ysdEGiUZPYgIPLPweLk01zYlrTgKiGADnhs0Yieu+kANSeQP1byMYmua+XTJo0B79/7djivsepjjEFHdlKoaxAz4NEQEiBeGV/kfq1PFkTeODA6INAPH3Lage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xby8LDKOJHvqOg5Pi+/Ou6rwoX2Bx0bb6NyBBe/WXcaD49zwK8w3x0y2ex9N9pCl4zk/j9HPCzocYvp7gzXDxBFmMAgc5u8IHNAJl34qKsF/H6JjokwFoQnoR7VwdVQdvqH9HkNQ7ooAGX5vui/+Im+4/gH2AdrcohyBIwgMZUUP51BvspWdTeRKHaFKIKZIofAjUeHNPFa5rSOQZcB6+QuD4qvHYYV85IjBV1Th8OUmsx9jyrqn826IDPCvePLiRJ934TyY8HZK3PcyscM2rC++wyPPbDUgzkRd6U8jTqMJbsvAvBfLcyXytk/1aJ/e1Tv5p59urI/meOd1uCk7zuilZeYnUL1/6IOr0twk+Uqc/vfP/Af8Zv1eLRwAA", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=pe7inl3s8j8cj2g55nr2o0r0n5; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC0A6E3C9FCE34C046AB92421DA69EC3725534C42CB695BD59EB2C313B2EEA08C45A0C008CE5DCC69AB74FACDE96E159D6D;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7206"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 13 Sep 2016 18:26:53 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.88.38"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=qQ62n3SrvDPWsjt1Nn3SrVSMQ1fr62n3ZvrV5Hvzsq"}, "recorded_at": "2016-09-13T18:33:48"}, {"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8100/api/sites/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Location": ["https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"], "Server": ["Zscaler/5.2"]}, "status": {"message": "Moved Temporarily", "code": 302}, "url": "http://localhost:8100/api/sites/"}, "recorded_at": "2016-09-13T20:11:22"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept": ["*/*"], "Connection": ["keep-alive"], "Accept-Encoding": ["gzip, deflate"], "X-NSoT-Email": ["admin@localhost"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+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OOTn3M4mXRhDHQQxbL0zeRkpPeoeUf/ViDlUrg7F2NWR0un94YUX1D1pvErjg3g2sN08GfUAwDDltSqp7Hv/zBWOSVcH9I07kTUnQLWTHPLX98FALdrUnOJFyX05PMz7cNH+Fs7cC+uLgZxKoKIbnRBig/PW3YHkehb2A5dXt8+dfpbu/1nLh4Rep/hiFDjfC9KEJm65Md+Cz7HpzYW/J9MfBHx/qsKNcw/0piLpSfuXLDei7h8aHagU/n+zqvso335/uNzue9bkxl8AfSfjwaJIvTDU09/tnV2u71+Du/qZWjYceM05r7x5V/u1Fwk4y1+PAdcu4+OF8sDpL5TMoHjxZ/wog8Lj+ZRhwB3wZhPkG+eEWztPlPlGVcs3Pd+qXmF1NMQI9K8/D96eR90noQm9X+wBnwACcUyH06xy9RPpsAlyQfg8Pr66qgzfYv0NQ7B1Sg5OvTQ/3/1g2PXwA+xAecGEUgaCIDwqkCyOqN6WbXsjsPI3hoiBRKFL7EKqp/YDVrjJEqhi42sBi4Aaq8dRjXylCSqyqcfh8kaUel6Z3jebf3rvAt1L70Y886y7/isfzKVXb48pq18i69q5keXX3BmomdENvalUgVXuL1v6lhp478a91Nr/WSXyts/W88+3Vk3zPmm6PBad13VStfAnVz587Iez05zI+Yqe/BvX/ATWxbjYeSgAA", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=l1qnrihe0g495t4dcu11nhn307; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC01D715DE960D1D66DA142353243330039923BB02E6BE2642E4FA388AA71F7B5B57D81953815B40BF9B076C8E8A3D5133C;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7716"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 13 Sep 2016 20:26:09 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.89.214"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"}, "recorded_at": "2016-09-13T20:11:22"}, {"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/"}, "response": {"body": {"string": "{\"id\":1,\"name\":\"Test Site\",\"description\":\"\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=oJdugvIoXj4sH6rcyCLB5CTUJ6xM2QaN; expires=Tue, 12-Sep-2017 20:44:57 GMT; Max-Age=31449600; Path=/", "sessionid=n0032pa8z31ceqrm5b39ecgr6nsyghsz; expires=Tue, 27-Sep-2016 20:44:57 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/"], "Allow": ["GET, POST, HEAD, OPTIONS"], "Date": ["Tue, 13 Sep 2016 20:44:57 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/"}, "recorded_at": "2016-09-13T20:44:57"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json b/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json new file mode 100644 index 00000000..6118a79c --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=9XkZSQlh8neNkJlPCOkPim3pscORCi7s; expires=Tue, 12-Sep-2017 20:44:57 GMT; Max-Age=31449600; Path=/", "sessionid=eivjg7haukiq7xt8big9s3fx80zi290x; expires=Tue, 27-Sep-2016 20:44:57 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/iterable/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 13 Sep 2016 20:44:57 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-09-13T20:44:57"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=9XkZSQlh8neNkJlPCOkPim3pscORCi7s; sessionid=eivjg7haukiq7xt8big9s3fx80zi290x"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "[{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 13 Sep 2016 20:44:57 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-09-13T20:44:57"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file From 77090012404b91e62b26860e4aab1bdd39f63c91 Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Thu, 15 Sep 2016 15:54:14 -0400 Subject: [PATCH 06/31] Iterable API tested for create/update/get_next --- nsot/admin.py | 2 +- nsot/api/serializers.py | 12 +- nsot/api/views.py | 15 +- nsot/models.py | 28 ++- nsot/static/src/js/app.js | 8 + .../templates/includes/iterables-form.html | 85 +++++++ nsot/static/src/templates/iterable.html | 85 +++++++ nsot/static/src/templates/iterables.html | 67 ++++++ tests/api_tests/test_iterable.py | 210 +++++++++--------- tests/api_tests/test_networks.py | 1 - ...1c628b50168e5044a6dc8e3034ef9312f44c6.json | 2 +- ...95e49f6f87bba0c41bf27c3beab3efd9da5a9.json | 2 +- tests/model_tests/test_iterables.py | 47 ++++ ...97becd90041963d52a7bc2fe0a32eff1b8250.json | 1 + ...1a60d19dfadf71e943dca17d8914a87865d85.json | 1 + ...db4e888302c283d82b63131b5b51b05655b17.json | 1 + ...29ddf21838a67b257b99cd646b5b632bf0240.json | 1 + ...3d8843e034c7465037088edd7480e9b7eefaa.json | 1 + ...90370f99dbada2f22883aba385169e51adcd7.json | 1 + ...3bda6f1cccbb63afa6a53385ad739959e7bdc.json | 1 + ...5efafbb79d39ad5e9fc281baaab9caf809ddf.json | 1 + ...35975b61f5aa73bbf34bc8bd23c344da7c17d.json | 1 + ...a3d2104215406ba907120a6e9b9f81f64074a.json | 1 + ...6909f2572a95f6f8edf7ce341ecf1edcb79ad.json | 1 + ...180af8d58bc0b7907a76c580089938f93235f.json | 1 + ...bdf3590df980e07baa9dc3ad9360387deb771.json | 1 + ...8b61bdb25c7dca7049a8f66fa3ed1f6c06033.json | 1 + ...ea2112694a342065bc29ab982b640d9de05f8.json | 1 + ...a273d56a0d95e1a8e65f1b96a8ea09673ed4e.json | 1 + ...12bfb1328c4198e1e3265a991a333a854b08c.json | 1 + ...3e2415076faee1762b5a9bd036ffdf687ec9e.json | 1 + ...bad7234fd22e555fca4e1e661c06150594764.json | 1 + ...1e78c8eb4ea24b812b2757d34f0425f62c4ce.json | 1 + ...f6226f909731ce2a16f95ad58333e5d46b358.json | 1 + ...d1126d5af748c76fa8186a04e9db94caa4266.json | 1 + ...79b39bd62a3954a7525a47266dc24230c10f7.json | 1 + ...69da5f6e63f009f084ad75653f7e9e9da6fae.json | 1 + ...1d21d4bfdf0a306e2aa7d0d6c892825fd907b.json | 1 + ...afd1f2714721d518b5a7bd1baee83385a73e8.json | 1 + ...03035213ebcbf62913a52379d1cce83323b1e.json | 1 + ...100f15e145f9702cdccaaa2f57bee320e2862.json | 1 + ...e004374a49df1de91cdfd9e06a71bc33bc3c4.json | 1 + ...43f794779e7b3d20c5caae77398edd54148f0.json | 1 + ...c558b7946fde225ef98eba440b352cf8069f6.json | 1 + ...47dfdf33edca136ad0eb5fe63c7593d3776c1.json | 1 + ...8ced5800ae3ab7db96f6c05c3934a374bc978.json | 1 + ...efdd348236797e02a79096908ba2b10eb0169.json | 1 + ...95360c7eea97a7c354ee6ca3c1a8851b53cd9.json | 1 + ...eec6373c55da4a3001fbcac6b72729f72dbc0.json | 1 + ...b1c96e309feb49d8d2fa0d266b8369a0ec428.json | 1 + ...ec27a703ec684e7330d283c5cf789add90eeb.json | 1 + ...e2c24b7b96754be5274456846c679c7218f66.json | 1 + ...1c628b50168e5044a6dc8e3034ef9312f44c6.json | 1 + ...e446940adf75be72d7ff7a59b5db4918d6e1c.json | 1 + ...95e49f6f87bba0c41bf27c3beab3efd9da5a9.json | 1 + ...6ecd4fe0150cd6217d09c5d4b1f8d9d19e00b.json | 1 + ...9fc13628275f2a31802bc64c03f049f457bd6.json | 1 + ...750a6d840f704991808815c7cc500845d850f.json | 1 + ...39450914a324dd6fe58d1530c6e7cbc92668d.json | 1 + ...8309f2ed9ffe89fb10dc74753eed7ecb723ce.json | 1 + ...ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json | 1 + ...74da839501043708fa3000d35851e61d996a3.json | 1 + ...48976a960605bb0cc70cc575506af38968f36.json | 1 + ...ce35610f08937e315c7ca43d88e3d52cae87d.json | 1 + ...66aff566078fc644891c3d483a596bc238579.json | 1 + ...fd2df6127b125a3d4d9d702eb97c7151b84b2.json | 1 + ...885aa4d31ad8a2b08b03b992f52f9db466615.json | 1 + ...58e2cf97d7a523c5852924a577f5c8b892866.json | 1 + ...7009c8ca1699486d9116a6ca0da537b1bb8b7.json | 1 + ...399e8dbcd4774ee2b95798987a3638ea50836.json | 1 + ...b60510140254a7ec730a2383e740cf8048a1d.json | 1 + ...65a9697212637085b4a3e6ab21689f776d9de.json | 1 + ...3b5b7565d66b9b89cc2c7451cf206f1d0c0c2.json | 1 + ...e397632a874f9bb32ccda0313de2633938b63.json | 1 + ...01c6d7cf05a4278dd5458a09e0b04788a0103.json | 1 + ...bf65cf0371d4806fae9e1ff953f163ab0d803.json | 1 + ...ebe116d422145e03dbb05c5d21d8f36ffe70f.json | 1 + ...aea7fe81fb647256ead8b8076b3fa39ae57ec.json | 1 + ...4529bd2b59140eec7020beac2eb51f67ba602.json | 1 + 79 files changed, 521 insertions(+), 109 deletions(-) create mode 100644 nsot/static/src/templates/includes/iterables-form.html create mode 100644 nsot/static/src/templates/iterable.html create mode 100644 nsot/static/src/templates/iterables.html create mode 100644 tests/tests/api_tests/cassettes/11f97becd90041963d52a7bc2fe0a32eff1b8250.json create mode 100644 tests/tests/api_tests/cassettes/15f1a60d19dfadf71e943dca17d8914a87865d85.json create mode 100644 tests/tests/api_tests/cassettes/1dadb4e888302c283d82b63131b5b51b05655b17.json create mode 100644 tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json create mode 100644 tests/tests/api_tests/cassettes/2113d8843e034c7465037088edd7480e9b7eefaa.json create mode 100644 tests/tests/api_tests/cassettes/23c90370f99dbada2f22883aba385169e51adcd7.json create mode 100644 tests/tests/api_tests/cassettes/2bf3bda6f1cccbb63afa6a53385ad739959e7bdc.json create mode 100644 tests/tests/api_tests/cassettes/32e5efafbb79d39ad5e9fc281baaab9caf809ddf.json create mode 100644 tests/tests/api_tests/cassettes/36035975b61f5aa73bbf34bc8bd23c344da7c17d.json create mode 100644 tests/tests/api_tests/cassettes/392a3d2104215406ba907120a6e9b9f81f64074a.json create mode 100644 tests/tests/api_tests/cassettes/3f16909f2572a95f6f8edf7ce341ecf1edcb79ad.json create mode 100644 tests/tests/api_tests/cassettes/42f180af8d58bc0b7907a76c580089938f93235f.json create mode 100644 tests/tests/api_tests/cassettes/460bdf3590df980e07baa9dc3ad9360387deb771.json create mode 100644 tests/tests/api_tests/cassettes/4bc8b61bdb25c7dca7049a8f66fa3ed1f6c06033.json create mode 100644 tests/tests/api_tests/cassettes/4dbea2112694a342065bc29ab982b640d9de05f8.json create mode 100644 tests/tests/api_tests/cassettes/52aa273d56a0d95e1a8e65f1b96a8ea09673ed4e.json create mode 100644 tests/tests/api_tests/cassettes/54012bfb1328c4198e1e3265a991a333a854b08c.json create mode 100644 tests/tests/api_tests/cassettes/5863e2415076faee1762b5a9bd036ffdf687ec9e.json create mode 100644 tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json create mode 100644 tests/tests/api_tests/cassettes/5c61e78c8eb4ea24b812b2757d34f0425f62c4ce.json create mode 100644 tests/tests/api_tests/cassettes/654f6226f909731ce2a16f95ad58333e5d46b358.json create mode 100644 tests/tests/api_tests/cassettes/65ad1126d5af748c76fa8186a04e9db94caa4266.json create mode 100644 tests/tests/api_tests/cassettes/66279b39bd62a3954a7525a47266dc24230c10f7.json create mode 100644 tests/tests/api_tests/cassettes/67a69da5f6e63f009f084ad75653f7e9e9da6fae.json create mode 100644 tests/tests/api_tests/cassettes/6811d21d4bfdf0a306e2aa7d0d6c892825fd907b.json create mode 100644 tests/tests/api_tests/cassettes/683afd1f2714721d518b5a7bd1baee83385a73e8.json create mode 100644 tests/tests/api_tests/cassettes/68a03035213ebcbf62913a52379d1cce83323b1e.json create mode 100644 tests/tests/api_tests/cassettes/6c9100f15e145f9702cdccaaa2f57bee320e2862.json create mode 100644 tests/tests/api_tests/cassettes/6d3e004374a49df1de91cdfd9e06a71bc33bc3c4.json create mode 100644 tests/tests/api_tests/cassettes/72143f794779e7b3d20c5caae77398edd54148f0.json create mode 100644 tests/tests/api_tests/cassettes/743c558b7946fde225ef98eba440b352cf8069f6.json create mode 100644 tests/tests/api_tests/cassettes/78247dfdf33edca136ad0eb5fe63c7593d3776c1.json create mode 100644 tests/tests/api_tests/cassettes/7998ced5800ae3ab7db96f6c05c3934a374bc978.json create mode 100644 tests/tests/api_tests/cassettes/7d2efdd348236797e02a79096908ba2b10eb0169.json create mode 100644 tests/tests/api_tests/cassettes/80d95360c7eea97a7c354ee6ca3c1a8851b53cd9.json create mode 100644 tests/tests/api_tests/cassettes/82beec6373c55da4a3001fbcac6b72729f72dbc0.json create mode 100644 tests/tests/api_tests/cassettes/84bb1c96e309feb49d8d2fa0d266b8369a0ec428.json create mode 100644 tests/tests/api_tests/cassettes/865ec27a703ec684e7330d283c5cf789add90eeb.json create mode 100644 tests/tests/api_tests/cassettes/90de2c24b7b96754be5274456846c679c7218f66.json create mode 100644 tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json create mode 100644 tests/tests/api_tests/cassettes/944e446940adf75be72d7ff7a59b5db4918d6e1c.json create mode 100644 tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json create mode 100644 tests/tests/api_tests/cassettes/9656ecd4fe0150cd6217d09c5d4b1f8d9d19e00b.json create mode 100644 tests/tests/api_tests/cassettes/9e59fc13628275f2a31802bc64c03f049f457bd6.json create mode 100644 tests/tests/api_tests/cassettes/a19750a6d840f704991808815c7cc500845d850f.json create mode 100644 tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json create mode 100644 tests/tests/api_tests/cassettes/af08309f2ed9ffe89fb10dc74753eed7ecb723ce.json create mode 100644 tests/tests/api_tests/cassettes/b93ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json create mode 100644 tests/tests/api_tests/cassettes/bd474da839501043708fa3000d35851e61d996a3.json create mode 100644 tests/tests/api_tests/cassettes/bed48976a960605bb0cc70cc575506af38968f36.json create mode 100644 tests/tests/api_tests/cassettes/c1ace35610f08937e315c7ca43d88e3d52cae87d.json create mode 100644 tests/tests/api_tests/cassettes/c5166aff566078fc644891c3d483a596bc238579.json create mode 100644 tests/tests/api_tests/cassettes/c77fd2df6127b125a3d4d9d702eb97c7151b84b2.json create mode 100644 tests/tests/api_tests/cassettes/c87885aa4d31ad8a2b08b03b992f52f9db466615.json create mode 100644 tests/tests/api_tests/cassettes/ced58e2cf97d7a523c5852924a577f5c8b892866.json create mode 100644 tests/tests/api_tests/cassettes/d5f7009c8ca1699486d9116a6ca0da537b1bb8b7.json create mode 100644 tests/tests/api_tests/cassettes/e0e399e8dbcd4774ee2b95798987a3638ea50836.json create mode 100644 tests/tests/api_tests/cassettes/eacb60510140254a7ec730a2383e740cf8048a1d.json create mode 100644 tests/tests/api_tests/cassettes/eb265a9697212637085b4a3e6ab21689f776d9de.json create mode 100644 tests/tests/api_tests/cassettes/f1c3b5b7565d66b9b89cc2c7451cf206f1d0c0c2.json create mode 100644 tests/tests/api_tests/cassettes/f3fe397632a874f9bb32ccda0313de2633938b63.json create mode 100644 tests/tests/api_tests/cassettes/f5d01c6d7cf05a4278dd5458a09e0b04788a0103.json create mode 100644 tests/tests/api_tests/cassettes/f88bf65cf0371d4806fae9e1ff953f163ab0d803.json create mode 100644 tests/tests/api_tests/cassettes/fd0ebe116d422145e03dbb05c5d21d8f36ffe70f.json create mode 100644 tests/tests/api_tests/cassettes/fdbaea7fe81fb647256ead8b8076b3fa39ae57ec.json create mode 100644 tests/tests/api_tests/cassettes/ffd4529bd2b59140eec7020beac2eb51f67ba602.json diff --git a/nsot/admin.py b/nsot/admin.py index 1c3c02b0..e252a84d 100644 --- a/nsot/admin.py +++ b/nsot/admin.py @@ -87,7 +87,7 @@ class InterfaceAdmin(admin.ModelAdmin): class IterableAdmin(admin.ModelAdmin): - list_display = ('name', 'min_val', 'max_val', 'increment') + list_display = ('name', 'description', 'min_val', 'max_val', 'increment', 'site') fields = list_display admin.site.register(models.Iterable, IterableAdmin) diff --git a/nsot/api/serializers.py b/nsot/api/serializers.py index a6f2e9cd..352d470b 100644 --- a/nsot/api/serializers.py +++ b/nsot/api/serializers.py @@ -275,11 +275,19 @@ class Meta: class IterableUpdateSerializer(BulkSerializerMixin, IterableCreateSerializer): - """ Used for PUT, PATCH, on Iterables. """ + """ Used for PUT on Iterables. """ class Meta: model = models.Iterable list_serializer_class = BulkListSerializer - fields = ('id', 'name', 'description', 'min_val', 'max_val', 'increment', 'site_id') + fields = ('id', 'name', 'description', 'min_val', 'max_val', 'increment') + +class IterablePartialUpdateSerializer(BulkSerializerMixin, + IterableCreateSerializer): + """ Used for PATCH, on Iterables. """ + class Meta: + model = models.Iterable + list_serializer_class = BulkListSerializer + fields = ('id', 'name', 'description', 'min_val', 'max_val', 'increment') diff --git a/nsot/api/views.py b/nsot/api/views.py index da0b7064..cf245edc 100644 --- a/nsot/api/views.py +++ b/nsot/api/views.py @@ -356,9 +356,22 @@ class IterableViewSet(ResourceViewSet): def get_serializer_class(self): if self.request.method == 'POST': return serializers.IterableCreateSerializer - if self.request.method in ('PUT', 'PATCH'): + if self.request.method in ('PUT'): return serializers.IterableUpdateSerializer + if self.request.method in ('PATCH'): + return serializers.IterablePartialUpdateSerializer return self.serializer_class + + @detail_route(methods=['get']) + def next_value(self, request, pk=None, site_pk=None, *args, **kwargs): + """Return next available Iterable value from this Network.""" + iterable = self.get_resource_object(pk, site_pk) + + value = iterable.get_next_value() + + return self.success(value) + + class DeviceViewSet(ResourceViewSet): diff --git a/nsot/models.py b/nsot/models.py index 800029a7..50aa090c 100644 --- a/nsot/models.py +++ b/nsot/models.py @@ -27,7 +27,7 @@ # These are constants that becuase they are tied directly to the underlying # objects are explicitly NOT USER CONFIGURABLE. RESOURCE_BY_IDX = ( - 'Site', 'Network', 'Attribute', 'Device', 'Interface' + 'Site', 'Network', 'Attribute', 'Device', 'Interface', 'Iterable' ) RESOURCE_BY_NAME = { obj_type: idx @@ -1940,6 +1940,32 @@ class Iterable(models.Model): def __unicode__(self): return u'name=%s, min=%s, max=%s, increment=%s' % (self.name, self.min_val, self.max_val, self.increment ) + def get_next_value(self): + "Get the next value of the iterable" + try: + " First try to generate the next value based on the current allocation" + curr_val = IterValue.objects.filter(iter_key=self.id).order_by('-val').values_list('val', flat=True)[0] + incr = self.increment + next_val = curr_val + incr + try: + if self.min_val <= next_val <= self.max_val: + return [next_val] + else: + raise exc.ValidationError({ + 'next_val': 'Out of range' + }) + + except: + log.debug('value out of range - exceeded') + raise exc.ValidationError({ + 'next_val': 'Out of range' + }) + except IndexError: + "Index Error implies that the table has not been intialized - so assign the first value" + return [self.min_val] + + + def save(self, *args, **kwargs): super(Iterable, self).save(*args, **kwargs) diff --git a/nsot/static/src/js/app.js b/nsot/static/src/js/app.js index ac651d67..eecc5159 100644 --- a/nsot/static/src/js/app.js +++ b/nsot/static/src/js/app.js @@ -153,6 +153,14 @@ templateUrl: "attribute.html", controller: "AttributeController" }) + .when("/sites/:siteId/iterables", { + templateUrl: "iterables.html", + controller: "IterablesController" + }) + .when("/sites/:siteId/iterables/:iterableId", { + templateUrl: "iterable.html", + controller: "IterableController" + }) .when("/sites/:siteId/changes", { templateUrl: "changes.html", controller: "ChangesController" diff --git a/nsot/static/src/templates/includes/iterables-form.html b/nsot/static/src/templates/includes/iterables-form.html new file mode 100644 index 00000000..6d0e14b3 --- /dev/null +++ b/nsot/static/src/templates/includes/iterables-form.html @@ -0,0 +1,85 @@ +
    +
    +
    + + +
    + + [[attribute.name]] + +
    + +
    +
    + + +
    + + [[attribute.resource_name]] + +
    +
    +
    + + +
    +

    Constraints

    +
    + + +
    +
    + + +
    + + + + diff --git a/nsot/static/src/templates/iterable.html b/nsot/static/src/templates/iterable.html new file mode 100644 index 00000000..32c19cfe --- /dev/null +++ b/nsot/static/src/templates/iterable.html @@ -0,0 +1,85 @@ + +
    + + + + + +
    + + + Iterable + + +
    +
    Name
    +
    [[iterable.name]]
    + +
    Description
    +
    [[iterable.description]]
    + +
    Minimum Value
    +
    [[iterable.min_val]]
    + +
    Maximum Value
    +
    [[iterable.max_val]]
    + +
    Incrementor
    +
    [[iterable.increment]]
    + +
    + +
    +
    +
    + + + + + + + + + + + +
    diff --git a/nsot/static/src/templates/iterables.html b/nsot/static/src/templates/iterables.html new file mode 100644 index 00000000..fedc532e --- /dev/null +++ b/nsot/static/src/templates/iterables.html @@ -0,0 +1,67 @@ + +
    + + + + + + + + + +
    + + Iterables + + No Iterables + + + + + + + + + + + + + + + + + + + +
    NameDescriptionMin valueMax valueincrementor
    [[itr.resource_name]] + [[itr.name]] + [[itr.description]]
    +
    +
    + +
    + + +
    diff --git a/tests/api_tests/test_iterable.py b/tests/api_tests/test_iterable.py index bdafa0f6..0fb8c64b 100644 --- a/tests/api_tests/test_iterable.py +++ b/tests/api_tests/test_iterable.py @@ -33,122 +33,130 @@ def test_creation(client, site): itr_obj_uri = site.detail_uri('iterable', id=itr['id']) assert_created(itr_resp, itr_obj_uri) - # Successfully get all s + #Validate that the repsonse (which contains the creation data) matches the GET response, upon quering the API payload = get_result(itr_resp) expected = [payload] assert_success(client.get(itr_uri), expected) -# # Successfully get a single Network Attribute - #assert_success(client.get(attr_obj_uri), payload) + assert_success(client.get(itr_obj_uri), payload) +def test_bulk_operations(client, site): + """Test creating/updating multiple Iterables at once.""" -#def test_bulk_operations(client, site): -# """Test creating/updating multiple Attributes at once.""" -# -# attr_uri = site.list_uri('attribute') -# -# # Successfully create a collection of Attributes -# collection = [ -# {'name': 'attr1', 'resource_name': 'Network'}, -# {'name': 'attr2', 'resource_name': 'Network'}, -# {'name': 'attr3', 'resource_name': 'Network'}, -# ] -# collection_response = client.post( -# attr_uri, -# data=json.dumps(collection) -# ) -# assert_created(collection_response, None) -# -# # Successfully get all created Attributes -# output = collection_response.json() -# payload = get_result(output) -# -# assert_success( -# client.get(attr_uri), -# payload -# ) -# -# # Test bulk update to add a description to each Attribute + itr_uri = site.list_uri('iterable') + + # Successfully create a collection of Iterables + collection = [ + {'name': 'itr1', 'description': 'iterable1', 'min_val': 10, 'max_val': 20, 'increment': 1}, + {'name': 'itr2', 'description': 'iterable2', 'min_val': 10, 'max_val': 20, 'increment': 1}, + {'name': 'itr3', 'description': 'iterable3', 'min_val': 10, 'max_val': 20, 'increment': 1}, + ] + collection_response = client.post( + itr_uri, + data=json.dumps(collection) + ) + assert_created(collection_response, None) + + # Successfully get all created Attributes + output = collection_response.json() + cli_resp = client.get(itr_uri) + payload = get_result(output) + + assert_success( + client.get(itr_uri), + payload + ) + + # Test bulk update to add a description to each Attribute # updated = copy.deepcopy(payload) # # for item in updated: # item['description'] = 'This is the best attribute ever.' -# updated_resp = client.put(attr_uri, data=json.dumps(updated)) +# updated_resp = client.put(itr_uri, data=json.dumps(updated)) # expected = updated_resp.json() # # assert updated == expected + # -# -#def test_update(client, site): -# """Test updating Attributes w/ PUT.""" -# -# attr_uri = site.list_uri('attribute') -# -# attr_resp = client.create(attr_uri, resource_name='Network', name='attr1') -# attr = get_result(attr_resp) -# attr_obj_uri = site.detail_uri('attribute', id=attr['id']) -# +def test_update(client, site): + """Test updating Attributes w/ PUT.""" + + itr_uri = site.list_uri('iterable') + + itr_resp = client.create(itr_uri, name='itr1', description="test-iterable", min_val=10, max_val=20, increment=1) + itr = get_result(itr_resp) + + itr_obj_uri = site.detail_uri('iterable', id=itr['id']) # # Update the description -# params = {'description': 'Attribute 1'} -# attr1 = copy.deepcopy(attr) -# attr1.update(params) -# -# assert_success( -# client.update(attr_obj_uri, **params), -# attr1 -# ) -# -# # Update the required flag; which should also set display=True -# params = {'required': True} -# attr2 = copy.deepcopy(attr1) -# attr2.update(params) -# attr2['display'] = True -# -# assert_success( -# client.update(attr_obj_uri, **params), -# attr2 -# ) -# -# # Reset the object back to it's initial state! -# assert_success( -# client.update(attr_obj_uri, **attr), -# attr -# ) -# -# -#def test_partial_update(site, client): -# """Test PATCH operations to partially update an Attribute.""" -# attr_uri = site.list_uri('attribute') -# -# attr_resp = client.create(attr_uri, resource_name='Network', name='attr1') -# attr = get_result(attr_resp) -# attr_pk_uri = site.detail_uri('attribute', id=attr['id']) -# -# # Update display -# params = {'display': True} -# payload = copy.deepcopy(attr) -# payload.update(params) -# -# assert_success( -# client.partial_update(attr_pk_uri, **params), -# payload -# ) -# -# # Update constraints -# params = { -# u'constraints': { -# u'allow_empty': True, u'pattern': u'', u'valid_values': [] -# } -# } -# payload.update(params) -# assert_success( -# client.partial_update(attr_pk_uri, **params), -# payload -# ) -# -# -#def test_deletion(client, site): -# """Test DELETE operations for Attributes.""" + params = {'description': 'Iterable 1', 'id': itr['id'], 'name': itr['name'], 'min_val': itr['min_val'], 'max_val': itr['max_val'] } + itr1 = copy.deepcopy(itr) + itr1.update(params) + + client.update(itr_obj_uri, **params), + assert_success( + client.update(itr_obj_uri, **params), + itr1 + ) + + # Reset the object back to it's initial state! + assert_success( + client.update(itr_obj_uri, **itr), + itr + ) + + +def test_partial_update(site, client): + """Test PATCH operations to partially update an Iterable.""" + + itr_uri = site.list_uri('iterable') + + itr_resp = client.create(itr_uri, name='itr1', description="test-iterable", min_val=10, max_val=20, increment=1) + itr = get_result(itr_resp) + + itr_pk_uri = site.detail_uri('iterable', id=itr['id']) + + # Update display + params = {'description': 'Iterable 1'} + payload = copy.deepcopy(itr) + payload.update(params) + + assert_success( + client.partial_update(itr_pk_uri, **params), + payload + ) + + +def test_getnext(client, site): + """ Test that the next value for the iterable is returned""" + itr_uri = site.list_uri('iterable') + + itr_resp = client.create(itr_uri, name='itr1', description="test-iterable", min_val=10, max_val=20, increment=1) + itr = get_result(itr_resp) + + itr_pk_uri = site.detail_uri('iterable', id=itr['id']) + + uri = reverse('iterable-next-value', args=(site.id, itr['id'])) + + expected = [10] # Minimum val is offered up, since no other values are assigned + + assert client.get(uri).json() == expected + + +def test_deletion(client, site): + """Test DELETE operations for Iterable.""" + itr_uri = site.list_uri('iterable') + + itr_resp = client.create(itr_uri, name='itr1', description="test-iterable", min_val=10, max_val=20, increment=1) + itr = get_result(itr_resp) + + itr_pk_uri = site.detail_uri('iterable', id=itr['id']) + assert_deleted(client.delete(itr_pk_uri)) + + + ###TO DO: Validate deletion fails if there are values associated with the Iterable + + + # # attr_uri = site.list_uri('attribute') # net_uri = site.list_uri('network') diff --git a/tests/api_tests/test_networks.py b/tests/api_tests/test_networks.py index 9c472b72..b8597044 100644 --- a/tests/api_tests/test_networks.py +++ b/tests/api_tests/test_networks.py @@ -618,7 +618,6 @@ def test_get_next_detail_routes(site, client): natural_uri = reverse( 'network-next-address', args=(site.id, mkcidr(net_25)) ) - # A single /32 assert_success(client.retrieve(uri), [u'10.16.2.3/32']) assert_success(client.retrieve(natural_uri), [u'10.16.2.3/32']) diff --git a/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json b/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json index 4b7e74a6..d140b775 100644 --- a/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json +++ b/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept": ["*/*"], "Connection": ["keep-alive"], "Accept-Encoding": ["gzip, deflate"], "X-NSoT-Email": ["admin@localhost"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=qQ62n3SrvDPWsjt1Nn3SrVSMQ1fr62n3ZvrV5Hvzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18yZLbyLbYXl+B5rutkB5UBDGRoKTSewAIzvNM3rhWYEiACWIiRpL39dobr+2NwzuHIxz2wjvvnz/FccOf4UxwKFapSt1S97srKUpFMPPkOSdPnimRJ+vjT7WBPF0NFWITu86nVx/xB+GonnVfAF4BNwDV+PSKID66IFYJfaOGEYjvC0ls3gmFh45NHAd3YJfA9L6wvJuJd7LvBmoMNQcUCN33YuChUS3lHhgWuBnnqS64L6QQZIEfxjegGTTizb0BUqiDu/zLOwJ6MIaqcxfpqgPu6RfIyycUd9NDcEs7BvuYwtP7cJ3FzSQc6G2JTQjM+wLGFb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M/8uFYpTkqf0DTeINZugWMzRPbT/dF/xt4RFNAkfl+DTiw03zVyR7u0AvAj9ZgZxjtEtE6clffw+VpznYM1Re3X7+8pt09zcaLtr5EvnNfx2FwfieRU1XmUP0ibveXKSLZf4A/PG+hDrwFIqnDOrK+FUsN6jv7ukP+QR+OZlVMT9sLp4uk0LX+tKWMfIHFj48WOQzQw3N+f7R+dyKGortbwo5PPKXYVx496Dxby8LDKOJHvqOg5Pi+/Ou6rwoX2Bx0bb6NyBBe/WXcaD49zwK8w3x0y2ex9N9pCl4zk/j9HPCzocYvp7gzXDxBFmMAgc5u8IHNAJl34qKsF/H6JjokwFoQnoR7VwdVQdvqH9HkNQ7ooAGX5vui/+Im+4/gH2AdrcohyBIwgMZUUP51BvspWdTeRKHaFKIKZIofAjUeHNPFa5rSOQZcB6+QuD4qvHYYV85IjBV1Th8OUmsx9jyrqn826IDPCvePLiRJ934TyY8HZK3PcyscM2rC++wyPPbDUgzkRd6U8jTqMJbsvAvBfLcyXytk/1aJ/e1Tv5p59urI/meOd1uCk7zuilZeYnUL1/6IOr0twk+Uqc/vfP/Af8Zv1eLRwAA", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=pe7inl3s8j8cj2g55nr2o0r0n5; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC0A6E3C9FCE34C046AB92421DA69EC3725534C42CB695BD59EB2C313B2EEA08C45A0C008CE5DCC69AB74FACDE96E159D6D;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7206"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 13 Sep 2016 18:26:53 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.88.38"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=qQ62n3SrvDPWsjt1Nn3SrVSMQ1fr62n3ZvrV5Hvzsq"}, "recorded_at": "2016-09-13T18:33:48"}, {"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8100/api/sites/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Location": ["https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"], "Server": ["Zscaler/5.2"]}, "status": {"message": "Moved Temporarily", "code": 302}, "url": "http://localhost:8100/api/sites/"}, "recorded_at": "2016-09-13T20:11:22"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept": ["*/*"], "Connection": ["keep-alive"], "Accept-Encoding": ["gzip, deflate"], "X-NSoT-Email": ["admin@localhost"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18yZLb2LLYXl+B5rutkB5UBRIECVBS6T0ABEBwJgiSIG9cd2A4GEjMI8n7eu2N1/bG4Z3DEQ574Z33z5/iuOHP8AE4FKtUUrfU/e6qFaUCeIbMPDmdPMw89fGH7oSV11MOsVPP/fTqY/lAXNW3HmrAr5UNQDU+vUKQjx5IVUS31TgB6UMtS807qvbYYadpeAeizMkfasrdgr5jAy9UU0dzQQ3RAz8FPpwlcg/AsMDNPF/1wEMtd0ARBnF6M7RwjNR+MEDu6OCu+vAOcXwndVT3LtFVFzw0voCePYG4kw/hLe4U7FOsXN6H6ypuFuE6/g6xY2A+1EpYyXsMS1JIv35vAd2JUz9IHdPRYUvg3+uBh+lqmEI4mOOpFkgwNQxdcJcGmW7fORDnHYmH+/vQt2pIDNyH2mf9YQwgmDBIgFFDEucIkocaie9JvIZgjxRVcxMbskbPUqScWPstVJpqXiHX3AwkKQDuDZkpZNdDrRqIVQ3Yvw1jGg3i2zkDJ+3h/387oojvIYqARBFXolIndcGnKUSA5CC+4v+InTqeyTQ9uCCxAUi/T6B6kmBaEKRJGqvhXfO+ed++9xw4JklqiAcMR4WLcN0LbT/c3SE9eTRsIYnteIjqG4gEkjDwjfttgphBjIgchSRZWFohEpjnwcAFHjSepJpQQUWiDK4NJMjd3QXwnx0TcVMIAOn8pWz7hXU6vo45wHT2v5b+M/ndAGKF/ECKIN4hZhx4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tDSi0P72p/UN1AHh7X4Ueb8zMr4zoDcih53uL/LWSfTnsEtO/vU8Dy3LBm5qpJmnt7YdqRDX8Hupj+ewCU83c9E3V93P1u0J03bB+GdvN0O9F9ySueXt/2navKJHPcT7fwt/ew3gEvDmjhOBKF/rwpzdlFAbhgdiBkeERDvgShNPWDofaQXEB86d7davu3/z1bMOl2b5HLjDVNI3f1E4hV+3tu/MY6KafDznfxroOOTn3M4mXRhDHQQxbL0zeRkpPeoeUf/ViDlUrg7F2NWR0un94YUX1D1pvErjg3g2sN08GfUAwDDltSqp7Hv/zBWOSVcH9I07kTUnQLWTHPLX98FALdrUnOJFyX05PMz7cNH+Fs7cC+uLgZxKoKIbnRBig/PW3YHkehb2A5dXt8+dfpbu/1nLh4Rep/hiFDjfC9KEJm65Md+Cz7HpzYW/J9MfBHx/qsKNcw/0piLpSfuXLDei7h8aHagU/n+zqvso335/uNzue9bkxl8AfSfjwaJIvTDU09/tnV2u71+Du/qZWjYceM05r7x5V/u1Fwk4y1+PAdcu4+OF8sDpL5TMoHjxZ/wog8Lj+ZRhwB3wZhPkG+eEWztPlPlGVcs3Pd+qXmF1NMQI9K8/D96eR90noQm9X+wBnwACcUyH06xy9RPpsAlyQfg8Pr66qgzfYv0NQ7B1Sg5OvTQ/3/1g2PXwA+xAecGEUgaCIDwqkCyOqN6WbXsjsPI3hoiBRKFL7EKqp/YDVrjJEqhi42sBi4Aaq8dRjXylCSqyqcfh8kaUel6Z3jebf3rvAt1L70Y886y7/isfzKVXb48pq18i69q5keXX3BmomdENvalUgVXuL1v6lhp478a91Nr/WSXyts/W88+3Vk3zPmm6PBad13VStfAnVz587Iez05zI+Yqe/BvX/ATWxbjYeSgAA", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=l1qnrihe0g495t4dcu11nhn307; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC01D715DE960D1D66DA142353243330039923BB02E6BE2642E4FA388AA71F7B5B57D81953815B40BF9B076C8E8A3D5133C;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7716"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 13 Sep 2016 20:26:09 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.89.214"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"}, "recorded_at": "2016-09-13T20:11:22"}, {"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/"}, "response": {"body": {"string": "{\"id\":1,\"name\":\"Test Site\",\"description\":\"\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=oJdugvIoXj4sH6rcyCLB5CTUJ6xM2QaN; expires=Tue, 12-Sep-2017 20:44:57 GMT; Max-Age=31449600; Path=/", "sessionid=n0032pa8z31ceqrm5b39ecgr6nsyghsz; expires=Tue, 27-Sep-2016 20:44:57 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/"], "Allow": ["GET, POST, HEAD, OPTIONS"], "Date": ["Tue, 13 Sep 2016 20:44:57 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/"}, "recorded_at": "2016-09-13T20:44:57"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=qQ62n3SrvDPWsjt1Nn3SrVSMQ1fr62n3ZvrV5Hvzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18yZLbyLbYXl+B5rutkB5UBDGRoKTSewAIzvNM3rhWYEiACWIiRpL39dobr+2NwzuHIxz2wjvvnz/FccOf4UxwKFapSt1S97srKUpFMPPkOSdPnimRJ+vjT7WBPF0NFWITu86nVx/xB+GonnVfAF4BNwDV+PSKID66IFYJfaOGEYjvC0ls3gmFh45NHAd3YJfA9L6wvJuJd7LvBmoMNQcUCN33YuChUS3lHhgWuBnnqS64L6QQZIEfxjegGTTizb0BUqiDu/zLOwJ6MIaqcxfpqgPu6RfIyycUd9NDcEs7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UeT/kPFGvgOKjm+9eQT0gaAo4hSTVOcM/8uFYpTkqf0DTeINZugWMzRPbT/dF/xt4RFNAkfl+DTiw03zVyR7u0AvAj9ZgZxjtEtE6clffw+VpznYM1Re3X7+8pt09zcaLtr5EvnNfx2FwfieRU1XmUP0ibveXKSLZf4A/PG+hDrwFIqnDOrK+FUsN6jv7ukP+QR+OZlVMT9sLp4uk0LX+tKWMfIHFj48WOQzQw3N+f7R+dyKGortbwo5PPKXYVx496Dxby8LDKOJHvqOg5Pi+/Ou6rwoX2Bx0bb6NyBBe/WXcaD49zwK8w3x0y2ex9N9pCl4zk/j9HPCzocYvp7gzXDxBFmMAgc5u8IHNAJl34qKsF/H6JjokwFoQnoR7VwdVQdvqH9HkNQ7ooAGX5vui/+Im+4/gH2AdrcohyBIwgMZUUP51BvspWdTeRKHaFKIKZIofAjUeHNPFa5rSOQZcB6+QuD4qvHYYV85IjBV1Th8OUmsx9jyrqn826IDPCvePLiRJ934TyY8HZK3PcyscM2rC++wyPPbDUgzkRd6U8jTqMJbsvAvBfLcyXytk/1aJ/e1Tv5p59urI/meOd1uCk7zuilZeYnUL1/6IOr0twk+Uqc/vfP/Af8Zv1eLRwAA", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=pe7inl3s8j8cj2g55nr2o0r0n5; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC0A6E3C9FCE34C046AB92421DA69EC3725534C42CB695BD59EB2C313B2EEA08C45A0C008CE5DCC69AB74FACDE96E159D6D;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7206"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 13 Sep 2016 18:26:53 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.88.38"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=qQ62n3SrvDPWsjt1Nn3SrVSMQ1fr62n3ZvrV5Hvzsq"}, "recorded_at": "2016-09-13T18:33:48"}, {"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8100/api/sites/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Location": ["https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"], "Server": ["Zscaler/5.2"]}, "status": {"message": "Moved Temporarily", "code": 302}, "url": "http://localhost:8100/api/sites/"}, "recorded_at": "2016-09-13T20:11:22"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18yZLb2LLYXl+B5rutkB5UBRIECVBS6T0ABEBwJgiSIG9cd2A4GEjMI8n7eu2N1/bG4Z3DEQ574Z33z5/iuOHP8AE4FKtUUrfU/e6qFaUCeIbMPDmdPMw89fGH7oSV11MOsVPP/fTqY/lAXNW3HmrAr5UNQDU+vUKQjx5IVUS31TgB6UMtS807qvbYYadpeAeizMkfasrdgr5jAy9UU0dzQQ3RAz8FPpwlcg/AsMDNPF/1wEMtd0ARBnF6M7RwjNR+MEDu6OCu+vAOcXwndVT3LtFVFzw0voCePYG4kw/hLe4U7FOsXN6H6ypuFuE6/g6xY2A+1EpYyXsMS1JIv35vAd2JUz9IHdPRYUvg3+uBh+lqmEI4mOOpFkgwNQxdcJcGmW7fORDnHYmH+/vQt2pIDNyH2mf9YQwgmDBIgFFDEucIkocaie9JvIZgjxRVcxMbskbPUqScWPstVJpqXiHX3AwkKQDuDZkpZNdDrRqIVQ3Yvw1jGg3i2zkDJ+3h/387oojvIYqARBFXolIndcGnKUSA5CC+4v+InTqeyTQ9uCCxAUi/T6B6kmBaEKRJGqvhXfO+ed++9xw4JklqiAcMR4WLcN0LbT/c3SE9eTRsIYnteIjqG4gEkjDwjfttgphBjIgchSRZWFohEpjnwcAFHjSepJpQQUWiDK4NJMjd3QXwnx0TcVMIAOn8pWz7hXU6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P3d4GeOScExO+O4KVbzb8n/KfXeF+G/MJtDSi0P72p/UN1AHh7X4Ueb8zMr4zoDcih53uL/LWSfTnsEtO/vU8Dy3LBm5qpJmnt7YdqRDX8Hupj+ewCU83c9E3V93P1u0J03bB+GdvN0O9F9ySueXt/2navKJHPcT7fwt/ew3gEvDmjhOBKF/rwpzdlFAbhgdiBkeERDvgShNPWDofaQXEB86d7davu3/z1bMOl2b5HLjDVNI3f1E4hV+3tu/MY6KafDznfxroOOTn3M4mXRhDHQQxbL0zeRkpPeoeUf/ViDlUrg7F2NWR0un94YUX1D1pvErjg3g2sN08GfUAwDDltSqp7Hv/zBWOSVcH9I07kTUnQLWTHPLX98FALdrUnOJFyX05PMz7cNH+Fs7cC+uLgZxKoKIbnRBig/PW3YHkehb2A5dXt8+dfpbu/1nLh4Rep/hiFDjfC9KEJm65Md+Cz7HpzYW/J9MfBHx/qsKNcw/0piLpSfuXLDei7h8aHagU/n+zqvso335/uNzue9bkxl8AfSfjwaJIvTDU09/tnV2u71+Du/qZWjYceM05r7x5V/u1Fwk4y1+PAdcu4+OF8sDpL5TMoHjxZ/wog8Lj+ZRhwB3wZhPkG+eEWztPlPlGVcs3Pd+qXmF1NMQI9K8/D96eR90noQm9X+wBnwACcUyH06xy9RPpsAlyQfg8Pr66qgzfYv0NQ7B1Sg5OvTQ/3/1g2PXwA+xAecGEUgaCIDwqkCyOqN6WbXsjsPI3hoiBRKFL7EKqp/YDVrjJEqhi42sBi4Aaq8dRjXylCSqyqcfh8kaUel6Z3jebf3rvAt1L70Y886y7/isfzKVXb48pq18i69q5keXX3BmomdENvalUgVXuL1v6lhp478a91Nr/WSXyts/W88+3Vk3zPmm6PBad13VStfAnVz587Iez05zI+Yqe/BvX/ATWxbjYeSgAA", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=l1qnrihe0g495t4dcu11nhn307; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC01D715DE960D1D66DA142353243330039923BB02E6BE2642E4FA388AA71F7B5B57D81953815B40BF9B076C8E8A3D5133C;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7716"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 13 Sep 2016 20:26:09 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.89.214"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"}, "recorded_at": "2016-09-13T20:11:22"}, {"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/"}, "response": {"body": {"string": "{\"id\":1,\"name\":\"Test Site\",\"description\":\"\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=Xee8MdHWNICLXFa9fxSsuhgGnhSDpi0R; expires=Wed, 13-Sep-2017 14:07:33 GMT; Max-Age=31449600; Path=/", "sessionid=uls9plqi94outwe5tdj537j5e833xjub; expires=Wed, 28-Sep-2016 14:07:33 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/"], "Allow": ["GET, POST, HEAD, OPTIONS"], "Date": ["Wed, 14 Sep 2016 14:07:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/"}, "recorded_at": "2016-09-14T14:07:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json b/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json index 6118a79c..e68443d5 100644 --- a/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json +++ b/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=9XkZSQlh8neNkJlPCOkPim3pscORCi7s; expires=Tue, 12-Sep-2017 20:44:57 GMT; Max-Age=31449600; Path=/", "sessionid=eivjg7haukiq7xt8big9s3fx80zi290x; expires=Tue, 27-Sep-2016 20:44:57 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/iterable/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 13 Sep 2016 20:44:57 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-09-13T20:44:57"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=9XkZSQlh8neNkJlPCOkPim3pscORCi7s; sessionid=eivjg7haukiq7xt8big9s3fx80zi290x"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "[{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 13 Sep 2016 20:44:57 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-09-13T20:44:57"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=FT0tu1VelzTuzxsVWor5h6xGEm6SpYZF; expires=Wed, 13-Sep-2017 14:07:33 GMT; Max-Age=31449600; Path=/", "sessionid=klwzp0ltmzw0xstdu6gttxzuynty26bd; expires=Wed, 28-Sep-2016 14:07:33 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/iterable/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 14 Sep 2016 14:07:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-09-14T14:07:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=FT0tu1VelzTuzxsVWor5h6xGEm6SpYZF; sessionid=klwzp0ltmzw0xstdu6gttxzuynty26bd"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "[{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 14 Sep 2016 14:07:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-09-14T14:07:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/model_tests/test_iterables.py b/tests/model_tests/test_iterables.py index 03b3b5ed..9def0696 100644 --- a/tests/model_tests/test_iterables.py +++ b/tests/model_tests/test_iterables.py @@ -36,6 +36,53 @@ def test_creation(site): assert iterable[0].max_val == itr.max_val assert iterable[0].increment == itr.increment +def test_nextval(site): + itr = models.Iterable.objects.create( + name='auto-increment-test', + description='test vlan for testing', + min_val = 50, + max_val = 70, + increment = 2, + site = site + ) + #Create a test value and assign the min val to it + itrv1 = models.IterValue.objects.create( + val = itr.get_next_value()[0], + u_id='jasdgijn001', + iter_key=itr + ) + + + #Now, assert that the next value is last assigned + incr + assert itr.get_next_value() == [52] + +def test_valrange(site): + itr = models.Iterable.objects.create( + name='auto-increment-test', + description='test vlan for testing', + min_val = 10, + max_val = 15, + increment = 10, + site = site + ) + #Create a test value and assign the min val to it + itrv0 = models.IterValue.objects.create( + val = 10, + u_id='jasdgijn001', + iter_key=itr + ) + +# itrv1 = models.IterValue.objects.create( +# val = itr.get_next_value(), +# u_id='jasdgijn0022222222222222222222221', +# iter_key=itr +# ) + + + #Now, assert that the next value is last assigned + incr exceeds range is not assigned + with pytest.raises(exc.ValidationError): + assert itr.get_next_value() == [25] + def test_save(site): iterable = models.Iterable.objects.create( name='testsave', diff --git a/tests/tests/api_tests/cassettes/11f97becd90041963d52a7bc2fe0a32eff1b8250.json b/tests/tests/api_tests/cassettes/11f97becd90041963d52a7bc2fe0a32eff1b8250.json new file mode 100644 index 00000000..c7a9e40e --- /dev/null +++ b/tests/tests/api_tests/cassettes/11f97becd90041963d52a7bc2fe0a32eff1b8250.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":7,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=H5jFJAZNThAr06Houye4tjtRZav9twc2; expires=Thu, 14-Sep-2017 19:46:06 GMT; Max-Age=31449600; Path=/", "sessionid=t1rbmtqvhkc9toxtz181vwtq59yp7ow6; expires=Thu, 29-Sep-2016 19:46:06 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/iterable/7/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/iterable/"}, "recorded_at": "2016-09-15T19:46:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/15f1a60d19dfadf71e943dca17d8914a87865d85.json b/tests/tests/api_tests/cassettes/15f1a60d19dfadf71e943dca17d8914a87865d85.json new file mode 100644 index 00000000..6cf0ed64 --- /dev/null +++ b/tests/tests/api_tests/cassettes/15f1a60d19dfadf71e943dca17d8914a87865d85.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/30/ancestors/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27},{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28},{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/30/ancestors/"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/30/ancestors/?ascending=True"}, "response": {"body": {"string": "[{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29},{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/30/ancestors/?ascending=True"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/1dadb4e888302c283d82b63131b5b51b05655b17.json b/tests/tests/api_tests/cassettes/1dadb4e888302c283d82b63131b5b51b05655b17.json new file mode 100644 index 00000000..e4d4742d --- /dev/null +++ b/tests/tests/api_tests/cassettes/1dadb4e888302c283d82b63131b5b51b05655b17.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"cidr\": \"10.250.0.0/25\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["25"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=5Nb2gfe2EWHsouAWDDIjKiwka80B66L7; sessionid=0k418lkzisgaoqsygkdewfcm39a165sd"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/11/networks/"}, "response": {"body": {"string": "{\"parent_id\":41,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.250.0.0\",\"attributes\":{},\"site_id\":11,\"id\":42}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/11/networks/42/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/11/networks/"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json b/tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json new file mode 100644 index 00000000..b46f7846 --- /dev/null +++ b/tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "[{\"description\": \"This is the best attribute ever.\", \"min_val\": 10, \"max_val\": 20, \"increment\": 1, \"id\": 2, \"name\": \"itr1\"}, {\"description\": \"This is the best attribute ever.\", \"min_val\": 10, \"max_val\": 20, \"increment\": 1, \"id\": 3, \"name\": \"itr2\"}, {\"description\": \"This is the best attribute ever.\", \"min_val\": 10, \"max_val\": 20, \"increment\": 1, \"id\": 4, \"name\": \"itr3\"}]", "encoding": "utf-8"}, "headers": {"Content-Length": ["372"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=6Eklxi6HzGPg0dZwjF2FXqvbXDQJKmGP; sessionid=9bo0utnz3t5qi0y8o350q87kc8irekmz"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/2/iterable/"}, "response": {"body": {"string": "\n\n\n \n NSoT Error\n\n \n \n \n \n
    \n
    \n
    \n
    \n
    \n Error Loading Application\n
    \n
    \n You've failed to access the NSoT Frontend Application.\n This usually means you've tried to access without an\n authenticating proxy. Please contact your administrator.\n
    \n
    \n 500 - INTERNAL SERVER ERROR\n
    \n
    \n
    \n
    \n
    \n
    \n \n\n\n", "encoding": "utf-8"}, "headers": {"Date": ["Wed, 14 Sep 2016 15:43:24 GMT"], "Content-Type": ["text/html; charset=utf-8"], "X-Frame-Options": ["SAMEORIGIN"], "Vary": ["Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"]}, "status": {"message": "INTERNAL SERVER ERROR", "code": 500}, "url": "http://localhost:8081/api/sites/2/iterable/"}, "recorded_at": "2016-09-14T15:43:24"}, {"request": {"body": {"string": "[{\"description\": \"This is the best attribute ever.\", \"min_val\": 10, \"max_val\": 20, \"increment\": 1, \"id\": 2, \"name\": \"itr1\"}, {\"description\": \"This is the best attribute ever.\", \"min_val\": 10, \"max_val\": 20, \"increment\": 1, \"id\": 3, \"name\": \"itr2\"}, {\"description\": \"This is the best attribute ever.\", \"min_val\": 10, \"max_val\": 20, \"increment\": 1, \"id\": 4, \"name\": \"itr3\"}]", "encoding": "utf-8"}, "headers": {"Content-Length": ["372"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=SOnLsPXRnXVTwvtp5kAJlgrlJP86RWeH; sessionid=y75696xnngkx0mhdsqmdvp3r4p32veux"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/2/iterable/"}, "response": {"body": {"string": "\n\n\n \n NSoT Error\n\n \n \n \n \n
    \n
    \n
    \n
    \n
    \n Error Loading Application\n
    \n
    \n You've failed to access the NSoT Frontend Application.\n This usually means you've tried to access without an\n authenticating proxy. Please contact your administrator.\n
    \n
    \n 500 - INTERNAL SERVER ERROR\n
    \n
    \n
    \n
    \n
    \n
    \n \n\n\n", "encoding": "utf-8"}, "headers": {"Date": ["Wed, 14 Sep 2016 19:16:58 GMT"], "Content-Type": ["text/html; charset=utf-8"], "X-Frame-Options": ["SAMEORIGIN"], "Vary": ["Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"]}, "status": {"message": "INTERNAL SERVER ERROR", "code": 500}, "url": "http://localhost:8081/api/sites/2/iterable/"}, "recorded_at": "2016-09-14T19:16:58"}, {"request": {"body": {"string": "[{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"iterable1\"}, {\"max_val\": 20, \"min_val\": 10, \"name\": \"itr2\", \"increment\": 1, \"description\": \"iterable2\"}, {\"max_val\": 20, \"min_val\": 10, \"name\": \"itr3\", \"increment\": 1, \"description\": \"iterable3\"}]", "encoding": "utf-8"}, "headers": {"Content-Length": ["276"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/iterable/"}, "response": {"body": {"string": "[{\"description\":\"iterable1\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":2,\"name\":\"itr1\"},{\"description\":\"iterable2\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":3,\"name\":\"itr2\"},{\"description\":\"iterable3\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":4,\"name\":\"itr3\"}]", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=dZ4KQLC7cWdbrpMiPOEMpzzPq8puW278; expires=Thu, 14-Sep-2017 19:46:06 GMT; Max-Age=31449600; Path=/", "sessionid=bvbgbc0fgqhj3nxg3ooxksosym6vyga2; expires=Thu, 29-Sep-2016 19:46:06 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/iterable/"}, "recorded_at": "2016-09-15T19:46:06"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=dZ4KQLC7cWdbrpMiPOEMpzzPq8puW278; sessionid=bvbgbc0fgqhj3nxg3ooxksosym6vyga2"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterable/"}, "response": {"body": {"string": "[{\"description\":\"iterable1\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":2,\"name\":\"itr1\"},{\"description\":\"iterable2\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":3,\"name\":\"itr2\"},{\"description\":\"iterable3\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":4,\"name\":\"itr3\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterable/"}, "recorded_at": "2016-09-15T19:46:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/2113d8843e034c7465037088edd7480e9b7eefaa.json b/tests/tests/api_tests/cassettes/2113d8843e034c7465037088edd7480e9b7eefaa.json new file mode 100644 index 00000000..91633421 --- /dev/null +++ b/tests/tests/api_tests/cassettes/2113d8843e034c7465037088edd7480e9b7eefaa.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Network\", \"name\": \"attr1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["45"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":6,\"id\":24,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"attr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=UI3V8INIleFqqYuZQ6yUKXJ8EVg9b6CF; expires=Thu, 14-Sep-2017 19:26:32 GMT; Max-Age=31449600; Path=/", "sessionid=odnmqyrtq1j5mcs7qs5pw4pk99to4nfi; expires=Thu, 29-Sep-2016 19:26:32 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/attributes/24/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/attributes/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/23c90370f99dbada2f22883aba385169e51adcd7.json b/tests/tests/api_tests/cassettes/23c90370f99dbada2f22883aba385169e51adcd7.json new file mode 100644 index 00000000..27b762db --- /dev/null +++ b/tests/tests/api_tests/cassettes/23c90370f99dbada2f22883aba385169e51adcd7.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fVEhijHngWo6YD0BdBVcbjcVSKAw5jjI; sessionid=3hohaujnt0yiwoqlpx4ynuebimgzyhr0"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/networks/25/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/networks/25/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/2bf3bda6f1cccbb63afa6a53385ad739959e7bdc.json b/tests/tests/api_tests/cassettes/2bf3bda6f1cccbb63afa6a53385ad739959e7bdc.json new file mode 100644 index 00000000..46c10788 --- /dev/null +++ b/tests/tests/api_tests/cassettes/2bf3bda6f1cccbb63afa6a53385ad739959e7bdc.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Network\", \"name\": \"attr1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["45"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":5,\"id\":23,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"attr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=4r3hEQaPIT4t9wCPw79KOZm0ltbCc4Ig; expires=Thu, 14-Sep-2017 19:26:32 GMT; Max-Age=31449600; Path=/", "sessionid=ikkkqqym6omp9400yeocl7fykfaecz3t; expires=Thu, 29-Sep-2016 19:26:32 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/attributes/23/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/attributes/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/32e5efafbb79d39ad5e9fc281baaab9caf809ddf.json b/tests/tests/api_tests/cassettes/32e5efafbb79d39ad5e9fc281baaab9caf809ddf.json new file mode 100644 index 00000000..81899094 --- /dev/null +++ b/tests/tests/api_tests/cassettes/32e5efafbb79d39ad5e9fc281baaab9caf809ddf.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/siblings/"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/siblings/"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/siblings/?include_self=True"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/siblings/?include_self=True"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/36035975b61f5aa73bbf34bc8bd23c344da7c17d.json b/tests/tests/api_tests/cassettes/36035975b61f5aa73bbf34bc8bd23c344da7c17d.json new file mode 100644 index 00000000..803fa253 --- /dev/null +++ b/tests/tests/api_tests/cassettes/36035975b61f5aa73bbf34bc8bd23c344da7c17d.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=5Nb2gfe2EWHsouAWDDIjKiwka80B66L7; sessionid=0k418lkzisgaoqsygkdewfcm39a165sd"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/11/networks/1.0.0.1/32/closest_parent/"}, "response": {"body": {"string": "{\"error\":{\"message\":\"No such Network found at (site_id, id) = (11, 1.0.0.1/32)\",\"code\":404}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "NOT FOUND", "code": 404}, "url": "http://localhost:8081/api/sites/11/networks/1.0.0.1/32/closest_parent/"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/392a3d2104215406ba907120a6e9b9f81f64074a.json b/tests/tests/api_tests/cassettes/392a3d2104215406ba907120a6e9b9f81f64074a.json new file mode 100644 index 00000000..bf1a8aa0 --- /dev/null +++ b/tests/tests/api_tests/cassettes/392a3d2104215406ba907120a6e9b9f81f64074a.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fbfrnCWHgWpKFBPXtkA5QvOxfid4lSJ4; sessionid=uvyegq1cpssdb2tmn1j7desznkggggiq"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/networks/10.0.0.0/24/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":1,\"id\":1}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:30 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/networks/10.0.0.0/24/"}, "recorded_at": "2016-09-15T19:26:30"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/3f16909f2572a95f6f8edf7ce341ecf1edcb79ad.json b/tests/tests/api_tests/cassettes/3f16909f2572a95f6f8edf7ce341ecf1edcb79ad.json new file mode 100644 index 00000000..52c3addc --- /dev/null +++ b/tests/tests/api_tests/cassettes/3f16909f2572a95f6f8edf7ce341ecf1edcb79ad.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=H5jFJAZNThAr06Houye4tjtRZav9twc2; sessionid=t1rbmtqvhkc9toxtz181vwtq59yp7ow6"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/5/iterable/7/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/5/iterable/7/next_value/"}, "recorded_at": "2016-09-15T19:46:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/42f180af8d58bc0b7907a76c580089938f93235f.json b/tests/tests/api_tests/cassettes/42f180af8d58bc0b7907a76c580089938f93235f.json new file mode 100644 index 00000000..48ab3436 --- /dev/null +++ b/tests/tests/api_tests/cassettes/42f180af8d58bc0b7907a76c580089938f93235f.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"cidr\": \"192.168.3.0/24\", \"state\": \"reserved\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["47"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/10/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.3.0\",\"attributes\":{},\"site_id\":10,\"id\":39}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=qdEot7QPS22fHtbG3wH9FC4gKrSfT5nt; expires=Thu, 14-Sep-2017 19:26:34 GMT; Max-Age=31449600; Path=/", "sessionid=hsj4nc87wjnyfu04oh861ycq05w048pd; expires=Thu, 29-Sep-2016 19:26:34 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/10/networks/39/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/10/networks/"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/460bdf3590df980e07baa9dc3ad9360387deb771.json b/tests/tests/api_tests/cassettes/460bdf3590df980e07baa9dc3ad9360387deb771.json new file mode 100644 index 00000000..a70c811e --- /dev/null +++ b/tests/tests/api_tests/cassettes/460bdf3590df980e07baa9dc3ad9360387deb771.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=qdEot7QPS22fHtbG3wH9FC4gKrSfT5nt; sessionid=hsj4nc87wjnyfu04oh861ycq05w048pd"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/10/networks/reserved/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.3.0\",\"attributes\":{},\"site_id\":10,\"id\":39}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/10/networks/reserved/"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/4bc8b61bdb25c7dca7049a8f66fa3ed1f6c06033.json b/tests/tests/api_tests/cassettes/4bc8b61bdb25c7dca7049a8f66fa3ed1f6c06033.json new file mode 100644 index 00000000..f68f3e8d --- /dev/null +++ b/tests/tests/api_tests/cassettes/4bc8b61bdb25c7dca7049a8f66fa3ed1f6c06033.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/32/descendents/"}, "response": {"body": {"string": "[]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/32/descendents/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/4dbea2112694a342065bc29ab982b640d9de05f8.json b/tests/tests/api_tests/cassettes/4dbea2112694a342065bc29ab982b640d9de05f8.json new file mode 100644 index 00000000..d81f3db1 --- /dev/null +++ b/tests/tests/api_tests/cassettes/4dbea2112694a342065bc29ab982b640d9de05f8.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_address/"}, "response": {"body": {"string": "[\"10.16.2.3/32\"]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_address/"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_address/?num=3"}, "response": {"body": {"string": "[\"10.16.2.3/32\",\"10.16.2.5/32\",\"10.16.2.6/32\"]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_address/?num=3"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_address/?num=potato"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"num\":\"invalid literal for int() with base 10: 'potato'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_address/?num=potato"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/52aa273d56a0d95e1a8e65f1b96a8ea09673ed4e.json b/tests/tests/api_tests/cassettes/52aa273d56a0d95e1a8e65f1b96a8ea09673ed4e.json new file mode 100644 index 00000000..fbed6c89 --- /dev/null +++ b/tests/tests/api_tests/cassettes/52aa273d56a0d95e1a8e65f1b96a8ea09673ed4e.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fbfrnCWHgWpKFBPXtkA5QvOxfid4lSJ4; sessionid=uvyegq1cpssdb2tmn1j7desznkggggiq"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":1,\"id\":1}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:30 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/networks/"}, "recorded_at": "2016-09-15T19:26:30"}, {"request": {"body": {"string": "{\"network_address\": \"10.8.0.0\", \"prefix_length\": 16}", "encoding": "utf-8"}, "headers": {"Content-Length": ["52"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fbfrnCWHgWpKFBPXtkA5QvOxfid4lSJ4; sessionid=uvyegq1cpssdb2tmn1j7desznkggggiq"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.8.0.0\",\"attributes\":{},\"site_id\":1,\"id\":3}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/networks/3/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:30 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/networks/"}, "recorded_at": "2016-09-15T19:26:30"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/54012bfb1328c4198e1e3265a991a333a854b08c.json b/tests/tests/api_tests/cassettes/54012bfb1328c4198e1e3265a991a333a854b08c.json new file mode 100644 index 00000000..36ca47d9 --- /dev/null +++ b/tests/tests/api_tests/cassettes/54012bfb1328c4198e1e3265a991a333a854b08c.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/33/next_network/?prefix_length=28"}, "response": {"body": {"string": "[\"10.16.2.0/28\"]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/33/next_network/?prefix_length=28"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/33/next_network/?num=4&prefix_length=27"}, "response": {"body": {"string": "[\"10.16.2.0/27\",\"10.16.2.32/27\",\"10.16.2.64/27\",\"10.16.2.96/27\"]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/33/next_network/?num=4&prefix_length=27"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/33/next_network/"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"prefix_length\":\"int() argument must be a string or a number, not 'NoneType'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/33/next_network/"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/33/next_network/?prefix_length=ralph"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"prefix_length\":\"invalid literal for int() with base 10: 'ralph'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/33/next_network/?prefix_length=ralph"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/33/next_network/?prefix_length=14"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"prefix_length\":\"New prefix must be longer than 25\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/33/next_network/?prefix_length=14"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/33/next_network/?prefix_length=65"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"prefix_length\":\"prefix length diff 65 is invalid for netblock 10.16.2.0/25\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/33/next_network/?prefix_length=65"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/33/next_network/?num=potato&prefix_length=28"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"num\":\"invalid literal for int() with base 10: 'potato'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/33/next_network/?num=potato&prefix_length=28"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/5863e2415076faee1762b5a9bd036ffdf687ec9e.json b/tests/tests/api_tests/cassettes/5863e2415076faee1762b5a9bd036ffdf687ec9e.json new file mode 100644 index 00000000..0d641ed6 --- /dev/null +++ b/tests/tests/api_tests/cassettes/5863e2415076faee1762b5a9bd036ffdf687ec9e.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/29/descendents/"}, "response": {"body": {"string": "[{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/29/descendents/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json b/tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json new file mode 100644 index 00000000..c42a142f --- /dev/null +++ b/tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":5,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=XrXkrh1WPxDK7yINwdM9PeZA2B17Atny; expires=Thu, 14-Sep-2017 19:46:06 GMT; Max-Age=31449600; Path=/", "sessionid=69sawjv6hjojob78v7juonrrqkd0cyfa; expires=Thu, 29-Sep-2016 19:46:06 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/iterable/5/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/iterable/"}, "recorded_at": "2016-09-15T19:46:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/5c61e78c8eb4ea24b812b2757d34f0425f62c4ce.json b/tests/tests/api_tests/cassettes/5c61e78c8eb4ea24b812b2757d34f0425f62c4ce.json new file mode 100644 index 00000000..d4783b22 --- /dev/null +++ b/tests/tests/api_tests/cassettes/5c61e78c8eb4ea24b812b2757d34f0425f62c4ce.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "[\n {\n \"constraints\": {\n \"allow_empty\": true\n }, \n \"description\": \"Device cluster.\", \n \"name\": \"cluster\", \n \"resource_name\": \"Device\"\n }, \n {\n \"description\": \"Foo for Devices.\", \n \"name\": \"foo\", \n \"resource_name\": \"Device\"\n }, \n {\n \"description\": \"Device owner.\", \n \"name\": \"owner\", \n \"resource_name\": \"Device\"\n }, \n {\n \"constraints\": {\n \"allow_empty\": true\n }, \n \"description\": \"Network cluster.\", \n \"name\": \"cluster\", \n \"resource_name\": \"Network\"\n }, \n {\n \"description\": \"Foo for Networks.\", \n \"name\": \"foo\", \n \"resource_name\": \"Network\"\n }, \n {\n \"description\": \"Network owner.\", \n \"name\": \"owner\", \n \"resource_name\": \"Network\"\n }, \n {\n \"description\": \"Address hostname.\", \n \"name\": \"hostname\", \n \"resource_name\": \"Network\"\n }, \n {\n \"constraints\": {\n \"valid_values\": [\n \"300\", \n \"400\"\n ]\n }, \n \"description\": \"Network VLAN.\", \n \"name\": \"vlan\", \n \"resource_name\": \"Network\"\n },\n {\n \"constraints\": {\n \"valid_values\": [\n \"300\", \n \"400\"\n ]\n }, \n \"description\": \"Interface VLAN.\", \n \"name\": \"vlan\", \n \"resource_name\": \"Interface\"\n },\n {\n \"description\": \"Interface scope.\", \n \"name\": \"scope\", \n \"resource_name\": \"Interface\"\n } \n]\n", "encoding": "utf-8"}, "headers": {"Content-Length": ["1577"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/attributes/"}, "response": {"body": {"string": "[{\"multi\":false,\"resource_name\":\"Device\",\"description\":\"Device cluster.\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":13,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":true},\"name\":\"cluster\"},{\"multi\":false,\"resource_name\":\"Device\",\"description\":\"Foo for Devices.\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":14,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"foo\"},{\"multi\":false,\"resource_name\":\"Device\",\"description\":\"Device owner.\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":15,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"owner\"},{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"Network cluster.\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":16,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":true},\"name\":\"cluster\"},{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"Foo for Networks.\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":17,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"foo\"},{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"Network owner.\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":18,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"owner\"},{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"Address hostname.\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":19,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"hostname\"},{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"Network VLAN.\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":20,\"constraints\":{\"pattern\":\"\",\"valid_values\":[\"300\",\"400\"],\"allow_empty\":false},\"name\":\"vlan\"},{\"multi\":false,\"resource_name\":\"Interface\",\"description\":\"Interface VLAN.\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":21,\"constraints\":{\"pattern\":\"\",\"valid_values\":[\"300\",\"400\"],\"allow_empty\":false},\"name\":\"vlan\"},{\"multi\":false,\"resource_name\":\"Interface\",\"description\":\"Interface scope.\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":22,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"scope\"}]", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=umh12xybXchIT08UkvhDjisTfClPAcGu; expires=Thu, 14-Sep-2017 19:26:31 GMT; Max-Age=31449600; Path=/", "sessionid=8olrvik6cxu2dovrzhfbd7m2qb5dglbb; expires=Thu, 29-Sep-2016 19:26:31 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/attributes/"}, "recorded_at": "2016-09-15T19:26:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/654f6226f909731ce2a16f95ad58333e5d46b358.json b/tests/tests/api_tests/cassettes/654f6226f909731ce2a16f95ad58333e5d46b358.json new file mode 100644 index 00000000..b605cbe1 --- /dev/null +++ b/tests/tests/api_tests/cassettes/654f6226f909731ce2a16f95ad58333e5d46b358.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.0/25/ancestors/?ascending=True"}, "response": {"body": {"string": "[{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29},{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.0/25/ancestors/?ascending=True"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/65ad1126d5af748c76fa8186a04e9db94caa4266.json b/tests/tests/api_tests/cassettes/65ad1126d5af748c76fa8186a04e9db94caa4266.json new file mode 100644 index 00000000..235970a6 --- /dev/null +++ b/tests/tests/api_tests/cassettes/65ad1126d5af748c76fa8186a04e9db94caa4266.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/27/descendents/"}, "response": {"body": {"string": "[{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28},{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29},{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/27/descendents/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/66279b39bd62a3954a7525a47266dc24230c10f7.json b/tests/tests/api_tests/cassettes/66279b39bd62a3954a7525a47266dc24230c10f7.json new file mode 100644 index 00000000..99610e0b --- /dev/null +++ b/tests/tests/api_tests/cassettes/66279b39bd62a3954a7525a47266dc24230c10f7.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.2/32/descendents/"}, "response": {"body": {"string": "[]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.2/32/descendents/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/67a69da5f6e63f009f084ad75653f7e9e9da6fae.json b/tests/tests/api_tests/cassettes/67a69da5f6e63f009f084ad75653f7e9e9da6fae.json new file mode 100644 index 00000000..05e9e618 --- /dev/null +++ b/tests/tests/api_tests/cassettes/67a69da5f6e63f009f084ad75653f7e9e9da6fae.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/30/children/"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/30/children/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/6811d21d4bfdf0a306e2aa7d0d6c892825fd907b.json b/tests/tests/api_tests/cassettes/6811d21d4bfdf0a306e2aa7d0d6c892825fd907b.json new file mode 100644 index 00000000..00be5751 --- /dev/null +++ b/tests/tests/api_tests/cassettes/6811d21d4bfdf0a306e2aa7d0d6c892825fd907b.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "[\n {\n \"constraints\": {\n \"allow_empty\": true\n }, \n \"description\": \"Device cluster.\", \n \"name\": \"cluster\", \n \"resource_name\": \"Device\"\n }, \n {\n \"description\": \"Foo for Devices.\", \n \"name\": \"foo\", \n \"resource_name\": \"Device\"\n }, \n {\n \"description\": \"Device owner.\", \n \"name\": \"owner\", \n \"resource_name\": \"Device\"\n }, \n {\n \"constraints\": {\n \"allow_empty\": true\n }, \n \"description\": \"Network cluster.\", \n \"name\": \"cluster\", \n \"resource_name\": \"Network\"\n }, \n {\n \"description\": \"Foo for Networks.\", \n \"name\": \"foo\", \n \"resource_name\": \"Network\"\n }, \n {\n \"description\": \"Network owner.\", \n \"name\": \"owner\", \n \"resource_name\": \"Network\"\n }, \n {\n \"description\": \"Address hostname.\", \n \"name\": \"hostname\", \n \"resource_name\": \"Network\"\n }, \n {\n \"constraints\": {\n \"valid_values\": [\n \"300\", \n \"400\"\n ]\n }, \n \"description\": \"Network VLAN.\", \n \"name\": \"vlan\", \n \"resource_name\": \"Network\"\n },\n {\n \"constraints\": {\n \"valid_values\": [\n \"300\", \n \"400\"\n ]\n }, \n \"description\": \"Interface VLAN.\", \n \"name\": \"vlan\", \n \"resource_name\": \"Interface\"\n },\n {\n \"description\": \"Interface scope.\", \n \"name\": \"scope\", \n \"resource_name\": \"Interface\"\n } \n]\n", "encoding": "utf-8"}, "headers": {"Content-Length": ["1577"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/attributes/"}, "response": {"body": {"string": "[{\"multi\":false,\"resource_name\":\"Device\",\"description\":\"Device cluster.\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":3,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":true},\"name\":\"cluster\"},{\"multi\":false,\"resource_name\":\"Device\",\"description\":\"Foo for Devices.\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":4,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"foo\"},{\"multi\":false,\"resource_name\":\"Device\",\"description\":\"Device owner.\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":5,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"owner\"},{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"Network cluster.\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":6,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":true},\"name\":\"cluster\"},{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"Foo for Networks.\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":7,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"foo\"},{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"Network owner.\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":8,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"owner\"},{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"Address hostname.\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":9,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"hostname\"},{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"Network VLAN.\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":10,\"constraints\":{\"pattern\":\"\",\"valid_values\":[\"300\",\"400\"],\"allow_empty\":false},\"name\":\"vlan\"},{\"multi\":false,\"resource_name\":\"Interface\",\"description\":\"Interface VLAN.\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":11,\"constraints\":{\"pattern\":\"\",\"valid_values\":[\"300\",\"400\"],\"allow_empty\":false},\"name\":\"vlan\"},{\"multi\":false,\"resource_name\":\"Interface\",\"description\":\"Interface scope.\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":12,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"scope\"}]", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; expires=Thu, 14-Sep-2017 19:26:31 GMT; Max-Age=31449600; Path=/", "sessionid=u3ys6nksienu66gy57l1poda9n870184; expires=Thu, 29-Sep-2016 19:26:31 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/attributes/"}, "recorded_at": "2016-09-15T19:26:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/683afd1f2714721d518b5a7bd1baee83385a73e8.json b/tests/tests/api_tests/cassettes/683afd1f2714721d518b5a7bd1baee83385a73e8.json new file mode 100644 index 00000000..faff53f2 --- /dev/null +++ b/tests/tests/api_tests/cassettes/683afd1f2714721d518b5a7bd1baee83385a73e8.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/31/root/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/31/root/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/68a03035213ebcbf62913a52379d1cce83323b1e.json b/tests/tests/api_tests/cassettes/68a03035213ebcbf62913a52379d1cce83323b1e.json new file mode 100644 index 00000000..5710bbac --- /dev/null +++ b/tests/tests/api_tests/cassettes/68a03035213ebcbf62913a52379d1cce83323b1e.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{}", "encoding": "utf-8"}, "headers": {"Content-Length": ["2"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["user@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/5/networks/22/"}, "response": {"body": {"string": "{\"error\":{\"message\":\"You do not have permission to perform this action.\",\"code\":403}}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=HkfQAqg9G222EqyZ2uzZNm0gbDto0cJx; expires=Thu, 14-Sep-2017 19:26:32 GMT; Max-Age=31449600; Path=/", "sessionid=9k5nzf4v0uv37shw0is852akxt59qft0; expires=Thu, 29-Sep-2016 19:26:32 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "FORBIDDEN", "code": 403}, "url": "http://localhost:8081/api/sites/5/networks/22/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/6c9100f15e145f9702cdccaaa2f57bee320e2862.json b/tests/tests/api_tests/cassettes/6c9100f15e145f9702cdccaaa2f57bee320e2862.json new file mode 100644 index 00000000..84c50de8 --- /dev/null +++ b/tests/tests/api_tests/cassettes/6c9100f15e145f9702cdccaaa2f57bee320e2862.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/root/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/root/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/6d3e004374a49df1de91cdfd9e06a71bc33bc3c4.json b/tests/tests/api_tests/cassettes/6d3e004374a49df1de91cdfd9e06a71bc33bc3c4.json new file mode 100644 index 00000000..1082bd4d --- /dev/null +++ b/tests/tests/api_tests/cassettes/6d3e004374a49df1de91cdfd9e06a71bc33bc3c4.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "[{\"cidr\": \"1.1.1.0/24\"}, {\"cidr\": \"2.2.2.0/24\"}, {\"cidr\": \"3.3.3.0/24\"}]", "encoding": "utf-8"}, "headers": {"Content-Length": ["72"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"1.1.1.0\",\"attributes\":{},\"site_id\":2,\"id\":4},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"2.2.2.0\",\"attributes\":{},\"site_id\":2,\"id\":5},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"3.3.3.0\",\"attributes\":{},\"site_id\":2,\"id\":6}]", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=Xcsynn70Bv1sOpi87SnAJpiitDpgxu2U; expires=Thu, 14-Sep-2017 19:26:31 GMT; Max-Age=31449600; Path=/", "sessionid=bud2l66d33us3why4u8p1l5fgj3cbjfq; expires=Thu, 29-Sep-2016 19:26:31 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/networks/"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Xcsynn70Bv1sOpi87SnAJpiitDpgxu2U; sessionid=bud2l66d33us3why4u8p1l5fgj3cbjfq"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"1.1.1.0\",\"attributes\":{},\"site_id\":2,\"id\":4},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"2.2.2.0\",\"attributes\":{},\"site_id\":2,\"id\":5},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"3.3.3.0\",\"attributes\":{},\"site_id\":2,\"id\":6}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/networks/"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "[{\"is_ip\": false, \"network_address\": \"1.1.1.0\", \"site_id\": 2, \"parent_id\": null, \"state\": \"allocated\", \"prefix_length\": 24, \"ip_version\": \"4\", \"attributes\": {\"vlan\": \"300\"}, \"id\": 4}, {\"is_ip\": false, \"network_address\": \"2.2.2.0\", \"site_id\": 2, \"parent_id\": null, \"state\": \"allocated\", \"prefix_length\": 24, \"ip_version\": \"4\", \"attributes\": {\"vlan\": \"300\"}, \"id\": 5}, {\"is_ip\": false, \"network_address\": \"3.3.3.0\", \"site_id\": 2, \"parent_id\": null, \"state\": \"allocated\", \"prefix_length\": 24, \"ip_version\": \"4\", \"attributes\": {\"vlan\": \"300\"}, \"id\": 6}]", "encoding": "utf-8"}, "headers": {"Content-Length": ["549"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Xcsynn70Bv1sOpi87SnAJpiitDpgxu2U; sessionid=bud2l66d33us3why4u8p1l5fgj3cbjfq"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/2/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"1.1.1.0\",\"attributes\":{\"vlan\":\"300\"},\"site_id\":2,\"id\":4},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"2.2.2.0\",\"attributes\":{\"vlan\":\"300\"},\"site_id\":2,\"id\":5},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"3.3.3.0\",\"attributes\":{\"vlan\":\"300\"},\"site_id\":2,\"id\":6}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/networks/"}, "recorded_at": "2016-09-15T19:26:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/72143f794779e7b3d20c5caae77398edd54148f0.json b/tests/tests/api_tests/cassettes/72143f794779e7b3d20c5caae77398edd54148f0.json new file mode 100644 index 00000000..11b2ff68 --- /dev/null +++ b/tests/tests/api_tests/cassettes/72143f794779e7b3d20c5caae77398edd54148f0.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"cidr\": \"10.0.0.0/8\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["22"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fVEhijHngWo6YD0BdBVcbjcVSKAw5jjI; sessionid=3hohaujnt0yiwoqlpx4ynuebimgzyhr0"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":7,\"id\":26}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/networks/26/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/networks/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/743c558b7946fde225ef98eba440b352cf8069f6.json b/tests/tests/api_tests/cassettes/743c558b7946fde225ef98eba440b352cf8069f6.json new file mode 100644 index 00000000..d1daebf3 --- /dev/null +++ b/tests/tests/api_tests/cassettes/743c558b7946fde225ef98eba440b352cf8069f6.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=5Nb2gfe2EWHsouAWDDIjKiwka80B66L7; sessionid=0k418lkzisgaoqsygkdewfcm39a165sd"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/"}, "response": {"body": {"string": "{\"parent_id\":40,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.250.0.0\",\"attributes\":{},\"site_id\":11,\"id\":41}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=5Nb2gfe2EWHsouAWDDIjKiwka80B66L7; sessionid=0k418lkzisgaoqsygkdewfcm39a165sd"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/?prefix_length=27"}, "response": {"body": {"string": "{\"error\":{\"message\":\"No such Network found at (site_id, id) = (11, 10.250.0.185/32)\",\"code\":404}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "NOT FOUND", "code": 404}, "url": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/?prefix_length=27"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=5Nb2gfe2EWHsouAWDDIjKiwka80B66L7; sessionid=0k418lkzisgaoqsygkdewfcm39a165sd"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/?prefix_length=shoe"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"prefix_length\":\"Invalid prefix_length: u'shoe'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/?prefix_length=shoe"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/78247dfdf33edca136ad0eb5fe63c7593d3776c1.json b/tests/tests/api_tests/cassettes/78247dfdf33edca136ad0eb5fe63c7593d3776c1.json new file mode 100644 index 00000000..1d364bfa --- /dev/null +++ b/tests/tests/api_tests/cassettes/78247dfdf33edca136ad0eb5fe63c7593d3776c1.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fbfrnCWHgWpKFBPXtkA5QvOxfid4lSJ4; sessionid=uvyegq1cpssdb2tmn1j7desznkggggiq"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/networks/1/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":1,\"id\":1}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:30 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/networks/1/"}, "recorded_at": "2016-09-15T19:26:30"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/7998ced5800ae3ab7db96f6c05c3934a374bc978.json b/tests/tests/api_tests/cassettes/7998ced5800ae3ab7db96f6c05c3934a374bc978.json new file mode 100644 index 00000000..33a763a2 --- /dev/null +++ b/tests/tests/api_tests/cassettes/7998ced5800ae3ab7db96f6c05c3934a374bc978.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fVEhijHngWo6YD0BdBVcbjcVSKAw5jjI; sessionid=3hohaujnt0yiwoqlpx4ynuebimgzyhr0"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/networks/10.0.0.0/8/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/networks/10.0.0.0/8/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/7d2efdd348236797e02a79096908ba2b10eb0169.json b/tests/tests/api_tests/cassettes/7d2efdd348236797e02a79096908ba2b10eb0169.json new file mode 100644 index 00000000..44a215de --- /dev/null +++ b/tests/tests/api_tests/cassettes/7d2efdd348236797e02a79096908ba2b10eb0169.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/27/root/"}, "response": {"body": {"string": "{\"error\":{\"message\":\"No such Network found at (site_id, id) = (8, None)\",\"code\":404}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "NOT FOUND", "code": 404}, "url": "http://localhost:8081/api/sites/8/networks/27/root/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/80d95360c7eea97a7c354ee6ca3c1a8851b53cd9.json b/tests/tests/api_tests/cassettes/80d95360c7eea97a7c354ee6ca3c1a8851b53cd9.json new file mode 100644 index 00000000..5ff45f56 --- /dev/null +++ b/tests/tests/api_tests/cassettes/80d95360c7eea97a7c354ee6ca3c1a8851b53cd9.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":3,\"id\":7},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":3,\"id\":8},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":3,\"id\":9},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":3,\"id\":10},{\"parent_id\":13,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":3,\"id\":11},{\"parent_id\":7,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":12},{\"parent_id\":12,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":13}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?cidr=10.0.0.0%2F8"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":3,\"id\":8}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?cidr=10.0.0.0%2F8"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?attributes=foo%3Dbaz"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":3,\"id\":7},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":3,\"id\":9}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?attributes=foo%3Dbaz"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?attributes=foo%3Dbaz&attributes=cluster%3Dlax"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":3,\"id\":9}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?attributes=foo%3Dbaz&attributes=cluster%3Dlax"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?network_address=169.254.0.0"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":3,\"id\":10}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?network_address=169.254.0.0"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?prefix_length=16"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":3,\"id\":7},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":3,\"id\":10}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?prefix_length=16"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?network_address=10.0.0.0&prefix_length=8"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":3,\"id\":8}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?network_address=10.0.0.0&prefix_length=8"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?include_ips=True&include_networks=False"}, "response": {"body": {"string": "[{\"parent_id\":13,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":3,\"id\":11}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?include_ips=True&include_networks=False"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?include_ips=False&include_networks=True"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":3,\"id\":7},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":3,\"id\":8},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":3,\"id\":9},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":3,\"id\":10},{\"parent_id\":7,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":12},{\"parent_id\":12,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":13}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?include_ips=False&include_networks=True"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?include_ips=True&include_networks=True"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":3,\"id\":7},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":3,\"id\":8},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":3,\"id\":9},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":3,\"id\":10},{\"parent_id\":13,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":3,\"id\":11},{\"parent_id\":7,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":12},{\"parent_id\":12,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":13}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?include_ips=True&include_networks=True"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?include_ips=False&include_networks=False"}, "response": {"body": {"string": "[]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?include_ips=False&include_networks=False"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "{\"cidr\": \"2401:d:d0e::/64\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["27"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":64,\"is_ip\":false,\"ip_version\":\"6\",\"network_address\":\"2401:d:d0e::\",\"attributes\":{},\"site_id\":3,\"id\":14}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/networks/14/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/networks/"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?ip_version=6"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":64,\"is_ip\":false,\"ip_version\":\"6\",\"network_address\":\"2401:d:d0e::\",\"attributes\":{},\"site_id\":3,\"id\":14}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?ip_version=6"}, "recorded_at": "2016-09-15T19:26:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/82beec6373c55da4a3001fbcac6b72729f72dbc0.json b/tests/tests/api_tests/cassettes/82beec6373c55da4a3001fbcac6b72729f72dbc0.json new file mode 100644 index 00000000..77952e36 --- /dev/null +++ b/tests/tests/api_tests/cassettes/82beec6373c55da4a3001fbcac6b72729f72dbc0.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fVEhijHngWo6YD0BdBVcbjcVSKAw5jjI; sessionid=3hohaujnt0yiwoqlpx4ynuebimgzyhr0"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/networks/24/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/networks/24/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/84bb1c96e309feb49d8d2fa0d266b8369a0ec428.json b/tests/tests/api_tests/cassettes/84bb1c96e309feb49d8d2fa0d266b8369a0ec428.json new file mode 100644 index 00000000..70bc0cc3 --- /dev/null +++ b/tests/tests/api_tests/cassettes/84bb1c96e309feb49d8d2fa0d266b8369a0ec428.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.0/25/children/"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.0/25/children/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/865ec27a703ec684e7330d283c5cf789add90eeb.json b/tests/tests/api_tests/cassettes/865ec27a703ec684e7330d283c5cf789add90eeb.json new file mode 100644 index 00000000..61b2c3c6 --- /dev/null +++ b/tests/tests/api_tests/cassettes/865ec27a703ec684e7330d283c5cf789add90eeb.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"attr1\": \"foo\"}, \"cidr\": \"10.0.0.0/24\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["55"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UI3V8INIleFqqYuZQ6yUKXJ8EVg9b6CF; sessionid=odnmqyrtq1j5mcs7qs5pw4pk99to4nfi"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":6,\"id\":23}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/networks/23/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/networks/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/90de2c24b7b96754be5274456846c679c7218f66.json b/tests/tests/api_tests/cassettes/90de2c24b7b96754be5274456846c679c7218f66.json new file mode 100644 index 00000000..dccbe5d7 --- /dev/null +++ b/tests/tests/api_tests/cassettes/90de2c24b7b96754be5274456846c679c7218f66.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.0.0/14/descendents/"}, "response": {"body": {"string": "[{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.0.0/14/descendents/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json b/tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json new file mode 100644 index 00000000..3d82577c --- /dev/null +++ b/tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/"}, "response": {"body": {"string": "{\"id\":5,\"name\":\"Test Site\",\"description\":\"\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=Z4znhxkyULuT0DpyY8lSMLeF7PLCzNaa; expires=Thu, 14-Sep-2017 19:46:06 GMT; Max-Age=31449600; Path=/", "sessionid=jmiav9fhh9sd0z9mn0aua71ggnu0ifpc; expires=Thu, 29-Sep-2016 19:46:06 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/"], "Allow": ["GET, POST, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/"}, "recorded_at": "2016-09-15T19:46:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/944e446940adf75be72d7ff7a59b5db4918d6e1c.json b/tests/tests/api_tests/cassettes/944e446940adf75be72d7ff7a59b5db4918d6e1c.json new file mode 100644 index 00000000..b64d57aa --- /dev/null +++ b/tests/tests/api_tests/cassettes/944e446940adf75be72d7ff7a59b5db4918d6e1c.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fbfrnCWHgWpKFBPXtkA5QvOxfid4lSJ4; sessionid=uvyegq1cpssdb2tmn1j7desznkggggiq"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/1/networks/2/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:30 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/1/networks/2/"}, "recorded_at": "2016-09-15T19:26:30"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json b/tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json new file mode 100644 index 00000000..73369060 --- /dev/null +++ b/tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=bTMhCqlmxzpR2qKjLbUtnGbcTned698o; expires=Thu, 14-Sep-2017 19:46:05 GMT; Max-Age=31449600; Path=/", "sessionid=1r1bj0h43lrgn33sxn138neqeoydbm4y; expires=Thu, 29-Sep-2016 19:46:05 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/iterable/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-09-15T19:46:05"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=bTMhCqlmxzpR2qKjLbUtnGbcTned698o; sessionid=1r1bj0h43lrgn33sxn138neqeoydbm4y"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "[{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-09-15T19:46:05"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/9656ecd4fe0150cd6217d09c5d4b1f8d9d19e00b.json b/tests/tests/api_tests/cassettes/9656ecd4fe0150cd6217d09c5d4b1f8d9d19e00b.json new file mode 100644 index 00000000..d140e81e --- /dev/null +++ b/tests/tests/api_tests/cassettes/9656ecd4fe0150cd6217d09c5d4b1f8d9d19e00b.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.0.0.0/8/descendents/"}, "response": {"body": {"string": "[{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28},{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29},{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.0.0.0/8/descendents/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/9e59fc13628275f2a31802bc64c03f049f457bd6.json b/tests/tests/api_tests/cassettes/9e59fc13628275f2a31802bc64c03f049f457bd6.json new file mode 100644 index 00000000..12513f1b --- /dev/null +++ b/tests/tests/api_tests/cassettes/9e59fc13628275f2a31802bc64c03f049f457bd6.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"cidr\": \"10.16.2.17/32\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["25"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/9/networks/"}, "response": {"body": {"string": "{\"parent_id\":33,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.17\",\"attributes\":{},\"site_id\":9,\"id\":38}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/9/networks/38/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/9/networks/"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.0%2F25"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":9,\"id\":33}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.0%2F25"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.8%2F29"}, "response": {"body": {"string": "[{\"parent_id\":33,\"state\":\"allocated\",\"prefix_length\":29,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.8\",\"attributes\":{},\"site_id\":9,\"id\":34}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.8%2F29"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.1%2F32"}, "response": {"body": {"string": "[{\"parent_id\":33,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":9,\"id\":35}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.1%2F32"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.2%2F32"}, "response": {"body": {"string": "[{\"parent_id\":33,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":9,\"id\":36}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.2%2F32"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/a19750a6d840f704991808815c7cc500845d850f.json b/tests/tests/api_tests/cassettes/a19750a6d840f704991808815c7cc500845d850f.json new file mode 100644 index 00000000..444e664b --- /dev/null +++ b/tests/tests/api_tests/cassettes/a19750a6d840f704991808815c7cc500845d850f.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.2/32/parent/"}, "response": {"body": {"string": "{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.2/32/parent/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json b/tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json new file mode 100644 index 00000000..58a4454f --- /dev/null +++ b/tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":6,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=uMrOf7lWEEbqTIACoVLvzCO1dCPsNQdu; expires=Thu, 14-Sep-2017 19:46:06 GMT; Max-Age=31449600; Path=/", "sessionid=3jev4hqjqr3ngfi1tk5zq935va657wku; expires=Thu, 29-Sep-2016 19:46:06 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/iterable/6/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/iterable/"}, "recorded_at": "2016-09-15T19:46:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/af08309f2ed9ffe89fb10dc74753eed7ecb723ce.json b/tests/tests/api_tests/cassettes/af08309f2ed9ffe89fb10dc74753eed7ecb723ce.json new file mode 100644 index 00000000..6811bc05 --- /dev/null +++ b/tests/tests/api_tests/cassettes/af08309f2ed9ffe89fb10dc74753eed7ecb723ce.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/33/next_address/"}, "response": {"body": {"string": "[\"10.16.2.3/32\"]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/33/next_address/"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/33/next_address/?num=3"}, "response": {"body": {"string": "[\"10.16.2.3/32\",\"10.16.2.5/32\",\"10.16.2.6/32\"]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/33/next_address/?num=3"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/33/next_address/?num=potato"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"num\":\"invalid literal for int() with base 10: 'potato'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/33/next_address/?num=potato"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/b93ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json b/tests/tests/api_tests/cassettes/b93ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json new file mode 100644 index 00000000..d395eeb1 --- /dev/null +++ b/tests/tests/api_tests/cassettes/b93ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"description\": \"Iterable 1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["29"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=uMrOf7lWEEbqTIACoVLvzCO1dCPsNQdu; sessionid=3jev4hqjqr3ngfi1tk5zq935va657wku"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/4/iterable/6/"}, "response": {"body": {"string": "{\"description\":\"Iterable 1\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":6,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/iterable/6/"}, "recorded_at": "2016-09-15T19:46:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/bd474da839501043708fa3000d35851e61d996a3.json b/tests/tests/api_tests/cassettes/bd474da839501043708fa3000d35851e61d996a3.json new file mode 100644 index 00000000..cc1a45a5 --- /dev/null +++ b/tests/tests/api_tests/cassettes/bd474da839501043708fa3000d35851e61d996a3.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"state\": \"reserved\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UI3V8INIleFqqYuZQ6yUKXJ8EVg9b6CF; sessionid=odnmqyrtq1j5mcs7qs5pw4pk99to4nfi"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/6/networks/23/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":6,\"id\":23}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/networks/23/"}, "recorded_at": "2016-09-15T19:26:32"}, {"request": {"body": {"string": "{\"state\": \"reserved\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UI3V8INIleFqqYuZQ6yUKXJ8EVg9b6CF; sessionid=odnmqyrtq1j5mcs7qs5pw4pk99to4nfi"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/6/networks/23/"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"attributes\":[\"This field is required.\"]},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/6/networks/23/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/bed48976a960605bb0cc70cc575506af38968f36.json b/tests/tests/api_tests/cassettes/bed48976a960605bb0cc70cc575506af38968f36.json new file mode 100644 index 00000000..58a9edfa --- /dev/null +++ b/tests/tests/api_tests/cassettes/bed48976a960605bb0cc70cc575506af38968f36.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=umh12xybXchIT08UkvhDjisTfClPAcGu; sessionid=8olrvik6cxu2dovrzhfbd7m2qb5dglbb"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?query=foo%3Dbar"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":4,\"id\":16},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":4,\"id\":18}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/query/?query=foo%3Dbar"}, "recorded_at": "2016-09-15T19:26:32"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=umh12xybXchIT08UkvhDjisTfClPAcGu; sessionid=8olrvik6cxu2dovrzhfbd7m2qb5dglbb"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?query=foo%3Dbar+owner%3Djathan"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":4,\"id\":18}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/query/?query=foo%3Dbar+owner%3Djathan"}, "recorded_at": "2016-09-15T19:26:32"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=umh12xybXchIT08UkvhDjisTfClPAcGu; sessionid=8olrvik6cxu2dovrzhfbd7m2qb5dglbb"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?include_ips=False&query=-owner%3Dgary"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":4,\"id\":15},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":4,\"id\":18},{\"parent_id\":15,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":20},{\"parent_id\":20,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":21}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/query/?include_ips=False&query=-owner%3Dgary"}, "recorded_at": "2016-09-15T19:26:32"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=umh12xybXchIT08UkvhDjisTfClPAcGu; sessionid=8olrvik6cxu2dovrzhfbd7m2qb5dglbb"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?query=cluster+%2Bfoo%3Dbaz"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":4,\"id\":15},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":4,\"id\":17}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/query/?query=cluster+%2Bfoo%3Dbaz"}, "recorded_at": "2016-09-15T19:26:32"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=umh12xybXchIT08UkvhDjisTfClPAcGu; sessionid=8olrvik6cxu2dovrzhfbd7m2qb5dglbb"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?query=vlan%3D300"}, "response": {"body": {"string": "[{\"parent_id\":21,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":4,\"id\":19}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/query/?query=vlan%3D300"}, "recorded_at": "2016-09-15T19:26:32"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=umh12xybXchIT08UkvhDjisTfClPAcGu; sessionid=8olrvik6cxu2dovrzhfbd7m2qb5dglbb"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?query=fake%3Dbad"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"query\":\"Attribute matching query does not exist: 'fake'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/4/networks/query/?query=fake%3Dbad"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/c1ace35610f08937e315c7ca43d88e3d52cae87d.json b/tests/tests/api_tests/cassettes/c1ace35610f08937e315c7ca43d88e3d52cae87d.json new file mode 100644 index 00000000..4bec5da5 --- /dev/null +++ b/tests/tests/api_tests/cassettes/c1ace35610f08937e315c7ca43d88e3d52cae87d.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Network\", \"name\": \"vlan\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["44"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Xcsynn70Bv1sOpi87SnAJpiitDpgxu2U; sessionid=bud2l66d33us3why4u8p1l5fgj3cbjfq"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":2,\"id\":2,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"vlan\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/attributes/2/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/attributes/"}, "recorded_at": "2016-09-15T19:26:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/c5166aff566078fc644891c3d483a596bc238579.json b/tests/tests/api_tests/cassettes/c5166aff566078fc644891c3d483a596bc238579.json new file mode 100644 index 00000000..dd27876b --- /dev/null +++ b/tests/tests/api_tests/cassettes/c5166aff566078fc644891c3d483a596bc238579.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.0.0/12/children/"}, "response": {"body": {"string": "[{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.0.0/12/children/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/c77fd2df6127b125a3d4d9d702eb97c7151b84b2.json b/tests/tests/api_tests/cassettes/c77fd2df6127b125a3d4d9d702eb97c7151b84b2.json new file mode 100644 index 00000000..4f108ffd --- /dev/null +++ b/tests/tests/api_tests/cassettes/c77fd2df6127b125a3d4d9d702eb97c7151b84b2.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "[\n {\n \"attributes\": {\n \"cluster\": \"\", \n \"foo\": \"baz\", \n \"owner\": \"jathan\"\n }, \n \"cidr\": \"192.168.0.0/16\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"lax\", \n \"foo\": \"bar\", \n \"owner\": \"gary\"\n }, \n \"cidr\": \"10.0.0.0/8\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"lax\", \n \"foo\": \"baz\", \n \"owner\": \"gary\"\n }, \n \"cidr\": \"172.16.0.0/12\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"sjc\", \n \"foo\": \"bar\", \n \"owner\": \"jathan\"\n }, \n \"cidr\": \"169.254.0.0/16\"\n }, \n {\n \"attributes\": {\n \"hostname\": \"foo-bar1\", \n \"vlan\": \"300\"\n }, \n \"cidr\": \"192.168.0.1/32\"\n }, \n {\n \"attributes\": {\n \"hostname\": \"foo-bar1\"\n }, \n \"cidr\": \"192.168.0.0/24\"\n }, \n {\n \"attributes\": {\n \"hostname\": \"foo-bar1\"\n }, \n \"cidr\": \"192.168.0.0/25\"\n }\n]\n", "encoding": "utf-8"}, "headers": {"Content-Length": ["1056"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=umh12xybXchIT08UkvhDjisTfClPAcGu; sessionid=8olrvik6cxu2dovrzhfbd7m2qb5dglbb"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":4,\"id\":15},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":4,\"id\":16},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":4,\"id\":17},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":4,\"id\":18},{\"parent_id\":15,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":4,\"id\":19},{\"parent_id\":15,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":20},{\"parent_id\":20,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":21}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/networks/"}, "recorded_at": "2016-09-15T19:26:32"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=umh12xybXchIT08UkvhDjisTfClPAcGu; sessionid=8olrvik6cxu2dovrzhfbd7m2qb5dglbb"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":4,\"id\":15},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":4,\"id\":16},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":4,\"id\":17},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":4,\"id\":18},{\"parent_id\":21,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":4,\"id\":19},{\"parent_id\":15,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":20},{\"parent_id\":20,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":21}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/c87885aa4d31ad8a2b08b03b992f52f9db466615.json b/tests/tests/api_tests/cassettes/c87885aa4d31ad8a2b08b03b992f52f9db466615.json new file mode 100644 index 00000000..7d1a4e0a --- /dev/null +++ b/tests/tests/api_tests/cassettes/c87885aa4d31ad8a2b08b03b992f52f9db466615.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"cidr\": \"10.16.2.2/32\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["24"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/8/networks/"}, "response": {"body": {"string": "{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/8/networks/32/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/8/networks/"}, "recorded_at": "2016-09-15T19:26:32"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.0.0.0%2F8"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.0.0.0%2F8"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.0.0%2F12"}, "response": {"body": {"string": "[{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.0.0%2F12"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.0.0%2F14"}, "response": {"body": {"string": "[{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.0.0%2F14"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.0%2F25"}, "response": {"body": {"string": "[{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.0%2F25"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.1%2F32"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.1%2F32"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.2%2F32"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.2%2F32"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/ced58e2cf97d7a523c5852924a577f5c8b892866.json b/tests/tests/api_tests/cassettes/ced58e2cf97d7a523c5852924a577f5c8b892866.json new file mode 100644 index 00000000..83604b74 --- /dev/null +++ b/tests/tests/api_tests/cassettes/ced58e2cf97d7a523c5852924a577f5c8b892866.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=bTMhCqlmxzpR2qKjLbUtnGbcTned698o; sessionid=1r1bj0h43lrgn33sxn138neqeoydbm4y"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/1/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/1/"}, "recorded_at": "2016-09-15T19:46:05"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/d5f7009c8ca1699486d9116a6ca0da537b1bb8b7.json b/tests/tests/api_tests/cassettes/d5f7009c8ca1699486d9116a6ca0da537b1bb8b7.json new file mode 100644 index 00000000..6b525c12 --- /dev/null +++ b/tests/tests/api_tests/cassettes/d5f7009c8ca1699486d9116a6ca0da537b1bb8b7.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"attr1\": \"foo\"}, \"cidr\": \"10.0.0.0/24\", \"state\": \"reserved\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["76"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=4r3hEQaPIT4t9wCPw79KOZm0ltbCc4Ig; sessionid=ikkkqqym6omp9400yeocl7fykfaecz3t"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":5,\"id\":22}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/networks/22/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/networks/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/e0e399e8dbcd4774ee2b95798987a3638ea50836.json b/tests/tests/api_tests/cassettes/e0e399e8dbcd4774ee2b95798987a3638ea50836.json new file mode 100644 index 00000000..8ae235c6 --- /dev/null +++ b/tests/tests/api_tests/cassettes/e0e399e8dbcd4774ee2b95798987a3638ea50836.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/28/children/"}, "response": {"body": {"string": "[{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/28/children/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/eacb60510140254a7ec730a2383e740cf8048a1d.json b/tests/tests/api_tests/cassettes/eacb60510140254a7ec730a2383e740cf8048a1d.json new file mode 100644 index 00000000..72b432ff --- /dev/null +++ b/tests/tests/api_tests/cassettes/eacb60510140254a7ec730a2383e740cf8048a1d.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Network\", \"name\": \"attr1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["45"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":1,\"id\":1,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"attr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=fbfrnCWHgWpKFBPXtkA5QvOxfid4lSJ4; expires=Thu, 14-Sep-2017 19:26:30 GMT; Max-Age=31449600; Path=/", "sessionid=uvyegq1cpssdb2tmn1j7desznkggggiq; expires=Thu, 29-Sep-2016 19:26:30 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/attributes/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:30 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/attributes/"}, "recorded_at": "2016-09-15T19:26:30"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/eb265a9697212637085b4a3e6ab21689f776d9de.json b/tests/tests/api_tests/cassettes/eb265a9697212637085b4a3e6ab21689f776d9de.json new file mode 100644 index 00000000..4922a4eb --- /dev/null +++ b/tests/tests/api_tests/cassettes/eb265a9697212637085b4a3e6ab21689f776d9de.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {}, \"state\": \"orphaned\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["39"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=4r3hEQaPIT4t9wCPw79KOZm0ltbCc4Ig; sessionid=ikkkqqym6omp9400yeocl7fykfaecz3t"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/5/networks/10.0.0.0/24/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"orphaned\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":5,\"id\":22}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/5/networks/10.0.0.0/24/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/f1c3b5b7565d66b9b89cc2c7451cf206f1d0c0c2.json b/tests/tests/api_tests/cassettes/f1c3b5b7565d66b9b89cc2c7451cf206f1d0c0c2.json new file mode 100644 index 00000000..43b13bac --- /dev/null +++ b/tests/tests/api_tests/cassettes/f1c3b5b7565d66b9b89cc2c7451cf206f1d0c0c2.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/?prefix_length=28"}, "response": {"body": {"string": "[\"10.16.2.0/28\"]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/?prefix_length=28"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/?num=4&prefix_length=27"}, "response": {"body": {"string": "[\"10.16.2.0/27\",\"10.16.2.32/27\",\"10.16.2.64/27\",\"10.16.2.96/27\"]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/?num=4&prefix_length=27"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"prefix_length\":\"int() argument must be a string or a number, not 'NoneType'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/?prefix_length=ralph"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"prefix_length\":\"invalid literal for int() with base 10: 'ralph'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/?prefix_length=ralph"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/?prefix_length=14"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"prefix_length\":\"New prefix must be longer than 25\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/?prefix_length=14"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/?prefix_length=65"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"prefix_length\":\"prefix length diff 65 is invalid for netblock 10.16.2.0/25\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/?prefix_length=65"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/f3fe397632a874f9bb32ccda0313de2633938b63.json b/tests/tests/api_tests/cassettes/f3fe397632a874f9bb32ccda0313de2633938b63.json new file mode 100644 index 00000000..9f721274 --- /dev/null +++ b/tests/tests/api_tests/cassettes/f3fe397632a874f9bb32ccda0313de2633938b63.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/32/parent/"}, "response": {"body": {"string": "{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/32/parent/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/f5d01c6d7cf05a4278dd5458a09e0b04788a0103.json b/tests/tests/api_tests/cassettes/f5d01c6d7cf05a4278dd5458a09e0b04788a0103.json new file mode 100644 index 00000000..dc51a8bb --- /dev/null +++ b/tests/tests/api_tests/cassettes/f5d01c6d7cf05a4278dd5458a09e0b04788a0103.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/31/siblings/"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/31/siblings/"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/31/siblings/?include_self=True"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/31/siblings/?include_self=True"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/f88bf65cf0371d4806fae9e1ff953f163ab0d803.json b/tests/tests/api_tests/cassettes/f88bf65cf0371d4806fae9e1ff953f163ab0d803.json new file mode 100644 index 00000000..1a5d85bd --- /dev/null +++ b/tests/tests/api_tests/cassettes/f88bf65cf0371d4806fae9e1ff953f163ab0d803.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=5Nb2gfe2EWHsouAWDDIjKiwka80B66L7; sessionid=0k418lkzisgaoqsygkdewfcm39a165sd"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/11/networks/1/closest_parent/"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"cidr\":\"u'1' does not appear to be an IPv4 or IPv6 network\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/11/networks/1/closest_parent/"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/fd0ebe116d422145e03dbb05c5d21d8f36ffe70f.json b/tests/tests/api_tests/cassettes/fd0ebe116d422145e03dbb05c5d21d8f36ffe70f.json new file mode 100644 index 00000000..f30a1769 --- /dev/null +++ b/tests/tests/api_tests/cassettes/fd0ebe116d422145e03dbb05c5d21d8f36ffe70f.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=5Nb2gfe2EWHsouAWDDIjKiwka80B66L7; sessionid=0k418lkzisgaoqsygkdewfcm39a165sd"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/networks/11/closest_parent.bogus"}, "response": {"body": {"string": "{\"error\":{\"message\":\"Endpoint not found.\",\"code\":404}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "NOT FOUND", "code": 404}, "url": "http://localhost:8081/api/networks/11/closest_parent.bogus"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/fdbaea7fe81fb647256ead8b8076b3fa39ae57ec.json b/tests/tests/api_tests/cassettes/fdbaea7fe81fb647256ead8b8076b3fa39ae57ec.json new file mode 100644 index 00000000..21c9b4cc --- /dev/null +++ b/tests/tests/api_tests/cassettes/fdbaea7fe81fb647256ead8b8076b3fa39ae57ec.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.0.0.0/8/root/"}, "response": {"body": {"string": "{\"error\":{\"message\":\"No such Network found at (site_id, id) = (8, None)\",\"code\":404}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "NOT FOUND", "code": 404}, "url": "http://localhost:8081/api/sites/8/networks/10.0.0.0/8/root/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/ffd4529bd2b59140eec7020beac2eb51f67ba602.json b/tests/tests/api_tests/cassettes/ffd4529bd2b59140eec7020beac2eb51f67ba602.json new file mode 100644 index 00000000..a8bcccb5 --- /dev/null +++ b/tests/tests/api_tests/cassettes/ffd4529bd2b59140eec7020beac2eb51f67ba602.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"description\": \"test-iterable\", \"min_val\": 10, \"max_val\": 20, \"increment\": 1, \"id\": 5, \"name\": \"itr1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["103"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=XrXkrh1WPxDK7yINwdM9PeZA2B17Atny; sessionid=69sawjv6hjojob78v7juonrrqkd0cyfa"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/3/iterable/5/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":5,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/iterable/5/"}, "recorded_at": "2016-09-15T19:46:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file From a8a5ae886a00bf9c8255e447304584fe89043653 Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Mon, 19 Sep 2016 04:55:24 -0400 Subject: [PATCH 07/31] All API tests for Iterable and Itervalue are passing --- nsot/admin.py | 2 +- nsot/api/serializers.py | 38 +++ nsot/api/urls.py | 2 + nsot/api/views.py | 17 +- nsot/models.py | 219 ++++++++++-------- tests/api_tests/test_iterable.py | 54 +++-- tests/api_tests/test_itervalues.py | 139 +++++++++++ tests/model_tests/test_iterables.py | 6 +- tests/model_tests/test_itervalues.py | 80 ++++--- ...1a60d19dfadf71e943dca17d8914a87865d85.json | 1 - ...882f3491f581dee8cafb6e7761f9f1354282a.json | 1 + ...466411abc39bbee145c78f3b17b973a427270.json | 1 + ...db4e888302c283d82b63131b5b51b05655b17.json | 1 - ...29ddf21838a67b257b99cd646b5b632bf0240.json | 1 - ...3d8843e034c7465037088edd7480e9b7eefaa.json | 1 - ...90370f99dbada2f22883aba385169e51adcd7.json | 1 - ...3bda6f1cccbb63afa6a53385ad739959e7bdc.json | 1 - ...5efafbb79d39ad5e9fc281baaab9caf809ddf.json | 1 - ...35975b61f5aa73bbf34bc8bd23c344da7c17d.json | 1 - ...a3d2104215406ba907120a6e9b9f81f64074a.json | 1 - ...180af8d58bc0b7907a76c580089938f93235f.json | 1 - ...bdf3590df980e07baa9dc3ad9360387deb771.json | 1 - ...ef3bb33ed168e15d7aea0b4dc510458799bcb.json | 1 + ...087b5dcdebe88bdec9374a659582ecef4cf0e.json | 1 + ...8b61bdb25c7dca7049a8f66fa3ed1f6c06033.json | 1 - ...ea2112694a342065bc29ab982b640d9de05f8.json | 1 - ...a273d56a0d95e1a8e65f1b96a8ea09673ed4e.json | 1 - ...12bfb1328c4198e1e3265a991a333a854b08c.json | 1 - ...3e2415076faee1762b5a9bd036ffdf687ec9e.json | 1 - ...bad7234fd22e555fca4e1e661c06150594764.json | 1 - ...1e78c8eb4ea24b812b2757d34f0425f62c4ce.json | 1 - ...f6226f909731ce2a16f95ad58333e5d46b358.json | 1 - ...d1126d5af748c76fa8186a04e9db94caa4266.json | 1 - ...942f1ad3a714b8e9b5136374de2c77708332.json} | 2 +- ...79b39bd62a3954a7525a47266dc24230c10f7.json | 1 - ...69da5f6e63f009f084ad75653f7e9e9da6fae.json | 1 - ...1d21d4bfdf0a306e2aa7d0d6c892825fd907b.json | 1 - ...afd1f2714721d518b5a7bd1baee83385a73e8.json | 1 - ...03035213ebcbf62913a52379d1cce83323b1e.json | 1 - ...54ebbe15b5172ad04a37f0f63867087bcbd9.json} | 2 +- ...100f15e145f9702cdccaaa2f57bee320e2862.json | 1 - ...e004374a49df1de91cdfd9e06a71bc33bc3c4.json | 1 - ...43f794779e7b3d20c5caae77398edd54148f0.json | 1 - ...c558b7946fde225ef98eba440b352cf8069f6.json | 1 - ...7780e6a0f594265f3e902dbe6383a28a733ab.json | 1 + ...47dfdf33edca136ad0eb5fe63c7593d3776c1.json | 1 - ...8ced5800ae3ab7db96f6c05c3934a374bc978.json | 1 - ...efdd348236797e02a79096908ba2b10eb0169.json | 1 - ...7c80bc1093aad4d08f90de4837b9dace269cb.json | 1 + ...95360c7eea97a7c354ee6ca3c1a8851b53cd9.json | 1 - ...6afde5d85a48fd04e72657f1b47e5bd9ff7a8.json | 1 + ...eec6373c55da4a3001fbcac6b72729f72dbc0.json | 1 - ...0d6704912f1865dd2fb9239a1e7818ab3bdc9.json | 1 + ...91e45dfa16138c772576bc27720f4a236fe23.json | 1 + ...b1c96e309feb49d8d2fa0d266b8369a0ec428.json | 1 - ...ec27a703ec684e7330d283c5cf789add90eeb.json | 1 - ...f4ef98a12f666c96e427686c429919aab7d91.json | 1 + ...c33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json | 1 + ...e2c24b7b96754be5274456846c679c7218f66.json | 1 - ...1c628b50168e5044a6dc8e3034ef9312f44c6.json | 1 - ...e446940adf75be72d7ff7a59b5db4918d6e1c.json | 1 - ...cc773ac378030532f36a8ab596483f3586d05.json | 1 + ...95e49f6f87bba0c41bf27c3beab3efd9da5a9.json | 1 - ...6ecd4fe0150cd6217d09c5d4b1f8d9d19e00b.json | 1 - ...9fc13628275f2a31802bc64c03f049f457bd6.json | 1 - ...750a6d840f704991808815c7cc500845d850f.json | 1 - ...acd3c0e649ad8b9a56ad84535460a6405ee2c.json | 1 + ...8309f2ed9ffe89fb10dc74753eed7ecb723ce.json | 1 - ...ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json | 1 - ...74da839501043708fa3000d35851e61d996a3.json | 1 - ...ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json | 1 + ...48976a960605bb0cc70cc575506af38968f36.json | 1 - ...ce35610f08937e315c7ca43d88e3d52cae87d.json | 1 - ...66aff566078fc644891c3d483a596bc238579.json | 1 - ...fd2df6127b125a3d4d9d702eb97c7151b84b2.json | 1 - ...885aa4d31ad8a2b08b03b992f52f9db466615.json | 1 - ...fa48163eeae1ce7216449002c354cfbb6159c.json | 1 + ...58e2cf97d7a523c5852924a577f5c8b892866.json | 1 - ...6f17fefec299ec55c6c4f06180a57e3705650.json | 1 + ...9fab30966b59910a1ea5aa837e1e1c9c1c7ff.json | 1 + ...7009c8ca1699486d9116a6ca0da537b1bb8b7.json | 1 - ...27a9a7f5006cf428910abcbcb10322f0c9b6a.json | 1 + ...399e8dbcd4774ee2b95798987a3638ea50836.json | 1 - ...b60510140254a7ec730a2383e740cf8048a1d.json | 1 - ...65a9697212637085b4a3e6ab21689f776d9de.json | 1 - ...229400749457eca20861a7205b03d1e2525a9.json | 1 + ...00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json} | 2 +- ...3b5b7565d66b9b89cc2c7451cf206f1d0c0c2.json | 1 - ...ab6f942c4d7271ee54b89689e2642104c16e1.json | 1 + ...e397632a874f9bb32ccda0313de2633938b63.json | 1 - ...01c6d7cf05a4278dd5458a09e0b04788a0103.json | 1 - ...bf65cf0371d4806fae9e1ff953f163ab0d803.json | 1 - ...9b2450520c8fdff8600aef51dc6deda0b9549.json | 1 + ...ebe116d422145e03dbb05c5d21d8f36ffe70f.json | 1 - ...aea7fe81fb647256ead8b8076b3fa39ae57ec.json | 1 - ...4529bd2b59140eec7020beac2eb51f67ba602.json | 1 - 96 files changed, 418 insertions(+), 229 deletions(-) create mode 100644 tests/api_tests/test_itervalues.py delete mode 100644 tests/tests/api_tests/cassettes/15f1a60d19dfadf71e943dca17d8914a87865d85.json create mode 100644 tests/tests/api_tests/cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json create mode 100644 tests/tests/api_tests/cassettes/1c3466411abc39bbee145c78f3b17b973a427270.json delete mode 100644 tests/tests/api_tests/cassettes/1dadb4e888302c283d82b63131b5b51b05655b17.json delete mode 100644 tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json delete mode 100644 tests/tests/api_tests/cassettes/2113d8843e034c7465037088edd7480e9b7eefaa.json delete mode 100644 tests/tests/api_tests/cassettes/23c90370f99dbada2f22883aba385169e51adcd7.json delete mode 100644 tests/tests/api_tests/cassettes/2bf3bda6f1cccbb63afa6a53385ad739959e7bdc.json delete mode 100644 tests/tests/api_tests/cassettes/32e5efafbb79d39ad5e9fc281baaab9caf809ddf.json delete mode 100644 tests/tests/api_tests/cassettes/36035975b61f5aa73bbf34bc8bd23c344da7c17d.json delete mode 100644 tests/tests/api_tests/cassettes/392a3d2104215406ba907120a6e9b9f81f64074a.json delete mode 100644 tests/tests/api_tests/cassettes/42f180af8d58bc0b7907a76c580089938f93235f.json delete mode 100644 tests/tests/api_tests/cassettes/460bdf3590df980e07baa9dc3ad9360387deb771.json create mode 100644 tests/tests/api_tests/cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json create mode 100644 tests/tests/api_tests/cassettes/49b087b5dcdebe88bdec9374a659582ecef4cf0e.json delete mode 100644 tests/tests/api_tests/cassettes/4bc8b61bdb25c7dca7049a8f66fa3ed1f6c06033.json delete mode 100644 tests/tests/api_tests/cassettes/4dbea2112694a342065bc29ab982b640d9de05f8.json delete mode 100644 tests/tests/api_tests/cassettes/52aa273d56a0d95e1a8e65f1b96a8ea09673ed4e.json delete mode 100644 tests/tests/api_tests/cassettes/54012bfb1328c4198e1e3265a991a333a854b08c.json delete mode 100644 tests/tests/api_tests/cassettes/5863e2415076faee1762b5a9bd036ffdf687ec9e.json delete mode 100644 tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json delete mode 100644 tests/tests/api_tests/cassettes/5c61e78c8eb4ea24b812b2757d34f0425f62c4ce.json delete mode 100644 tests/tests/api_tests/cassettes/654f6226f909731ce2a16f95ad58333e5d46b358.json delete mode 100644 tests/tests/api_tests/cassettes/65ad1126d5af748c76fa8186a04e9db94caa4266.json rename tests/tests/api_tests/cassettes/{11f97becd90041963d52a7bc2fe0a32eff1b8250.json => 65e0942f1ad3a714b8e9b5136374de2c77708332.json} (54%) delete mode 100644 tests/tests/api_tests/cassettes/66279b39bd62a3954a7525a47266dc24230c10f7.json delete mode 100644 tests/tests/api_tests/cassettes/67a69da5f6e63f009f084ad75653f7e9e9da6fae.json delete mode 100644 tests/tests/api_tests/cassettes/6811d21d4bfdf0a306e2aa7d0d6c892825fd907b.json delete mode 100644 tests/tests/api_tests/cassettes/683afd1f2714721d518b5a7bd1baee83385a73e8.json delete mode 100644 tests/tests/api_tests/cassettes/68a03035213ebcbf62913a52379d1cce83323b1e.json rename tests/tests/api_tests/cassettes/{3f16909f2572a95f6f8edf7ce341ecf1edcb79ad.json => 6b8854ebbe15b5172ad04a37f0f63867087bcbd9.json} (51%) delete mode 100644 tests/tests/api_tests/cassettes/6c9100f15e145f9702cdccaaa2f57bee320e2862.json delete mode 100644 tests/tests/api_tests/cassettes/6d3e004374a49df1de91cdfd9e06a71bc33bc3c4.json delete mode 100644 tests/tests/api_tests/cassettes/72143f794779e7b3d20c5caae77398edd54148f0.json delete mode 100644 tests/tests/api_tests/cassettes/743c558b7946fde225ef98eba440b352cf8069f6.json create mode 100644 tests/tests/api_tests/cassettes/7667780e6a0f594265f3e902dbe6383a28a733ab.json delete mode 100644 tests/tests/api_tests/cassettes/78247dfdf33edca136ad0eb5fe63c7593d3776c1.json delete mode 100644 tests/tests/api_tests/cassettes/7998ced5800ae3ab7db96f6c05c3934a374bc978.json delete mode 100644 tests/tests/api_tests/cassettes/7d2efdd348236797e02a79096908ba2b10eb0169.json create mode 100644 tests/tests/api_tests/cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json delete mode 100644 tests/tests/api_tests/cassettes/80d95360c7eea97a7c354ee6ca3c1a8851b53cd9.json create mode 100644 tests/tests/api_tests/cassettes/8276afde5d85a48fd04e72657f1b47e5bd9ff7a8.json delete mode 100644 tests/tests/api_tests/cassettes/82beec6373c55da4a3001fbcac6b72729f72dbc0.json create mode 100644 tests/tests/api_tests/cassettes/83b0d6704912f1865dd2fb9239a1e7818ab3bdc9.json create mode 100644 tests/tests/api_tests/cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json delete mode 100644 tests/tests/api_tests/cassettes/84bb1c96e309feb49d8d2fa0d266b8369a0ec428.json delete mode 100644 tests/tests/api_tests/cassettes/865ec27a703ec684e7330d283c5cf789add90eeb.json create mode 100644 tests/tests/api_tests/cassettes/8ccf4ef98a12f666c96e427686c429919aab7d91.json create mode 100644 tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json delete mode 100644 tests/tests/api_tests/cassettes/90de2c24b7b96754be5274456846c679c7218f66.json delete mode 100644 tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json delete mode 100644 tests/tests/api_tests/cassettes/944e446940adf75be72d7ff7a59b5db4918d6e1c.json create mode 100644 tests/tests/api_tests/cassettes/949cc773ac378030532f36a8ab596483f3586d05.json delete mode 100644 tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json delete mode 100644 tests/tests/api_tests/cassettes/9656ecd4fe0150cd6217d09c5d4b1f8d9d19e00b.json delete mode 100644 tests/tests/api_tests/cassettes/9e59fc13628275f2a31802bc64c03f049f457bd6.json delete mode 100644 tests/tests/api_tests/cassettes/a19750a6d840f704991808815c7cc500845d850f.json create mode 100644 tests/tests/api_tests/cassettes/a27acd3c0e649ad8b9a56ad84535460a6405ee2c.json delete mode 100644 tests/tests/api_tests/cassettes/af08309f2ed9ffe89fb10dc74753eed7ecb723ce.json delete mode 100644 tests/tests/api_tests/cassettes/b93ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json delete mode 100644 tests/tests/api_tests/cassettes/bd474da839501043708fa3000d35851e61d996a3.json create mode 100644 tests/tests/api_tests/cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json delete mode 100644 tests/tests/api_tests/cassettes/bed48976a960605bb0cc70cc575506af38968f36.json delete mode 100644 tests/tests/api_tests/cassettes/c1ace35610f08937e315c7ca43d88e3d52cae87d.json delete mode 100644 tests/tests/api_tests/cassettes/c5166aff566078fc644891c3d483a596bc238579.json delete mode 100644 tests/tests/api_tests/cassettes/c77fd2df6127b125a3d4d9d702eb97c7151b84b2.json delete mode 100644 tests/tests/api_tests/cassettes/c87885aa4d31ad8a2b08b03b992f52f9db466615.json create mode 100644 tests/tests/api_tests/cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json delete mode 100644 tests/tests/api_tests/cassettes/ced58e2cf97d7a523c5852924a577f5c8b892866.json create mode 100644 tests/tests/api_tests/cassettes/d0d6f17fefec299ec55c6c4f06180a57e3705650.json create mode 100644 tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json delete mode 100644 tests/tests/api_tests/cassettes/d5f7009c8ca1699486d9116a6ca0da537b1bb8b7.json create mode 100644 tests/tests/api_tests/cassettes/da427a9a7f5006cf428910abcbcb10322f0c9b6a.json delete mode 100644 tests/tests/api_tests/cassettes/e0e399e8dbcd4774ee2b95798987a3638ea50836.json delete mode 100644 tests/tests/api_tests/cassettes/eacb60510140254a7ec730a2383e740cf8048a1d.json delete mode 100644 tests/tests/api_tests/cassettes/eb265a9697212637085b4a3e6ab21689f776d9de.json create mode 100644 tests/tests/api_tests/cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json rename tests/tests/api_tests/cassettes/{a7039450914a324dd6fe58d1530c6e7cbc92668d.json => f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json} (54%) delete mode 100644 tests/tests/api_tests/cassettes/f1c3b5b7565d66b9b89cc2c7451cf206f1d0c0c2.json create mode 100644 tests/tests/api_tests/cassettes/f3cab6f942c4d7271ee54b89689e2642104c16e1.json delete mode 100644 tests/tests/api_tests/cassettes/f3fe397632a874f9bb32ccda0313de2633938b63.json delete mode 100644 tests/tests/api_tests/cassettes/f5d01c6d7cf05a4278dd5458a09e0b04788a0103.json delete mode 100644 tests/tests/api_tests/cassettes/f88bf65cf0371d4806fae9e1ff953f163ab0d803.json create mode 100644 tests/tests/api_tests/cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json delete mode 100644 tests/tests/api_tests/cassettes/fd0ebe116d422145e03dbb05c5d21d8f36ffe70f.json delete mode 100644 tests/tests/api_tests/cassettes/fdbaea7fe81fb647256ead8b8076b3fa39ae57ec.json delete mode 100644 tests/tests/api_tests/cassettes/ffd4529bd2b59140eec7020beac2eb51f67ba602.json diff --git a/nsot/admin.py b/nsot/admin.py index e252a84d..4cdce318 100644 --- a/nsot/admin.py +++ b/nsot/admin.py @@ -93,7 +93,7 @@ class IterableAdmin(admin.ModelAdmin): admin.site.register(models.Iterable, IterableAdmin) class IterValueAdmin(admin.ModelAdmin): - list_display = ('val', 'u_id', 'iter_key') + list_display = ('val', 'u_id', 'iter_key', 'site') fields = list_display admin.site.register(models.IterValue, IterValueAdmin) diff --git a/nsot/api/serializers.py b/nsot/api/serializers.py index 352d470b..cbd367b5 100644 --- a/nsot/api/serializers.py +++ b/nsot/api/serializers.py @@ -289,6 +289,44 @@ class Meta: list_serializer_class = BulkListSerializer fields = ('id', 'name', 'description', 'min_val', 'max_val', 'increment') +########### +# IterValue +########### +#class IterValueSerializer(serializers.ModelSerializer): +class IterValueSerializer(NsotSerializer): + """Used for GET, DELETE on IterValues.""" + class Meta: + model = models.IterValue + #fields = ('id', 'iter_key', 'val', 'u_id') + +class IterValueCreateSerializer(IterValueSerializer): + """Used for POST on IterValues.""" + site_id = fields.IntegerField( + label = get_field_attr(models.Iterable, 'site', 'verbose_name'), + help_text = get_field_attr(models.Iterable, 'site', 'help_text') + ) + class Meta: + model = models.IterValue + #read_only_fields = ('id', 'site_id') + fields = ('iter_key', 'val', 'u_id', 'site_id') + + +class IterValueUpdateSerializer(BulkSerializerMixin, + IterValueCreateSerializer): + """ Used for PUT on IterValues. """ + class Meta: + model = models.IterValue + list_serializer_class = BulkListSerializer + fields = ('id', 'iter_key', 'val', 'u_id') + +class IterValuePartialUpdateSerializer(BulkSerializerMixin, + IterValueCreateSerializer): + """ Used for PATCH, on IterValues. """ + class Meta: + model = models.IterValue + list_serializer_class = BulkListSerializer + fields = ('id', 'iter_key', 'val', 'u_id') + diff --git a/nsot/api/urls.py b/nsot/api/urls.py index 1f2277e7..2edd9591 100644 --- a/nsot/api/urls.py +++ b/nsot/api/urls.py @@ -20,6 +20,7 @@ router.register(r'users', views.UserViewSet) router.register(r'values', views.ValueViewSet) router.register(r'iterable', views.IterableViewSet) +router.register(r'itervalue', views.IterValueViewSet) # Nested router for resources under /sites sites_router = routers.BulkNestedRouter( @@ -34,6 +35,7 @@ sites_router.register(r'networks', views.NetworkViewSet) sites_router.register(r'values', views.ValueViewSet) sites_router.register(r'iterable', views.IterableViewSet) +sites_router.register(r'itervalue', views.IterValueViewSet) # Wire up our API using automatic URL routing. # Additionally, we include login URLs for the browsable API. diff --git a/nsot/api/views.py b/nsot/api/views.py index cf245edc..02d0bbfe 100644 --- a/nsot/api/views.py +++ b/nsot/api/views.py @@ -372,7 +372,22 @@ def next_value(self, request, pk=None, site_pk=None, *args, **kwargs): return self.success(value) - +class IterValueViewSet(ResourceViewSet): + """ + API endpoint that allows IterValues to be viewed or edited. + """ + queryset = models.IterValue.objects.all() + serializer_class = serializers.IterValueSerializer + filter_fields = ( 'iter_key', 'val', 'u_id') + def get_serializer_class(self): + if self.request.method == 'POST': + return serializers.IterValueCreateSerializer + if self.request.method in ('PUT'): + return serializers.IterValueUpdateSerializer + if self.request.method in ('PATCH'): + return serializers.IterValuePartialUpdateSerializer + return self.serializer_class + class DeviceViewSet(ResourceViewSet): """ diff --git a/nsot/models.py b/nsot/models.py index 50aa090c..551b66e9 100644 --- a/nsot/models.py +++ b/nsot/models.py @@ -27,7 +27,7 @@ # These are constants that becuase they are tied directly to the underlying # objects are explicitly NOT USER CONFIGURABLE. RESOURCE_BY_IDX = ( - 'Site', 'Network', 'Attribute', 'Device', 'Interface', 'Iterable' + 'Site', 'Network', 'Attribute', 'Device', 'Interface', 'Iterable', 'IterValue' ) RESOURCE_BY_NAME = { obj_type: idx @@ -1847,10 +1847,17 @@ def clean_fields(self, exclude=None): # Site doesn't have an id to itself, so if obj is a Site, use it. self.site = obj if isinstance(obj, Site) else obj.site - serializer_class = self.get_serializer_for_resource(self.resource_name) serializer = serializer_class(obj) self._resource = serializer.data + +# if isinstance(obj, Site): +# self.site = obj +# elif isinstance(obj, IterValue): #If the obj is of IterValue type, use it's foreign key, to find associate site and store changes +# site_num = Iterable.objects.filter(id=self._resource['iter_key']).values_list('site', flat=True)[0] +# self.site = Site.objects.get(id=site_num) +# else: +# self.site = obj.site def save(self, *args, **kwargs): self.full_clean() # First validate fields are correct @@ -1872,41 +1879,6 @@ def to_dict(self): 'resource': resource, } - -# Signals -def delete_resource_values(sender, instance, **kwargs): - """Delete values when a Resource object is deleted.""" - instance.attributes.delete() # These are instances of Value - - -def change_api_updated_at(sender=None, instance=None, *args, **kwargs): - """Anytime the API is updated, invalidate the cache.""" - djcache.set('api_updated_at_timestamp', timezone.now()) - - -# Register signals -resource_subclasses = Resource.__subclasses__() -for model_class in resource_subclasses: - # Value post_delete - models.signals.post_delete.connect( - delete_resource_values, - sender=model_class, - dispatch_uid='value_post_delete_' + model_class.__name__ - ) - - -# Invalidate Interface cache on save/delete -models.signals.post_save.connect( - change_api_updated_at, sender=Interface, - dispatch_uid='invalidate_cache_post_save_interface' -) -models.signals.post_delete.connect( - change_api_updated_at, sender=Interface, - dispatch_uid='invalidate_cache_post_delete_interface' -) - - - class Iterable(models.Model): """Generic iterable for stateful services - vlan#, po#, tenant ID etc""" ''' @@ -1990,91 +1962,134 @@ class IterValue(models.Model): iter_key = Foreign key that ties the Iterable with the value ''' iter_key = models.ForeignKey(Iterable, on_delete=models.PROTECT) - #self.default_val = 0 - #self.default_val = Iterable.objects.values_list('min_val', flat=True)[0] - - myvar = 1 val = models.IntegerField( - default=myvar, help_text='The value of the iterable.' + default=1, help_text='The value of the iterable.' ) u_id = models.TextField( blank=True, help_text='A helpful description for the Iterable.' ) - + # BORROW the logic from class Value - for easier mgmt of the IterValue + # We are currently inferring the site_id from the parent Attribute in + # .save() method. We don't want to even care about the site_id, but it + # simplifies managing them this way. + site = models.ForeignKey( + Site, db_index=True, related_name='itervalue', + on_delete=models.PROTECT, verbose_name='Site', + help_text='Unique ID of the Site this IterValue is under.' + ) def __unicode__(self): return u'value=%s, uuid=%s, iterable=%s' % (self.val, self.u_id, self.iter_key.name) - @classmethod - def getnext(cls, fk): - "Get the next value of the iterable" - try: - " First try to generate the next value based on the current allocation" - curr_val = IterValue.objects.filter(iter_key=fk).order_by('-val').values_list('val', flat=True)[0] - incr = Iterable.objects.filter(id=fk.id).values_list('increment', flat=True)[0] - next_val = curr_val + incr - try: - min_val = Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] - max_val = Iterable.objects.filter(id=fk.id).values_list('max_val', flat=True)[0] - if min_val <= next_val <= max_val: - return next_val - except: - log.debug('value out of range - exceeded') - raise exc.ValidationError({ - 'next_val': 'Out of range' - }) - except IndexError: - "Index Error implies that the table has not been intialized - so assign the first value" - return Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] - - - def save(self, *args, **kwargs): - super(IterValue, self).save(*args, **kwargs) - def to_dict(self): return { 'id': self.id, 'val': self.val, + 'iter_key': self.iter_key.id, + 'u_id': self.u_id } - @classmethod - def getnext_dict(cls, fx): - "Get the next value of the iterable" - try: - " First try to generate the next value based on the current allocation" - curr_val = IterValue.objects.filter(iter_key=fk).order_by('-val').values_list('val', flat=True)[0] - incr = Iterable.objects.filter(id=fk.id).values_list('increment', flat=True)[0] - next_val = curr_val + incr - try: - min_val = Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] - max_val = Iterable.objects.filter(id=fk.id).values_list('max_val', flat=True)[0] - if min_val <= next_val <= max_val: - return { - 'next_val' : next_val, - } - except: - log.debug('value out of range - exceeded') - raise exc.ValidationError({ - 'next_val': 'Out of range' - }) - except IndexError: - "Index Error implies that the table has not been intialized - so assign the first value" - first_val = Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] - return { - 'next_val' : next_val, - } - +# @classmethod +# def getnext(cls, fk): +# "Get the next value of the iterable" +# try: +# " First try to generate the next value based on the current allocation" +# curr_val = IterValue.objects.filter(iter_key=fk).order_by('-val').values_list('val', flat=True)[0] +# incr = Iterable.objects.filter(id=fk.id).values_list('increment', flat=True)[0] +# next_val = curr_val + incr +# try: +# min_val = Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] +# max_val = Iterable.objects.filter(id=fk.id).values_list('max_val', flat=True)[0] +# if min_val <= next_val <= max_val: +# return next_val +# except: +# log.debug('value out of range - exceeded') +# raise exc.ValidationError({ +# 'next_val': 'Out of range' +# }) +# except IndexError: +# "Index Error implies that the table has not been intialized - so assign the first value" +# return Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] +# +# +# def save(self, *args, **kwargs): +# super(IterValue, self).save(*args, **kwargs) +# +# def to_dict(self): +# return { +# 'id': self.id, +# 'val': self.val, +# } +# @classmethod +# def getnext_dict(cls, fx): +# "Get the next value of the iterable" +# try: +# " First try to generate the next value based on the current allocation" +# curr_val = IterValue.objects.filter(iter_key=fk).order_by('-val').values_list('val', flat=True)[0] +# incr = Iterable.objects.filter(id=fk.id).values_list('increment', flat=True)[0] +# next_val = curr_val + incr +# try: +# min_val = Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] +# max_val = Iterable.objects.filter(id=fk.id).values_list('max_val', flat=True)[0] +# if min_val <= next_val <= max_val: +# return { +# 'next_val' : next_val, +# } +# except: +# log.debug('value out of range - exceeded') +# raise exc.ValidationError({ +# 'next_val': 'Out of range' +# }) +# except IndexError: +# "Index Error implies that the table has not been intialized - so assign the first value" +# first_val = Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] +# return { +# 'next_val' : next_val, +# } +# +# curr_val = IterValue.objects.filter(iter_key=fk).order_by('-val').values_list('val', flat=True)[0] +# incr = Iterable.objects.filter(id=fk.id).values_list('increment', flat=True)[0] +# next_val = curr_val + incr +# return { +# 'next_val' : next_val, +# } +# +# Signals +def delete_resource_values(sender, instance, **kwargs): + """Delete values when a Resource object is deleted.""" + instance.attributes.delete() # These are instances of Value + + +def change_api_updated_at(sender=None, instance=None, *args, **kwargs): + """Anytime the API is updated, invalidate the cache.""" + djcache.set('api_updated_at_timestamp', timezone.now()) + + +# Register signals +resource_subclasses = Resource.__subclasses__() +for model_class in resource_subclasses: + # Value post_delete + models.signals.post_delete.connect( + delete_resource_values, + sender=model_class, + dispatch_uid='value_post_delete_' + model_class.__name__ + ) + + +# Invalidate Interface cache on save/delete +models.signals.post_save.connect( + change_api_updated_at, sender=Interface, + dispatch_uid='invalidate_cache_post_save_interface' +) +models.signals.post_delete.connect( + change_api_updated_at, sender=Interface, + dispatch_uid='invalidate_cache_post_delete_interface' +) - curr_val = IterValue.objects.filter(iter_key=fk).order_by('-val').values_list('val', flat=True)[0] - incr = Iterable.objects.filter(id=fk.id).values_list('increment', flat=True)[0] - next_val = curr_val + incr - return { - 'next_val' : next_val, - } diff --git a/tests/api_tests/test_iterable.py b/tests/api_tests/test_iterable.py index 0fb8c64b..64c28d53 100644 --- a/tests/api_tests/test_iterable.py +++ b/tests/api_tests/test_iterable.py @@ -36,6 +36,7 @@ def test_creation(client, site): #Validate that the repsonse (which contains the creation data) matches the GET response, upon quering the API payload = get_result(itr_resp) expected = [payload] + get_resp = client.get(itr_uri) assert_success(client.get(itr_uri), expected) # Successfully get a single Network Attribute assert_success(client.get(itr_obj_uri), payload) @@ -152,35 +153,32 @@ def test_deletion(client, site): itr_pk_uri = site.detail_uri('iterable', id=itr['id']) assert_deleted(client.delete(itr_pk_uri)) +def test_del_protect(client, site): + """Test DELETE Protection operations for Iterable.""" + itr_uri = site.list_uri('iterable') - ###TO DO: Validate deletion fails if there are values associated with the Iterable + itr_resp = client.create(itr_uri, name='itr1', description="test-iterable", min_val=10, max_val=20, increment=1) + itr = get_result(itr_resp) + + itr_pk_uri = site.detail_uri('iterable', id=itr['id']) + + itrval_uri = site.list_uri('itervalue') + nval = client.get(reverse('iterable-next-value', args=(site.id, itr['id']))).json()[0] #Get the next value to assign to the itervalue + itrval_resp = client.create(itrval_uri, iter_key=itr['id'], val=nval, u_id='uuid_custA_site1') # create the iterval + + itrval_resp_dict = get_result(itrval_resp) + itrval_obj_uri = site.detail_uri('itervalue', id=itrval_resp_dict['id']) + # Don't allow delete when there's a value associated + assert_error( + client.delete(itr_pk_uri), + status.HTTP_409_CONFLICT + ) + + # Now delete the Value + client.delete(itrval_obj_uri) + + # And safely delete the Iterable + assert_deleted(client.delete(itr_pk_uri)) -# -# attr_uri = site.list_uri('attribute') -# net_uri = site.list_uri('network') -# -# attr_resp = client.create(attr_uri, resource_name='Network', name='attr1') -# attr = get_result(attr_resp) -# attr_obj_uri = site.detail_uri('attribute', id=attr['id']) -# -# # Create a Network with an attribute -# net_resp = client.create( -# net_uri, cidr='10.0.0.0/24', attributes={'attr1': 'foo'} -# ) -# net = get_result(net_resp) -# -# net_obj_uri = site.detail_uri('network', id=net['id']) -# -# # Don't allow delete when there's an attached network -# assert_error( -# client.delete(attr_obj_uri), -# status.HTTP_409_CONFLICT -# ) -# -# # Now delete the Network -# client.delete(net_obj_uri) -# -# # And safely delete the Attribute -# assert_deleted(client.delete(attr_obj_uri)) diff --git a/tests/api_tests/test_itervalues.py b/tests/api_tests/test_itervalues.py new file mode 100644 index 00000000..248e6a46 --- /dev/null +++ b/tests/api_tests/test_itervalues.py @@ -0,0 +1,139 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +import pytest + +# Allow everything in there to access the DB +pytestmark = pytest.mark.django_db + +import copy +from django.core.urlresolvers import reverse +import json +import logging +from rest_framework import status + +from .fixtures import live_server, client, user, site +from .util import ( + assert_created, assert_error, assert_success, assert_deleted, load_json, + Client, load, filter_values, get_result +) + + +log = logging.getLogger(__name__) + +def test_creation(client, site): + """Test creation of an iterable value""" + #First create the Iterable itr1 + itr_uri = site.list_uri('iterable') + itr_resp = client.create(itr_uri, name='itr1', description="test-iterable", min_val=10, max_val=20, increment=1) + itr = get_result(itr_resp) + #Create the first value + itrval_uri = site.list_uri('itervalue') + nval = client.get(reverse('iterable-next-value', args=(site.id, itr['id']))).json()[0] #Get the next value to assign to the itervalue + itrval_resp = client.create(itrval_uri, iter_key=itr['id'], val=nval, u_id='uuid_custA_site1') # create the iterval + + payload = get_result(itrval_resp) + itrval_obj_uri = site.detail_uri('itervalue', id=payload['id']) + assert_success(client.get(itrval_obj_uri), payload) + +def test_update(client, site): + """Test PUT method""" + itr_uri = site.list_uri('iterable') + + itr_resp = client.create(itr_uri, name='itr1', description="test-iterable", min_val=10, max_val=20, increment=1) + itr = get_result(itr_resp) + + itr_pk_uri = site.detail_uri('iterable', id=itr['id']) + + itrval_uri = site.list_uri('itervalue') + nval = client.get(reverse('iterable-next-value', args=(site.id, itr['id']))).json()[0] #Get the next value to assign to the itervalue + itrval_resp = client.create(itrval_uri, iter_key=itr['id'], val=nval, u_id='uuid_custA_site1') # create the iterval + + itrval_resp_dict = get_result(itrval_resp) + itrval_obj_uri = site.detail_uri('itervalue', id=itrval_resp_dict['id']) + #Update the U_ID + params = {'iter_key': itr['id'], 'val': nval, 'u_id': 'new_update' } + itrval_backup = copy.deepcopy(itrval_resp_dict) + itrval_backup.update(params) + assert_success( + client.update(itrval_obj_uri, **params), + itrval_backup + ) + + #Reset the object back to it's intital state + assert_success( + client.update(itrval_obj_uri, **itrval_resp_dict), + itrval_resp_dict + ) + + + +def test_partial_update(client, site): + """Test PATCH method""" + itr_uri = site.list_uri('iterable') + + itr_resp = client.create(itr_uri, name='itr1', description="test-iterable", min_val=10, max_val=20, increment=1) + itr = get_result(itr_resp) + + itr_pk_uri = site.detail_uri('iterable', id=itr['id']) + + itrval_uri = site.list_uri('itervalue') + nval = client.get(reverse('iterable-next-value', args=(site.id, itr['id']))).json()[0] #Get the next value to assign to the itervalue + itrval_resp = client.create(itrval_uri, iter_key=itr['id'], val=nval, u_id='uuid_custA_site1') # create the iterval + + itrval_resp_dict = get_result(itrval_resp) + itrval_obj_uri = site.detail_uri('itervalue', id=itrval_resp_dict['id']) + #Update the U_ID + params = {'u_id': 'new_update' } + itrval_backup = copy.deepcopy(itrval_resp_dict) + itrval_backup.update(params) + assert_success( + client.partial_update(itrval_obj_uri, **params), + itrval_backup + ) + +def test_deletion(client, site): + """Test DELETE method""" + itr_uri = site.list_uri('iterable') + + itr_resp = client.create(itr_uri, name='itr1', description="test-iterable", min_val=10, max_val=20, increment=1) + itr = get_result(itr_resp) + + itr_pk_uri = site.detail_uri('iterable', id=itr['id']) + + itrval_uri = site.list_uri('itervalue') + nval = client.get(reverse('iterable-next-value', args=(site.id, itr['id']))).json()[0] #Get the next value to assign to the itervalue + itrval_resp = client.create(itrval_uri, iter_key=itr['id'], val=nval, u_id='uuid_custA_site1') # create the iterval + + itrval_resp_dict = get_result(itrval_resp) + itrval_obj_uri = site.detail_uri('itervalue', id=itrval_resp_dict['id']) + + + assert_deleted(client.delete(itrval_obj_uri)) +#def test_bulk_operations(client, site): +# """Test creating/updating multiple Iterables at once.""" +# +# itr_uri = site.list_uri('iterable') +# +# # Successfully create a collection of Iterables +# collection = [ +# {'name': 'itr1', 'description': 'iterable1', 'min_val': 10, 'max_val': 20, 'increment': 1}, +# {'name': 'itr2', 'description': 'iterable2', 'min_val': 10, 'max_val': 20, 'increment': 1}, +# {'name': 'itr3', 'description': 'iterable3', 'min_val': 10, 'max_val': 20, 'increment': 1}, +# ] +# collection_response = client.post( +# itr_uri, +# data=json.dumps(collection) +# ) +# assert_created(collection_response, None) +# +# # Successfully get all created Attributes +# output = collection_response.json() +# cli_resp = client.get(itr_uri) +# payload = get_result(output) +# +# assert_success( +# client.get(itr_uri), +# payload +# ) +# diff --git a/tests/model_tests/test_iterables.py b/tests/model_tests/test_iterables.py index 9def0696..1c6c452a 100644 --- a/tests/model_tests/test_iterables.py +++ b/tests/model_tests/test_iterables.py @@ -49,7 +49,8 @@ def test_nextval(site): itrv1 = models.IterValue.objects.create( val = itr.get_next_value()[0], u_id='jasdgijn001', - iter_key=itr + iter_key=itr, + site=site ) @@ -69,7 +70,8 @@ def test_valrange(site): itrv0 = models.IterValue.objects.create( val = 10, u_id='jasdgijn001', - iter_key=itr + iter_key=itr, + site=site ) # itrv1 = models.IterValue.objects.create( diff --git a/tests/model_tests/test_itervalues.py b/tests/model_tests/test_itervalues.py index f13ada24..d5dc4441 100644 --- a/tests/model_tests/test_itervalues.py +++ b/tests/model_tests/test_itervalues.py @@ -28,7 +28,8 @@ def test_creation(site): itrv1 = models.IterValue.objects.create( u_id='jasdgijn001', - iter_key=itr + iter_key=itr, + site=site ) # itrv2 = models.IterValue.objects.create( @@ -61,27 +62,31 @@ def test_getnext(site): site = site ) itrv1 = models.IterValue.objects.create( - val = models.IterValue.getnext(itr), + val = itr.get_next_value()[0], u_id='jasdgijn001', - iter_key=itr + iter_key=itr, + site=site ) itrv2 = models.IterValue.objects.create( - val = models.IterValue.getnext(itr), + val = itr.get_next_value()[0], u_id='jasdgijn002', - iter_key=itr + iter_key=itr, + site=site ) itrv3 = models.IterValue.objects.create( - val = models.IterValue.getnext(itr2), + val = itr2.get_next_value()[0], u_id='jasdgijn001', - iter_key=itr2 + iter_key=itr2, + site=site ) itrv4 = models.IterValue.objects.create( - val = models.IterValue.getnext(itr2), + val = itr2.get_next_value()[0], u_id='jasdgijn002', - iter_key=itr2 + iter_key=itr2, + site=site ) - assert models.IterValue.getnext(itr) == 54 + assert itr.get_next_value()[0] == 54 assert itrv2.val == 52 assert itrv4.val == 1300 @@ -96,9 +101,10 @@ def test_save(site): site = site ) itrv1 = models.IterValue.objects.create( - val = models.IterValue.getnext(itr), + val = itr.get_next_value()[0], u_id='jasdgijn001', - iter_key=itr + iter_key=itr, + site=site ) itrv1.save() @@ -122,24 +128,32 @@ def test_delete(site): site = site ) itrv1 = models.IterValue.objects.create( - val = models.IterValue.getnext(itr), + val = itr.get_next_value()[0], u_id='jasdgijn001', - iter_key=itr + iter_key=itr, + site=site + ) itrv2 = models.IterValue.objects.create( - val = models.IterValue.getnext(itr), + val = itr.get_next_value()[0], u_id='jasdgijn002', - iter_key=itr + iter_key=itr, + site=site + ) itrv3 = models.IterValue.objects.create( - val = models.IterValue.getnext(itr2), + val = itr2.get_next_value()[0], u_id='jasdgijn001', - iter_key=itr2 + iter_key=itr2, + site=site + ) itrv4 = models.IterValue.objects.create( - val = models.IterValue.getnext(itr2), + val = itr2.get_next_value()[0], u_id='jasdgijn002', - iter_key=itr2 + iter_key=itr2, + site=site + ) models.IterValue.objects.filter(u_id=service_UID).all().delete() @@ -163,27 +177,35 @@ def test_protected_delete(site): increment = 100, site = site ) + itrv1 = models.IterValue.objects.create( - val = models.IterValue.getnext(itr), + val = itr.get_next_value()[0], u_id='jasdgijn001', - iter_key=itr + iter_key=itr, + site=site + ) itrv2 = models.IterValue.objects.create( - val = models.IterValue.getnext(itr), + val = itr.get_next_value()[0], u_id='jasdgijn002', - iter_key=itr + iter_key=itr, + site=site + ) itrv3 = models.IterValue.objects.create( - val = models.IterValue.getnext(itr2), + val = itr2.get_next_value()[0], u_id='jasdgijn001', - iter_key=itr2 + iter_key=itr2, + site=site + ) itrv4 = models.IterValue.objects.create( - val = models.IterValue.getnext(itr2), + val = itr2.get_next_value()[0], u_id='jasdgijn002', - iter_key=itr2 - ) + iter_key=itr2, + site=site + ) with pytest.raises(exc.ProtectedError): models.Iterable.objects.all().delete() diff --git a/tests/tests/api_tests/cassettes/15f1a60d19dfadf71e943dca17d8914a87865d85.json b/tests/tests/api_tests/cassettes/15f1a60d19dfadf71e943dca17d8914a87865d85.json deleted file mode 100644 index 6cf0ed64..00000000 --- a/tests/tests/api_tests/cassettes/15f1a60d19dfadf71e943dca17d8914a87865d85.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/30/ancestors/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27},{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28},{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/30/ancestors/"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/30/ancestors/?ascending=True"}, "response": {"body": {"string": "[{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29},{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/30/ancestors/?ascending=True"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json b/tests/tests/api_tests/cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json new file mode 100644 index 00000000..899ea8e2 --- /dev/null +++ b/tests/tests/api_tests/cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"u_id\": \"uuid_custA_site1\", \"val\": 10, \"iter_key\": 4}", "encoding": "utf-8"}, "headers": {"Content-Length": ["54"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=y2AvWTGrmhvIneAbIhndfn18Lyectay4; sessionid=2b86gw09ua5rbq236gmsels9bhvasluq"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/itervalue/"}, "response": {"body": {"string": "{\"u_id\":\"uuid_custA_site1\",\"iter_key\":4,\"id\":4,\"val\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/itervalue/4/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/itervalue/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/1c3466411abc39bbee145c78f3b17b973a427270.json b/tests/tests/api_tests/cassettes/1c3466411abc39bbee145c78f3b17b973a427270.json new file mode 100644 index 00000000..1f88c2e2 --- /dev/null +++ b/tests/tests/api_tests/cassettes/1c3466411abc39bbee145c78f3b17b973a427270.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=bunHaDQp1DC0yPpNp2pLwK6dIVy78UiU; sessionid=4qieimfsezec5evpryle2uckel4ylqj0"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/5/networks/1/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Fri, 16 Sep 2016 02:11:21 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/5/networks/1/"}, "recorded_at": "2016-09-16T02:11:21"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/1dadb4e888302c283d82b63131b5b51b05655b17.json b/tests/tests/api_tests/cassettes/1dadb4e888302c283d82b63131b5b51b05655b17.json deleted file mode 100644 index e4d4742d..00000000 --- a/tests/tests/api_tests/cassettes/1dadb4e888302c283d82b63131b5b51b05655b17.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"cidr\": \"10.250.0.0/25\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["25"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=5Nb2gfe2EWHsouAWDDIjKiwka80B66L7; sessionid=0k418lkzisgaoqsygkdewfcm39a165sd"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/11/networks/"}, "response": {"body": {"string": "{\"parent_id\":41,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.250.0.0\",\"attributes\":{},\"site_id\":11,\"id\":42}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/11/networks/42/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/11/networks/"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json b/tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json deleted file mode 100644 index b46f7846..00000000 --- a/tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "[{\"description\": \"This is the best attribute ever.\", \"min_val\": 10, \"max_val\": 20, \"increment\": 1, \"id\": 2, \"name\": \"itr1\"}, {\"description\": \"This is the best attribute ever.\", \"min_val\": 10, \"max_val\": 20, \"increment\": 1, \"id\": 3, \"name\": \"itr2\"}, {\"description\": \"This is the best attribute ever.\", \"min_val\": 10, \"max_val\": 20, \"increment\": 1, \"id\": 4, \"name\": \"itr3\"}]", "encoding": "utf-8"}, "headers": {"Content-Length": ["372"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=6Eklxi6HzGPg0dZwjF2FXqvbXDQJKmGP; sessionid=9bo0utnz3t5qi0y8o350q87kc8irekmz"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/2/iterable/"}, "response": {"body": {"string": "\n\n\n \n NSoT Error\n\n \n \n \n \n
    \n
    \n
    \n
    \n
    \n Error Loading Application\n
    \n
    \n You've failed to access the NSoT Frontend Application.\n This usually means you've tried to access without an\n authenticating proxy. Please contact your administrator.\n
    \n
    \n 500 - INTERNAL SERVER ERROR\n
    \n
    \n
    \n
    \n
    \n
    \n \n\n\n", "encoding": "utf-8"}, "headers": {"Date": ["Wed, 14 Sep 2016 15:43:24 GMT"], "Content-Type": ["text/html; charset=utf-8"], "X-Frame-Options": ["SAMEORIGIN"], "Vary": ["Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"]}, "status": {"message": "INTERNAL SERVER ERROR", "code": 500}, "url": "http://localhost:8081/api/sites/2/iterable/"}, "recorded_at": "2016-09-14T15:43:24"}, {"request": {"body": {"string": "[{\"description\": \"This is the best attribute ever.\", \"min_val\": 10, \"max_val\": 20, \"increment\": 1, \"id\": 2, \"name\": \"itr1\"}, {\"description\": \"This is the best attribute ever.\", \"min_val\": 10, \"max_val\": 20, \"increment\": 1, \"id\": 3, \"name\": \"itr2\"}, {\"description\": \"This is the best attribute ever.\", \"min_val\": 10, \"max_val\": 20, \"increment\": 1, \"id\": 4, \"name\": \"itr3\"}]", "encoding": "utf-8"}, "headers": {"Content-Length": ["372"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=SOnLsPXRnXVTwvtp5kAJlgrlJP86RWeH; sessionid=y75696xnngkx0mhdsqmdvp3r4p32veux"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/2/iterable/"}, "response": {"body": {"string": "\n\n\n \n NSoT Error\n\n \n \n \n \n
    \n
    \n
    \n
    \n
    \n Error Loading Application\n
    \n
    \n You've failed to access the NSoT Frontend Application.\n This usually means you've tried to access without an\n authenticating proxy. Please contact your administrator.\n
    \n
    \n 500 - INTERNAL SERVER ERROR\n
    \n
    \n
    \n
    \n
    \n
    \n \n\n\n", "encoding": "utf-8"}, "headers": {"Date": ["Wed, 14 Sep 2016 19:16:58 GMT"], "Content-Type": ["text/html; charset=utf-8"], "X-Frame-Options": ["SAMEORIGIN"], "Vary": ["Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"]}, "status": {"message": "INTERNAL SERVER ERROR", "code": 500}, "url": "http://localhost:8081/api/sites/2/iterable/"}, "recorded_at": "2016-09-14T19:16:58"}, {"request": {"body": {"string": "[{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"iterable1\"}, {\"max_val\": 20, \"min_val\": 10, \"name\": \"itr2\", \"increment\": 1, \"description\": \"iterable2\"}, {\"max_val\": 20, \"min_val\": 10, \"name\": \"itr3\", \"increment\": 1, \"description\": \"iterable3\"}]", "encoding": "utf-8"}, "headers": {"Content-Length": ["276"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/iterable/"}, "response": {"body": {"string": "[{\"description\":\"iterable1\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":2,\"name\":\"itr1\"},{\"description\":\"iterable2\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":3,\"name\":\"itr2\"},{\"description\":\"iterable3\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":4,\"name\":\"itr3\"}]", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=dZ4KQLC7cWdbrpMiPOEMpzzPq8puW278; expires=Thu, 14-Sep-2017 19:46:06 GMT; Max-Age=31449600; Path=/", "sessionid=bvbgbc0fgqhj3nxg3ooxksosym6vyga2; expires=Thu, 29-Sep-2016 19:46:06 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/iterable/"}, "recorded_at": "2016-09-15T19:46:06"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=dZ4KQLC7cWdbrpMiPOEMpzzPq8puW278; sessionid=bvbgbc0fgqhj3nxg3ooxksosym6vyga2"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterable/"}, "response": {"body": {"string": "[{\"description\":\"iterable1\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":2,\"name\":\"itr1\"},{\"description\":\"iterable2\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":3,\"name\":\"itr2\"},{\"description\":\"iterable3\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":4,\"name\":\"itr3\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterable/"}, "recorded_at": "2016-09-15T19:46:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/2113d8843e034c7465037088edd7480e9b7eefaa.json b/tests/tests/api_tests/cassettes/2113d8843e034c7465037088edd7480e9b7eefaa.json deleted file mode 100644 index 91633421..00000000 --- a/tests/tests/api_tests/cassettes/2113d8843e034c7465037088edd7480e9b7eefaa.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Network\", \"name\": \"attr1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["45"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":6,\"id\":24,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"attr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=UI3V8INIleFqqYuZQ6yUKXJ8EVg9b6CF; expires=Thu, 14-Sep-2017 19:26:32 GMT; Max-Age=31449600; Path=/", "sessionid=odnmqyrtq1j5mcs7qs5pw4pk99to4nfi; expires=Thu, 29-Sep-2016 19:26:32 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/attributes/24/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/attributes/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/23c90370f99dbada2f22883aba385169e51adcd7.json b/tests/tests/api_tests/cassettes/23c90370f99dbada2f22883aba385169e51adcd7.json deleted file mode 100644 index 27b762db..00000000 --- a/tests/tests/api_tests/cassettes/23c90370f99dbada2f22883aba385169e51adcd7.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fVEhijHngWo6YD0BdBVcbjcVSKAw5jjI; sessionid=3hohaujnt0yiwoqlpx4ynuebimgzyhr0"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/networks/25/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/networks/25/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/2bf3bda6f1cccbb63afa6a53385ad739959e7bdc.json b/tests/tests/api_tests/cassettes/2bf3bda6f1cccbb63afa6a53385ad739959e7bdc.json deleted file mode 100644 index 46c10788..00000000 --- a/tests/tests/api_tests/cassettes/2bf3bda6f1cccbb63afa6a53385ad739959e7bdc.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Network\", \"name\": \"attr1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["45"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":5,\"id\":23,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"attr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=4r3hEQaPIT4t9wCPw79KOZm0ltbCc4Ig; expires=Thu, 14-Sep-2017 19:26:32 GMT; Max-Age=31449600; Path=/", "sessionid=ikkkqqym6omp9400yeocl7fykfaecz3t; expires=Thu, 29-Sep-2016 19:26:32 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/attributes/23/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/attributes/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/32e5efafbb79d39ad5e9fc281baaab9caf809ddf.json b/tests/tests/api_tests/cassettes/32e5efafbb79d39ad5e9fc281baaab9caf809ddf.json deleted file mode 100644 index 81899094..00000000 --- a/tests/tests/api_tests/cassettes/32e5efafbb79d39ad5e9fc281baaab9caf809ddf.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/siblings/"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/siblings/"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/siblings/?include_self=True"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/siblings/?include_self=True"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/36035975b61f5aa73bbf34bc8bd23c344da7c17d.json b/tests/tests/api_tests/cassettes/36035975b61f5aa73bbf34bc8bd23c344da7c17d.json deleted file mode 100644 index 803fa253..00000000 --- a/tests/tests/api_tests/cassettes/36035975b61f5aa73bbf34bc8bd23c344da7c17d.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=5Nb2gfe2EWHsouAWDDIjKiwka80B66L7; sessionid=0k418lkzisgaoqsygkdewfcm39a165sd"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/11/networks/1.0.0.1/32/closest_parent/"}, "response": {"body": {"string": "{\"error\":{\"message\":\"No such Network found at (site_id, id) = (11, 1.0.0.1/32)\",\"code\":404}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "NOT FOUND", "code": 404}, "url": "http://localhost:8081/api/sites/11/networks/1.0.0.1/32/closest_parent/"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/392a3d2104215406ba907120a6e9b9f81f64074a.json b/tests/tests/api_tests/cassettes/392a3d2104215406ba907120a6e9b9f81f64074a.json deleted file mode 100644 index bf1a8aa0..00000000 --- a/tests/tests/api_tests/cassettes/392a3d2104215406ba907120a6e9b9f81f64074a.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fbfrnCWHgWpKFBPXtkA5QvOxfid4lSJ4; sessionid=uvyegq1cpssdb2tmn1j7desznkggggiq"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/networks/10.0.0.0/24/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":1,\"id\":1}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:30 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/networks/10.0.0.0/24/"}, "recorded_at": "2016-09-15T19:26:30"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/42f180af8d58bc0b7907a76c580089938f93235f.json b/tests/tests/api_tests/cassettes/42f180af8d58bc0b7907a76c580089938f93235f.json deleted file mode 100644 index 48ab3436..00000000 --- a/tests/tests/api_tests/cassettes/42f180af8d58bc0b7907a76c580089938f93235f.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"cidr\": \"192.168.3.0/24\", \"state\": \"reserved\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["47"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/10/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.3.0\",\"attributes\":{},\"site_id\":10,\"id\":39}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=qdEot7QPS22fHtbG3wH9FC4gKrSfT5nt; expires=Thu, 14-Sep-2017 19:26:34 GMT; Max-Age=31449600; Path=/", "sessionid=hsj4nc87wjnyfu04oh861ycq05w048pd; expires=Thu, 29-Sep-2016 19:26:34 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/10/networks/39/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/10/networks/"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/460bdf3590df980e07baa9dc3ad9360387deb771.json b/tests/tests/api_tests/cassettes/460bdf3590df980e07baa9dc3ad9360387deb771.json deleted file mode 100644 index a70c811e..00000000 --- a/tests/tests/api_tests/cassettes/460bdf3590df980e07baa9dc3ad9360387deb771.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=qdEot7QPS22fHtbG3wH9FC4gKrSfT5nt; sessionid=hsj4nc87wjnyfu04oh861ycq05w048pd"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/10/networks/reserved/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.3.0\",\"attributes\":{},\"site_id\":10,\"id\":39}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/10/networks/reserved/"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json b/tests/tests/api_tests/cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json new file mode 100644 index 00000000..385f06ea --- /dev/null +++ b/tests/tests/api_tests/cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=NiQoEIkppfTi5USNBFW874hIz3g4gKLC; sessionid=sawon12wcicqr64u4jyri5nmjeg2vr1i"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/6/iterable/8/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:40:56 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/6/iterable/8/"}, "recorded_at": "2016-09-19T08:40:56"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/49b087b5dcdebe88bdec9374a659582ecef4cf0e.json b/tests/tests/api_tests/cassettes/49b087b5dcdebe88bdec9374a659582ecef4cf0e.json new file mode 100644 index 00000000..945742ed --- /dev/null +++ b/tests/tests/api_tests/cassettes/49b087b5dcdebe88bdec9374a659582ecef4cf0e.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=K3YxsPE38AqJyCrI7lqCPeMLbe0l6jaJ; sessionid=d4r0lciokadcr9kkhrn1k29syrl9m55u"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/itervalue/1/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:40:56 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/itervalue/1/"}, "recorded_at": "2016-09-19T08:40:56"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/4bc8b61bdb25c7dca7049a8f66fa3ed1f6c06033.json b/tests/tests/api_tests/cassettes/4bc8b61bdb25c7dca7049a8f66fa3ed1f6c06033.json deleted file mode 100644 index f68f3e8d..00000000 --- a/tests/tests/api_tests/cassettes/4bc8b61bdb25c7dca7049a8f66fa3ed1f6c06033.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/32/descendents/"}, "response": {"body": {"string": "[]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/32/descendents/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/4dbea2112694a342065bc29ab982b640d9de05f8.json b/tests/tests/api_tests/cassettes/4dbea2112694a342065bc29ab982b640d9de05f8.json deleted file mode 100644 index d81f3db1..00000000 --- a/tests/tests/api_tests/cassettes/4dbea2112694a342065bc29ab982b640d9de05f8.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_address/"}, "response": {"body": {"string": "[\"10.16.2.3/32\"]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_address/"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_address/?num=3"}, "response": {"body": {"string": "[\"10.16.2.3/32\",\"10.16.2.5/32\",\"10.16.2.6/32\"]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_address/?num=3"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_address/?num=potato"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"num\":\"invalid literal for int() with base 10: 'potato'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_address/?num=potato"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/52aa273d56a0d95e1a8e65f1b96a8ea09673ed4e.json b/tests/tests/api_tests/cassettes/52aa273d56a0d95e1a8e65f1b96a8ea09673ed4e.json deleted file mode 100644 index fbed6c89..00000000 --- a/tests/tests/api_tests/cassettes/52aa273d56a0d95e1a8e65f1b96a8ea09673ed4e.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fbfrnCWHgWpKFBPXtkA5QvOxfid4lSJ4; sessionid=uvyegq1cpssdb2tmn1j7desznkggggiq"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":1,\"id\":1}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:30 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/networks/"}, "recorded_at": "2016-09-15T19:26:30"}, {"request": {"body": {"string": "{\"network_address\": \"10.8.0.0\", \"prefix_length\": 16}", "encoding": "utf-8"}, "headers": {"Content-Length": ["52"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fbfrnCWHgWpKFBPXtkA5QvOxfid4lSJ4; sessionid=uvyegq1cpssdb2tmn1j7desznkggggiq"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.8.0.0\",\"attributes\":{},\"site_id\":1,\"id\":3}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/networks/3/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:30 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/networks/"}, "recorded_at": "2016-09-15T19:26:30"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/54012bfb1328c4198e1e3265a991a333a854b08c.json b/tests/tests/api_tests/cassettes/54012bfb1328c4198e1e3265a991a333a854b08c.json deleted file mode 100644 index 36ca47d9..00000000 --- a/tests/tests/api_tests/cassettes/54012bfb1328c4198e1e3265a991a333a854b08c.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/33/next_network/?prefix_length=28"}, "response": {"body": {"string": "[\"10.16.2.0/28\"]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/33/next_network/?prefix_length=28"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/33/next_network/?num=4&prefix_length=27"}, "response": {"body": {"string": "[\"10.16.2.0/27\",\"10.16.2.32/27\",\"10.16.2.64/27\",\"10.16.2.96/27\"]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/33/next_network/?num=4&prefix_length=27"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/33/next_network/"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"prefix_length\":\"int() argument must be a string or a number, not 'NoneType'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/33/next_network/"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/33/next_network/?prefix_length=ralph"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"prefix_length\":\"invalid literal for int() with base 10: 'ralph'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/33/next_network/?prefix_length=ralph"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/33/next_network/?prefix_length=14"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"prefix_length\":\"New prefix must be longer than 25\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/33/next_network/?prefix_length=14"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/33/next_network/?prefix_length=65"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"prefix_length\":\"prefix length diff 65 is invalid for netblock 10.16.2.0/25\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/33/next_network/?prefix_length=65"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/33/next_network/?num=potato&prefix_length=28"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"num\":\"invalid literal for int() with base 10: 'potato'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/33/next_network/?num=potato&prefix_length=28"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/5863e2415076faee1762b5a9bd036ffdf687ec9e.json b/tests/tests/api_tests/cassettes/5863e2415076faee1762b5a9bd036ffdf687ec9e.json deleted file mode 100644 index 0d641ed6..00000000 --- a/tests/tests/api_tests/cassettes/5863e2415076faee1762b5a9bd036ffdf687ec9e.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/29/descendents/"}, "response": {"body": {"string": "[{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/29/descendents/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json b/tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json deleted file mode 100644 index c42a142f..00000000 --- a/tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":5,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=XrXkrh1WPxDK7yINwdM9PeZA2B17Atny; expires=Thu, 14-Sep-2017 19:46:06 GMT; Max-Age=31449600; Path=/", "sessionid=69sawjv6hjojob78v7juonrrqkd0cyfa; expires=Thu, 29-Sep-2016 19:46:06 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/iterable/5/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/iterable/"}, "recorded_at": "2016-09-15T19:46:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/5c61e78c8eb4ea24b812b2757d34f0425f62c4ce.json b/tests/tests/api_tests/cassettes/5c61e78c8eb4ea24b812b2757d34f0425f62c4ce.json deleted file mode 100644 index d4783b22..00000000 --- a/tests/tests/api_tests/cassettes/5c61e78c8eb4ea24b812b2757d34f0425f62c4ce.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "[\n {\n \"constraints\": {\n \"allow_empty\": true\n }, \n \"description\": \"Device cluster.\", \n \"name\": \"cluster\", \n \"resource_name\": \"Device\"\n }, \n {\n \"description\": \"Foo for Devices.\", \n \"name\": \"foo\", \n \"resource_name\": \"Device\"\n }, \n {\n \"description\": \"Device owner.\", \n \"name\": \"owner\", \n \"resource_name\": \"Device\"\n }, \n {\n \"constraints\": {\n \"allow_empty\": true\n }, \n \"description\": \"Network cluster.\", \n \"name\": \"cluster\", \n \"resource_name\": \"Network\"\n }, \n {\n \"description\": \"Foo for Networks.\", \n \"name\": \"foo\", \n \"resource_name\": \"Network\"\n }, \n {\n \"description\": \"Network owner.\", \n \"name\": \"owner\", \n \"resource_name\": \"Network\"\n }, \n {\n \"description\": \"Address hostname.\", \n \"name\": \"hostname\", \n \"resource_name\": \"Network\"\n }, \n {\n \"constraints\": {\n \"valid_values\": [\n \"300\", \n \"400\"\n ]\n }, \n \"description\": \"Network VLAN.\", \n \"name\": \"vlan\", \n \"resource_name\": \"Network\"\n },\n {\n \"constraints\": {\n \"valid_values\": [\n \"300\", \n \"400\"\n ]\n }, \n \"description\": \"Interface VLAN.\", \n \"name\": \"vlan\", \n \"resource_name\": \"Interface\"\n },\n {\n \"description\": \"Interface scope.\", \n \"name\": \"scope\", \n \"resource_name\": \"Interface\"\n } \n]\n", "encoding": "utf-8"}, "headers": {"Content-Length": ["1577"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/attributes/"}, "response": {"body": {"string": "[{\"multi\":false,\"resource_name\":\"Device\",\"description\":\"Device cluster.\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":13,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":true},\"name\":\"cluster\"},{\"multi\":false,\"resource_name\":\"Device\",\"description\":\"Foo for Devices.\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":14,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"foo\"},{\"multi\":false,\"resource_name\":\"Device\",\"description\":\"Device owner.\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":15,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"owner\"},{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"Network cluster.\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":16,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":true},\"name\":\"cluster\"},{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"Foo for Networks.\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":17,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"foo\"},{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"Network owner.\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":18,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"owner\"},{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"Address hostname.\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":19,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"hostname\"},{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"Network VLAN.\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":20,\"constraints\":{\"pattern\":\"\",\"valid_values\":[\"300\",\"400\"],\"allow_empty\":false},\"name\":\"vlan\"},{\"multi\":false,\"resource_name\":\"Interface\",\"description\":\"Interface VLAN.\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":21,\"constraints\":{\"pattern\":\"\",\"valid_values\":[\"300\",\"400\"],\"allow_empty\":false},\"name\":\"vlan\"},{\"multi\":false,\"resource_name\":\"Interface\",\"description\":\"Interface scope.\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":22,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"scope\"}]", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=umh12xybXchIT08UkvhDjisTfClPAcGu; expires=Thu, 14-Sep-2017 19:26:31 GMT; Max-Age=31449600; Path=/", "sessionid=8olrvik6cxu2dovrzhfbd7m2qb5dglbb; expires=Thu, 29-Sep-2016 19:26:31 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/attributes/"}, "recorded_at": "2016-09-15T19:26:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/654f6226f909731ce2a16f95ad58333e5d46b358.json b/tests/tests/api_tests/cassettes/654f6226f909731ce2a16f95ad58333e5d46b358.json deleted file mode 100644 index b605cbe1..00000000 --- a/tests/tests/api_tests/cassettes/654f6226f909731ce2a16f95ad58333e5d46b358.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.0/25/ancestors/?ascending=True"}, "response": {"body": {"string": "[{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29},{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.0/25/ancestors/?ascending=True"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/65ad1126d5af748c76fa8186a04e9db94caa4266.json b/tests/tests/api_tests/cassettes/65ad1126d5af748c76fa8186a04e9db94caa4266.json deleted file mode 100644 index 235970a6..00000000 --- a/tests/tests/api_tests/cassettes/65ad1126d5af748c76fa8186a04e9db94caa4266.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/27/descendents/"}, "response": {"body": {"string": "[{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28},{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29},{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/27/descendents/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/11f97becd90041963d52a7bc2fe0a32eff1b8250.json b/tests/tests/api_tests/cassettes/65e0942f1ad3a714b8e9b5136374de2c77708332.json similarity index 54% rename from tests/tests/api_tests/cassettes/11f97becd90041963d52a7bc2fe0a32eff1b8250.json rename to tests/tests/api_tests/cassettes/65e0942f1ad3a714b8e9b5136374de2c77708332.json index c7a9e40e..58fd0ad8 100644 --- a/tests/tests/api_tests/cassettes/11f97becd90041963d52a7bc2fe0a32eff1b8250.json +++ b/tests/tests/api_tests/cassettes/65e0942f1ad3a714b8e9b5136374de2c77708332.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":7,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=H5jFJAZNThAr06Houye4tjtRZav9twc2; expires=Thu, 14-Sep-2017 19:46:06 GMT; Max-Age=31449600; Path=/", "sessionid=t1rbmtqvhkc9toxtz181vwtq59yp7ow6; expires=Thu, 29-Sep-2016 19:46:06 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/iterable/7/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/iterable/"}, "recorded_at": "2016-09-15T19:46:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":8,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=NiQoEIkppfTi5USNBFW874hIz3g4gKLC; expires=Mon, 18-Sep-2017 08:40:56 GMT; Max-Age=31449600; Path=/", "sessionid=sawon12wcicqr64u4jyri5nmjeg2vr1i; expires=Mon, 03-Oct-2016 08:40:56 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/iterable/8/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:40:56 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/iterable/"}, "recorded_at": "2016-09-19T08:40:56"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/66279b39bd62a3954a7525a47266dc24230c10f7.json b/tests/tests/api_tests/cassettes/66279b39bd62a3954a7525a47266dc24230c10f7.json deleted file mode 100644 index 99610e0b..00000000 --- a/tests/tests/api_tests/cassettes/66279b39bd62a3954a7525a47266dc24230c10f7.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.2/32/descendents/"}, "response": {"body": {"string": "[]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.2/32/descendents/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/67a69da5f6e63f009f084ad75653f7e9e9da6fae.json b/tests/tests/api_tests/cassettes/67a69da5f6e63f009f084ad75653f7e9e9da6fae.json deleted file mode 100644 index 05e9e618..00000000 --- a/tests/tests/api_tests/cassettes/67a69da5f6e63f009f084ad75653f7e9e9da6fae.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/30/children/"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/30/children/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/6811d21d4bfdf0a306e2aa7d0d6c892825fd907b.json b/tests/tests/api_tests/cassettes/6811d21d4bfdf0a306e2aa7d0d6c892825fd907b.json deleted file mode 100644 index 00be5751..00000000 --- a/tests/tests/api_tests/cassettes/6811d21d4bfdf0a306e2aa7d0d6c892825fd907b.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "[\n {\n \"constraints\": {\n \"allow_empty\": true\n }, \n \"description\": \"Device cluster.\", \n \"name\": \"cluster\", \n \"resource_name\": \"Device\"\n }, \n {\n \"description\": \"Foo for Devices.\", \n \"name\": \"foo\", \n \"resource_name\": \"Device\"\n }, \n {\n \"description\": \"Device owner.\", \n \"name\": \"owner\", \n \"resource_name\": \"Device\"\n }, \n {\n \"constraints\": {\n \"allow_empty\": true\n }, \n \"description\": \"Network cluster.\", \n \"name\": \"cluster\", \n \"resource_name\": \"Network\"\n }, \n {\n \"description\": \"Foo for Networks.\", \n \"name\": \"foo\", \n \"resource_name\": \"Network\"\n }, \n {\n \"description\": \"Network owner.\", \n \"name\": \"owner\", \n \"resource_name\": \"Network\"\n }, \n {\n \"description\": \"Address hostname.\", \n \"name\": \"hostname\", \n \"resource_name\": \"Network\"\n }, \n {\n \"constraints\": {\n \"valid_values\": [\n \"300\", \n \"400\"\n ]\n }, \n \"description\": \"Network VLAN.\", \n \"name\": \"vlan\", \n \"resource_name\": \"Network\"\n },\n {\n \"constraints\": {\n \"valid_values\": [\n \"300\", \n \"400\"\n ]\n }, \n \"description\": \"Interface VLAN.\", \n \"name\": \"vlan\", \n \"resource_name\": \"Interface\"\n },\n {\n \"description\": \"Interface scope.\", \n \"name\": \"scope\", \n \"resource_name\": \"Interface\"\n } \n]\n", "encoding": "utf-8"}, "headers": {"Content-Length": ["1577"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/attributes/"}, "response": {"body": {"string": "[{\"multi\":false,\"resource_name\":\"Device\",\"description\":\"Device cluster.\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":3,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":true},\"name\":\"cluster\"},{\"multi\":false,\"resource_name\":\"Device\",\"description\":\"Foo for Devices.\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":4,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"foo\"},{\"multi\":false,\"resource_name\":\"Device\",\"description\":\"Device owner.\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":5,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"owner\"},{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"Network cluster.\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":6,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":true},\"name\":\"cluster\"},{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"Foo for Networks.\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":7,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"foo\"},{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"Network owner.\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":8,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"owner\"},{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"Address hostname.\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":9,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"hostname\"},{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"Network VLAN.\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":10,\"constraints\":{\"pattern\":\"\",\"valid_values\":[\"300\",\"400\"],\"allow_empty\":false},\"name\":\"vlan\"},{\"multi\":false,\"resource_name\":\"Interface\",\"description\":\"Interface VLAN.\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":11,\"constraints\":{\"pattern\":\"\",\"valid_values\":[\"300\",\"400\"],\"allow_empty\":false},\"name\":\"vlan\"},{\"multi\":false,\"resource_name\":\"Interface\",\"description\":\"Interface scope.\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":12,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"scope\"}]", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; expires=Thu, 14-Sep-2017 19:26:31 GMT; Max-Age=31449600; Path=/", "sessionid=u3ys6nksienu66gy57l1poda9n870184; expires=Thu, 29-Sep-2016 19:26:31 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/attributes/"}, "recorded_at": "2016-09-15T19:26:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/683afd1f2714721d518b5a7bd1baee83385a73e8.json b/tests/tests/api_tests/cassettes/683afd1f2714721d518b5a7bd1baee83385a73e8.json deleted file mode 100644 index faff53f2..00000000 --- a/tests/tests/api_tests/cassettes/683afd1f2714721d518b5a7bd1baee83385a73e8.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/31/root/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/31/root/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/68a03035213ebcbf62913a52379d1cce83323b1e.json b/tests/tests/api_tests/cassettes/68a03035213ebcbf62913a52379d1cce83323b1e.json deleted file mode 100644 index 5710bbac..00000000 --- a/tests/tests/api_tests/cassettes/68a03035213ebcbf62913a52379d1cce83323b1e.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{}", "encoding": "utf-8"}, "headers": {"Content-Length": ["2"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["user@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/5/networks/22/"}, "response": {"body": {"string": "{\"error\":{\"message\":\"You do not have permission to perform this action.\",\"code\":403}}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=HkfQAqg9G222EqyZ2uzZNm0gbDto0cJx; expires=Thu, 14-Sep-2017 19:26:32 GMT; Max-Age=31449600; Path=/", "sessionid=9k5nzf4v0uv37shw0is852akxt59qft0; expires=Thu, 29-Sep-2016 19:26:32 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "FORBIDDEN", "code": 403}, "url": "http://localhost:8081/api/sites/5/networks/22/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/3f16909f2572a95f6f8edf7ce341ecf1edcb79ad.json b/tests/tests/api_tests/cassettes/6b8854ebbe15b5172ad04a37f0f63867087bcbd9.json similarity index 51% rename from tests/tests/api_tests/cassettes/3f16909f2572a95f6f8edf7ce341ecf1edcb79ad.json rename to tests/tests/api_tests/cassettes/6b8854ebbe15b5172ad04a37f0f63867087bcbd9.json index 52c3addc..42477b74 100644 --- a/tests/tests/api_tests/cassettes/3f16909f2572a95f6f8edf7ce341ecf1edcb79ad.json +++ b/tests/tests/api_tests/cassettes/6b8854ebbe15b5172ad04a37f0f63867087bcbd9.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=H5jFJAZNThAr06Houye4tjtRZav9twc2; sessionid=t1rbmtqvhkc9toxtz181vwtq59yp7ow6"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/5/iterable/7/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/5/iterable/7/next_value/"}, "recorded_at": "2016-09-15T19:46:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=y2AvWTGrmhvIneAbIhndfn18Lyectay4; sessionid=2b86gw09ua5rbq236gmsels9bhvasluq"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/iterable/4/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/iterable/4/next_value/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/6c9100f15e145f9702cdccaaa2f57bee320e2862.json b/tests/tests/api_tests/cassettes/6c9100f15e145f9702cdccaaa2f57bee320e2862.json deleted file mode 100644 index 84c50de8..00000000 --- a/tests/tests/api_tests/cassettes/6c9100f15e145f9702cdccaaa2f57bee320e2862.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/root/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/root/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/6d3e004374a49df1de91cdfd9e06a71bc33bc3c4.json b/tests/tests/api_tests/cassettes/6d3e004374a49df1de91cdfd9e06a71bc33bc3c4.json deleted file mode 100644 index 1082bd4d..00000000 --- a/tests/tests/api_tests/cassettes/6d3e004374a49df1de91cdfd9e06a71bc33bc3c4.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "[{\"cidr\": \"1.1.1.0/24\"}, {\"cidr\": \"2.2.2.0/24\"}, {\"cidr\": \"3.3.3.0/24\"}]", "encoding": "utf-8"}, "headers": {"Content-Length": ["72"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"1.1.1.0\",\"attributes\":{},\"site_id\":2,\"id\":4},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"2.2.2.0\",\"attributes\":{},\"site_id\":2,\"id\":5},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"3.3.3.0\",\"attributes\":{},\"site_id\":2,\"id\":6}]", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=Xcsynn70Bv1sOpi87SnAJpiitDpgxu2U; expires=Thu, 14-Sep-2017 19:26:31 GMT; Max-Age=31449600; Path=/", "sessionid=bud2l66d33us3why4u8p1l5fgj3cbjfq; expires=Thu, 29-Sep-2016 19:26:31 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/networks/"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Xcsynn70Bv1sOpi87SnAJpiitDpgxu2U; sessionid=bud2l66d33us3why4u8p1l5fgj3cbjfq"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"1.1.1.0\",\"attributes\":{},\"site_id\":2,\"id\":4},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"2.2.2.0\",\"attributes\":{},\"site_id\":2,\"id\":5},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"3.3.3.0\",\"attributes\":{},\"site_id\":2,\"id\":6}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/networks/"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "[{\"is_ip\": false, \"network_address\": \"1.1.1.0\", \"site_id\": 2, \"parent_id\": null, \"state\": \"allocated\", \"prefix_length\": 24, \"ip_version\": \"4\", \"attributes\": {\"vlan\": \"300\"}, \"id\": 4}, {\"is_ip\": false, \"network_address\": \"2.2.2.0\", \"site_id\": 2, \"parent_id\": null, \"state\": \"allocated\", \"prefix_length\": 24, \"ip_version\": \"4\", \"attributes\": {\"vlan\": \"300\"}, \"id\": 5}, {\"is_ip\": false, \"network_address\": \"3.3.3.0\", \"site_id\": 2, \"parent_id\": null, \"state\": \"allocated\", \"prefix_length\": 24, \"ip_version\": \"4\", \"attributes\": {\"vlan\": \"300\"}, \"id\": 6}]", "encoding": "utf-8"}, "headers": {"Content-Length": ["549"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Xcsynn70Bv1sOpi87SnAJpiitDpgxu2U; sessionid=bud2l66d33us3why4u8p1l5fgj3cbjfq"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/2/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"1.1.1.0\",\"attributes\":{\"vlan\":\"300\"},\"site_id\":2,\"id\":4},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"2.2.2.0\",\"attributes\":{\"vlan\":\"300\"},\"site_id\":2,\"id\":5},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"3.3.3.0\",\"attributes\":{\"vlan\":\"300\"},\"site_id\":2,\"id\":6}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/networks/"}, "recorded_at": "2016-09-15T19:26:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/72143f794779e7b3d20c5caae77398edd54148f0.json b/tests/tests/api_tests/cassettes/72143f794779e7b3d20c5caae77398edd54148f0.json deleted file mode 100644 index 11b2ff68..00000000 --- a/tests/tests/api_tests/cassettes/72143f794779e7b3d20c5caae77398edd54148f0.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"cidr\": \"10.0.0.0/8\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["22"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fVEhijHngWo6YD0BdBVcbjcVSKAw5jjI; sessionid=3hohaujnt0yiwoqlpx4ynuebimgzyhr0"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":7,\"id\":26}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/networks/26/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/networks/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/743c558b7946fde225ef98eba440b352cf8069f6.json b/tests/tests/api_tests/cassettes/743c558b7946fde225ef98eba440b352cf8069f6.json deleted file mode 100644 index d1daebf3..00000000 --- a/tests/tests/api_tests/cassettes/743c558b7946fde225ef98eba440b352cf8069f6.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=5Nb2gfe2EWHsouAWDDIjKiwka80B66L7; sessionid=0k418lkzisgaoqsygkdewfcm39a165sd"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/"}, "response": {"body": {"string": "{\"parent_id\":40,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.250.0.0\",\"attributes\":{},\"site_id\":11,\"id\":41}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=5Nb2gfe2EWHsouAWDDIjKiwka80B66L7; sessionid=0k418lkzisgaoqsygkdewfcm39a165sd"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/?prefix_length=27"}, "response": {"body": {"string": "{\"error\":{\"message\":\"No such Network found at (site_id, id) = (11, 10.250.0.185/32)\",\"code\":404}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "NOT FOUND", "code": 404}, "url": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/?prefix_length=27"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=5Nb2gfe2EWHsouAWDDIjKiwka80B66L7; sessionid=0k418lkzisgaoqsygkdewfcm39a165sd"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/?prefix_length=shoe"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"prefix_length\":\"Invalid prefix_length: u'shoe'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/?prefix_length=shoe"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/7667780e6a0f594265f3e902dbe6383a28a733ab.json b/tests/tests/api_tests/cassettes/7667780e6a0f594265f3e902dbe6383a28a733ab.json new file mode 100644 index 00000000..5b1e42d1 --- /dev/null +++ b/tests/tests/api_tests/cassettes/7667780e6a0f594265f3e902dbe6383a28a733ab.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"u_id\": \"new_update\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["22"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=QpNlMHm5gBiROHDiK9dbiVdzR00teQWy; sessionid=o44bjpiav1ough31ld4dj4uke298j8r4"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/3/itervalue/3/"}, "response": {"body": {"string": "{\"u_id\":\"new_update\",\"iter_key\":3,\"id\":3,\"val\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/itervalue/3/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/78247dfdf33edca136ad0eb5fe63c7593d3776c1.json b/tests/tests/api_tests/cassettes/78247dfdf33edca136ad0eb5fe63c7593d3776c1.json deleted file mode 100644 index 1d364bfa..00000000 --- a/tests/tests/api_tests/cassettes/78247dfdf33edca136ad0eb5fe63c7593d3776c1.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fbfrnCWHgWpKFBPXtkA5QvOxfid4lSJ4; sessionid=uvyegq1cpssdb2tmn1j7desznkggggiq"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/networks/1/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":1,\"id\":1}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:30 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/networks/1/"}, "recorded_at": "2016-09-15T19:26:30"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/7998ced5800ae3ab7db96f6c05c3934a374bc978.json b/tests/tests/api_tests/cassettes/7998ced5800ae3ab7db96f6c05c3934a374bc978.json deleted file mode 100644 index 33a763a2..00000000 --- a/tests/tests/api_tests/cassettes/7998ced5800ae3ab7db96f6c05c3934a374bc978.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fVEhijHngWo6YD0BdBVcbjcVSKAw5jjI; sessionid=3hohaujnt0yiwoqlpx4ynuebimgzyhr0"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/networks/10.0.0.0/8/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/networks/10.0.0.0/8/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/7d2efdd348236797e02a79096908ba2b10eb0169.json b/tests/tests/api_tests/cassettes/7d2efdd348236797e02a79096908ba2b10eb0169.json deleted file mode 100644 index 44a215de..00000000 --- a/tests/tests/api_tests/cassettes/7d2efdd348236797e02a79096908ba2b10eb0169.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/27/root/"}, "response": {"body": {"string": "{\"error\":{\"message\":\"No such Network found at (site_id, id) = (8, None)\",\"code\":404}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "NOT FOUND", "code": 404}, "url": "http://localhost:8081/api/sites/8/networks/27/root/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json b/tests/tests/api_tests/cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json new file mode 100644 index 00000000..3f7234a1 --- /dev/null +++ b/tests/tests/api_tests/cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"u_id\": \"uuid_custA_site1\", \"val\": 10, \"iter_key\": 2}", "encoding": "utf-8"}, "headers": {"Content-Length": ["54"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Oq3KD87KIzEsdJR9FKQrQzW1V7l2R9s3; sessionid=cw045o3da8c39sahrvx6wafq3lpxgqwd"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/itervalue/"}, "response": {"body": {"string": "{\"u_id\":\"uuid_custA_site1\",\"iter_key\":2,\"id\":2,\"val\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/itervalue/2/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/itervalue/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/80d95360c7eea97a7c354ee6ca3c1a8851b53cd9.json b/tests/tests/api_tests/cassettes/80d95360c7eea97a7c354ee6ca3c1a8851b53cd9.json deleted file mode 100644 index 5ff45f56..00000000 --- a/tests/tests/api_tests/cassettes/80d95360c7eea97a7c354ee6ca3c1a8851b53cd9.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":3,\"id\":7},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":3,\"id\":8},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":3,\"id\":9},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":3,\"id\":10},{\"parent_id\":13,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":3,\"id\":11},{\"parent_id\":7,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":12},{\"parent_id\":12,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":13}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?cidr=10.0.0.0%2F8"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":3,\"id\":8}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?cidr=10.0.0.0%2F8"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?attributes=foo%3Dbaz"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":3,\"id\":7},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":3,\"id\":9}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?attributes=foo%3Dbaz"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?attributes=foo%3Dbaz&attributes=cluster%3Dlax"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":3,\"id\":9}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?attributes=foo%3Dbaz&attributes=cluster%3Dlax"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?network_address=169.254.0.0"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":3,\"id\":10}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?network_address=169.254.0.0"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?prefix_length=16"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":3,\"id\":7},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":3,\"id\":10}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?prefix_length=16"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?network_address=10.0.0.0&prefix_length=8"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":3,\"id\":8}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?network_address=10.0.0.0&prefix_length=8"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?include_ips=True&include_networks=False"}, "response": {"body": {"string": "[{\"parent_id\":13,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":3,\"id\":11}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?include_ips=True&include_networks=False"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?include_ips=False&include_networks=True"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":3,\"id\":7},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":3,\"id\":8},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":3,\"id\":9},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":3,\"id\":10},{\"parent_id\":7,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":12},{\"parent_id\":12,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":13}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?include_ips=False&include_networks=True"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?include_ips=True&include_networks=True"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":3,\"id\":7},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":3,\"id\":8},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":3,\"id\":9},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":3,\"id\":10},{\"parent_id\":13,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":3,\"id\":11},{\"parent_id\":7,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":12},{\"parent_id\":12,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":13}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?include_ips=True&include_networks=True"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?include_ips=False&include_networks=False"}, "response": {"body": {"string": "[]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?include_ips=False&include_networks=False"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "{\"cidr\": \"2401:d:d0e::/64\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["27"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":64,\"is_ip\":false,\"ip_version\":\"6\",\"network_address\":\"2401:d:d0e::\",\"attributes\":{},\"site_id\":3,\"id\":14}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/networks/14/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/networks/"}, "recorded_at": "2016-09-15T19:26:31"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YvrfPQ0YxFtqiCPaDUQZLjHAHi8kK0W2; sessionid=u3ys6nksienu66gy57l1poda9n870184"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?ip_version=6"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":64,\"is_ip\":false,\"ip_version\":\"6\",\"network_address\":\"2401:d:d0e::\",\"attributes\":{},\"site_id\":3,\"id\":14}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?ip_version=6"}, "recorded_at": "2016-09-15T19:26:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/8276afde5d85a48fd04e72657f1b47e5bd9ff7a8.json b/tests/tests/api_tests/cassettes/8276afde5d85a48fd04e72657f1b47e5bd9ff7a8.json new file mode 100644 index 00000000..515448e7 --- /dev/null +++ b/tests/tests/api_tests/cassettes/8276afde5d85a48fd04e72657f1b47e5bd9ff7a8.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=5pOqqM865YSHQyPi7AHLulOajXmBKlDc; sessionid=jt8ejn0svv46cddbbot3dbkv1nwwnzc0"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/attributes/1/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":1,\"id\":1,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"attr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Fri, 16 Sep 2016 02:11:20 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/attributes/1/"}, "recorded_at": "2016-09-16T02:11:20"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/82beec6373c55da4a3001fbcac6b72729f72dbc0.json b/tests/tests/api_tests/cassettes/82beec6373c55da4a3001fbcac6b72729f72dbc0.json deleted file mode 100644 index 77952e36..00000000 --- a/tests/tests/api_tests/cassettes/82beec6373c55da4a3001fbcac6b72729f72dbc0.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fVEhijHngWo6YD0BdBVcbjcVSKAw5jjI; sessionid=3hohaujnt0yiwoqlpx4ynuebimgzyhr0"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/networks/24/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/networks/24/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/83b0d6704912f1865dd2fb9239a1e7818ab3bdc9.json b/tests/tests/api_tests/cassettes/83b0d6704912f1865dd2fb9239a1e7818ab3bdc9.json new file mode 100644 index 00000000..03ac777e --- /dev/null +++ b/tests/tests/api_tests/cassettes/83b0d6704912f1865dd2fb9239a1e7818ab3bdc9.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=QpNlMHm5gBiROHDiK9dbiVdzR00teQWy; sessionid=o44bjpiav1ough31ld4dj4uke298j8r4"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/iterable/3/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/iterable/3/next_value/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json b/tests/tests/api_tests/cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json new file mode 100644 index 00000000..48803c9e --- /dev/null +++ b/tests/tests/api_tests/cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=htfbfaX76FdV7nGXomOl4TGuDTA1WGyC; sessionid=swkvbuemvs3sgbdbirqu6u85xqxms307"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/7/iterable/9/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":9,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Sun, 18 Sep 2016 16:31:14 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/7/iterable/9/"}, "recorded_at": "2016-09-18T16:31:14"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=K3YxsPE38AqJyCrI7lqCPeMLbe0l6jaJ; sessionid=d4r0lciokadcr9kkhrn1k29syrl9m55u"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/iterable/9/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:40:56 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/iterable/9/"}, "recorded_at": "2016-09-19T08:40:56"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/84bb1c96e309feb49d8d2fa0d266b8369a0ec428.json b/tests/tests/api_tests/cassettes/84bb1c96e309feb49d8d2fa0d266b8369a0ec428.json deleted file mode 100644 index 70bc0cc3..00000000 --- a/tests/tests/api_tests/cassettes/84bb1c96e309feb49d8d2fa0d266b8369a0ec428.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.0/25/children/"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.0/25/children/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/865ec27a703ec684e7330d283c5cf789add90eeb.json b/tests/tests/api_tests/cassettes/865ec27a703ec684e7330d283c5cf789add90eeb.json deleted file mode 100644 index 61b2c3c6..00000000 --- a/tests/tests/api_tests/cassettes/865ec27a703ec684e7330d283c5cf789add90eeb.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"attr1\": \"foo\"}, \"cidr\": \"10.0.0.0/24\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["55"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UI3V8INIleFqqYuZQ6yUKXJ8EVg9b6CF; sessionid=odnmqyrtq1j5mcs7qs5pw4pk99to4nfi"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":6,\"id\":23}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/networks/23/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/networks/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/8ccf4ef98a12f666c96e427686c429919aab7d91.json b/tests/tests/api_tests/cassettes/8ccf4ef98a12f666c96e427686c429919aab7d91.json new file mode 100644 index 00000000..a904409f --- /dev/null +++ b/tests/tests/api_tests/cassettes/8ccf4ef98a12f666c96e427686c429919aab7d91.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"u_id\": \"uuid_custA_site1\", \"id\": 2, \"iter_key\": 2, \"val\": 10}", "encoding": "utf-8"}, "headers": {"Content-Length": ["63"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Oq3KD87KIzEsdJR9FKQrQzW1V7l2R9s3; sessionid=cw045o3da8c39sahrvx6wafq3lpxgqwd"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/2/itervalue/2/"}, "response": {"body": {"string": "{\"u_id\":\"uuid_custA_site1\",\"iter_key\":2,\"id\":2,\"val\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/itervalue/2/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json b/tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json new file mode 100644 index 00000000..f4473f91 --- /dev/null +++ b/tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=l9pA6HLlN1jb3ZOkA3E2XYlXsa9UttvJ; sessionid=e3wpqc3ksqak8un8z4rdoxfb3ifciu14"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/1/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/1/next_value/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/90de2c24b7b96754be5274456846c679c7218f66.json b/tests/tests/api_tests/cassettes/90de2c24b7b96754be5274456846c679c7218f66.json deleted file mode 100644 index dccbe5d7..00000000 --- a/tests/tests/api_tests/cassettes/90de2c24b7b96754be5274456846c679c7218f66.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.0.0/14/descendents/"}, "response": {"body": {"string": "[{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.0.0/14/descendents/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json b/tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json deleted file mode 100644 index 3d82577c..00000000 --- a/tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/"}, "response": {"body": {"string": "{\"id\":5,\"name\":\"Test Site\",\"description\":\"\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=Z4znhxkyULuT0DpyY8lSMLeF7PLCzNaa; expires=Thu, 14-Sep-2017 19:46:06 GMT; Max-Age=31449600; Path=/", "sessionid=jmiav9fhh9sd0z9mn0aua71ggnu0ifpc; expires=Thu, 29-Sep-2016 19:46:06 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/"], "Allow": ["GET, POST, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/"}, "recorded_at": "2016-09-15T19:46:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/944e446940adf75be72d7ff7a59b5db4918d6e1c.json b/tests/tests/api_tests/cassettes/944e446940adf75be72d7ff7a59b5db4918d6e1c.json deleted file mode 100644 index b64d57aa..00000000 --- a/tests/tests/api_tests/cassettes/944e446940adf75be72d7ff7a59b5db4918d6e1c.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fbfrnCWHgWpKFBPXtkA5QvOxfid4lSJ4; sessionid=uvyegq1cpssdb2tmn1j7desznkggggiq"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/1/networks/2/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:30 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/1/networks/2/"}, "recorded_at": "2016-09-15T19:26:30"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/949cc773ac378030532f36a8ab596483f3586d05.json b/tests/tests/api_tests/cassettes/949cc773ac378030532f36a8ab596483f3586d05.json new file mode 100644 index 00000000..a340d5f5 --- /dev/null +++ b/tests/tests/api_tests/cassettes/949cc773ac378030532f36a8ab596483f3586d05.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=y2AvWTGrmhvIneAbIhndfn18Lyectay4; sessionid=2b86gw09ua5rbq236gmsels9bhvasluq"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/4/itervalue/4/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/4/itervalue/4/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json b/tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json deleted file mode 100644 index 73369060..00000000 --- a/tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=bTMhCqlmxzpR2qKjLbUtnGbcTned698o; expires=Thu, 14-Sep-2017 19:46:05 GMT; Max-Age=31449600; Path=/", "sessionid=1r1bj0h43lrgn33sxn138neqeoydbm4y; expires=Thu, 29-Sep-2016 19:46:05 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/iterable/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-09-15T19:46:05"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=bTMhCqlmxzpR2qKjLbUtnGbcTned698o; sessionid=1r1bj0h43lrgn33sxn138neqeoydbm4y"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "[{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-09-15T19:46:05"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/9656ecd4fe0150cd6217d09c5d4b1f8d9d19e00b.json b/tests/tests/api_tests/cassettes/9656ecd4fe0150cd6217d09c5d4b1f8d9d19e00b.json deleted file mode 100644 index d140e81e..00000000 --- a/tests/tests/api_tests/cassettes/9656ecd4fe0150cd6217d09c5d4b1f8d9d19e00b.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.0.0.0/8/descendents/"}, "response": {"body": {"string": "[{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28},{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29},{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.0.0.0/8/descendents/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/9e59fc13628275f2a31802bc64c03f049f457bd6.json b/tests/tests/api_tests/cassettes/9e59fc13628275f2a31802bc64c03f049f457bd6.json deleted file mode 100644 index 12513f1b..00000000 --- a/tests/tests/api_tests/cassettes/9e59fc13628275f2a31802bc64c03f049f457bd6.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"cidr\": \"10.16.2.17/32\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["25"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/9/networks/"}, "response": {"body": {"string": "{\"parent_id\":33,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.17\",\"attributes\":{},\"site_id\":9,\"id\":38}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/9/networks/38/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/9/networks/"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.0%2F25"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":9,\"id\":33}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.0%2F25"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.8%2F29"}, "response": {"body": {"string": "[{\"parent_id\":33,\"state\":\"allocated\",\"prefix_length\":29,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.8\",\"attributes\":{},\"site_id\":9,\"id\":34}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.8%2F29"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.1%2F32"}, "response": {"body": {"string": "[{\"parent_id\":33,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":9,\"id\":35}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.1%2F32"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.2%2F32"}, "response": {"body": {"string": "[{\"parent_id\":33,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":9,\"id\":36}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.2%2F32"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/a19750a6d840f704991808815c7cc500845d850f.json b/tests/tests/api_tests/cassettes/a19750a6d840f704991808815c7cc500845d850f.json deleted file mode 100644 index 444e664b..00000000 --- a/tests/tests/api_tests/cassettes/a19750a6d840f704991808815c7cc500845d850f.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.2/32/parent/"}, "response": {"body": {"string": "{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.2/32/parent/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/a27acd3c0e649ad8b9a56ad84535460a6405ee2c.json b/tests/tests/api_tests/cassettes/a27acd3c0e649ad8b9a56ad84535460a6405ee2c.json new file mode 100644 index 00000000..75270f3b --- /dev/null +++ b/tests/tests/api_tests/cassettes/a27acd3c0e649ad8b9a56ad84535460a6405ee2c.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"constraints\": {\"pattern\": \"\", \"valid_values\": [], \"allow_empty\": true}}", "encoding": "utf-8"}, "headers": {"Content-Length": ["73"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=koUMUsYEXkH9GMKNktiRoVWvbf6KrWI4; sessionid=dnqyh6kcva2971gbvlx8c4fuizr0539w"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/4/attributes/6/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"\",\"display\":true,\"required\":false,\"site_id\":4,\"id\":6,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":true},\"name\":\"attr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Fri, 16 Sep 2016 02:11:21 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/attributes/6/"}, "recorded_at": "2016-09-16T02:11:21"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/af08309f2ed9ffe89fb10dc74753eed7ecb723ce.json b/tests/tests/api_tests/cassettes/af08309f2ed9ffe89fb10dc74753eed7ecb723ce.json deleted file mode 100644 index 6811bc05..00000000 --- a/tests/tests/api_tests/cassettes/af08309f2ed9ffe89fb10dc74753eed7ecb723ce.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/33/next_address/"}, "response": {"body": {"string": "[\"10.16.2.3/32\"]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/33/next_address/"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/33/next_address/?num=3"}, "response": {"body": {"string": "[\"10.16.2.3/32\",\"10.16.2.5/32\",\"10.16.2.6/32\"]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/33/next_address/?num=3"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/33/next_address/?num=potato"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"num\":\"invalid literal for int() with base 10: 'potato'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/33/next_address/?num=potato"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/b93ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json b/tests/tests/api_tests/cassettes/b93ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json deleted file mode 100644 index d395eeb1..00000000 --- a/tests/tests/api_tests/cassettes/b93ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"description\": \"Iterable 1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["29"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=uMrOf7lWEEbqTIACoVLvzCO1dCPsNQdu; sessionid=3jev4hqjqr3ngfi1tk5zq935va657wku"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/4/iterable/6/"}, "response": {"body": {"string": "{\"description\":\"Iterable 1\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":6,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/iterable/6/"}, "recorded_at": "2016-09-15T19:46:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/bd474da839501043708fa3000d35851e61d996a3.json b/tests/tests/api_tests/cassettes/bd474da839501043708fa3000d35851e61d996a3.json deleted file mode 100644 index cc1a45a5..00000000 --- a/tests/tests/api_tests/cassettes/bd474da839501043708fa3000d35851e61d996a3.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"state\": \"reserved\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UI3V8INIleFqqYuZQ6yUKXJ8EVg9b6CF; sessionid=odnmqyrtq1j5mcs7qs5pw4pk99to4nfi"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/6/networks/23/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":6,\"id\":23}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/networks/23/"}, "recorded_at": "2016-09-15T19:26:32"}, {"request": {"body": {"string": "{\"state\": \"reserved\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UI3V8INIleFqqYuZQ6yUKXJ8EVg9b6CF; sessionid=odnmqyrtq1j5mcs7qs5pw4pk99to4nfi"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/6/networks/23/"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"attributes\":[\"This field is required.\"]},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/6/networks/23/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json b/tests/tests/api_tests/cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json new file mode 100644 index 00000000..567802db --- /dev/null +++ b/tests/tests/api_tests/cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=l9pA6HLlN1jb3ZOkA3E2XYlXsa9UttvJ; sessionid=e3wpqc3ksqak8un8z4rdoxfb3ifciu14"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/itervalue/1/"}, "response": {"body": {"string": "{\"u_id\":\"uuid_custA_site1\",\"iter_key\":1,\"id\":1,\"val\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/itervalue/1/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/bed48976a960605bb0cc70cc575506af38968f36.json b/tests/tests/api_tests/cassettes/bed48976a960605bb0cc70cc575506af38968f36.json deleted file mode 100644 index 58a9edfa..00000000 --- a/tests/tests/api_tests/cassettes/bed48976a960605bb0cc70cc575506af38968f36.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=umh12xybXchIT08UkvhDjisTfClPAcGu; sessionid=8olrvik6cxu2dovrzhfbd7m2qb5dglbb"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?query=foo%3Dbar"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":4,\"id\":16},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":4,\"id\":18}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/query/?query=foo%3Dbar"}, "recorded_at": "2016-09-15T19:26:32"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=umh12xybXchIT08UkvhDjisTfClPAcGu; sessionid=8olrvik6cxu2dovrzhfbd7m2qb5dglbb"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?query=foo%3Dbar+owner%3Djathan"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":4,\"id\":18}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/query/?query=foo%3Dbar+owner%3Djathan"}, "recorded_at": "2016-09-15T19:26:32"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=umh12xybXchIT08UkvhDjisTfClPAcGu; sessionid=8olrvik6cxu2dovrzhfbd7m2qb5dglbb"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?include_ips=False&query=-owner%3Dgary"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":4,\"id\":15},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":4,\"id\":18},{\"parent_id\":15,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":20},{\"parent_id\":20,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":21}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/query/?include_ips=False&query=-owner%3Dgary"}, "recorded_at": "2016-09-15T19:26:32"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=umh12xybXchIT08UkvhDjisTfClPAcGu; sessionid=8olrvik6cxu2dovrzhfbd7m2qb5dglbb"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?query=cluster+%2Bfoo%3Dbaz"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":4,\"id\":15},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":4,\"id\":17}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/query/?query=cluster+%2Bfoo%3Dbaz"}, "recorded_at": "2016-09-15T19:26:32"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=umh12xybXchIT08UkvhDjisTfClPAcGu; sessionid=8olrvik6cxu2dovrzhfbd7m2qb5dglbb"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?query=vlan%3D300"}, "response": {"body": {"string": "[{\"parent_id\":21,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":4,\"id\":19}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/query/?query=vlan%3D300"}, "recorded_at": "2016-09-15T19:26:32"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=umh12xybXchIT08UkvhDjisTfClPAcGu; sessionid=8olrvik6cxu2dovrzhfbd7m2qb5dglbb"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?query=fake%3Dbad"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"query\":\"Attribute matching query does not exist: 'fake'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/4/networks/query/?query=fake%3Dbad"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/c1ace35610f08937e315c7ca43d88e3d52cae87d.json b/tests/tests/api_tests/cassettes/c1ace35610f08937e315c7ca43d88e3d52cae87d.json deleted file mode 100644 index 4bec5da5..00000000 --- a/tests/tests/api_tests/cassettes/c1ace35610f08937e315c7ca43d88e3d52cae87d.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Network\", \"name\": \"vlan\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["44"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Xcsynn70Bv1sOpi87SnAJpiitDpgxu2U; sessionid=bud2l66d33us3why4u8p1l5fgj3cbjfq"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":2,\"id\":2,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"vlan\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/attributes/2/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/attributes/"}, "recorded_at": "2016-09-15T19:26:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/c5166aff566078fc644891c3d483a596bc238579.json b/tests/tests/api_tests/cassettes/c5166aff566078fc644891c3d483a596bc238579.json deleted file mode 100644 index dd27876b..00000000 --- a/tests/tests/api_tests/cassettes/c5166aff566078fc644891c3d483a596bc238579.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.0.0/12/children/"}, "response": {"body": {"string": "[{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.0.0/12/children/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/c77fd2df6127b125a3d4d9d702eb97c7151b84b2.json b/tests/tests/api_tests/cassettes/c77fd2df6127b125a3d4d9d702eb97c7151b84b2.json deleted file mode 100644 index 4f108ffd..00000000 --- a/tests/tests/api_tests/cassettes/c77fd2df6127b125a3d4d9d702eb97c7151b84b2.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "[\n {\n \"attributes\": {\n \"cluster\": \"\", \n \"foo\": \"baz\", \n \"owner\": \"jathan\"\n }, \n \"cidr\": \"192.168.0.0/16\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"lax\", \n \"foo\": \"bar\", \n \"owner\": \"gary\"\n }, \n \"cidr\": \"10.0.0.0/8\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"lax\", \n \"foo\": \"baz\", \n \"owner\": \"gary\"\n }, \n \"cidr\": \"172.16.0.0/12\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"sjc\", \n \"foo\": \"bar\", \n \"owner\": \"jathan\"\n }, \n \"cidr\": \"169.254.0.0/16\"\n }, \n {\n \"attributes\": {\n \"hostname\": \"foo-bar1\", \n \"vlan\": \"300\"\n }, \n \"cidr\": \"192.168.0.1/32\"\n }, \n {\n \"attributes\": {\n \"hostname\": \"foo-bar1\"\n }, \n \"cidr\": \"192.168.0.0/24\"\n }, \n {\n \"attributes\": {\n \"hostname\": \"foo-bar1\"\n }, \n \"cidr\": \"192.168.0.0/25\"\n }\n]\n", "encoding": "utf-8"}, "headers": {"Content-Length": ["1056"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=umh12xybXchIT08UkvhDjisTfClPAcGu; sessionid=8olrvik6cxu2dovrzhfbd7m2qb5dglbb"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":4,\"id\":15},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":4,\"id\":16},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":4,\"id\":17},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":4,\"id\":18},{\"parent_id\":15,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":4,\"id\":19},{\"parent_id\":15,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":20},{\"parent_id\":20,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":21}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/networks/"}, "recorded_at": "2016-09-15T19:26:32"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=umh12xybXchIT08UkvhDjisTfClPAcGu; sessionid=8olrvik6cxu2dovrzhfbd7m2qb5dglbb"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":4,\"id\":15},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":4,\"id\":16},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":4,\"id\":17},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":4,\"id\":18},{\"parent_id\":21,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":4,\"id\":19},{\"parent_id\":15,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":20},{\"parent_id\":20,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":21}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/c87885aa4d31ad8a2b08b03b992f52f9db466615.json b/tests/tests/api_tests/cassettes/c87885aa4d31ad8a2b08b03b992f52f9db466615.json deleted file mode 100644 index 7d1a4e0a..00000000 --- a/tests/tests/api_tests/cassettes/c87885aa4d31ad8a2b08b03b992f52f9db466615.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"cidr\": \"10.16.2.2/32\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["24"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/8/networks/"}, "response": {"body": {"string": "{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/8/networks/32/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/8/networks/"}, "recorded_at": "2016-09-15T19:26:32"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.0.0.0%2F8"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.0.0.0%2F8"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.0.0%2F12"}, "response": {"body": {"string": "[{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.0.0%2F12"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.0.0%2F14"}, "response": {"body": {"string": "[{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.0.0%2F14"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.0%2F25"}, "response": {"body": {"string": "[{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.0%2F25"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.1%2F32"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.1%2F32"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.2%2F32"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.2%2F32"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json b/tests/tests/api_tests/cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json new file mode 100644 index 00000000..b07e85f1 --- /dev/null +++ b/tests/tests/api_tests/cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=K3YxsPE38AqJyCrI7lqCPeMLbe0l6jaJ; sessionid=d4r0lciokadcr9kkhrn1k29syrl9m55u"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/7/iterable/9/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:40:56 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/7/iterable/9/next_value/"}, "recorded_at": "2016-09-19T08:40:56"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/ced58e2cf97d7a523c5852924a577f5c8b892866.json b/tests/tests/api_tests/cassettes/ced58e2cf97d7a523c5852924a577f5c8b892866.json deleted file mode 100644 index 83604b74..00000000 --- a/tests/tests/api_tests/cassettes/ced58e2cf97d7a523c5852924a577f5c8b892866.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=bTMhCqlmxzpR2qKjLbUtnGbcTned698o; sessionid=1r1bj0h43lrgn33sxn138neqeoydbm4y"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/1/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/1/"}, "recorded_at": "2016-09-15T19:46:05"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/d0d6f17fefec299ec55c6c4f06180a57e3705650.json b/tests/tests/api_tests/cassettes/d0d6f17fefec299ec55c6c4f06180a57e3705650.json new file mode 100644 index 00000000..dd0e4d99 --- /dev/null +++ b/tests/tests/api_tests/cassettes/d0d6f17fefec299ec55c6c4f06180a57e3705650.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"multi\": false, \"resource_name\": \"Network\", \"description\": \"\", \"required\": false, \"site_id\": 3, \"display\": false, \"constraints\": {\"pattern\": \"\", \"valid_values\": [], \"allow_empty\": false}, \"id\": 5, \"name\": \"attr1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["214"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=yeUHodCyTofe5ynHMiY44RK7TEg8OHbg; sessionid=vc2ytfa6015ke3zo6pzhiuxmk3jsb8hc"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/3/attributes/5/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":5,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"attr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Fri, 16 Sep 2016 02:11:20 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/attributes/5/"}, "recorded_at": "2016-09-16T02:11:20"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json b/tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json new file mode 100644 index 00000000..bab24fea --- /dev/null +++ b/tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Oq3KD87KIzEsdJR9FKQrQzW1V7l2R9s3; sessionid=cw045o3da8c39sahrvx6wafq3lpxgqwd"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterable/2/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterable/2/next_value/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/d5f7009c8ca1699486d9116a6ca0da537b1bb8b7.json b/tests/tests/api_tests/cassettes/d5f7009c8ca1699486d9116a6ca0da537b1bb8b7.json deleted file mode 100644 index 6b525c12..00000000 --- a/tests/tests/api_tests/cassettes/d5f7009c8ca1699486d9116a6ca0da537b1bb8b7.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"attr1\": \"foo\"}, \"cidr\": \"10.0.0.0/24\", \"state\": \"reserved\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["76"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=4r3hEQaPIT4t9wCPw79KOZm0ltbCc4Ig; sessionid=ikkkqqym6omp9400yeocl7fykfaecz3t"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":5,\"id\":22}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/networks/22/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/networks/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/da427a9a7f5006cf428910abcbcb10322f0c9b6a.json b/tests/tests/api_tests/cassettes/da427a9a7f5006cf428910abcbcb10322f0c9b6a.json new file mode 100644 index 00000000..9231e2a1 --- /dev/null +++ b/tests/tests/api_tests/cassettes/da427a9a7f5006cf428910abcbcb10322f0c9b6a.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=htfbfaX76FdV7nGXomOl4TGuDTA1WGyC; sessionid=swkvbuemvs3sgbdbirqu6u85xqxms307"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/itervalue/"}, "response": {"body": {"string": "{\"error\":{\"message\":\"Method \\\"DELETE\\\" not allowed.\",\"code\":405}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Sun, 18 Sep 2016 16:33:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "METHOD NOT ALLOWED", "code": 405}, "url": "http://localhost:8081/api/sites/7/itervalue/"}, "recorded_at": "2016-09-18T16:33:34"}, {"request": {"body": {"string": "{\"u_id\": \"uuid_custA_site1\", \"val\": 10, \"iter_key\": 9}", "encoding": "utf-8"}, "headers": {"Content-Length": ["54"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=K3YxsPE38AqJyCrI7lqCPeMLbe0l6jaJ; sessionid=d4r0lciokadcr9kkhrn1k29syrl9m55u"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/itervalue/"}, "response": {"body": {"string": "{\"iter_key\":9,\"id\":1,\"val\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/itervalue/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:40:56 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/itervalue/"}, "recorded_at": "2016-09-19T08:40:56"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/e0e399e8dbcd4774ee2b95798987a3638ea50836.json b/tests/tests/api_tests/cassettes/e0e399e8dbcd4774ee2b95798987a3638ea50836.json deleted file mode 100644 index 8ae235c6..00000000 --- a/tests/tests/api_tests/cassettes/e0e399e8dbcd4774ee2b95798987a3638ea50836.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/28/children/"}, "response": {"body": {"string": "[{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/28/children/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/eacb60510140254a7ec730a2383e740cf8048a1d.json b/tests/tests/api_tests/cassettes/eacb60510140254a7ec730a2383e740cf8048a1d.json deleted file mode 100644 index 72b432ff..00000000 --- a/tests/tests/api_tests/cassettes/eacb60510140254a7ec730a2383e740cf8048a1d.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Network\", \"name\": \"attr1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["45"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":1,\"id\":1,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"attr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=fbfrnCWHgWpKFBPXtkA5QvOxfid4lSJ4; expires=Thu, 14-Sep-2017 19:26:30 GMT; Max-Age=31449600; Path=/", "sessionid=uvyegq1cpssdb2tmn1j7desznkggggiq; expires=Thu, 29-Sep-2016 19:26:30 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/attributes/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:30 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/attributes/"}, "recorded_at": "2016-09-15T19:26:30"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/eb265a9697212637085b4a3e6ab21689f776d9de.json b/tests/tests/api_tests/cassettes/eb265a9697212637085b4a3e6ab21689f776d9de.json deleted file mode 100644 index 4922a4eb..00000000 --- a/tests/tests/api_tests/cassettes/eb265a9697212637085b4a3e6ab21689f776d9de.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {}, \"state\": \"orphaned\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["39"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=4r3hEQaPIT4t9wCPw79KOZm0ltbCc4Ig; sessionid=ikkkqqym6omp9400yeocl7fykfaecz3t"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/5/networks/10.0.0.0/24/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"orphaned\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":5,\"id\":22}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/5/networks/10.0.0.0/24/"}, "recorded_at": "2016-09-15T19:26:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json b/tests/tests/api_tests/cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json new file mode 100644 index 00000000..36f49d6b --- /dev/null +++ b/tests/tests/api_tests/cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=KintAbba6GsM4pQ3ytTpPm2QIEYZ2Bqc; sessionid=9u8hc8hp9h8lews5hrbduu2erfp7agcz"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/itervalue/"}, "response": {"body": {"string": "\n\n\n \n NSoT Error\n\n \n \n \n \n
    \n
    \n
    \n
    \n
    \n Error Loading Application\n
    \n
    \n You've failed to access the NSoT Frontend Application.\n This usually means you've tried to access without an\n authenticating proxy. Please contact your administrator.\n
    \n
    \n 500 - INTERNAL SERVER ERROR\n
    \n
    \n
    \n
    \n
    \n
    \n \n\n\n", "encoding": "utf-8"}, "headers": {"Date": ["Fri, 16 Sep 2016 03:00:43 GMT"], "Content-Type": ["text/html; charset=utf-8"], "X-Frame-Options": ["SAMEORIGIN"], "Vary": ["Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"]}, "status": {"message": "INTERNAL SERVER ERROR", "code": 500}, "url": "http://localhost:8081/api/sites/1/itervalue/"}, "recorded_at": "2016-09-16T03:00:43"}, {"request": {"body": {"string": "{\"u_id\": \"uuid_custA_site1\", \"val\": 10, \"iter_key\": 1}", "encoding": "utf-8"}, "headers": {"Content-Length": ["54"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=l9pA6HLlN1jb3ZOkA3E2XYlXsa9UttvJ; sessionid=e3wpqc3ksqak8un8z4rdoxfb3ifciu14"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/itervalue/"}, "response": {"body": {"string": "{\"u_id\":\"uuid_custA_site1\",\"iter_key\":1,\"id\":1,\"val\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/itervalue/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/itervalue/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json b/tests/tests/api_tests/cassettes/f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json similarity index 54% rename from tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json rename to tests/tests/api_tests/cassettes/f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json index 58a4454f..d35372a7 100644 --- a/tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json +++ b/tests/tests/api_tests/cassettes/f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":6,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=uMrOf7lWEEbqTIACoVLvzCO1dCPsNQdu; expires=Thu, 14-Sep-2017 19:46:06 GMT; Max-Age=31449600; Path=/", "sessionid=3jev4hqjqr3ngfi1tk5zq935va657wku; expires=Thu, 29-Sep-2016 19:46:06 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/iterable/6/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/iterable/"}, "recorded_at": "2016-09-15T19:46:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":9,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=K3YxsPE38AqJyCrI7lqCPeMLbe0l6jaJ; expires=Mon, 18-Sep-2017 08:40:56 GMT; Max-Age=31449600; Path=/", "sessionid=d4r0lciokadcr9kkhrn1k29syrl9m55u; expires=Mon, 03-Oct-2016 08:40:56 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/iterable/9/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:40:56 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/iterable/"}, "recorded_at": "2016-09-19T08:40:56"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/f1c3b5b7565d66b9b89cc2c7451cf206f1d0c0c2.json b/tests/tests/api_tests/cassettes/f1c3b5b7565d66b9b89cc2c7451cf206f1d0c0c2.json deleted file mode 100644 index 43b13bac..00000000 --- a/tests/tests/api_tests/cassettes/f1c3b5b7565d66b9b89cc2c7451cf206f1d0c0c2.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/?prefix_length=28"}, "response": {"body": {"string": "[\"10.16.2.0/28\"]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/?prefix_length=28"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/?num=4&prefix_length=27"}, "response": {"body": {"string": "[\"10.16.2.0/27\",\"10.16.2.32/27\",\"10.16.2.64/27\",\"10.16.2.96/27\"]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/?num=4&prefix_length=27"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"prefix_length\":\"int() argument must be a string or a number, not 'NoneType'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/?prefix_length=ralph"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"prefix_length\":\"invalid literal for int() with base 10: 'ralph'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/?prefix_length=ralph"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/?prefix_length=14"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"prefix_length\":\"New prefix must be longer than 25\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/?prefix_length=14"}, "recorded_at": "2016-09-15T19:26:34"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sceawJwDOLa0WNDEyNa6FrsoyNXk82tR; sessionid=cb0xr3n6yacknypriqfe22osm1oanqfj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/?prefix_length=65"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"prefix_length\":\"prefix length diff 65 is invalid for netblock 10.16.2.0/25\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/9/networks/10.16.2.0/25/next_network/?prefix_length=65"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/f3cab6f942c4d7271ee54b89689e2642104c16e1.json b/tests/tests/api_tests/cassettes/f3cab6f942c4d7271ee54b89689e2642104c16e1.json new file mode 100644 index 00000000..403253a6 --- /dev/null +++ b/tests/tests/api_tests/cassettes/f3cab6f942c4d7271ee54b89689e2642104c16e1.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=bunHaDQp1DC0yPpNp2pLwK6dIVy78UiU; sessionid=4qieimfsezec5evpryle2uckel4ylqj0"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/5/attributes/7/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Fri, 16 Sep 2016 02:11:21 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/5/attributes/7/"}, "recorded_at": "2016-09-16T02:11:21"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/f3fe397632a874f9bb32ccda0313de2633938b63.json b/tests/tests/api_tests/cassettes/f3fe397632a874f9bb32ccda0313de2633938b63.json deleted file mode 100644 index 9f721274..00000000 --- a/tests/tests/api_tests/cassettes/f3fe397632a874f9bb32ccda0313de2633938b63.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/32/parent/"}, "response": {"body": {"string": "{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/32/parent/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/f5d01c6d7cf05a4278dd5458a09e0b04788a0103.json b/tests/tests/api_tests/cassettes/f5d01c6d7cf05a4278dd5458a09e0b04788a0103.json deleted file mode 100644 index dc51a8bb..00000000 --- a/tests/tests/api_tests/cassettes/f5d01c6d7cf05a4278dd5458a09e0b04788a0103.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/31/siblings/"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/31/siblings/"}, "recorded_at": "2016-09-15T19:26:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/31/siblings/?include_self=True"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/31/siblings/?include_self=True"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/f88bf65cf0371d4806fae9e1ff953f163ab0d803.json b/tests/tests/api_tests/cassettes/f88bf65cf0371d4806fae9e1ff953f163ab0d803.json deleted file mode 100644 index 1a5d85bd..00000000 --- a/tests/tests/api_tests/cassettes/f88bf65cf0371d4806fae9e1ff953f163ab0d803.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=5Nb2gfe2EWHsouAWDDIjKiwka80B66L7; sessionid=0k418lkzisgaoqsygkdewfcm39a165sd"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/11/networks/1/closest_parent/"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"cidr\":\"u'1' does not appear to be an IPv4 or IPv6 network\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/11/networks/1/closest_parent/"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json b/tests/tests/api_tests/cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json new file mode 100644 index 00000000..31220187 --- /dev/null +++ b/tests/tests/api_tests/cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"u_id\": \"uuid_custA_site1\", \"val\": 10, \"iter_key\": 3}", "encoding": "utf-8"}, "headers": {"Content-Length": ["54"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=QpNlMHm5gBiROHDiK9dbiVdzR00teQWy; sessionid=o44bjpiav1ough31ld4dj4uke298j8r4"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/itervalue/"}, "response": {"body": {"string": "{\"u_id\":\"uuid_custA_site1\",\"iter_key\":3,\"id\":3,\"val\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/itervalue/3/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/itervalue/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/fd0ebe116d422145e03dbb05c5d21d8f36ffe70f.json b/tests/tests/api_tests/cassettes/fd0ebe116d422145e03dbb05c5d21d8f36ffe70f.json deleted file mode 100644 index f30a1769..00000000 --- a/tests/tests/api_tests/cassettes/fd0ebe116d422145e03dbb05c5d21d8f36ffe70f.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=5Nb2gfe2EWHsouAWDDIjKiwka80B66L7; sessionid=0k418lkzisgaoqsygkdewfcm39a165sd"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/networks/11/closest_parent.bogus"}, "response": {"body": {"string": "{\"error\":{\"message\":\"Endpoint not found.\",\"code\":404}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "NOT FOUND", "code": 404}, "url": "http://localhost:8081/api/networks/11/closest_parent.bogus"}, "recorded_at": "2016-09-15T19:26:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/fdbaea7fe81fb647256ead8b8076b3fa39ae57ec.json b/tests/tests/api_tests/cassettes/fdbaea7fe81fb647256ead8b8076b3fa39ae57ec.json deleted file mode 100644 index 21c9b4cc..00000000 --- a/tests/tests/api_tests/cassettes/fdbaea7fe81fb647256ead8b8076b3fa39ae57ec.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pGJkl57hTStqldJWybL5dJYXn0k2sS9I; sessionid=zu5k0126foqpf78etyg1p18trz73s9lx"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.0.0.0/8/root/"}, "response": {"body": {"string": "{\"error\":{\"message\":\"No such Network found at (site_id, id) = (8, None)\",\"code\":404}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:26:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "NOT FOUND", "code": 404}, "url": "http://localhost:8081/api/sites/8/networks/10.0.0.0/8/root/"}, "recorded_at": "2016-09-15T19:26:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/ffd4529bd2b59140eec7020beac2eb51f67ba602.json b/tests/tests/api_tests/cassettes/ffd4529bd2b59140eec7020beac2eb51f67ba602.json deleted file mode 100644 index a8bcccb5..00000000 --- a/tests/tests/api_tests/cassettes/ffd4529bd2b59140eec7020beac2eb51f67ba602.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"description\": \"test-iterable\", \"min_val\": 10, \"max_val\": 20, \"increment\": 1, \"id\": 5, \"name\": \"itr1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["103"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=XrXkrh1WPxDK7yINwdM9PeZA2B17Atny; sessionid=69sawjv6hjojob78v7juonrrqkd0cyfa"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/3/iterable/5/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":5,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 15 Sep 2016 19:46:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/iterable/5/"}, "recorded_at": "2016-09-15T19:46:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file From cfc5e2c16b4da4a6f6d34f1bc6b505ce8e302f73 Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Mon, 19 Sep 2016 10:07:22 -0400 Subject: [PATCH 08/31] line added --- nsot/models.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nsot/models.py b/nsot/models.py index 551b66e9..ff08e39c 100644 --- a/nsot/models.py +++ b/nsot/models.py @@ -51,6 +51,7 @@ # Unique interface type IDs. INTERFACE_TYPES = [t[0] for t in settings.INTERFACE_TYPE_CHOICES] + class Site(models.Model): """A namespace for attribtues, devices, and networks.""" name = models.CharField( @@ -1892,13 +1893,13 @@ class Iterable(models.Model): description = models.TextField( default='', blank=True, help_text='A helpful description for the Iterable.' ) - min_val = models.IntegerField( + min_val = models.PositiveIntegerField( default=1, help_text='The minimum value of the Iterable.' ) - max_val = models.IntegerField( + max_val = models.PositiveIntegerField( default=100, help_text='The maximum value of the Iterable.' ) - increment = models.IntegerField( + increment = models.PositiveIntegerField( default = 1, help_text='Increment value of the Iterable by.' ) site = models.ForeignKey( From 7a8bd3a49feb67abcb024d6dabfb31819e58575f Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Mon, 19 Sep 2016 10:43:16 -0400 Subject: [PATCH 09/31] incrementor validation > max_val check --- nsot/models.py | 10 +++++++--- tests/model_tests/test_iterables.py | 12 ++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/nsot/models.py b/nsot/models.py index ff08e39c..9fe8193e 100644 --- a/nsot/models.py +++ b/nsot/models.py @@ -1880,6 +1880,7 @@ def to_dict(self): 'resource': resource, } + class Iterable(models.Model): """Generic iterable for stateful services - vlan#, po#, tenant ID etc""" ''' @@ -1908,8 +1909,6 @@ class Iterable(models.Model): help_text='Unique ID of the Site this Attribute is under.' ) - - def __unicode__(self): return u'name=%s, min=%s, max=%s, increment=%s' % (self.name, self.min_val, self.max_val, self.increment ) @@ -1936,10 +1935,15 @@ def get_next_value(self): except IndexError: "Index Error implies that the table has not been intialized - so assign the first value" return [self.min_val] - + def clean_fields(self, exclude=None): + if not self.increment <= self.max_val: + raise exc.ValidationError({ + 'increment': 'Increment should be less than the max value for it to be useable' + }) def save(self, *args, **kwargs): + self.full_clean() super(Iterable, self).save(*args, **kwargs) def to_dict(self): diff --git a/tests/model_tests/test_iterables.py b/tests/model_tests/test_iterables.py index 1c6c452a..39cfdb5f 100644 --- a/tests/model_tests/test_iterables.py +++ b/tests/model_tests/test_iterables.py @@ -85,6 +85,18 @@ def test_valrange(site): with pytest.raises(exc.ValidationError): assert itr.get_next_value() == [25] + + #Catch the exception, if increment is > max_val + with pytest.raises(exc.ValidationError): + itr1 = models.Iterable.objects.create( + name='increment-below-min', + description='test vlan for testing', + min_val = 10, + max_val = 15, + increment = 16, + site = site + ) + def test_save(site): iterable = models.Iterable.objects.create( name='testsave', From 2da098e413f10e7ffdfb74107803cd0f2caee5a2 Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Mon, 19 Sep 2016 11:32:16 -0400 Subject: [PATCH 10/31] local stash --- nsot/api/serializers.py | 8 ++-- nsot/models.py | 82 ++++------------------------------------- 2 files changed, 12 insertions(+), 78 deletions(-) diff --git a/nsot/api/serializers.py b/nsot/api/serializers.py index cbd367b5..8ef65d69 100644 --- a/nsot/api/serializers.py +++ b/nsot/api/serializers.py @@ -260,9 +260,9 @@ class IterableSerializer(NsotSerializer): class Meta: model = models.Iterable + class IterableCreateSerializer(IterableSerializer): """Used for POST on Iterables.""" - site_id = fields.IntegerField( label = get_field_attr(models.Iterable, 'site', 'verbose_name'), help_text = get_field_attr(models.Iterable, 'site', 'help_text') @@ -274,13 +274,13 @@ class Meta: class IterableUpdateSerializer(BulkSerializerMixin, - IterableCreateSerializer): """ Used for PUT on Iterables. """ class Meta: model = models.Iterable list_serializer_class = BulkListSerializer fields = ('id', 'name', 'description', 'min_val', 'max_val', 'increment') + class IterablePartialUpdateSerializer(BulkSerializerMixin, IterableCreateSerializer): """ Used for PATCH, on Iterables. """ @@ -289,15 +289,15 @@ class Meta: list_serializer_class = BulkListSerializer fields = ('id', 'name', 'description', 'min_val', 'max_val', 'increment') + ########### # IterValue ########### -#class IterValueSerializer(serializers.ModelSerializer): class IterValueSerializer(NsotSerializer): """Used for GET, DELETE on IterValues.""" class Meta: model = models.IterValue - #fields = ('id', 'iter_key', 'val', 'u_id') + class IterValueCreateSerializer(IterValueSerializer): """Used for POST on IterValues.""" diff --git a/nsot/models.py b/nsot/models.py index 9fe8193e..0e9befca 100644 --- a/nsot/models.py +++ b/nsot/models.py @@ -1966,13 +1966,13 @@ class IterValue(models.Model): u_id = unique id to associate the value - query/deletes can be based on this unique id - This should also be set externally, to make it callable iter_key = Foreign key that ties the Iterable with the value ''' - iter_key = models.ForeignKey(Iterable, on_delete=models.PROTECT) + iterable = models.ForeignKey(Iterable, on_delete=models.PROTECT, related_name='itervalue') - val = models.IntegerField( + value = models.IntegerField( default=1, help_text='The value of the iterable.' ) - u_id = models.TextField( - blank=True, help_text='A helpful description for the Iterable.' + unique_id = models.TextField( + blank=True, help_text='An identification for the value table, used to id different rows that have this tag' ) # BORROW the logic from class Value - for easier mgmt of the IterValue # We are currently inferring the site_id from the parent Attribute in @@ -1985,83 +1985,17 @@ class IterValue(models.Model): ) def __unicode__(self): - return u'value=%s, uuid=%s, iterable=%s' % (self.val, self.u_id, self.iter_key.name) + return u'value=%s, uuid=%s, iterable=%s' % (self.value, self.unique_id, self.iterable.name) def to_dict(self): return { 'id': self.id, - 'val': self.val, - 'iter_key': self.iter_key.id, - 'u_id': self.u_id + 'value': self.value, + 'iterable': self.iterable.id, + 'unique_id': self.unique_id } -# @classmethod -# def getnext(cls, fk): -# "Get the next value of the iterable" -# try: -# " First try to generate the next value based on the current allocation" -# curr_val = IterValue.objects.filter(iter_key=fk).order_by('-val').values_list('val', flat=True)[0] -# incr = Iterable.objects.filter(id=fk.id).values_list('increment', flat=True)[0] -# next_val = curr_val + incr -# try: -# min_val = Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] -# max_val = Iterable.objects.filter(id=fk.id).values_list('max_val', flat=True)[0] -# if min_val <= next_val <= max_val: -# return next_val -# except: -# log.debug('value out of range - exceeded') -# raise exc.ValidationError({ -# 'next_val': 'Out of range' -# }) -# except IndexError: -# "Index Error implies that the table has not been intialized - so assign the first value" -# return Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] -# -# -# def save(self, *args, **kwargs): -# super(IterValue, self).save(*args, **kwargs) -# -# def to_dict(self): -# return { -# 'id': self.id, -# 'val': self.val, -# } -# @classmethod -# def getnext_dict(cls, fx): -# "Get the next value of the iterable" -# try: -# " First try to generate the next value based on the current allocation" -# curr_val = IterValue.objects.filter(iter_key=fk).order_by('-val').values_list('val', flat=True)[0] -# incr = Iterable.objects.filter(id=fk.id).values_list('increment', flat=True)[0] -# next_val = curr_val + incr -# try: -# min_val = Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] -# max_val = Iterable.objects.filter(id=fk.id).values_list('max_val', flat=True)[0] -# if min_val <= next_val <= max_val: -# return { -# 'next_val' : next_val, -# } -# except: -# log.debug('value out of range - exceeded') -# raise exc.ValidationError({ -# 'next_val': 'Out of range' -# }) -# except IndexError: -# "Index Error implies that the table has not been intialized - so assign the first value" -# first_val = Iterable.objects.filter(id=fk.id).values_list('min_val', flat=True)[0] -# return { -# 'next_val' : next_val, -# } -# -# curr_val = IterValue.objects.filter(iter_key=fk).order_by('-val').values_list('val', flat=True)[0] -# incr = Iterable.objects.filter(id=fk.id).values_list('increment', flat=True)[0] -# next_val = curr_val + incr -# return { -# 'next_val' : next_val, -# } -# - # Signals def delete_resource_values(sender, instance, **kwargs): """Delete values when a Resource object is deleted.""" From eea135ea6ab418c47a851f8e95a2f07e1026223e Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Mon, 19 Sep 2016 13:15:02 -0400 Subject: [PATCH 11/31] Code review recommendations addded --- nsot/admin.py | 2 +- nsot/api/serializers.py | 11 ++- nsot/api/views.py | 6 +- nsot/models.py | 16 ++--- tests/model_tests/test_iterables.py | 19 ++--- tests/model_tests/test_itervalues.py | 100 +++++++++++++-------------- 6 files changed, 67 insertions(+), 87 deletions(-) diff --git a/nsot/admin.py b/nsot/admin.py index 4cdce318..bc9a4eee 100644 --- a/nsot/admin.py +++ b/nsot/admin.py @@ -93,7 +93,7 @@ class IterableAdmin(admin.ModelAdmin): admin.site.register(models.Iterable, IterableAdmin) class IterValueAdmin(admin.ModelAdmin): - list_display = ('val', 'u_id', 'iter_key', 'site') + list_display = ('value', 'unique_id', 'iterable', 'site') fields = list_display admin.site.register(models.IterValue, IterValueAdmin) diff --git a/nsot/api/serializers.py b/nsot/api/serializers.py index 8ef65d69..b28d0bd3 100644 --- a/nsot/api/serializers.py +++ b/nsot/api/serializers.py @@ -274,6 +274,7 @@ class Meta: class IterableUpdateSerializer(BulkSerializerMixin, + IterableCreateSerializer): """ Used for PUT on Iterables. """ class Meta: model = models.Iterable @@ -307,8 +308,7 @@ class IterValueCreateSerializer(IterValueSerializer): ) class Meta: model = models.IterValue - #read_only_fields = ('id', 'site_id') - fields = ('iter_key', 'val', 'u_id', 'site_id') + fields = ('iterable', 'value', 'unique_id', 'site_id') class IterValueUpdateSerializer(BulkSerializerMixin, @@ -317,7 +317,8 @@ class IterValueUpdateSerializer(BulkSerializerMixin, class Meta: model = models.IterValue list_serializer_class = BulkListSerializer - fields = ('id', 'iter_key', 'val', 'u_id') + fields = ('id', 'iterable', 'value', 'unique_id') + class IterValuePartialUpdateSerializer(BulkSerializerMixin, IterValueCreateSerializer): @@ -325,9 +326,7 @@ class IterValuePartialUpdateSerializer(BulkSerializerMixin, class Meta: model = models.IterValue list_serializer_class = BulkListSerializer - fields = ('id', 'iter_key', 'val', 'u_id') - - + fields = ('id', 'iterable', 'value', 'unique_id') ########### diff --git a/nsot/api/views.py b/nsot/api/views.py index 02d0bbfe..62281d0f 100644 --- a/nsot/api/views.py +++ b/nsot/api/views.py @@ -353,6 +353,7 @@ class IterableViewSet(ResourceViewSet): queryset = models.Iterable.objects.all() serializer_class = serializers.IterableSerializer filter_fields = ('name', 'description', 'min_val', 'max_val', 'increment') + def get_serializer_class(self): if self.request.method == 'POST': return serializers.IterableCreateSerializer @@ -366,9 +367,7 @@ def get_serializer_class(self): def next_value(self, request, pk=None, site_pk=None, *args, **kwargs): """Return next available Iterable value from this Network.""" iterable = self.get_resource_object(pk, site_pk) - value = iterable.get_next_value() - return self.success(value) @@ -378,7 +377,8 @@ class IterValueViewSet(ResourceViewSet): """ queryset = models.IterValue.objects.all() serializer_class = serializers.IterValueSerializer - filter_fields = ( 'iter_key', 'val', 'u_id') + filter_fields = ( 'iterable', 'value', 'unique_id') + def get_serializer_class(self): if self.request.method == 'POST': return serializers.IterValueCreateSerializer diff --git a/nsot/models.py b/nsot/models.py index 0e9befca..a8fafa21 100644 --- a/nsot/models.py +++ b/nsot/models.py @@ -1852,14 +1852,6 @@ def clean_fields(self, exclude=None): serializer = serializer_class(obj) self._resource = serializer.data -# if isinstance(obj, Site): -# self.site = obj -# elif isinstance(obj, IterValue): #If the obj is of IterValue type, use it's foreign key, to find associate site and store changes -# site_num = Iterable.objects.filter(id=self._resource['iter_key']).values_list('site', flat=True)[0] -# self.site = Site.objects.get(id=site_num) -# else: -# self.site = obj.site - def save(self, *args, **kwargs): self.full_clean() # First validate fields are correct super(Change, self).save(*args, **kwargs) @@ -1916,7 +1908,7 @@ def get_next_value(self): "Get the next value of the iterable" try: " First try to generate the next value based on the current allocation" - curr_val = IterValue.objects.filter(iter_key=self.id).order_by('-val').values_list('val', flat=True)[0] + curr_val = IterValue.objects.filter(iterable=self.id).order_by('-value').values_list('value', flat=True)[0] incr = self.increment next_val = curr_val + incr try: @@ -1960,11 +1952,11 @@ def to_dict(self): class IterValue(models.Model): """Value table for the generic iterable defined above""" ''' - val = contains the value + value = contains the value getnext = returns the next iterated value for this particular Iterable save = saves the val - u_id = unique id to associate the value - query/deletes can be based on this unique id - This should also be set externally, to make it callable - iter_key = Foreign key that ties the Iterable with the value + unique_id = unique id to associate the value - query/deletes can be based on this unique id - This should also be set externally, to make it callable + iterable = Foreign key that ties the Iterable with the value ''' iterable = models.ForeignKey(Iterable, on_delete=models.PROTECT, related_name='itervalue') diff --git a/tests/model_tests/test_iterables.py b/tests/model_tests/test_iterables.py index 39cfdb5f..98b2ccff 100644 --- a/tests/model_tests/test_iterables.py +++ b/tests/model_tests/test_iterables.py @@ -47,9 +47,9 @@ def test_nextval(site): ) #Create a test value and assign the min val to it itrv1 = models.IterValue.objects.create( - val = itr.get_next_value()[0], - u_id='jasdgijn001', - iter_key=itr, + value = itr.get_next_value()[0], + unique_id='jasdgijn001', + iterable=itr, site=site ) @@ -68,19 +68,12 @@ def test_valrange(site): ) #Create a test value and assign the min val to it itrv0 = models.IterValue.objects.create( - val = 10, - u_id='jasdgijn001', - iter_key=itr, + value = 10, + unique_id='jasdgijn001', + iterable=itr, site=site ) -# itrv1 = models.IterValue.objects.create( -# val = itr.get_next_value(), -# u_id='jasdgijn0022222222222222222222221', -# iter_key=itr -# ) - - #Now, assert that the next value is last assigned + incr exceeds range is not assigned with pytest.raises(exc.ValidationError): assert itr.get_next_value() == [25] diff --git a/tests/model_tests/test_itervalues.py b/tests/model_tests/test_itervalues.py index d5dc4441..9b179155 100644 --- a/tests/model_tests/test_itervalues.py +++ b/tests/model_tests/test_itervalues.py @@ -27,22 +27,18 @@ def test_creation(site): ) itrv1 = models.IterValue.objects.create( - u_id='jasdgijn001', - iter_key=itr, + unique_id='jasdgijn001', + iterable=itr, site=site ) -# itrv2 = models.IterValue.objects.create( -# val = 23 -# u_id='jasdgijn002' -# ) iterable_val = models.Iterable.objects.values_list('min_val', flat=True)[0] - iterv_uid = models.IterValue.objects.values_list('u_id', flat=True)[0] + iterv_uid = models.IterValue.objects.values_list('unique_id', flat=True)[0] - assert itrv1.iter_key.id == itr.id - assert itrv1.val == iterable_val - assert itrv1.u_id == iterv_uid + assert itrv1.iterable.id == itr.id + assert itrv1.value == iterable_val + assert itrv1.unique_id == iterv_uid def test_getnext(site): itr = models.Iterable.objects.create( @@ -62,33 +58,33 @@ def test_getnext(site): site = site ) itrv1 = models.IterValue.objects.create( - val = itr.get_next_value()[0], - u_id='jasdgijn001', - iter_key=itr, + value = itr.get_next_value()[0], + unique_id='jasdgijn001', + iterable=itr, site=site ) itrv2 = models.IterValue.objects.create( - val = itr.get_next_value()[0], - u_id='jasdgijn002', - iter_key=itr, + value = itr.get_next_value()[0], + unique_id='jasdgijn002', + iterable=itr, site=site ) itrv3 = models.IterValue.objects.create( - val = itr2.get_next_value()[0], - u_id='jasdgijn001', - iter_key=itr2, + value = itr2.get_next_value()[0], + unique_id='jasdgijn001', + iterable=itr2, site=site ) itrv4 = models.IterValue.objects.create( - val = itr2.get_next_value()[0], - u_id='jasdgijn002', - iter_key=itr2, + value = itr2.get_next_value()[0], + unique_id='jasdgijn002', + iterable=itr2, site=site ) assert itr.get_next_value()[0] == 54 - assert itrv2.val == 52 - assert itrv4.val == 1300 + assert itrv2.value == 52 + assert itrv4.value == 1300 def test_save(site): @@ -101,9 +97,9 @@ def test_save(site): site = site ) itrv1 = models.IterValue.objects.create( - val = itr.get_next_value()[0], - u_id='jasdgijn001', - iter_key=itr, + value = itr.get_next_value()[0], + unique_id='jasdgijn001', + iterable=itr, site=site ) itrv1.save() @@ -128,35 +124,35 @@ def test_delete(site): site = site ) itrv1 = models.IterValue.objects.create( - val = itr.get_next_value()[0], - u_id='jasdgijn001', - iter_key=itr, + value = itr.get_next_value()[0], + unique_id='jasdgijn001', + iterable=itr, site=site ) itrv2 = models.IterValue.objects.create( - val = itr.get_next_value()[0], - u_id='jasdgijn002', - iter_key=itr, + value = itr.get_next_value()[0], + unique_id='jasdgijn002', + iterable=itr, site=site ) itrv3 = models.IterValue.objects.create( - val = itr2.get_next_value()[0], - u_id='jasdgijn001', - iter_key=itr2, + value = itr2.get_next_value()[0], + unique_id='jasdgijn001', + iterable=itr2, site=site ) itrv4 = models.IterValue.objects.create( - val = itr2.get_next_value()[0], - u_id='jasdgijn002', - iter_key=itr2, + value = itr2.get_next_value()[0], + unique_id='jasdgijn002', + iterable=itr2, site=site ) - models.IterValue.objects.filter(u_id=service_UID).all().delete() + models.IterValue.objects.filter(unique_id=service_UID).all().delete() def test_protected_delete(site): "Delete all rows in IterValues given the service identifier criteria" @@ -179,30 +175,30 @@ def test_protected_delete(site): ) itrv1 = models.IterValue.objects.create( - val = itr.get_next_value()[0], - u_id='jasdgijn001', - iter_key=itr, + value = itr.get_next_value()[0], + unique_id='jasdgijn001', + iterable=itr, site=site ) itrv2 = models.IterValue.objects.create( - val = itr.get_next_value()[0], - u_id='jasdgijn002', - iter_key=itr, + value = itr.get_next_value()[0], + unique_id='jasdgijn002', + iterable=itr, site=site ) itrv3 = models.IterValue.objects.create( - val = itr2.get_next_value()[0], - u_id='jasdgijn001', - iter_key=itr2, + value = itr2.get_next_value()[0], + unique_id='jasdgijn001', + iterable=itr2, site=site ) itrv4 = models.IterValue.objects.create( - val = itr2.get_next_value()[0], - u_id='jasdgijn002', - iter_key=itr2, + value = itr2.get_next_value()[0], + unique_id='jasdgijn002', + iterable=itr2, site=site ) From 2bdc2579f5f6148dc9262b44dff0c53eda5726d2 Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Tue, 20 Sep 2016 12:29:22 -0400 Subject: [PATCH 12/31] iter_key replaced with iterable etc for api tests --- tests/api_tests/test_itervalues.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/api_tests/test_itervalues.py b/tests/api_tests/test_itervalues.py index 248e6a46..d04fcf6a 100644 --- a/tests/api_tests/test_itervalues.py +++ b/tests/api_tests/test_itervalues.py @@ -30,7 +30,7 @@ def test_creation(client, site): #Create the first value itrval_uri = site.list_uri('itervalue') nval = client.get(reverse('iterable-next-value', args=(site.id, itr['id']))).json()[0] #Get the next value to assign to the itervalue - itrval_resp = client.create(itrval_uri, iter_key=itr['id'], val=nval, u_id='uuid_custA_site1') # create the iterval + itrval_resp = client.create(itrval_uri, iterable=itr['id'], value=nval, unique_id='uuid_custA_site1') # create the iterval payload = get_result(itrval_resp) itrval_obj_uri = site.detail_uri('itervalue', id=payload['id']) @@ -47,12 +47,12 @@ def test_update(client, site): itrval_uri = site.list_uri('itervalue') nval = client.get(reverse('iterable-next-value', args=(site.id, itr['id']))).json()[0] #Get the next value to assign to the itervalue - itrval_resp = client.create(itrval_uri, iter_key=itr['id'], val=nval, u_id='uuid_custA_site1') # create the iterval + itrval_resp = client.create(itrval_uri, iterable=itr['id'], value=nval, unique_id='uuid_custA_site1') # create the iterval itrval_resp_dict = get_result(itrval_resp) itrval_obj_uri = site.detail_uri('itervalue', id=itrval_resp_dict['id']) #Update the U_ID - params = {'iter_key': itr['id'], 'val': nval, 'u_id': 'new_update' } + params = {'iterable': itr['id'], 'value': nval, 'unique_id': 'new_update' } itrval_backup = copy.deepcopy(itrval_resp_dict) itrval_backup.update(params) assert_success( @@ -79,12 +79,12 @@ def test_partial_update(client, site): itrval_uri = site.list_uri('itervalue') nval = client.get(reverse('iterable-next-value', args=(site.id, itr['id']))).json()[0] #Get the next value to assign to the itervalue - itrval_resp = client.create(itrval_uri, iter_key=itr['id'], val=nval, u_id='uuid_custA_site1') # create the iterval + itrval_resp = client.create(itrval_uri, iterable=itr['id'], value=nval, unique_id='uuid_custA_site1') # create the iterval itrval_resp_dict = get_result(itrval_resp) itrval_obj_uri = site.detail_uri('itervalue', id=itrval_resp_dict['id']) #Update the U_ID - params = {'u_id': 'new_update' } + params = {'unique_id': 'new_update' } itrval_backup = copy.deepcopy(itrval_resp_dict) itrval_backup.update(params) assert_success( @@ -103,7 +103,7 @@ def test_deletion(client, site): itrval_uri = site.list_uri('itervalue') nval = client.get(reverse('iterable-next-value', args=(site.id, itr['id']))).json()[0] #Get the next value to assign to the itervalue - itrval_resp = client.create(itrval_uri, iter_key=itr['id'], val=nval, u_id='uuid_custA_site1') # create the iterval + itrval_resp = client.create(itrval_uri, iterable=itr['id'], value=nval, unique_id='uuid_custA_site1') # create the iterval itrval_resp_dict = get_result(itrval_resp) itrval_obj_uri = site.detail_uri('itervalue', id=itrval_resp_dict['id']) From 32d455d62aa71862eca08e122ab4f3623dd2f588 Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Tue, 20 Sep 2016 12:37:24 -0400 Subject: [PATCH 13/31] Remove bin --- bin/activate | 80 -------------------------------------- bin/activate.csh | 42 -------------------- bin/activate.fish | 74 ----------------------------------- bin/activate_this.py | 34 ---------------- bin/django-admin | 10 ----- bin/django-admin.py | 5 --- bin/easy_install | 10 ----- bin/easy_install-2.7 | 11 ------ bin/easy_install-3.4 | 10 ----- bin/gunicorn | 10 ----- bin/gunicorn_django | 10 ----- bin/gunicorn_paster | 10 ----- bin/ipcluster | 10 ----- bin/ipcluster2 | 10 ----- bin/ipcontroller | 10 ----- bin/ipcontroller2 | 10 ----- bin/ipdb | 11 ------ bin/ipengine | 10 ----- bin/ipengine2 | 10 ----- bin/iptest | 10 ----- bin/iptest2 | 10 ----- bin/ipython | 10 ----- bin/ipython2 | 10 ----- bin/livereload | 11 ------ bin/mrproxy | 32 --------------- bin/netaddr | 37 ------------------ bin/nsot-server | 10 ----- bin/pip | 11 ------ bin/pip2 | 11 ------ bin/pip2.7 | 11 ------ bin/port-for | 54 ------------------------- bin/py.test | 11 ------ bin/py.test-2.7 | 11 ------ bin/pybabel | 11 ------ bin/pygmentize | 11 ------ bin/python | Bin 25152 -> 0 bytes bin/python2 | 1 - bin/python2.7 | 1 - bin/rst2html.py | 23 ----------- bin/rst2latex.py | 26 ------------- bin/rst2man.py | 26 ------------- bin/rst2odt.py | 30 -------------- bin/rst2odt_prepstyles.py | 67 ------------------------------- bin/rst2pseudoxml.py | 23 ----------- bin/rst2s5.py | 24 ------------ bin/rst2xetex.py | 26 ------------- bin/rst2xml.py | 23 ----------- bin/rstpep2html.py | 25 ------------ bin/snot-server | 10 ----- bin/sphinx-apidoc | 11 ------ bin/sphinx-autobuild | 11 ------ bin/sphinx-autogen | 11 ------ bin/sphinx-build | 11 ------ bin/sphinx-quickstart | 11 ------ bin/static | 10 ----- bin/watchmedo | 11 ------ bin/wheel | 11 ------ 57 files changed, 1030 deletions(-) delete mode 100644 bin/activate delete mode 100644 bin/activate.csh delete mode 100644 bin/activate.fish delete mode 100644 bin/activate_this.py delete mode 100755 bin/django-admin delete mode 100755 bin/django-admin.py delete mode 100755 bin/easy_install delete mode 100755 bin/easy_install-2.7 delete mode 100755 bin/easy_install-3.4 delete mode 100755 bin/gunicorn delete mode 100755 bin/gunicorn_django delete mode 100755 bin/gunicorn_paster delete mode 100755 bin/ipcluster delete mode 100755 bin/ipcluster2 delete mode 100755 bin/ipcontroller delete mode 100755 bin/ipcontroller2 delete mode 100755 bin/ipdb delete mode 100755 bin/ipengine delete mode 100755 bin/ipengine2 delete mode 100755 bin/iptest delete mode 100755 bin/iptest2 delete mode 100755 bin/ipython delete mode 100755 bin/ipython2 delete mode 100755 bin/livereload delete mode 100755 bin/mrproxy delete mode 100755 bin/netaddr delete mode 100755 bin/nsot-server delete mode 100755 bin/pip delete mode 100755 bin/pip2 delete mode 100755 bin/pip2.7 delete mode 100755 bin/port-for delete mode 100755 bin/py.test delete mode 100755 bin/py.test-2.7 delete mode 100755 bin/pybabel delete mode 100755 bin/pygmentize delete mode 100755 bin/python delete mode 120000 bin/python2 delete mode 120000 bin/python2.7 delete mode 100755 bin/rst2html.py delete mode 100755 bin/rst2latex.py delete mode 100755 bin/rst2man.py delete mode 100755 bin/rst2odt.py delete mode 100755 bin/rst2odt_prepstyles.py delete mode 100755 bin/rst2pseudoxml.py delete mode 100755 bin/rst2s5.py delete mode 100755 bin/rst2xetex.py delete mode 100755 bin/rst2xml.py delete mode 100755 bin/rstpep2html.py delete mode 100755 bin/snot-server delete mode 100755 bin/sphinx-apidoc delete mode 100755 bin/sphinx-autobuild delete mode 100755 bin/sphinx-autogen delete mode 100755 bin/sphinx-build delete mode 100755 bin/sphinx-quickstart delete mode 100755 bin/static delete mode 100755 bin/watchmedo delete mode 100755 bin/wheel diff --git a/bin/activate b/bin/activate deleted file mode 100644 index 2786526a..00000000 --- a/bin/activate +++ /dev/null @@ -1,80 +0,0 @@ -# This file must be used with "source bin/activate" *from bash* -# you cannot run it directly - -deactivate () { - unset pydoc - - # reset old environment variables - if [ -n "${_OLD_VIRTUAL_PATH-}" ] ; then - PATH="$_OLD_VIRTUAL_PATH" - export PATH - unset _OLD_VIRTUAL_PATH - fi - if [ -n "${_OLD_VIRTUAL_PYTHONHOME-}" ] ; then - PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME" - export PYTHONHOME - unset _OLD_VIRTUAL_PYTHONHOME - fi - - # This should detect bash and zsh, which have a hash command that must - # be called to get it to forget past commands. Without forgetting - # past commands the $PATH changes we made may not be respected - if [ -n "${BASH-}" -o -n "${ZSH_VERSION-}" ] ; then - hash -r 2>/dev/null - fi - - if [ -n "${_OLD_VIRTUAL_PS1-}" ] ; then - PS1="$_OLD_VIRTUAL_PS1" - export PS1 - unset _OLD_VIRTUAL_PS1 - fi - - unset VIRTUAL_ENV - if [ ! "${1-}" = "nondestructive" ] ; then - # Self destruct! - unset -f deactivate - fi -} - -# unset irrelevant variables -deactivate nondestructive - -VIRTUAL_ENV="/Users/ajaychenampara/vagrant/nsot" -export VIRTUAL_ENV - -_OLD_VIRTUAL_PATH="$PATH" -PATH="$VIRTUAL_ENV/bin:$PATH" -export PATH - -# unset PYTHONHOME if set -# this will fail if PYTHONHOME is set to the empty string (which is bad anyway) -# could use `if (set -u; : $PYTHONHOME) ;` in bash -if [ -n "${PYTHONHOME-}" ] ; then - _OLD_VIRTUAL_PYTHONHOME="$PYTHONHOME" - unset PYTHONHOME -fi - -if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT-}" ] ; then - _OLD_VIRTUAL_PS1="$PS1" - if [ "x" != x ] ; then - PS1="$PS1" - else - if [ "`basename \"$VIRTUAL_ENV\"`" = "__" ] ; then - # special case for Aspen magic directories - # see http://www.zetadev.com/software/aspen/ - PS1="[`basename \`dirname \"$VIRTUAL_ENV\"\``] $PS1" - else - PS1="(`basename \"$VIRTUAL_ENV\"`)$PS1" - fi - fi - export PS1 -fi - -alias pydoc="python -m pydoc" - -# This should detect bash and zsh, which have a hash command that must -# be called to get it to forget past commands. Without forgetting -# past commands the $PATH changes we made may not be respected -if [ -n "${BASH-}" -o -n "${ZSH_VERSION-}" ] ; then - hash -r 2>/dev/null -fi diff --git a/bin/activate.csh b/bin/activate.csh deleted file mode 100644 index 8976c78c..00000000 --- a/bin/activate.csh +++ /dev/null @@ -1,42 +0,0 @@ -# This file must be used with "source bin/activate.csh" *from csh*. -# You cannot run it directly. -# Created by Davide Di Blasi . - -alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc' - -# Unset irrelevant variables. -deactivate nondestructive - -setenv VIRTUAL_ENV "/Users/ajaychenampara/vagrant/nsot" - -set _OLD_VIRTUAL_PATH="$PATH" -setenv PATH "$VIRTUAL_ENV/bin:$PATH" - - - -if ("" != "") then - set env_name = "" -else - if (`basename "$VIRTUAL_ENV"` == "__") then - # special case for Aspen magic directories - # see http://www.zetadev.com/software/aspen/ - set env_name = `basename \`dirname "$VIRTUAL_ENV"\`` - else - set env_name = `basename "$VIRTUAL_ENV"` - endif -endif - -# Could be in a non-interactive environment, -# in which case, $prompt is undefined and we wouldn't -# care about the prompt anyway. -if ( $?prompt ) then - set _OLD_VIRTUAL_PROMPT="$prompt" - set prompt = "[$env_name] $prompt" -endif - -unset env_name - -alias pydoc python -m pydoc - -rehash - diff --git a/bin/activate.fish b/bin/activate.fish deleted file mode 100644 index 5947d713..00000000 --- a/bin/activate.fish +++ /dev/null @@ -1,74 +0,0 @@ -# This file must be used with "source bin/activate.fish" *from fish* (http://fishshell.com) -# you cannot run it directly - -function deactivate -d "Exit virtualenv and return to normal shell environment" - # reset old environment variables - if test -n "$_OLD_VIRTUAL_PATH" - set -gx PATH $_OLD_VIRTUAL_PATH - set -e _OLD_VIRTUAL_PATH - end - if test -n "$_OLD_VIRTUAL_PYTHONHOME" - set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME - set -e _OLD_VIRTUAL_PYTHONHOME - end - - if test -n "$_OLD_FISH_PROMPT_OVERRIDE" - # set an empty local fish_function_path, so fish_prompt doesn't automatically reload - set -l fish_function_path - # erase the virtualenv's fish_prompt function, and restore the original - functions -e fish_prompt - functions -c _old_fish_prompt fish_prompt - functions -e _old_fish_prompt - set -e _OLD_FISH_PROMPT_OVERRIDE - end - - set -e VIRTUAL_ENV - if test "$argv[1]" != "nondestructive" - # Self destruct! - functions -e deactivate - end -end - -# unset irrelevant variables -deactivate nondestructive - -set -gx VIRTUAL_ENV "/Users/ajaychenampara/vagrant/nsot" - -set -gx _OLD_VIRTUAL_PATH $PATH -set -gx PATH "$VIRTUAL_ENV/bin" $PATH - -# unset PYTHONHOME if set -if set -q PYTHONHOME - set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME - set -e PYTHONHOME -end - -if test -z "$VIRTUAL_ENV_DISABLE_PROMPT" - # fish uses a function instead of an env var to generate the prompt. - - # copy the current fish_prompt function as the function _old_fish_prompt - functions -c fish_prompt _old_fish_prompt - - # with the original prompt function copied, we can override with our own. - function fish_prompt - # Prompt override? - if test -n "" - printf "%s%s" "" (set_color normal) - _old_fish_prompt - return - end - # ...Otherwise, prepend env - set -l _checkbase (basename "$VIRTUAL_ENV") - if test $_checkbase = "__" - # special case for Aspen magic directories - # see http://www.zetadev.com/software/aspen/ - printf "%s[%s]%s " (set_color -b blue white) (basename (dirname "$VIRTUAL_ENV")) (set_color normal) - _old_fish_prompt - else - printf "%s(%s)%s" (set_color -b blue white) (basename "$VIRTUAL_ENV") (set_color normal) - _old_fish_prompt - end - end - - set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV" -end diff --git a/bin/activate_this.py b/bin/activate_this.py deleted file mode 100644 index f18193bf..00000000 --- a/bin/activate_this.py +++ /dev/null @@ -1,34 +0,0 @@ -"""By using execfile(this_file, dict(__file__=this_file)) you will -activate this virtualenv environment. - -This can be used when you must use an existing Python interpreter, not -the virtualenv bin/python -""" - -try: - __file__ -except NameError: - raise AssertionError( - "You must run this like execfile('path/to/activate_this.py', dict(__file__='path/to/activate_this.py'))") -import sys -import os - -old_os_path = os.environ.get('PATH', '') -os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + os.pathsep + old_os_path -base = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) -if sys.platform == 'win32': - site_packages = os.path.join(base, 'Lib', 'site-packages') -else: - site_packages = os.path.join(base, 'lib', 'python%s' % sys.version[:3], 'site-packages') -prev_sys_path = list(sys.path) -import site -site.addsitedir(site_packages) -sys.real_prefix = sys.prefix -sys.prefix = base -# Move the added items to the front of the path: -new_sys_path = [] -for item in list(sys.path): - if item not in prev_sys_path: - new_sys_path.append(item) - sys.path.remove(item) -sys.path[:0] = new_sys_path diff --git a/bin/django-admin b/bin/django-admin deleted file mode 100755 index db4026f8..00000000 --- a/bin/django-admin +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'Django==1.8.11','console_scripts','django-admin' -__requires__ = 'Django==1.8.11' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('Django==1.8.11', 'console_scripts', 'django-admin')() - ) diff --git a/bin/django-admin.py b/bin/django-admin.py deleted file mode 100755 index c55ee3f3..00000000 --- a/bin/django-admin.py +++ /dev/null @@ -1,5 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -from django.core import management - -if __name__ == "__main__": - management.execute_from_command_line() diff --git a/bin/easy_install b/bin/easy_install deleted file mode 100755 index dba97f51..00000000 --- a/bin/easy_install +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==18.2','console_scripts','easy_install' -__requires__ = 'setuptools==18.2' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('setuptools==18.2', 'console_scripts', 'easy_install')() - ) diff --git a/bin/easy_install-2.7 b/bin/easy_install-2.7 deleted file mode 100755 index ae9642ea..00000000 --- a/bin/easy_install-2.7 +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from setuptools.command.easy_install import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/easy_install-3.4 b/bin/easy_install-3.4 deleted file mode 100755 index 874b2b33..00000000 --- a/bin/easy_install-3.4 +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==18.2','console_scripts','easy_install-3.4' -__requires__ = 'setuptools==18.2' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('setuptools==18.2', 'console_scripts', 'easy_install-3.4')() - ) diff --git a/bin/gunicorn b/bin/gunicorn deleted file mode 100755 index 14606447..00000000 --- a/bin/gunicorn +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'gunicorn==19.3.0','console_scripts','gunicorn' -__requires__ = 'gunicorn==19.3.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('gunicorn==19.3.0', 'console_scripts', 'gunicorn')() - ) diff --git a/bin/gunicorn_django b/bin/gunicorn_django deleted file mode 100755 index c248ee95..00000000 --- a/bin/gunicorn_django +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'gunicorn==19.3.0','console_scripts','gunicorn_django' -__requires__ = 'gunicorn==19.3.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('gunicorn==19.3.0', 'console_scripts', 'gunicorn_django')() - ) diff --git a/bin/gunicorn_paster b/bin/gunicorn_paster deleted file mode 100755 index 3c557e4e..00000000 --- a/bin/gunicorn_paster +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'gunicorn==19.3.0','console_scripts','gunicorn_paster' -__requires__ = 'gunicorn==19.3.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('gunicorn==19.3.0', 'console_scripts', 'gunicorn_paster')() - ) diff --git a/bin/ipcluster b/bin/ipcluster deleted file mode 100755 index 468558c6..00000000 --- a/bin/ipcluster +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipcluster' -__requires__ = 'ipython==3.1.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('ipython==3.1.0', 'console_scripts', 'ipcluster')() - ) diff --git a/bin/ipcluster2 b/bin/ipcluster2 deleted file mode 100755 index 8c9a0f6e..00000000 --- a/bin/ipcluster2 +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipcluster2' -__requires__ = 'ipython==3.1.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('ipython==3.1.0', 'console_scripts', 'ipcluster2')() - ) diff --git a/bin/ipcontroller b/bin/ipcontroller deleted file mode 100755 index a7a23330..00000000 --- a/bin/ipcontroller +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipcontroller' -__requires__ = 'ipython==3.1.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('ipython==3.1.0', 'console_scripts', 'ipcontroller')() - ) diff --git a/bin/ipcontroller2 b/bin/ipcontroller2 deleted file mode 100755 index 3a50a215..00000000 --- a/bin/ipcontroller2 +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipcontroller2' -__requires__ = 'ipython==3.1.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('ipython==3.1.0', 'console_scripts', 'ipcontroller2')() - ) diff --git a/bin/ipdb b/bin/ipdb deleted file mode 100755 index bf30dc88..00000000 --- a/bin/ipdb +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from ipdb.__main__ import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/ipengine b/bin/ipengine deleted file mode 100755 index a91727eb..00000000 --- a/bin/ipengine +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipengine' -__requires__ = 'ipython==3.1.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('ipython==3.1.0', 'console_scripts', 'ipengine')() - ) diff --git a/bin/ipengine2 b/bin/ipengine2 deleted file mode 100755 index 4e39382d..00000000 --- a/bin/ipengine2 +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipengine2' -__requires__ = 'ipython==3.1.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('ipython==3.1.0', 'console_scripts', 'ipengine2')() - ) diff --git a/bin/iptest b/bin/iptest deleted file mode 100755 index 1072172f..00000000 --- a/bin/iptest +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','iptest' -__requires__ = 'ipython==3.1.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('ipython==3.1.0', 'console_scripts', 'iptest')() - ) diff --git a/bin/iptest2 b/bin/iptest2 deleted file mode 100755 index a5e8f2c3..00000000 --- a/bin/iptest2 +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','iptest2' -__requires__ = 'ipython==3.1.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('ipython==3.1.0', 'console_scripts', 'iptest2')() - ) diff --git a/bin/ipython b/bin/ipython deleted file mode 100755 index ba64410c..00000000 --- a/bin/ipython +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipython' -__requires__ = 'ipython==3.1.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('ipython==3.1.0', 'console_scripts', 'ipython')() - ) diff --git a/bin/ipython2 b/bin/ipython2 deleted file mode 100755 index 0239a9dc..00000000 --- a/bin/ipython2 +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipython2' -__requires__ = 'ipython==3.1.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('ipython==3.1.0', 'console_scripts', 'ipython2')() - ) diff --git a/bin/livereload b/bin/livereload deleted file mode 100755 index 0e40216c..00000000 --- a/bin/livereload +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from livereload.cli import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/mrproxy b/bin/mrproxy deleted file mode 100755 index 9dd6d8d9..00000000 --- a/bin/mrproxy +++ /dev/null @@ -1,32 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -import argparse -import BaseHTTPServer - -from mrproxy import UserProxyHandler - -def main(): - - description_msg = "Mediocre Reverse Proxy." - parser = argparse.ArgumentParser(description=description_msg) - - parser.add_argument("-p", "--listen-port", default=8888, type=int, - help="Port to listen on.") - parser.add_argument("-P", "--backend-port", default=8989, type=int, - help="Port to proxy to.") - parser.add_argument("--header", default=[], action="append", - help="Headers to pass to backend. e.g. --header") - - args = parser.parse_args() - - # localhost is hardcoded to discourage real use. :) - server = BaseHTTPServer.HTTPServer(('localhost', args.listen_port), UserProxyHandler) - server.args = args - try: - server.serve_forever() - except KeyboardInterrupt: - print "Bye!" - - -if __name__ == "__main__": - main() diff --git a/bin/netaddr b/bin/netaddr deleted file mode 100755 index bad85570..00000000 --- a/bin/netaddr +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env python -#----------------------------------------------------------------------------- -# Copyright (c) 2008-2015, David P. D. Moss. All rights reserved. -# -# Released under the BSD license. See the LICENSE file for details. -#----------------------------------------------------------------------------- -"""an interactive shell for the netaddr library""" - -import os -import sys -import netaddr -from netaddr import * - -# aliases to save some typing ... -from netaddr import IPAddress as IP, IPNetwork as CIDR -from netaddr import EUI as MAC - -argv = sys.argv[1:] - -banner = "\nnetaddr shell %s - %s\n" % (netaddr.__version__, __doc__) -exit_msg = "\nShare and enjoy!" -rc_override = None - -try: - try: - # ipython >= 0.11 - from IPython.terminal.embed import InteractiveShellEmbed - ipshell = InteractiveShellEmbed(banner1=banner, exit_msg=exit_msg) - except ImportError: - # ipython < 0.11 - from IPython.Shell import IPShellEmbed - ipshell = IPShellEmbed(argv, banner, exit_msg, rc_override) -except ImportError: - sys.stderr.write('IPython (http://ipython.scipy.org/) not found!\n') - sys.exit(1) - -ipshell() diff --git a/bin/nsot-server b/bin/nsot-server deleted file mode 100755 index cd977f25..00000000 --- a/bin/nsot-server +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'nsot==1.0.1','console_scripts','nsot-server' -__requires__ = 'nsot==1.0.1' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('nsot==1.0.1', 'console_scripts', 'nsot-server')() - ) diff --git a/bin/pip b/bin/pip deleted file mode 100755 index 2e8bb4e3..00000000 --- a/bin/pip +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from pip import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/pip2 b/bin/pip2 deleted file mode 100755 index 2e8bb4e3..00000000 --- a/bin/pip2 +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from pip import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/pip2.7 b/bin/pip2.7 deleted file mode 100755 index 2e8bb4e3..00000000 --- a/bin/pip2.7 +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from pip import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/port-for b/bin/port-for deleted file mode 100755 index 6472cca1..00000000 --- a/bin/port-for +++ /dev/null @@ -1,54 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -""" -port-for is a command-line utility that -helps with local TCP ports managment. It -finds 'good' unused TCP localhost port and -remembers the association. - -Usage: - port-for - port-for --bind - port-for --bind --port - port-for --port - port-for --unbind - port-for --list - port-for --version - port-for --help - -Options: - -h --help Show this screen. - -v, --version Show version. - -b FOO, --bind FOO Find and return a port for FOO; this is an alias for - 'port-for FOO'. - -p PORT, --port PORT (Optional) specific port number for the --bind command. - -u FOO, --unbind FOO Remove association for FOO. - -l, --list List all associated ports. -""" - -import sys -import port_for -from port_for.docopt import docopt - -store = port_for.PortStore() - -def _list(): - for app, port in store.bound_ports(): - sys.stdout.write("%s: %s\n" % (app, port)) - -def _bind(app, port=None): - port = store.bind_port(app, port) - sys.stdout.write("%s\n" % port) - -def _unbind(app): - store.unbind_port(app) - -if __name__ == '__main__': - args = docopt(__doc__, version='port-for %s' % port_for.__version__) - if args['']: - _bind(args[''], args['--port']) - elif args['--bind']: - _bind(args['--bind'], args['--port']) - elif args['--list']: - _list() - elif args['--unbind']: - _unbind(args['--unbind']) diff --git a/bin/py.test b/bin/py.test deleted file mode 100755 index 33a369b7..00000000 --- a/bin/py.test +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from pytest import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/py.test-2.7 b/bin/py.test-2.7 deleted file mode 100755 index 33a369b7..00000000 --- a/bin/py.test-2.7 +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from pytest import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/pybabel b/bin/pybabel deleted file mode 100755 index 786a178e..00000000 --- a/bin/pybabel +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from babel.messages.frontend import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/pygmentize b/bin/pygmentize deleted file mode 100755 index 3f2baf02..00000000 --- a/bin/pygmentize +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from pygments.cmdline import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/python b/bin/python deleted file mode 100755 index 947e5658c0ca209d0afe940788365173d22802a8..0000000000000000000000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Yh0ePQ`{ zxtoWP&H?xs&Yp1qe#BC9$_lr18v`@OA?~3-Y~I{$q>5SNlx3QfBd(k`&r)o4#iE&? zpuD9f+Z5X%7ERmCpJ^ZI?>)M!v-2^iRmd=MX~Q|4G;#i(;^RNYEsg)0e*W+^Zkebv zNS{aApG-C408(uV;j|EcJR?N~U8lpxbCU^5-G{wCKH=k^^zp+!-t_U@d*SmK@4)kM z?~MC?@SyJX>@=>03g+TaYTQU#Rso0e-o&g-iRL&Nn$gqXa<*Cp{i-RqQWMr^-F`H_ZM7$o*V7~`TNEB^yU;S`g8lc3=!8~Co6*} z`~7+QJ&skWmETq1UPIIwXSX*H$RtmuAB}_7;=gkE?m2{^V}zB5HLFA+e--7dThcA< z70A5ju&@m_l>g~Hhl^+*c;(>D(M3_NbLEzwf~L6%qsl0YN|z5CjB) z4;q1yp3=?4=umHId1tk96TRsvz1CCi`a%d?`N1PBN{f{nG?cq?j@VcFd*zy=IqTHp zy=vCGR?XlGsR4;(Fn^5JvF)qWe=oz*M}+)Z+Y|xc|JW2khK^^S9@o V4g2K9I(X;BAK?7}^?t4e{2Rf%y59f* diff --git a/bin/python2 b/bin/python2 deleted file mode 120000 index d8654aa0..00000000 --- a/bin/python2 +++ /dev/null @@ -1 +0,0 @@ -python \ No newline at end of file diff --git a/bin/python2.7 b/bin/python2.7 deleted file mode 120000 index d8654aa0..00000000 --- a/bin/python2.7 +++ /dev/null @@ -1 +0,0 @@ -python \ No newline at end of file diff --git a/bin/rst2html.py b/bin/rst2html.py deleted file mode 100755 index 7c49c129..00000000 --- a/bin/rst2html.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $ -# Author: David Goodger -# Copyright: This module has been placed in the public domain. - -""" -A minimal front end to the Docutils Publisher, producing HTML. -""" - -try: - import locale - locale.setlocale(locale.LC_ALL, '') -except: - pass - -from docutils.core import publish_cmdline, default_description - - -description = ('Generates (X)HTML documents from standalone reStructuredText ' - 'sources. ' + default_description) - -publish_cmdline(writer_name='html', description=description) diff --git a/bin/rst2latex.py b/bin/rst2latex.py deleted file mode 100755 index ab085000..00000000 --- a/bin/rst2latex.py +++ /dev/null @@ -1,26 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $ -# Author: David Goodger -# Copyright: This module has been placed in the public domain. - -""" -A minimal front end to the Docutils Publisher, producing LaTeX. -""" - -try: - import locale - locale.setlocale(locale.LC_ALL, '') -except: - pass - -from docutils.core import publish_cmdline - -description = ('Generates LaTeX documents from standalone reStructuredText ' - 'sources. ' - 'Reads from (default is stdin) and writes to ' - ' (default is stdout). See ' - ' for ' - 'the full reference.') - -publish_cmdline(writer_name='latex', description=description) diff --git a/bin/rst2man.py b/bin/rst2man.py deleted file mode 100755 index a9e6f533..00000000 --- a/bin/rst2man.py +++ /dev/null @@ -1,26 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# Author: -# Contact: grubert@users.sf.net -# Copyright: This module has been placed in the public domain. - -""" -man.py -====== - -This module provides a simple command line interface that uses the -man page writer to output from ReStructuredText source. -""" - -import locale -try: - locale.setlocale(locale.LC_ALL, '') -except: - pass - -from docutils.core import publish_cmdline, default_description -from docutils.writers import manpage - -description = ("Generates plain unix manual documents. " + default_description) - -publish_cmdline(writer=manpage.Writer(), description=description) diff --git a/bin/rst2odt.py b/bin/rst2odt.py deleted file mode 100755 index 832d4737..00000000 --- a/bin/rst2odt.py +++ /dev/null @@ -1,30 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# $Id: rst2odt.py 5839 2009-01-07 19:09:28Z dkuhlman $ -# Author: Dave Kuhlman -# Copyright: This module has been placed in the public domain. - -""" -A front end to the Docutils Publisher, producing OpenOffice documents. -""" - -import sys -try: - import locale - locale.setlocale(locale.LC_ALL, '') -except: - pass - -from docutils.core import publish_cmdline_to_binary, default_description -from docutils.writers.odf_odt import Writer, Reader - - -description = ('Generates OpenDocument/OpenOffice/ODF documents from ' - 'standalone reStructuredText sources. ' + default_description) - - -writer = Writer() -reader = Reader() -output = publish_cmdline_to_binary(reader=reader, writer=writer, - description=description) - diff --git a/bin/rst2odt_prepstyles.py b/bin/rst2odt_prepstyles.py deleted file mode 100755 index 3b0c7c5c..00000000 --- a/bin/rst2odt_prepstyles.py +++ /dev/null @@ -1,67 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# $Id: rst2odt_prepstyles.py 5839 2009-01-07 19:09:28Z dkuhlman $ -# Author: Dave Kuhlman -# Copyright: This module has been placed in the public domain. - -""" -Fix a word-processor-generated styles.odt for odtwriter use: Drop page size -specifications from styles.xml in STYLE_FILE.odt. -""" - -# -# Author: Michael Schutte - -from lxml import etree -import sys -import zipfile -from tempfile import mkstemp -import shutil -import os - -NAMESPACES = { - "style": "urn:oasis:names:tc:opendocument:xmlns:style:1.0", - "fo": "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" -} - -def prepstyle(filename): - - zin = zipfile.ZipFile(filename) - styles = zin.read("styles.xml") - - root = etree.fromstring(styles) - for el in root.xpath("//style:page-layout-properties", - namespaces=NAMESPACES): - for attr in el.attrib: - if attr.startswith("{%s}" % NAMESPACES["fo"]): - del el.attrib[attr] - - tempname = mkstemp() - zout = zipfile.ZipFile(os.fdopen(tempname[0], "w"), "w", - zipfile.ZIP_DEFLATED) - - for item in zin.infolist(): - if item.filename == "styles.xml": - zout.writestr(item, etree.tostring(root)) - else: - zout.writestr(item, zin.read(item.filename)) - - zout.close() - zin.close() - shutil.move(tempname[1], filename) - - -def main(): - args = sys.argv[1:] - if len(args) != 1: - print >> sys.stderr, __doc__ - print >> sys.stderr, "Usage: %s STYLE_FILE.odt\n" % sys.argv[0] - sys.exit(1) - filename = args[0] - prepstyle(filename) - -if __name__ == '__main__': - main() - - -# vim:tw=78:sw=4:sts=4:et: diff --git a/bin/rst2pseudoxml.py b/bin/rst2pseudoxml.py deleted file mode 100755 index 5e7bba73..00000000 --- a/bin/rst2pseudoxml.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# $Id: rst2pseudoxml.py 4564 2006-05-21 20:44:42Z wiemann $ -# Author: David Goodger -# Copyright: This module has been placed in the public domain. - -""" -A minimal front end to the Docutils Publisher, producing pseudo-XML. -""" - -try: - import locale - locale.setlocale(locale.LC_ALL, '') -except: - pass - -from docutils.core import publish_cmdline, default_description - - -description = ('Generates pseudo-XML from standalone reStructuredText ' - 'sources (for testing purposes). ' + default_description) - -publish_cmdline(description=description) diff --git a/bin/rst2s5.py b/bin/rst2s5.py deleted file mode 100755 index 2a64c080..00000000 --- a/bin/rst2s5.py +++ /dev/null @@ -1,24 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $ -# Author: Chris Liechti -# Copyright: This module has been placed in the public domain. - -""" -A minimal front end to the Docutils Publisher, producing HTML slides using -the S5 template system. -""" - -try: - import locale - locale.setlocale(locale.LC_ALL, '') -except: - pass - -from docutils.core import publish_cmdline, default_description - - -description = ('Generates S5 (X)HTML slideshow documents from standalone ' - 'reStructuredText sources. ' + default_description) - -publish_cmdline(writer_name='s5', description=description) diff --git a/bin/rst2xetex.py b/bin/rst2xetex.py deleted file mode 100755 index 3da01b7a..00000000 --- a/bin/rst2xetex.py +++ /dev/null @@ -1,26 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# $Id: rst2xetex.py 7038 2011-05-19 09:12:02Z milde $ -# Author: Guenter Milde -# Copyright: This module has been placed in the public domain. - -""" -A minimal front end to the Docutils Publisher, producing XeLaTeX source code. -""" - -try: - import locale - locale.setlocale(locale.LC_ALL, '') -except: - pass - -from docutils.core import publish_cmdline - -description = ('Generates XeLaTeX documents from standalone reStructuredText ' - 'sources. ' - 'Reads from (default is stdin) and writes to ' - ' (default is stdout). See ' - ' for ' - 'the full reference.') - -publish_cmdline(writer_name='xetex', description=description) diff --git a/bin/rst2xml.py b/bin/rst2xml.py deleted file mode 100755 index 2f75daa9..00000000 --- a/bin/rst2xml.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $ -# Author: David Goodger -# Copyright: This module has been placed in the public domain. - -""" -A minimal front end to the Docutils Publisher, producing Docutils XML. -""" - -try: - import locale - locale.setlocale(locale.LC_ALL, '') -except: - pass - -from docutils.core import publish_cmdline, default_description - - -description = ('Generates Docutils-native XML from standalone ' - 'reStructuredText sources. ' + default_description) - -publish_cmdline(writer_name='xml', description=description) diff --git a/bin/rstpep2html.py b/bin/rstpep2html.py deleted file mode 100755 index 7b993849..00000000 --- a/bin/rstpep2html.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $ -# Author: David Goodger -# Copyright: This module has been placed in the public domain. - -""" -A minimal front end to the Docutils Publisher, producing HTML from PEP -(Python Enhancement Proposal) documents. -""" - -try: - import locale - locale.setlocale(locale.LC_ALL, '') -except: - pass - -from docutils.core import publish_cmdline, default_description - - -description = ('Generates (X)HTML from reStructuredText-format PEP files. ' - + default_description) - -publish_cmdline(reader_name='pep', writer_name='pep_html', - description=description) diff --git a/bin/snot-server b/bin/snot-server deleted file mode 100755 index a9dd3ffd..00000000 --- a/bin/snot-server +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'nsot==1.0.1','console_scripts','snot-server' -__requires__ = 'nsot==1.0.1' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('nsot==1.0.1', 'console_scripts', 'snot-server')() - ) diff --git a/bin/sphinx-apidoc b/bin/sphinx-apidoc deleted file mode 100755 index 407146c9..00000000 --- a/bin/sphinx-apidoc +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from sphinx.apidoc import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/sphinx-autobuild b/bin/sphinx-autobuild deleted file mode 100755 index 428c2c85..00000000 --- a/bin/sphinx-autobuild +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from sphinx_autobuild import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/sphinx-autogen b/bin/sphinx-autogen deleted file mode 100755 index b354e44b..00000000 --- a/bin/sphinx-autogen +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from sphinx.ext.autosummary.generate import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/sphinx-build b/bin/sphinx-build deleted file mode 100755 index dbe7f2c5..00000000 --- a/bin/sphinx-build +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from sphinx import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/sphinx-quickstart b/bin/sphinx-quickstart deleted file mode 100755 index 06775315..00000000 --- a/bin/sphinx-quickstart +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from sphinx.quickstart import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/static b/bin/static deleted file mode 100755 index f0dcb186..00000000 --- a/bin/static +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'static3==0.6.1','console_scripts','static' -__requires__ = 'static3==0.6.1' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('static3==0.6.1', 'console_scripts', 'static')() - ) diff --git a/bin/watchmedo b/bin/watchmedo deleted file mode 100755 index b2f8d0c1..00000000 --- a/bin/watchmedo +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from watchdog.watchmedo import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/wheel b/bin/wheel deleted file mode 100755 index 2278b9fa..00000000 --- a/bin/wheel +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from wheel.tool import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) From c48089517aa5604611475c50cdb235a812924834 Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Tue, 20 Sep 2016 12:38:19 -0400 Subject: [PATCH 14/31] Remove share --- share/man/man1/ipcluster.1.gz | Bin 350 -> 0 bytes share/man/man1/ipcontroller.1.gz | Bin 353 -> 0 bytes share/man/man1/ipengine.1.gz | Bin 343 -> 0 bytes share/man/man1/ipython.1.gz | Bin 1039 -> 0 bytes 4 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 share/man/man1/ipcluster.1.gz delete mode 100644 share/man/man1/ipcontroller.1.gz delete mode 100644 share/man/man1/ipengine.1.gz delete mode 100644 share/man/man1/ipython.1.gz diff --git a/share/man/man1/ipcluster.1.gz b/share/man/man1/ipcluster.1.gz deleted file mode 100644 index 30f43613e7db3c0e76942e06f9c5cb691da0e521..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 350 zcmV-k0ipgMiwFn>{vK5V18Hz$Y;|*VWpXYt0Bup-Zh|lvz3)?;aHC6*h;N{iMHVN7 z;>9v{QM5{v(vng%zWplxE?e?7X}_OyzH=Jn3&iQ`a!vCnLkRD^Qyk&g$7CE%Jb33I z0bO7<{fJ1hn~7#4yVi1pVuaQ*W5IAs?X+=lCtGQSh8ZR$m)PjK>8w!u9*2Iel9a}j zkYI)fSlgAZuV!jXf-J@tbYq29Ext)VHjn6Q7N>cftO&iZsyo#){a@OEkT+MTwc!xT z_0;SP4HuO@!fJFaf2`u8Z5mOepIP-=aLhR{U<_oFBN&RHFhA8hADOC16L0Ec_6TmS$7 diff --git a/share/man/man1/ipcontroller.1.gz b/share/man/man1/ipcontroller.1.gz deleted file mode 100644 index 3b5f03da53e006070ede4b5390092fe7a2b12776..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 353 zcmV-n0iOOJiwFn>{vK5V18Hz$Z*FvQZ)|L3axO6dZBff^!Y~lL`zuztK&227{(wg+ zQqd%e(?dmiFt89yjvd7gh`;X=Xa%&=TC!*D*_m-rEFsS3X;S3rY8B-Wg7?;GgmCP` zWE@UB@GivyzJz4@9*BYg;g>nSeiPnLDJ9KYa;yt^{XlO($2vpRso6bpn zU_BlGOwx?UoCPzur({7M!x~KEq|p|>uD2HvpXYH_#A(7F1oYGG-|?=(UkO{)Sx3z5 zl^V5a5u~O&wYZD`s>+a=>lfl)a$D;_QE1pu`vz(Ol>WATre>vaxWIuKG#FhgwMOXyFbv=ZDZ1ctmBI8nuH0MIEqjwGm|JE&>1mRwJvO diff --git a/share/man/man1/ipengine.1.gz b/share/man/man1/ipengine.1.gz deleted file mode 100644 index 5c597cc2ba03e4a5f3380b466a2ef657ab184876..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 343 zcmV-d0jT~TiwFn>{vK5V18Hz&Zf9w3WiBxQWl`O3gCG>X=P6FSX_u&}eS>y&tIMWF z+{H3?LEFwK=9Tpgk%=Ne3r}u2!V3NJ+C_iVoF5cu*60;@NSnpkszfi4wND?RqEF0WP4CNx$-1Ba7`3n z0tGZpVew82Kf`6^-NzSClc(@{-fHEH_OmmO%}XHPA@RnHLW|FOT~ze(1DbsamW$59 pNjQF+MhGnv%K3#m*qr|iYK2FXx@%E6sFAfX`32D5BCP%a005Dyq6z>2 diff --git a/share/man/man1/ipython.1.gz b/share/man/man1/ipython.1.gz deleted file mode 100644 index c3029f8c587da64d1e45d7c57266c6b8435398b5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1039 zcmV+q1n~PGiwFn>{vK5V18H!1bZBpGE-?U&Rbg-2HW2;JUvUTqIPGM49yV+UiUMxp zASxEev%CVqJfxI#ve-(bKvMDa?{_36+iCM*h5^aEyLa#2-O=&x0{++M4*Lj}_lxWF z3Z`$TAhjw>_r_v^xE0!1Xu0MMTGSD&7Wc~tOr^TIfDD1xHRQZC-aExy$>Q8SU0!dK zht+w+eENF?4e#moFay(N26HQv^a#pUs80X}xb`{J0gEdzh!iO=e|r=8=ll(ew|9`N zAGdc8E11K@$FA;S{%Zt3|1_Upc*u2)+z?3drK3`8B@7hYQt}EVK2tW0&%y|~C!2?F z`5t2z8fsDvg4d+sxmG5EQn{ECHOd^Xyi+WzQO`mcp4A9d-%b;O=pjCcLs}yxjwFYx3zM=HOn(5I> zc&IIq2_e(SzXk`>!aMo?%t8J*2W(o~d)L6hsWpf?H7(|%6!}rgQ$u|Pd#CeLI0z}y zyOF~%B~T$Rjug}M%uJ)lb^n^eOx`P(}=yMru8vR7fj(5HvZw zv#O!_%Yn48inO~Fl8F0WsLs+WEn3k_-iVy3>Jzzn3a zm?`x&fD+K9%J5!SqHOPH$|U`z1@ zmb|MiBe);#9`2X3c&ts7a7ymdk-E;E$|#8cqw46wmtH1EBs2sIc;^!t=BX0+jZy4SV4;q9r;R}uYa zS*}l3H&^2zutJ?0KBR=4Za<5YFkDy&3zN4`Av$jR$p9P*bzIqr+ibvi8Ym4iEdC<< zCOzsvf*-W77A0i8FJZLY(7#o!+J;sEw#XZJS6SPdtJ!Q%I&@h~t(Xmj$LIT){RePY JU6%?7008VY`q2OY From cbf53f4e73ccc2cd38741e77686ab08b3ba21f7e Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Tue, 20 Sep 2016 13:09:21 -0400 Subject: [PATCH 15/31] Original migrations --- nsot/migrations/0001_initial.py | 179 +++++++++++++++ nsot/migrations/0002_auto_20150810_1718.py | 54 +++++ nsot/migrations/0003_auto_20150810_1751.py | 20 ++ nsot/migrations/0004_auto_20150810_1806.py | 30 +++ nsot/migrations/0005_auto_20150810_1847.py | 31 +++ nsot/migrations/0006_auto_20150810_1947.py | 23 ++ nsot/migrations/0007_auto_20150811_1201.py | 19 ++ nsot/migrations/0008_auto_20150811_1222.py | 19 ++ nsot/migrations/0009_auto_20150811_1245.py | 19 ++ nsot/migrations/0010_auto_20150921_2120.py | 45 ++++ nsot/migrations/0011_auto_20150930_1557.py | 29 +++ nsot/migrations/0012_auto_20151002_1427.py | 36 +++ nsot/migrations/0013_auto_20151002_1443.py | 19 ++ nsot/migrations/0014_auto_20151002_1653.py | 21 ++ nsot/migrations/0015_move_attribute_fields.py | 205 ++++++++++++++++++ nsot/migrations/0016_move_device_data.py | 34 +++ nsot/migrations/0017_move_network_data.py | 39 ++++ nsot/migrations/0018_move_interface_data.py | 39 ++++ nsot/migrations/0019_move_assignment_data.py | 30 +++ nsot/migrations/0020_move_value_data.py | 30 +++ .../migrations/0021_remove_resource_object.py | 171 +++++++++++++++ nsot/migrations/0022_auto_20151007_1847.py | 25 +++ nsot/migrations/0023_auto_20151008_1351.py | 18 ++ nsot/migrations/0024_network_state.py | 19 ++ nsot/migrations/0025_value_site.py | 21 ++ nsot/migrations/__init__.py | 0 26 files changed, 1175 insertions(+) create mode 100644 nsot/migrations/0001_initial.py create mode 100644 nsot/migrations/0002_auto_20150810_1718.py create mode 100644 nsot/migrations/0003_auto_20150810_1751.py create mode 100644 nsot/migrations/0004_auto_20150810_1806.py create mode 100644 nsot/migrations/0005_auto_20150810_1847.py create mode 100644 nsot/migrations/0006_auto_20150810_1947.py create mode 100644 nsot/migrations/0007_auto_20150811_1201.py create mode 100644 nsot/migrations/0008_auto_20150811_1222.py create mode 100644 nsot/migrations/0009_auto_20150811_1245.py create mode 100644 nsot/migrations/0010_auto_20150921_2120.py create mode 100644 nsot/migrations/0011_auto_20150930_1557.py create mode 100644 nsot/migrations/0012_auto_20151002_1427.py create mode 100644 nsot/migrations/0013_auto_20151002_1443.py create mode 100644 nsot/migrations/0014_auto_20151002_1653.py create mode 100644 nsot/migrations/0015_move_attribute_fields.py create mode 100644 nsot/migrations/0016_move_device_data.py create mode 100644 nsot/migrations/0017_move_network_data.py create mode 100644 nsot/migrations/0018_move_interface_data.py create mode 100644 nsot/migrations/0019_move_assignment_data.py create mode 100644 nsot/migrations/0020_move_value_data.py create mode 100644 nsot/migrations/0021_remove_resource_object.py create mode 100644 nsot/migrations/0022_auto_20151007_1847.py create mode 100644 nsot/migrations/0023_auto_20151008_1351.py create mode 100644 nsot/migrations/0024_network_state.py create mode 100644 nsot/migrations/0025_value_site.py create mode 100644 nsot/migrations/__init__.py diff --git a/nsot/migrations/0001_initial.py b/nsot/migrations/0001_initial.py new file mode 100644 index 00000000..e787506d --- /dev/null +++ b/nsot/migrations/0001_initial.py @@ -0,0 +1,179 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +import nsot.util +import django.db.models.deletion +import django.utils.timezone +from django.conf import settings +import nsot.fields +import django_extensions.db.fields.json + + +class Migration(migrations.Migration): + + dependencies = [ + ('contenttypes', '0002_remove_content_type_name'), + ('auth', '0006_require_contenttypes_0002'), + ] + + operations = [ + migrations.CreateModel( + name='User', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('password', models.CharField(max_length=128, verbose_name='password')), + ('last_login', models.DateTimeField(null=True, verbose_name='last login', blank=True)), + ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), + ('email', models.EmailField(unique=True, max_length=255, verbose_name='email address', db_index=True)), + ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')), + ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), + ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), + ('secret_key', models.CharField(default=nsot.util.generate_secret_key, max_length=44)), + ('groups', models.ManyToManyField(related_query_name='user', related_name='user_set', to='auth.Group', blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', verbose_name='groups')), + ('user_permissions', models.ManyToManyField(related_query_name='user', related_name='user_set', to='auth.Permission', blank=True, help_text='Specific permissions for this user.', verbose_name='user permissions')), + ], + options={ + 'abstract': False, + 'verbose_name': 'user', + 'verbose_name_plural': 'users', + }, + ), + migrations.CreateModel( + name='Attribute', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(max_length=64, db_index=True)), + ('description', models.CharField(default='', max_length=255)), + ('required', models.BooleanField(default=False)), + ('display', models.BooleanField(default=False)), + ('multi', models.BooleanField(default=False)), + ('constraints', django_extensions.db.fields.json.JSONField(blank=True)), + ('resource_name', models.CharField(db_index=True, max_length=20, verbose_name='Resource Name', choices=[('Network', 'Network'), ('Device', 'Device')])), + ], + ), + migrations.CreateModel( + name='Change', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('change_at', models.DateTimeField(auto_now_add=True)), + ('event', models.CharField(max_length=10, choices=[('Create', 'Create'), ('Update', 'Update'), ('Delete', 'Delete')])), + ('resource_id', models.IntegerField(verbose_name='Resource ID')), + ('resource_name', models.CharField(db_index=True, max_length=20, verbose_name='Resource Type', choices=[('Device', 'Device'), ('Attribute', 'Attribute'), ('Permission', 'Permission'), ('Site', 'Site'), ('Network', 'Network')])), + ('_resource', django_extensions.db.fields.json.JSONField(verbose_name='Resource', blank=True)), + ], + options={ + 'get_latest_by': 'change_at', + }, + ), + migrations.CreateModel( + name='Resource', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('_attributes', django_extensions.db.fields.json.JSONField(blank=True)), + ], + options={ + 'abstract': False, + }, + ), + migrations.CreateModel( + name='Site', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(unique=True, max_length=255)), + ('description', models.TextField(default='', blank=True)), + ], + ), + migrations.CreateModel( + name='Value', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('value', models.CharField(db_index=True, max_length=255, blank=True)), + ('attribute', models.ForeignKey(related_name='values', on_delete=django.db.models.deletion.PROTECT, to='nsot.Attribute')), + ], + ), + migrations.CreateModel( + name='Device', + fields=[ + ('resource_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='nsot.Resource')), + ('hostname', models.CharField(max_length=255, db_index=True)), + ('site', models.ForeignKey(related_name='devices', on_delete=django.db.models.deletion.PROTECT, to='nsot.Site')), + ], + bases=('nsot.resource',), + ), + migrations.CreateModel( + name='Network', + fields=[ + ('resource_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='nsot.Resource')), + ('network_address', nsot.fields.BinaryIPAddressField(max_length=16, db_index=True)), + ('broadcast_address', nsot.fields.BinaryIPAddressField(max_length=16, db_index=True)), + ('prefix_length', models.IntegerField(db_index=True)), + ('ip_version', models.CharField(db_index=True, max_length=1, choices=[('4', '4'), ('6', '6')])), + ('is_ip', models.BooleanField(default=False, db_index=True)), + ('site', models.ForeignKey(related_name='networks', on_delete=django.db.models.deletion.PROTECT, to='nsot.Site')), + ], + bases=('nsot.resource',), + ), + migrations.AddField( + model_name='value', + name='resource', + field=models.ForeignKey(related_name='attributes', blank=True, to='nsot.Resource'), + ), + migrations.AddField( + model_name='resource', + name='parent', + field=models.ForeignKey(related_name='children', on_delete=django.db.models.deletion.PROTECT, default=None, blank=True, to='nsot.Resource', null=True), + ), + migrations.AddField( + model_name='resource', + name='polymorphic_ctype', + field=models.ForeignKey(related_name='polymorphic_nsot.resource_set+', editable=False, to='contenttypes.ContentType', null=True), + ), + migrations.AddField( + model_name='change', + name='site', + field=models.ForeignKey(related_name='changes', to='nsot.Site'), + ), + migrations.AddField( + model_name='change', + name='user', + field=models.ForeignKey(related_name='changes', to=settings.AUTH_USER_MODEL), + ), + migrations.AddField( + model_name='attribute', + name='site', + field=models.ForeignKey(related_name='attributes', on_delete=django.db.models.deletion.PROTECT, to='nsot.Site'), + ), + migrations.AlterUniqueTogether( + name='value', + unique_together=set([('attribute', 'value', 'resource')]), + ), + migrations.AlterIndexTogether( + name='value', + index_together=set([('attribute', 'value', 'resource')]), + ), + migrations.AlterUniqueTogether( + name='attribute', + unique_together=set([('site', 'resource_name', 'name')]), + ), + migrations.AlterIndexTogether( + name='attribute', + index_together=set([('site', 'resource_name', 'name')]), + ), + migrations.AlterUniqueTogether( + name='network', + unique_together=set([('site', 'ip_version', 'network_address', 'prefix_length')]), + ), + migrations.AlterIndexTogether( + name='network', + index_together=set([('site', 'ip_version', 'network_address', 'prefix_length')]), + ), + migrations.AlterUniqueTogether( + name='device', + unique_together=set([('site', 'hostname')]), + ), + migrations.AlterIndexTogether( + name='device', + index_together=set([('site', 'hostname')]), + ), + ] diff --git a/nsot/migrations/0002_auto_20150810_1718.py b/nsot/migrations/0002_auto_20150810_1718.py new file mode 100644 index 00000000..5cd6f316 --- /dev/null +++ b/nsot/migrations/0002_auto_20150810_1718.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +import macaddress.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0001_initial'), + ] + + operations = [ + migrations.CreateModel( + name='Assignment', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('created', models.DateTimeField(auto_now_add=True)), + ('address', models.ForeignKey(to='nsot.Network')), + ], + ), + migrations.CreateModel( + name='Interface', + fields=[ + ('resource_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='nsot.Resource')), + ('name', models.CharField(max_length=255, db_index=True)), + ('description', models.CharField(default='', max_length=255)), + ('type', models.IntegerField(db_index=True, verbose_name='Interface Type', choices=[('other', 1), ('ethernet', 6), ('loopback', 24), ('tunnel', 131), ('l2vlan', 135), ('l3vlan', 136), ('mpls', 150), ('lag', 161)])), + ('mac', macaddress.fields.MACAddressField(integer=True, db_index=True, blank=True)), + ('speed', models.IntegerField(db_index=True)), + ('addresses', models.ManyToManyField(related_name='addresses', through='nsot.Assignment', to='nsot.Network', db_index=True)), + ('device', models.ForeignKey(related_name='interfaces', to='nsot.Device')), + ], + bases=('nsot.resource',), + ), + migrations.AddField( + model_name='assignment', + name='interface', + field=models.ForeignKey(to='nsot.Interface'), + ), + migrations.AlterUniqueTogether( + name='interface', + unique_together=set([('device', 'name')]), + ), + migrations.AlterIndexTogether( + name='interface', + index_together=set([('device', 'name')]), + ), + migrations.AlterUniqueTogether( + name='assignment', + unique_together=set([('address', 'interface')]), + ), + ] diff --git a/nsot/migrations/0003_auto_20150810_1751.py b/nsot/migrations/0003_auto_20150810_1751.py new file mode 100644 index 00000000..d58ac562 --- /dev/null +++ b/nsot/migrations/0003_auto_20150810_1751.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +import macaddress.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0002_auto_20150810_1718'), + ] + + operations = [ + migrations.AlterField( + model_name='interface', + name='mac', + field=macaddress.fields.MACAddressField(db_index=True, integer=True, null=True, blank=True), + ), + ] diff --git a/nsot/migrations/0004_auto_20150810_1806.py b/nsot/migrations/0004_auto_20150810_1806.py new file mode 100644 index 00000000..2f0d319f --- /dev/null +++ b/nsot/migrations/0004_auto_20150810_1806.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +import macaddress.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0003_auto_20150810_1751'), + ] + + operations = [ + migrations.AlterField( + model_name='interface', + name='mac', + field=macaddress.fields.MACAddressField(default=0, integer=True, null=True, db_index=True, blank=True), + ), + migrations.AlterField( + model_name='interface', + name='speed', + field=models.IntegerField(default=1000, db_index=True), + ), + migrations.AlterField( + model_name='interface', + name='type', + field=models.IntegerField(default=6, db_index=True, verbose_name='Interface Type', choices=[('other', 1), ('ethernet', 6), ('loopback', 24), ('tunnel', 131), ('l2vlan', 135), ('l3vlan', 136), ('mpls', 150), ('lag', 161)]), + ), + ] diff --git a/nsot/migrations/0005_auto_20150810_1847.py b/nsot/migrations/0005_auto_20150810_1847.py new file mode 100644 index 00000000..d30608ab --- /dev/null +++ b/nsot/migrations/0005_auto_20150810_1847.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0004_auto_20150810_1806'), + ] + + operations = [ + migrations.AddField( + model_name='interface', + name='site', + field=models.ForeignKey(related_name='interfaces', on_delete=django.db.models.deletion.PROTECT, default=1, to='nsot.Site'), + preserve_default=False, + ), + migrations.AlterField( + model_name='attribute', + name='resource_name', + field=models.CharField(db_index=True, max_length=20, verbose_name='Resource Name', choices=[('Device', 'Device'), ('Interface', 'Interface'), ('Network', 'Network')]), + ), + migrations.AlterField( + model_name='change', + name='resource_name', + field=models.CharField(db_index=True, max_length=20, verbose_name='Resource Type', choices=[('Network', 'Network'), ('Permission', 'Permission'), ('Attribute', 'Attribute'), ('Site', 'Site'), ('Interface', 'Interface'), ('Device', 'Device')]), + ), + ] diff --git a/nsot/migrations/0006_auto_20150810_1947.py b/nsot/migrations/0006_auto_20150810_1947.py new file mode 100644 index 00000000..146a3469 --- /dev/null +++ b/nsot/migrations/0006_auto_20150810_1947.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0005_auto_20150810_1847'), + ] + + operations = [ + migrations.AlterField( + model_name='assignment', + name='interface', + field=models.ForeignKey(related_name='assignments', to='nsot.Interface'), + ), + migrations.AlterIndexTogether( + name='assignment', + index_together=set([('address', 'interface')]), + ), + ] diff --git a/nsot/migrations/0007_auto_20150811_1201.py b/nsot/migrations/0007_auto_20150811_1201.py new file mode 100644 index 00000000..4c666b4f --- /dev/null +++ b/nsot/migrations/0007_auto_20150811_1201.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0006_auto_20150810_1947'), + ] + + operations = [ + migrations.RenameField( + model_name='interface', + old_name='mac', + new_name='mac_address', + ), + ] diff --git a/nsot/migrations/0008_auto_20150811_1222.py b/nsot/migrations/0008_auto_20150811_1222.py new file mode 100644 index 00000000..2ed61dd1 --- /dev/null +++ b/nsot/migrations/0008_auto_20150811_1222.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0007_auto_20150811_1201'), + ] + + operations = [ + migrations.AlterField( + model_name='assignment', + name='address', + field=models.ForeignKey(related_name='assignments', to='nsot.Network'), + ), + ] diff --git a/nsot/migrations/0009_auto_20150811_1245.py b/nsot/migrations/0009_auto_20150811_1245.py new file mode 100644 index 00000000..390ec5ed --- /dev/null +++ b/nsot/migrations/0009_auto_20150811_1245.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0008_auto_20150811_1222'), + ] + + operations = [ + migrations.AlterField( + model_name='interface', + name='type', + field=models.IntegerField(default=6, db_index=True, verbose_name='Interface Type', choices=[(1, 'other'), (6, 'ethernet'), (24, 'loopback'), (131, 'tunnel'), (135, 'l2vlan'), (136, 'l3vlan'), (150, 'mpls'), (161, 'lag')]), + ), + ] diff --git a/nsot/migrations/0010_auto_20150921_2120.py b/nsot/migrations/0010_auto_20150921_2120.py new file mode 100644 index 00000000..6b8e8045 --- /dev/null +++ b/nsot/migrations/0010_auto_20150921_2120.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +import nsot.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0009_auto_20150811_1245'), + ] + + operations = [ + migrations.AlterField( + model_name='attribute', + name='description', + field=models.CharField(default='', max_length=255, blank=True), + ), + migrations.AlterField( + model_name='interface', + name='description', + field=models.CharField(default='', max_length=255, blank=True), + ), + migrations.AlterField( + model_name='interface', + name='mac_address', + field=nsot.fields.MACAddressField(default=0, blank=True, help_text='If not provided, defaults to 00:00:00:00:00:00.', integer=True, null=True, verbose_name='MAC Address', db_index=True), + ), + migrations.AlterField( + model_name='interface', + name='name', + field=models.CharField(help_text='The name of the interface as it appears on the device.', max_length=255, db_index=True), + ), + migrations.AlterField( + model_name='interface', + name='speed', + field=models.IntegerField(default=10000, help_text='Integer of Mbps of interface (e.g. 20000 for 20 Gbps). If not provided, defaults to 10000.', db_index=True, blank=True), + ), + migrations.AlterField( + model_name='interface', + name='type', + field=models.IntegerField(default=6, help_text="If not provided, defaults to 'ethernet'.", db_index=True, verbose_name='Interface Type', choices=[(6, b'ethernet'), (1, b'other'), (135, b'l2vlan'), (136, b'l3vlan'), (161, b'lag'), (24, b'loopback'), (150, b'mpls'), (131, b'tunnel')]), + ), + ] diff --git a/nsot/migrations/0011_auto_20150930_1557.py b/nsot/migrations/0011_auto_20150930_1557.py new file mode 100644 index 00000000..c271f13c --- /dev/null +++ b/nsot/migrations/0011_auto_20150930_1557.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0010_auto_20150921_2120'), + ] + + operations = [ + migrations.RemoveField( + model_name='resource', + name='parent', + ), + migrations.AddField( + model_name='interface', + name='parent', + field=models.ForeignKey(related_name='children', on_delete=django.db.models.deletion.PROTECT, default=None, blank=True, to='nsot.Interface', null=True), + ), + migrations.AddField( + model_name='network', + name='parent', + field=models.ForeignKey(related_name='children', on_delete=django.db.models.deletion.PROTECT, default=None, blank=True, to='nsot.Network', null=True), + ), + ] diff --git a/nsot/migrations/0012_auto_20151002_1427.py b/nsot/migrations/0012_auto_20151002_1427.py new file mode 100644 index 00000000..9e921a17 --- /dev/null +++ b/nsot/migrations/0012_auto_20151002_1427.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +import smart_selects.db_fields +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0011_auto_20150930_1557'), + ] + + operations = [ + migrations.AlterField( + model_name='interface', + name='description', + field=models.CharField(default='', help_text='A brief yet helpful description.', max_length=255, blank=True), + ), + migrations.AlterField( + model_name='interface', + name='device', + field=models.ForeignKey(related_name='interfaces', verbose_name='Device', to='nsot.Device', help_text='Unique ID of the connected Device.'), + ), + migrations.AlterField( + model_name='interface', + name='parent', + field=smart_selects.db_fields.ChainedForeignKey(chained_model_field='device', related_name='children', on_delete=django.db.models.deletion.PROTECT, default=None, auto_choose=True, to='nsot.Interface', chained_field='device', blank=True, help_text='Unique ID of the parent Interface.', null=True, verbose_name='Parent'), + ), + migrations.AlterField( + model_name='interface', + name='type', + field=models.IntegerField(default=6, help_text="If not provided, defaults to 'ethernet'.", db_index=True, verbose_name='Interface Type', choices=[(6, b'ethernet'), (1, b'other'), (135, b'l2vlan'), (136, b'l3vlan'), (161, b'lag'), (24, b'loopback'), (150, b'mpls'), (53, b'prop_virtual'), (131, b'tunnel')]), + ), + ] diff --git a/nsot/migrations/0013_auto_20151002_1443.py b/nsot/migrations/0013_auto_20151002_1443.py new file mode 100644 index 00000000..ea49bf1f --- /dev/null +++ b/nsot/migrations/0013_auto_20151002_1443.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0012_auto_20151002_1427'), + ] + + operations = [ + migrations.AlterField( + model_name='interface', + name='name', + field=models.CharField(help_text='The name of the interface as it appears on the Device.', max_length=255, db_index=True), + ), + ] diff --git a/nsot/migrations/0014_auto_20151002_1653.py b/nsot/migrations/0014_auto_20151002_1653.py new file mode 100644 index 00000000..240447b4 --- /dev/null +++ b/nsot/migrations/0014_auto_20151002_1653.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +import smart_selects.db_fields +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0013_auto_20151002_1443'), + ] + + operations = [ + migrations.AlterField( + model_name='interface', + name='parent', + field=smart_selects.db_fields.ChainedForeignKey(chained_model_field='device', related_name='children', on_delete=django.db.models.deletion.PROTECT, default=None, to='nsot.Interface', chained_field='device', blank=True, help_text='Unique ID of the parent Interface.', null=True, verbose_name='Parent'), + ), + ] diff --git a/nsot/migrations/0015_move_attribute_fields.py b/nsot/migrations/0015_move_attribute_fields.py new file mode 100644 index 00000000..154e57df --- /dev/null +++ b/nsot/migrations/0015_move_attribute_fields.py @@ -0,0 +1,205 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +import smart_selects.db_fields +import django.db.models.deletion +import django_extensions.db.fields.json +import nsot.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0014_auto_20151002_1653'), + ] + + operations = [ + + ########## + # Device # + ########## + # Create temp Device object + migrations.CreateModel( + name='Device_temp', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('_attributes_cache', django_extensions.db.fields.json.JSONField(blank=True)), + ('hostname', models.CharField(max_length=255, db_index=True)), + ('site', models.ForeignKey(related_name='devices', on_delete=django.db.models.deletion.PROTECT, to='nsot.Site')), + ], + ), + + # self._attributes_cache = self.resource_ptr._attributes + migrations.AddField( + model_name='device', + name='_attributes_cache', + field=django_extensions.db.fields.json.JSONField(blank=True), + ), + + # self.id = self.resource_ptr_id + migrations.AddField( + model_name='device', + name='new_id', + field=models.IntegerField(default=0, verbose_name='ID'), + preserve_default=False, + ), + + ########### + # Network # + ########### + migrations.CreateModel( + name='Network_temp', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('_attributes_cache', django_extensions.db.fields.json.JSONField(blank=True)), + ('network_address', nsot.fields.BinaryIPAddressField(max_length=16, db_index=True)), + ('broadcast_address', nsot.fields.BinaryIPAddressField(max_length=16, db_index=True)), + ('prefix_length', models.IntegerField(db_index=True)), + ('ip_version', models.CharField(db_index=True, max_length=1, choices=[('4', '4'), ('6', '6')])), + ('is_ip', models.BooleanField(default=False, db_index=True)), + ('parent', models.ForeignKey(related_name='children', on_delete=django.db.models.deletion.PROTECT, default=None, blank=True, to='nsot.Network_temp', null=True), + ), + ('site', models.ForeignKey(related_name='networks', on_delete=django.db.models.deletion.PROTECT, to='nsot.Site')), + ], + ), + + migrations.AddField( + model_name='network', + name='_attributes_cache', + field=django_extensions.db.fields.json.JSONField(blank=True), + ), + migrations.AddField( + model_name='network', + name='new_id', + field=models.IntegerField(default=0, verbose_name='ID'), + preserve_default=False, + ), + migrations.AddField( + model_name='network', + name='new_parent_id', + field=models.IntegerField(null=True, verbose_name='Parent ID'), + preserve_default=False, + ), + + ################## + # Assignment 1/2 # + ################## + + migrations.CreateModel( + name='Assignment_temp', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('address', models.ForeignKey(to='nsot.Network_temp')), + # ('interface', models.ForeignKey(to='nsot.Interface_temp')), + ('created', models.DateTimeField(auto_now_add=True)), + ], + ), + + ############# + # Interface # + ############# + migrations.CreateModel( + name='Interface_temp', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('_attributes_cache', django_extensions.db.fields.json.JSONField(blank=True)), + ('name', models.CharField(help_text='The name of the interface as it appears on the Device.', max_length=255, db_index=True)), + ('description', models.CharField(default='', help_text='A brief yet helpful description.', max_length=255, blank=True)), + ('type', models.IntegerField(default=6, help_text="If not provided, defaults to 'ethernet'.", db_index=True, verbose_name='Interface Type', choices=[(6, b'ethernet'), (1, b'other'), (135, b'l2vlan'), (136, b'l3vlan'), (161, b'lag'), (24, b'loopback'), (150, b'mpls'), (53, b'prop_virtual'), (131, b'tunnel')])), + ('mac_address', nsot.fields.MACAddressField(default=0, blank=True, help_text='If not provided, defaults to 00:00:00:00:00:00.', integer=True, null=True, verbose_name='MAC Address', db_index=True)), + ('speed', models.IntegerField(default=10000, help_text='Integer of Mbps of interface (e.g. 20000 for 20 Gbps). If not provided, defaults to 10000.', db_index=True, blank=True)), + ('addresses', models.ManyToManyField(related_name='addresses', through='nsot.Assignment_temp', to='nsot.Network_temp', db_index=True)), + ('device', models.ForeignKey(related_name='interfaces', verbose_name='Device', to='nsot.Device_temp', help_text='Unique ID of the connected Device.')), + ('parent', smart_selects.db_fields.ChainedForeignKey(chained_model_field='device', related_name='children', on_delete=django.db.models.deletion.PROTECT, default=None, auto_choose=True, to='nsot.Interface_temp', chained_field='device', blank=True, help_text='Unique ID of the parent Interface.', null=True, verbose_name='Parent')), + ('site', models.ForeignKey(related_name='interfaces', on_delete=django.db.models.deletion.PROTECT, to='nsot.Site')), + ], + ), + + migrations.AddField( + model_name='interface', + name='_attributes_cache', + field=django_extensions.db.fields.json.JSONField(blank=True), + ), + migrations.AddField( + model_name='interface', + name='new_id', + field=models.IntegerField(default=0, verbose_name='ID'), + preserve_default=False, + ), + migrations.AddField( + model_name='interface', + name='new_parent_id', + field=models.IntegerField(null=True, verbose_name='Parent ID'), + preserve_default=False, + ), + migrations.AddField( + model_name='device', + name='new_device_id', + field=models.IntegerField(default=0, verbose_name='Device ID'), + preserve_default=False, + ), + + ################## + # Assignment 2/2 # + ################## + migrations.AddField( + model_name='assignment_temp', + name='interface', + field=models.ForeignKey(to='nsot.Interface_temp'), + ), + migrations.AlterUniqueTogether( + name='interface_temp', + unique_together=set([('device', 'name')]), + ), + migrations.AlterIndexTogether( + name='interface_temp', + index_together=set([('device', 'name')]), + ), + migrations.AlterUniqueTogether( + name='assignment_temp', + unique_together=set([('address', 'interface')]), + ), + migrations.AlterIndexTogether( + name='assignment_temp', + index_together=set([('address', 'interface')]), + ), + + ######### + # Value # + ######### + + # self.attribute.name => self.name + migrations.AddField( + model_name='value', + name='name', + field=models.CharField(max_length=64, verbose_name='Name', blank=True), + ), + + # self.resource_id => self.new_resource_id + migrations.AddField( + model_name='value', + name='new_resource_id', + field=models.IntegerField(default=1, verbose_name='Resource ID'), + preserve_default=False, + ), + + # self.resource_name = self.resource.__class__.__name__ + migrations.AddField( + model_name='value', + name='resource_name', + field=models.CharField(default='BOGUS', max_length=20, verbose_name='Resource Type', db_index=True, choices=[('Device', 'Device'), ('Attribute', 'Attribute'), ('Interface', 'Interface'), ('Site', 'Site'), ('Network', 'Network')]), + preserve_default=False, + ), + + ########## + # Change # + ########## + + migrations.AlterField( + model_name='change', + name='resource_name', + field=models.CharField(db_index=True, max_length=20, verbose_name='Resource Type', choices=[('Device', 'Device'), ('Attribute', 'Attribute'), ('Interface', 'Interface'), ('Site', 'Site'), ('Network', 'Network')]), + ), + +] diff --git a/nsot/migrations/0016_move_device_data.py b/nsot/migrations/0016_move_device_data.py new file mode 100644 index 00000000..f66116b0 --- /dev/null +++ b/nsot/migrations/0016_move_device_data.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +import django_extensions.db.fields.json + + +def migrate_device_fields(apps, schema_editor): + """ + Migrate new Device fields. + """ + Device = apps.get_model('nsot', 'Device') + Device_temp = apps.get_model('nsot', 'Device_temp') + for dev in Device.objects.iterator(): + dev_tmp = Device_temp.objects.create( + id=dev.resource_ptr_id, + hostname=dev.hostname, + _attributes_cache = dev._attributes, + site=dev.site, + ) + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0015_move_attribute_fields'), + ] + + operations = [ + + # Device _attributes_cache, new_id + migrations.RunPython(migrate_device_fields), + + ] diff --git a/nsot/migrations/0017_move_network_data.py b/nsot/migrations/0017_move_network_data.py new file mode 100644 index 00000000..ff8c7d92 --- /dev/null +++ b/nsot/migrations/0017_move_network_data.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +import django_extensions.db.fields.json + + +def migrate_network_fields(apps, schema_editor): + """ + Migrate new Network fields. + """ + Network = apps.get_model('nsot', 'Network') + Network_temp = apps.get_model('nsot', 'Network_temp') + for net in Network.objects.iterator(): + net_tmp = Network_temp.objects.create( + network_address=net.network_address, + broadcast_address=net.broadcast_address, + prefix_length=net.prefix_length, + ip_version=net.ip_version, + is_ip=net.is_ip, + id=net.resource_ptr_id, + parent_id=net.parent_id, + _attributes_cache=net._attributes, + site=net.site, + ) + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0016_move_device_data'), + ] + + operations = [ + + # Network _attributes_cache, new_id + migrations.RunPython(migrate_network_fields), + + ] diff --git a/nsot/migrations/0018_move_interface_data.py b/nsot/migrations/0018_move_interface_data.py new file mode 100644 index 00000000..74791e99 --- /dev/null +++ b/nsot/migrations/0018_move_interface_data.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +def migrate_interface_fields(apps, schema_editor): + """ + Migrate new Interface fields. + """ + Interface = apps.get_model('nsot', 'Interface') + Interface_temp = apps.get_model('nsot', 'Interface_temp') + for ifc in Interface.objects.iterator(): + ifc_tmp = Interface_temp.objects.create( + id=ifc.resource_ptr_id, + name=ifc.name, + description=ifc.description, + device_id=ifc.device_id, + parent_id=ifc.parent_id, + type=ifc.type, + speed=ifc.speed, + mac_address=ifc.mac_address, + site=ifc.site, + _attributes_cache = ifc._attributes, + ) + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0017_move_network_data'), + ] + + operations = [ + + # Interface _attributes_cache, new_id + migrations.RunPython(migrate_interface_fields), + + ] diff --git a/nsot/migrations/0019_move_assignment_data.py b/nsot/migrations/0019_move_assignment_data.py new file mode 100644 index 00000000..e390ec0b --- /dev/null +++ b/nsot/migrations/0019_move_assignment_data.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +def migrate_assignment_fields(apps, schema_editor): + """Migrate new Assignment fields.""" + Assignment = apps.get_model('nsot', 'Assignment') + Assignment_temp = apps.get_model('nsot', 'Assignment_temp') + for asn in Assignment.objects.iterator(): + asn_tmp = Assignment_temp.objects.create( + id = asn.id, + address_id=asn.address_id, + interface_id=asn.interface_id, + ) + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0018_move_interface_data'), + ] + + operations = [ + + # Assignment id, address_id, interface_id + migrations.RunPython(migrate_assignment_fields), + + ] diff --git a/nsot/migrations/0020_move_value_data.py b/nsot/migrations/0020_move_value_data.py new file mode 100644 index 00000000..adc3bbf4 --- /dev/null +++ b/nsot/migrations/0020_move_value_data.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +def migrate_value_fields(apps, schema_editor): + """ + Migrate new Value fields. + """ + Value = apps.get_model('nsot', 'Value') + for val in Value.objects.iterator(): + val.resource_name = val.resource.polymorphic_ctype.model.title() + val.new_resource_id = val.resource_id + val.name = val.attribute.name + val.save() + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0019_move_assignment_data'), + ] + + operations = [ + + # Value name, resource_id, resource_name + migrations.RunPython(migrate_value_fields), + + ] diff --git a/nsot/migrations/0021_remove_resource_object.py b/nsot/migrations/0021_remove_resource_object.py new file mode 100644 index 00000000..2be3eca8 --- /dev/null +++ b/nsot/migrations/0021_remove_resource_object.py @@ -0,0 +1,171 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +import django.db.models.deletion +import django_extensions.db.fields.json +import smart_selects.db_fields + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0020_move_value_data'), + ] + + operations = [ + + ######### + # Value # + ######### + + # Fix constraints + migrations.AlterUniqueTogether( + name='value', + unique_together=set([('name', 'value', 'resource_name', 'new_resource_id')]), + ), + migrations.AlterIndexTogether( + name='value', + index_together=set([('name', 'value', 'resource_name')]), + ), + + # Delete the resource fk + migrations.RemoveField( + model_name='value', + name='resource', + ), + + # Rename resource_id + migrations.RenameField( + model_name='value', + old_name='new_resource_id', + new_name='resource_id', + ), + + ############# + # Resources # + ############# + + # Delete the now-legacy Resource-based multiple inheritance models. + + migrations.DeleteModel( + name='Assignment', + ), + + migrations.DeleteModel( + name='Interface', + ), + + migrations.DeleteModel( + name='Network', + ), + + migrations.DeleteModel( + name='Device', + ), + + # Delete the Resource model altogether + migrations.DeleteModel( + name='Resource', + ), + + ################# + # Rename models # + ################# + + # Start renaming the new Resource-abstract concrete models. + + # Network & Network relations + migrations.RenameModel( + old_name='Network_temp', + new_name='Network', + ), + migrations.AlterField( + model_name='network', + name='parent', + field=models.ForeignKey(related_name='children', on_delete=django.db.models.deletion.PROTECT, default=None, blank=True, to='nsot.Network', null=True), + ), + + # Device + migrations.RenameModel( + old_name='Device_temp', + new_name='Device', + ), + + # Interface & Interface relations + migrations.RenameModel( + old_name='Interface_temp', + new_name='Interface', + ), + + ############## + # Assignment # + ############## + + # Because Assignments is used as m2m-through on Interface, we have to + # create the model anew. + migrations.CreateModel( + name='Assignment', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('address', models.ForeignKey(related_name='assignments', to='nsot.Network')), + ('interface', models.ForeignKey(related_name='assignments', to='nsot.Interface', db_index=True)), + ('created', models.DateTimeField(auto_now_add=True)), + ], + ), + + # Interface => m2m throgh Assignment => Network + migrations.AlterField( + model_name='interface', + name='addresses', + field=models.ManyToManyField(related_name='addresses', through='nsot.Assignment', to='nsot.Network', db_index=True) + ), + + # Ditch the intermediate temp Assignment model + migrations.DeleteModel( + name='Assignment_temp', + ), + + # Interface relations + migrations.AlterField( + model_name='interface', + name='device', + field=models.ForeignKey(related_name='interfaces', verbose_name='Device', to='nsot.Device', help_text='Unique ID of the connected Device.') + ), + migrations.AlterField( + model_name='interface', + name='parent', + field=smart_selects.db_fields.ChainedForeignKey(chained_model_field='device', related_name='children', on_delete=django.db.models.deletion.PROTECT, default=None, to='nsot.Interface', chained_field='device', blank=True, help_text='Unique ID of the parent Interface.', null=True, verbose_name='Parent'), + ), + + ############### + # Constraints # + ############### + + migrations.AlterUniqueTogether( + name='assignment', + unique_together=set([('address', 'interface')]), + ), + migrations.AlterUniqueTogether( + name='device', + unique_together=set([('site', 'hostname')]), + ), + migrations.AlterUniqueTogether( + name='network', + unique_together=set([('site', 'ip_version', 'network_address', 'prefix_length')]), + ), + migrations.AlterIndexTogether( + name='assignment', + index_together=set([('address', 'interface')]), + ), + migrations.AlterIndexTogether( + name='device', + index_together=set([('site', 'hostname')]), + ), + migrations.AlterIndexTogether( + name='network', + index_together=set([('site', 'ip_version', 'network_address', 'prefix_length')]), + ), + + + ] diff --git a/nsot/migrations/0022_auto_20151007_1847.py b/nsot/migrations/0022_auto_20151007_1847.py new file mode 100644 index 00000000..0ac098b6 --- /dev/null +++ b/nsot/migrations/0022_auto_20151007_1847.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models +import django_extensions.db.fields.json + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0021_remove_resource_object'), + ] + + operations = [ + migrations.AddField( + model_name='interface', + name='_addresses_cache', + field=django_extensions.db.fields.json.JSONField(default=b'[]', blank=True), + ), + migrations.AddField( + model_name='interface', + name='_networks_cache', + field=django_extensions.db.fields.json.JSONField(default=b'[]', blank=True), + ), + ] diff --git a/nsot/migrations/0023_auto_20151008_1351.py b/nsot/migrations/0023_auto_20151008_1351.py new file mode 100644 index 00000000..9b08759a --- /dev/null +++ b/nsot/migrations/0023_auto_20151008_1351.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0022_auto_20151007_1847'), + ] + + operations = [ + migrations.AlterIndexTogether( + name='value', + index_together=set([('resource_name', 'resource_id'), ('name', 'value', 'resource_name')]), + ), + ] diff --git a/nsot/migrations/0024_network_state.py b/nsot/migrations/0024_network_state.py new file mode 100644 index 00000000..7f44a733 --- /dev/null +++ b/nsot/migrations/0024_network_state.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0023_auto_20151008_1351'), + ] + + operations = [ + migrations.AddField( + model_name='network', + name='state', + field=models.CharField(default='allocated', max_length=20, db_index=True, choices=[('allocated', 'Allocated'), ('assigned', 'Assigned'), ('orphaned', 'Orphaned'), ('reserved', 'Reserved')]), + ), + ] diff --git a/nsot/migrations/0025_value_site.py b/nsot/migrations/0025_value_site.py new file mode 100644 index 00000000..913eb0ab --- /dev/null +++ b/nsot/migrations/0025_value_site.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0024_network_state'), + ] + + operations = [ + migrations.AddField( + model_name='value', + name='site', + field=models.ForeignKey(related_name='values', on_delete=django.db.models.deletion.PROTECT, default=1, to='nsot.Site'), + preserve_default=False, + ), + ] diff --git a/nsot/migrations/__init__.py b/nsot/migrations/__init__.py new file mode 100644 index 00000000..e69de29b From 3e4649de4efe15f06e23018c7722c2ba5ee44d04 Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Tue, 20 Sep 2016 13:11:59 -0400 Subject: [PATCH 16/31] Updated migrations --- nsot/migrations/0026_auto_20160920_1209.py | 254 +++++++++++++++++++++ 1 file changed, 254 insertions(+) create mode 100644 nsot/migrations/0026_auto_20160920_1209.py diff --git a/nsot/migrations/0026_auto_20160920_1209.py b/nsot/migrations/0026_auto_20160920_1209.py new file mode 100644 index 00000000..78cef280 --- /dev/null +++ b/nsot/migrations/0026_auto_20160920_1209.py @@ -0,0 +1,254 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models +import nsot.fields +import nsot.util.core +import django.db.models.deletion +from django.conf import settings +import django_extensions.db.fields.json + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0025_value_site'), + ] + + operations = [ + migrations.CreateModel( + name='Iterable', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('name', models.CharField(help_text='The name of the Iterable.', unique=True, max_length=255)), + ('description', models.TextField(default='', help_text='A helpful description for the Iterable.', blank=True)), + ('min_val', models.PositiveIntegerField(default=1, help_text='The minimum value of the Iterable.')), + ('max_val', models.PositiveIntegerField(default=100, help_text='The maximum value of the Iterable.')), + ('increment', models.PositiveIntegerField(default=1, help_text='Increment value of the Iterable by.')), + ], + ), + migrations.CreateModel( + name='IterValue', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('value', models.IntegerField(default=1, help_text='The value of the iterable.')), + ('unique_id', models.TextField(help_text='An identification for the value table, used to id different rows that have this tag', blank=True)), + ('iterable', models.ForeignKey(related_name='itervalue', on_delete=django.db.models.deletion.PROTECT, to='nsot.Iterable')), + ], + ), + migrations.AlterField( + model_name='assignment', + name='address', + field=models.ForeignKey(related_name='assignments', to='nsot.Network', help_text='Network to which this assignment is bound.'), + ), + migrations.AlterField( + model_name='assignment', + name='interface', + field=models.ForeignKey(related_name='assignments', to='nsot.Interface', help_text='Interface to which this assignment is bound.'), + ), + migrations.AlterField( + model_name='attribute', + name='constraints', + field=django_extensions.db.fields.json.JSONField(help_text='Dictionary of Attribute constraints.', verbose_name='Constraints', blank=True), + ), + migrations.AlterField( + model_name='attribute', + name='description', + field=models.CharField(default='', help_text='A helpful description of the Attribute.', max_length=255, blank=True), + ), + migrations.AlterField( + model_name='attribute', + name='display', + field=models.BooleanField(default=False, help_text='Whether the Attribute should be be displayed by default in UIs. If required is set, this is also set.'), + ), + migrations.AlterField( + model_name='attribute', + name='multi', + field=models.BooleanField(default=False, help_text='Whether the Attribute should be treated as a list type.'), + ), + migrations.AlterField( + model_name='attribute', + name='name', + field=models.CharField(help_text='The name of the Attribute.', max_length=64, db_index=True), + ), + migrations.AlterField( + model_name='attribute', + name='required', + field=models.BooleanField(default=False, help_text='Whether the Attribute should be required.'), + ), + migrations.AlterField( + model_name='attribute', + name='resource_name', + field=models.CharField(help_text='The name of the Resource to which this Attribute is bound.', max_length=20, verbose_name='Resource Name', db_index=True, choices=[('Device', 'Device'), ('Interface', 'Interface'), ('Network', 'Network')]), + ), + migrations.AlterField( + model_name='attribute', + name='site', + field=models.ForeignKey(related_name='attributes', on_delete=django.db.models.deletion.PROTECT, verbose_name='Site', to='nsot.Site', help_text='Unique ID of the Site this Attribute is under.'), + ), + migrations.AlterField( + model_name='change', + name='_resource', + field=django_extensions.db.fields.json.JSONField(help_text='Local cache of the changed Resource. (Internal use only)', verbose_name='Resource', blank=True), + ), + migrations.AlterField( + model_name='change', + name='change_at', + field=models.DateTimeField(help_text='The timestamp of this Change.', auto_now_add=True), + ), + migrations.AlterField( + model_name='change', + name='event', + field=models.CharField(help_text='The type of event this Change represents.', max_length=10, choices=[('Create', 'Create'), ('Update', 'Update'), ('Delete', 'Delete')]), + ), + migrations.AlterField( + model_name='change', + name='resource_id', + field=models.IntegerField(help_text='The unique ID of the Resource for this Change.', verbose_name='Resource ID'), + ), + migrations.AlterField( + model_name='change', + name='resource_name', + field=models.CharField(help_text='The name of the Resource for this Change.', max_length=20, verbose_name='Resource Type', db_index=True, choices=[('Network', 'Network'), ('Attribute', 'Attribute'), ('IterValue', 'IterValue'), ('Site', 'Site'), ('Interface', 'Interface'), ('Device', 'Device'), ('Iterable', 'Iterable')]), + ), + migrations.AlterField( + model_name='change', + name='site', + field=models.ForeignKey(related_name='changes', verbose_name='Site', to='nsot.Site', help_text='Unique ID of the Site this Change is under.'), + ), + migrations.AlterField( + model_name='change', + name='user', + field=models.ForeignKey(related_name='changes', to=settings.AUTH_USER_MODEL, help_text='The User that initiated this Change.'), + ), + migrations.AlterField( + model_name='device', + name='_attributes_cache', + field=django_extensions.db.fields.json.JSONField(help_text='Local cache of attributes. (Internal use only)', blank=True), + ), + migrations.AlterField( + model_name='device', + name='hostname', + field=models.CharField(help_text='The hostname of the Device.', max_length=255, db_index=True), + ), + migrations.AlterField( + model_name='device', + name='site', + field=models.ForeignKey(related_name='devices', on_delete=django.db.models.deletion.PROTECT, verbose_name='Site', to='nsot.Site', help_text='Unique ID of the Site this Device is under.'), + ), + migrations.AlterField( + model_name='interface', + name='_attributes_cache', + field=django_extensions.db.fields.json.JSONField(help_text='Local cache of attributes. (Internal use only)', blank=True), + ), + migrations.AlterField( + model_name='interface', + name='addresses', + field=models.ManyToManyField(help_text='Network addresses assigned to this Interface', related_name='addresses', through='nsot.Assignment', to='nsot.Network', db_index=True), + ), + migrations.AlterField( + model_name='interface', + name='site', + field=models.ForeignKey(related_name='interfaces', on_delete=django.db.models.deletion.PROTECT, to='nsot.Site', help_text='Unique ID of the Site this Interface is under.'), + ), + migrations.AlterField( + model_name='interface', + name='speed', + field=models.IntegerField(default=1000, help_text='Integer of Mbps of interface (e.g. 20000 for 20 Gbps). If not provided, defaults to 1000.', db_index=True, blank=True), + ), + migrations.AlterField( + model_name='network', + name='_attributes_cache', + field=django_extensions.db.fields.json.JSONField(help_text='Local cache of attributes. (Internal use only)', blank=True), + ), + migrations.AlterField( + model_name='network', + name='broadcast_address', + field=nsot.fields.BinaryIPAddressField(help_text='The broadcast address for the Network. (Internal use only)', max_length=16, db_index=True), + ), + migrations.AlterField( + model_name='network', + name='is_ip', + field=models.BooleanField(default=False, help_text='Whether the Network is a host address or not.', db_index=True), + ), + migrations.AlterField( + model_name='network', + name='network_address', + field=nsot.fields.BinaryIPAddressField(help_text='The network address for the Network. The network address and the prefix length together uniquely define a network.', max_length=16, verbose_name='Network Address', db_index=True), + ), + migrations.AlterField( + model_name='network', + name='parent', + field=models.ForeignKey(related_name='children', on_delete=django.db.models.deletion.PROTECT, default=None, blank=True, to='nsot.Network', help_text='The parent Network of the Network.', null=True), + ), + migrations.AlterField( + model_name='network', + name='prefix_length', + field=models.IntegerField(help_text='Length of the Network prefix, in bits.', verbose_name='Prefix Length', db_index=True), + ), + migrations.AlterField( + model_name='network', + name='site', + field=models.ForeignKey(related_name='networks', on_delete=django.db.models.deletion.PROTECT, verbose_name='Site', to='nsot.Site', help_text='Unique ID of the Site this Network is under.'), + ), + migrations.AlterField( + model_name='network', + name='state', + field=models.CharField(default='allocated', help_text='The allocation state of the Network.', max_length=20, db_index=True, choices=[('allocated', 'Allocated'), ('assigned', 'Assigned'), ('orphaned', 'Orphaned'), ('reserved', 'Reserved')]), + ), + migrations.AlterField( + model_name='site', + name='description', + field=models.TextField(default='', help_text='A helpful description for the Site.', blank=True), + ), + migrations.AlterField( + model_name='site', + name='name', + field=models.CharField(help_text='The name of the Site.', unique=True, max_length=255), + ), + migrations.AlterField( + model_name='user', + name='secret_key', + field=models.CharField(default=nsot.util.core.generate_secret_key, help_text="The user's secret_key used for API authentication.", max_length=44), + ), + migrations.AlterField( + model_name='value', + name='attribute', + field=models.ForeignKey(related_name='values', on_delete=django.db.models.deletion.PROTECT, to='nsot.Attribute', help_text='The Attribute to which this Value is assigned.'), + ), + migrations.AlterField( + model_name='value', + name='name', + field=models.CharField(help_text='The name of the Attribute to which the Value is bound. (Internal use only)', max_length=64, verbose_name='Name', blank=True), + ), + migrations.AlterField( + model_name='value', + name='resource_id', + field=models.IntegerField(help_text='The unique ID of the Resource to which the Value is bound.', verbose_name='Resource ID'), + ), + migrations.AlterField( + model_name='value', + name='resource_name', + field=models.CharField(help_text='The name of the Resource type to which the Value is bound.', max_length=20, verbose_name='Resource Type', db_index=True, choices=[('Network', 'Network'), ('Attribute', 'Attribute'), ('IterValue', 'IterValue'), ('Site', 'Site'), ('Interface', 'Interface'), ('Device', 'Device'), ('Iterable', 'Iterable')]), + ), + migrations.AlterField( + model_name='value', + name='site', + field=models.ForeignKey(related_name='values', on_delete=django.db.models.deletion.PROTECT, verbose_name='Site', to='nsot.Site', help_text='Unique ID of the Site this Value is under.'), + ), + migrations.AlterField( + model_name='value', + name='value', + field=models.CharField(help_text='The Attribute value.', max_length=255, db_index=True, blank=True), + ), + migrations.AddField( + model_name='itervalue', + name='site', + field=models.ForeignKey(related_name='itervalue', on_delete=django.db.models.deletion.PROTECT, verbose_name='Site', to='nsot.Site', help_text='Unique ID of the Site this IterValue is under.'), + ), + migrations.AddField( + model_name='iterable', + name='site', + field=models.ForeignKey(related_name='Iterable', on_delete=django.db.models.deletion.PROTECT, verbose_name='Site', to='nsot.Site', help_text='Unique ID of the Site this Attribute is under.'), + ), + ] From 44fd4dabe8e6b3e7799e5fc57018d604a7e75853 Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Tue, 20 Sep 2016 13:15:04 -0400 Subject: [PATCH 17/31] Remove include dir --- include/python2.7 | 1 - include/site/python2.7/greenlet/greenlet.h | 148 --------------------- 2 files changed, 149 deletions(-) delete mode 120000 include/python2.7 delete mode 100644 include/site/python2.7/greenlet/greenlet.h diff --git a/include/python2.7 b/include/python2.7 deleted file mode 120000 index 3fe034fc..00000000 --- a/include/python2.7 +++ /dev/null @@ -1 +0,0 @@ -/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 \ No newline at end of file diff --git a/include/site/python2.7/greenlet/greenlet.h b/include/site/python2.7/greenlet/greenlet.h deleted file mode 100644 index c5e5c3fe..00000000 --- a/include/site/python2.7/greenlet/greenlet.h +++ /dev/null @@ -1,148 +0,0 @@ -/* vim:set noet ts=8 sw=8 : */ - -/* Greenlet object interface */ - -#ifndef Py_GREENLETOBJECT_H -#define Py_GREENLETOBJECT_H - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#define GREENLET_VERSION "0.4.9" - -typedef struct _greenlet { - PyObject_HEAD - char* stack_start; - char* stack_stop; - char* stack_copy; - intptr_t stack_saved; - struct _greenlet* stack_prev; - struct _greenlet* parent; - PyObject* run_info; - struct _frame* top_frame; - int recursion_depth; - PyObject* weakreflist; - PyObject* exc_type; - PyObject* exc_value; - PyObject* exc_traceback; - PyObject* dict; -} PyGreenlet; - -#define PyGreenlet_Check(op) PyObject_TypeCheck(op, &PyGreenlet_Type) -#define PyGreenlet_MAIN(op) (((PyGreenlet*)(op))->stack_stop == (char*) -1) -#define PyGreenlet_STARTED(op) (((PyGreenlet*)(op))->stack_stop != NULL) -#define PyGreenlet_ACTIVE(op) (((PyGreenlet*)(op))->stack_start != NULL) -#define PyGreenlet_GET_PARENT(op) (((PyGreenlet*)(op))->parent) - -#if (PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION >= 7) || (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION >= 1) || PY_MAJOR_VERSION > 3 -#define GREENLET_USE_PYCAPSULE -#endif - -/* C API functions */ - -/* Total number of symbols that are exported */ -#define PyGreenlet_API_pointers 8 - -#define PyGreenlet_Type_NUM 0 -#define PyExc_GreenletError_NUM 1 -#define PyExc_GreenletExit_NUM 2 - -#define PyGreenlet_New_NUM 3 -#define PyGreenlet_GetCurrent_NUM 4 -#define PyGreenlet_Throw_NUM 5 -#define PyGreenlet_Switch_NUM 6 -#define PyGreenlet_SetParent_NUM 7 - -#ifndef GREENLET_MODULE -/* This section is used by modules that uses the greenlet C API */ -static void **_PyGreenlet_API = NULL; - -#define PyGreenlet_Type (*(PyTypeObject *) _PyGreenlet_API[PyGreenlet_Type_NUM]) - -#define PyExc_GreenletError \ - ((PyObject *) _PyGreenlet_API[PyExc_GreenletError_NUM]) - -#define PyExc_GreenletExit \ - ((PyObject *) _PyGreenlet_API[PyExc_GreenletExit_NUM]) - -/* - * PyGreenlet_New(PyObject *args) - * - * greenlet.greenlet(run, parent=None) - */ -#define PyGreenlet_New \ - (* (PyGreenlet * (*)(PyObject *run, PyGreenlet *parent)) \ - _PyGreenlet_API[PyGreenlet_New_NUM]) - -/* - * PyGreenlet_GetCurrent(void) - * - * greenlet.getcurrent() - */ -#define PyGreenlet_GetCurrent \ - (* (PyGreenlet * (*)(void)) _PyGreenlet_API[PyGreenlet_GetCurrent_NUM]) - -/* - * PyGreenlet_Throw( - * PyGreenlet *greenlet, - * PyObject *typ, - * PyObject *val, - * PyObject *tb) - * - * g.throw(...) - */ -#define PyGreenlet_Throw \ - (* (PyObject * (*) \ - (PyGreenlet *self, PyObject *typ, PyObject *val, PyObject *tb)) \ - _PyGreenlet_API[PyGreenlet_Throw_NUM]) - -/* - * PyGreenlet_Switch(PyGreenlet *greenlet, PyObject *args) - * - * g.switch(*args, **kwargs) - */ -#define PyGreenlet_Switch \ - (* (PyObject * (*)(PyGreenlet *greenlet, PyObject *args, PyObject *kwargs)) \ - _PyGreenlet_API[PyGreenlet_Switch_NUM]) - -/* - * PyGreenlet_SetParent(PyObject *greenlet, PyObject *new_parent) - * - * g.parent = new_parent - */ -#define PyGreenlet_SetParent \ - (* (int (*)(PyGreenlet *greenlet, PyGreenlet *nparent)) \ - _PyGreenlet_API[PyGreenlet_SetParent_NUM]) - -/* Macro that imports greenlet and initializes C API */ -#ifdef GREENLET_USE_PYCAPSULE -#define PyGreenlet_Import() \ -{ \ - _PyGreenlet_API = (void**)PyCapsule_Import("greenlet._C_API", 0); \ -} -#else -#define PyGreenlet_Import() \ -{ \ - PyObject *module = PyImport_ImportModule("greenlet"); \ - if (module != NULL) { \ - PyObject *c_api_object = PyObject_GetAttrString( \ - module, "_C_API"); \ - if (c_api_object != NULL && PyCObject_Check(c_api_object)) { \ - _PyGreenlet_API = \ - (void **) PyCObject_AsVoidPtr(c_api_object); \ - Py_DECREF(c_api_object); \ - } \ - Py_DECREF(module); \ - } \ -} -#endif - -#endif /* GREENLET_MODULE */ - -#ifdef __cplusplus -} -#endif -#endif /* !Py_GREENLETOBJECT_H */ From 64eca6e8b79b7b2e21148ea46af8a64de62a8398 Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Tue, 20 Sep 2016 14:13:44 -0400 Subject: [PATCH 18/31] Fixed the failing tests - iter_key -> iterable --- pip-selfcheck.json | 2 +- tests/api_tests/test_iterable.py | 2 +- .../cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json | 1 + .../cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json | 1 + .../cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json | 1 + .../cassettes/6b8854ebbe15b5172ad04a37f0f63867087bcbd9.json | 1 + .../cassettes/7667780e6a0f594265f3e902dbe6383a28a733ab.json | 1 + .../cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json | 1 + .../cassettes/83b0d6704912f1865dd2fb9239a1e7818ab3bdc9.json | 1 + .../cassettes/8ccf4ef98a12f666c96e427686c429919aab7d91.json | 1 + .../cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json | 1 + .../cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json | 2 +- .../cassettes/949cc773ac378030532f36a8ab596483f3586d05.json | 1 + .../cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json | 2 +- .../cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json | 1 + .../cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json | 1 + .../cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json | 1 + .../cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json | 1 + .../cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json | 1 + 19 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 tests/api_tests/tests/api_tests/cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/6b8854ebbe15b5172ad04a37f0f63867087bcbd9.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/7667780e6a0f594265f3e902dbe6383a28a733ab.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/83b0d6704912f1865dd2fb9239a1e7818ab3bdc9.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/8ccf4ef98a12f666c96e427686c429919aab7d91.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/949cc773ac378030532f36a8ab596483f3586d05.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json diff --git a/pip-selfcheck.json b/pip-selfcheck.json index a014b244..95cf50ec 100644 --- a/pip-selfcheck.json +++ b/pip-selfcheck.json @@ -1 +1 @@ -{"last_check":"2016-09-02T17:40:33Z","pypi_version":"8.1.2"} \ No newline at end of file +{"last_check":"2016-09-20T17:24:08Z","pypi_version":"8.1.2"} \ No newline at end of file diff --git a/tests/api_tests/test_iterable.py b/tests/api_tests/test_iterable.py index 64c28d53..ddceebd1 100644 --- a/tests/api_tests/test_iterable.py +++ b/tests/api_tests/test_iterable.py @@ -164,7 +164,7 @@ def test_del_protect(client, site): itrval_uri = site.list_uri('itervalue') nval = client.get(reverse('iterable-next-value', args=(site.id, itr['id']))).json()[0] #Get the next value to assign to the itervalue - itrval_resp = client.create(itrval_uri, iter_key=itr['id'], val=nval, u_id='uuid_custA_site1') # create the iterval + itrval_resp = client.create(itrval_uri, iterable=itr['id'], value=nval, unique_id='uuid_custA_site1') # create the iterval itrval_resp_dict = get_result(itrval_resp) itrval_obj_uri = site.detail_uri('itervalue', id=itrval_resp_dict['id']) diff --git a/tests/api_tests/tests/api_tests/cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json b/tests/api_tests/tests/api_tests/cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json new file mode 100644 index 00000000..bc3509df --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"unique_id\": \"uuid_custA_site1\", \"value\": 10, \"iterable\": 4}", "encoding": "utf-8"}, "headers": {"Content-Length": ["61"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=HxblsCzqLPh6JjqediS8zSVXUEocehTq; sessionid=ftc9xszptwq2t700aiktz8gh4cbjit59"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/itervalue/"}, "response": {"body": {"string": "{\"unique_id\":\"uuid_custA_site1\",\"iterable\":4,\"id\":4,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/itervalue/4/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/itervalue/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json b/tests/api_tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json new file mode 100644 index 00000000..27720618 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":2,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=MxGXqptZpS7mCD00eSjBkttffvP0Je2z; expires=Tue, 19-Sep-2017 16:28:50 GMT; Max-Age=31449600; Path=/", "sessionid=thp9dtuxt11wx9agijh5aoy3qi5dqjod; expires=Tue, 04-Oct-2016 16:28:50 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/iterable/2/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/iterable/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json b/tests/api_tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json new file mode 100644 index 00000000..7a88933a --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":3,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=fvGoS8xXPMC3ZPVmAw7URgFucdVZiSks; expires=Tue, 19-Sep-2017 16:28:50 GMT; Max-Age=31449600; Path=/", "sessionid=c0mvyb8nf0o2z1hrxb6oa9jlpu0h806u; expires=Tue, 04-Oct-2016 16:28:50 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/iterable/3/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/iterable/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/6b8854ebbe15b5172ad04a37f0f63867087bcbd9.json b/tests/api_tests/tests/api_tests/cassettes/6b8854ebbe15b5172ad04a37f0f63867087bcbd9.json new file mode 100644 index 00000000..dbf44e38 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/6b8854ebbe15b5172ad04a37f0f63867087bcbd9.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=HxblsCzqLPh6JjqediS8zSVXUEocehTq; sessionid=ftc9xszptwq2t700aiktz8gh4cbjit59"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/iterable/4/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/iterable/4/next_value/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/7667780e6a0f594265f3e902dbe6383a28a733ab.json b/tests/api_tests/tests/api_tests/cassettes/7667780e6a0f594265f3e902dbe6383a28a733ab.json new file mode 100644 index 00000000..4e3aea32 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/7667780e6a0f594265f3e902dbe6383a28a733ab.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"unique_id\": \"new_update\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["27"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fvGoS8xXPMC3ZPVmAw7URgFucdVZiSks; sessionid=c0mvyb8nf0o2z1hrxb6oa9jlpu0h806u"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/3/itervalue/3/"}, "response": {"body": {"string": "{\"unique_id\":\"new_update\",\"iterable\":3,\"id\":3,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/itervalue/3/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json b/tests/api_tests/tests/api_tests/cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json new file mode 100644 index 00000000..a8e31843 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"unique_id\": \"uuid_custA_site1\", \"value\": 10, \"iterable\": 2}", "encoding": "utf-8"}, "headers": {"Content-Length": ["61"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=MxGXqptZpS7mCD00eSjBkttffvP0Je2z; sessionid=thp9dtuxt11wx9agijh5aoy3qi5dqjod"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/itervalue/"}, "response": {"body": {"string": "{\"unique_id\":\"uuid_custA_site1\",\"iterable\":2,\"id\":2,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/itervalue/2/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/itervalue/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/83b0d6704912f1865dd2fb9239a1e7818ab3bdc9.json b/tests/api_tests/tests/api_tests/cassettes/83b0d6704912f1865dd2fb9239a1e7818ab3bdc9.json new file mode 100644 index 00000000..34c906de --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/83b0d6704912f1865dd2fb9239a1e7818ab3bdc9.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fvGoS8xXPMC3ZPVmAw7URgFucdVZiSks; sessionid=c0mvyb8nf0o2z1hrxb6oa9jlpu0h806u"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/iterable/3/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/iterable/3/next_value/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/8ccf4ef98a12f666c96e427686c429919aab7d91.json b/tests/api_tests/tests/api_tests/cassettes/8ccf4ef98a12f666c96e427686c429919aab7d91.json new file mode 100644 index 00000000..cf6e02fd --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/8ccf4ef98a12f666c96e427686c429919aab7d91.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"unique_id\": \"uuid_custA_site1\", \"iterable\": 2, \"value\": 10, \"id\": 2}", "encoding": "utf-8"}, "headers": {"Content-Length": ["70"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=MxGXqptZpS7mCD00eSjBkttffvP0Je2z; sessionid=thp9dtuxt11wx9agijh5aoy3qi5dqjod"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/2/itervalue/2/"}, "response": {"body": {"string": "{\"unique_id\":\"uuid_custA_site1\",\"iterable\":2,\"id\":2,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/itervalue/2/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json b/tests/api_tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json new file mode 100644 index 00000000..32b8dac7 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=7XqV57gEz6oK4E4sfoqaRDScJVKhXUA8; sessionid=vx85yhad6wgrof6unhlpli0f2hbrhglz"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/1/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/1/next_value/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json b/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json index d140b775..41611283 100644 --- a/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json +++ b/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=qQ62n3SrvDPWsjt1Nn3SrVSMQ1fr62n3ZvrV5Hvzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18yZLbyLbYXl+B5rutkB5UBDGRoKTSewAIzvNM3rhWYEiACWIiRpL39dobr+2NwzuHIxz2wjvvnz/FccOf4UxwKFapSt1S97srKUpFMPPkOSdPnimRJ+vjT7WBPF0NFWITu86nVx/xB+GonnVfAF4BNwDV+PSKID66IFYJfaOGEYjvC0ls3gmFh45NHAd3YJfA9L6wvJuJd7LvBmoMNQcUCN33YuChUS3lHhgWuBnnqS64L6QQZIEfxjegGTTizb0BUqiDu/zLOwJ6MIaqcxfpqgPu6RfIyycUd9NDcEs7BvuYwtP7cJ3FzSQc6G2JTQjM+wLGFb2nqChG/OtFC+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0DTeINZugWMzRPbT/dF/xt4RFNAkfl+DTiw03zVyR7u0AvAj9ZgZxjtEtE6clffw+VpznYM1Re3X7+8pt09zcaLtr5EvnNfx2FwfieRU1XmUP0ibveXKSLZf4A/PG+hDrwFIqnDOrK+FUsN6jv7ukP+QR+OZlVMT9sLp4uk0LX+tKWMfIHFj48WOQzQw3N+f7R+dyKGortbwo5PPKXYVx496Dxby8LDKOJHvqOg5Pi+/Ou6rwoX2Bx0bb6NyBBe/WXcaD49zwK8w3x0y2ex9N9pCl4zk/j9HPCzocYvp7gzXDxBFmMAgc5u8IHNAJl34qKsF/H6JjokwFoQnoR7VwdVQdvqH9HkNQ7ooAGX5vui/+Im+4/gH2AdrcohyBIwgMZUUP51BvspWdTeRKHaFKIKZIofAjUeHNPFa5rSOQZcB6+QuD4qvHYYV85IjBV1Th8OUmsx9jyrqn826IDPCvePLiRJ934TyY8HZK3PcyscM2rC++wyPPbDUgzkRd6U8jTqMJbsvAvBfLcyXytk/1aJ/e1Tv5p59urI/meOd1uCk7zuilZeYnUL1/6IOr0twk+Uqc/vfP/Af8Zv1eLRwAA", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=pe7inl3s8j8cj2g55nr2o0r0n5; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC0A6E3C9FCE34C046AB92421DA69EC3725534C42CB695BD59EB2C313B2EEA08C45A0C008CE5DCC69AB74FACDE96E159D6D;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7206"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 13 Sep 2016 18:26:53 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.88.38"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=qQ62n3SrvDPWsjt1Nn3SrVSMQ1fr62n3ZvrV5Hvzsq"}, "recorded_at": "2016-09-13T18:33:48"}, {"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8100/api/sites/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Location": ["https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"], "Server": ["Zscaler/5.2"]}, "status": {"message": "Moved Temporarily", "code": 302}, "url": "http://localhost:8100/api/sites/"}, "recorded_at": "2016-09-13T20:11:22"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18yZLb2LLYXl+B5rutkB5UBRIECVBS6T0ABEBwJgiSIG9cd2A4GEjMI8n7eu2N1/bG4Z3DEQ574Z33z5/iuOHP8AE4FKtUUrfU/e6qFaUCeIbMPDmdPMw89fGH7oSV11MOsVPP/fTqY/lAXNW3HmrAr5UNQDU+vUKQjx5IVUS31TgB6UMtS807qvbYYadpeAeizMkfasrdgr5jAy9UU0dzQQ3RAz8FPpwlcg/AsMDNPF/1wEMtd0ARBnF6M7RwjNR+MEDu6OCu+vAOcXwndVT3LtFVFzw0voCePYG4kw/hLe4U7FOsXN6H6ypuFuE6/g6xY2A+1EpYyXsMS1JIv35vAd2JUz9IHdPRYUvg3+uBh+lqmEI4mOOpFkgwNQxdcJcGmW7fORDnHYmH+/vQt2pIDNyH2mf9YQwgmDBIgFFDEucIkocaie9JvIZgjxRVcxMbskbPUqScWPstVJpqXiHX3AwkKQDuDZkpZNdDrRqIVQ3Yvw1jGg3i2zkDJ+3h/387oojvIYqARBFXolIndcGnKUSA5CC+4v+InTqeyTQ9uCCxAUi/T6B6kmBaEKRJGqvhXfO+ed++9xw4JklqiAcMR4WLcN0LbT/c3SE9eTRsIYnteIjqG4gEkjDwjfttgphBjIgchSRZWFohEpjnwcAFHjSepJpQQUWiDK4NJMjd3QXwnx0TcVMIAOn8pWz7hXU6vo45wHT2v5b+M/ndAGKF/ECKIN4hZhx4CNsdn+mAYxI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1AHh7X4Ueb8zMr4zoDcih53uL/LWSfTnsEtO/vU8Dy3LBm5qpJmnt7YdqRDX8Hupj+ewCU83c9E3V93P1u0J03bB+GdvN0O9F9ySueXt/2navKJHPcT7fwt/ew3gEvDmjhOBKF/rwpzdlFAbhgdiBkeERDvgShNPWDofaQXEB86d7davu3/z1bMOl2b5HLjDVNI3f1E4hV+3tu/MY6KafDznfxroOOTn3M4mXRhDHQQxbL0zeRkpPeoeUf/ViDlUrg7F2NWR0un94YUX1D1pvErjg3g2sN08GfUAwDDltSqp7Hv/zBWOSVcH9I07kTUnQLWTHPLX98FALdrUnOJFyX05PMz7cNH+Fs7cC+uLgZxKoKIbnRBig/PW3YHkehb2A5dXt8+dfpbu/1nLh4Rep/hiFDjfC9KEJm65Md+Cz7HpzYW/J9MfBHx/qsKNcw/0piLpSfuXLDei7h8aHagU/n+zqvso335/uNzue9bkxl8AfSfjwaJIvTDU09/tnV2u71+Du/qZWjYceM05r7x5V/u1Fwk4y1+PAdcu4+OF8sDpL5TMoHjxZ/wog8Lj+ZRhwB3wZhPkG+eEWztPlPlGVcs3Pd+qXmF1NMQI9K8/D96eR90noQm9X+wBnwACcUyH06xy9RPpsAlyQfg8Pr66qgzfYv0NQ7B1Sg5OvTQ/3/1g2PXwA+xAecGEUgaCIDwqkCyOqN6WbXsjsPI3hoiBRKFL7EKqp/YDVrjJEqhi42sBi4Aaq8dRjXylCSqyqcfh8kaUel6Z3jebf3rvAt1L70Y886y7/isfzKVXb48pq18i69q5keXX3BmomdENvalUgVXuL1v6lhp478a91Nr/WSXyts/W88+3Vk3zPmm6PBad13VStfAnVz587Iez05zI+Yqe/BvX/ATWxbjYeSgAA", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=l1qnrihe0g495t4dcu11nhn307; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC01D715DE960D1D66DA142353243330039923BB02E6BE2642E4FA388AA71F7B5B57D81953815B40BF9B076C8E8A3D5133C;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7716"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 13 Sep 2016 20:26:09 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.89.214"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"}, "recorded_at": "2016-09-13T20:11:22"}, {"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/"}, "response": {"body": {"string": "{\"id\":1,\"name\":\"Test Site\",\"description\":\"\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=Xee8MdHWNICLXFa9fxSsuhgGnhSDpi0R; expires=Wed, 13-Sep-2017 14:07:33 GMT; Max-Age=31449600; Path=/", "sessionid=uls9plqi94outwe5tdj537j5e833xjub; expires=Wed, 28-Sep-2016 14:07:33 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/"], "Allow": ["GET, POST, HEAD, OPTIONS"], "Date": ["Wed, 14 Sep 2016 14:07:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/"}, "recorded_at": "2016-09-14T14:07:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=qQ62n3SrvDPWsjt1Nn3SrVSMQ1fr62n3ZvrV5Hvzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18yZLbyLbYXl+B5rutkB5UBDGRoKTSewAIzvNM3rhWYEiACWIiRpL39dobr+2NwzuHIxz2wjvvnz/FccOf4UxwKFapSt1S97srKUpFMPPkOSdPnimRJ+vjT7WBPF0NFWITu86nVx/xB+GonnVfAF4BNwDV+PSKID66IFYJfaOGEYjvC0ls3gmFh45NHAd3YJfA9L6wvJuJd7LvBmoMNQcUCN33YuChUS3lHhgWuBnnqS64L6QQZIEfxjegGTTizb0BUqiDu/zLOwJ6MIaqcxfpqgPu6RfIyycUd9NDcEs7BvuYwtP7cJ3FzSQc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QT0gaAo4hSTVOcM/8uFYpTkqf0DTeINZugWMzRPbT/dF/xt4RFNAkfl+DTiw03zVyR7u0AvAj9ZgZxjtEtE6clffw+VpznYM1Re3X7+8pt09zcaLtr5EvnNfx2FwfieRU1XmUP0ibveXKSLZf4A/PG+hDrwFIqnDOrK+FUsN6jv7ukP+QR+OZlVMT9sLp4uk0LX+tKWMfIHFj48WOQzQw3N+f7R+dyKGortbwo5PPKXYVx496Dxby8LDKOJHvqOg5Pi+/Ou6rwoX2Bx0bb6NyBBe/WXcaD49zwK8w3x0y2ex9N9pCl4zk/j9HPCzocYvp7gzXDxBFmMAgc5u8IHNAJl34qKsF/H6JjokwFoQnoR7VwdVQdvqH9HkNQ7ooAGX5vui/+Im+4/gH2AdrcohyBIwgMZUUP51BvspWdTeRKHaFKIKZIofAjUeHNPFa5rSOQZcB6+QuD4qvHYYV85IjBV1Th8OUmsx9jyrqn826IDPCvePLiRJ934TyY8HZK3PcyscM2rC++wyPPbDUgzkRd6U8jTqMJbsvAvBfLcyXytk/1aJ/e1Tv5p59urI/meOd1uCk7zuilZeYnUL1/6IOr0twk+Uqc/vfP/Af8Zv1eLRwAA", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=pe7inl3s8j8cj2g55nr2o0r0n5; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC0A6E3C9FCE34C046AB92421DA69EC3725534C42CB695BD59EB2C313B2EEA08C45A0C008CE5DCC69AB74FACDE96E159D6D;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7206"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 13 Sep 2016 18:26:53 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.88.38"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=qQ62n3SrvDPWsjt1Nn3SrVSMQ1fr62n3ZvrV5Hvzsq"}, "recorded_at": "2016-09-13T18:33:48"}, {"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8100/api/sites/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Location": ["https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"], "Server": ["Zscaler/5.2"]}, "status": {"message": "Moved Temporarily", "code": 302}, "url": "http://localhost:8100/api/sites/"}, "recorded_at": "2016-09-13T20:11:22"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18yZLb2LLYXl+B5rutkB5UBRIECVBS6T0ABEBwJgiSIG9cd2A4GEjMI8n7eu2N1/bG4Z3DEQ574Z33z5/iuOHP8AE4FKtUUrfU/e6qFaUCeIbMPDmdPMw89fGH7oSV11MOsVPP/fTqY/lAXNW3HmrAr5UNQDU+vUKQjx5IVUS31TgB6UMtS807qvbYYadpeAeizMkfasrdgr5jAy9UU0dzQQ3RAz8FPpwlcg/AsMDNPF/1wEMtd0ARBnF6M7RwjNR+MEDu6OCu+vAOcXwndVT3LtFVFzw0voCePYG4kw/hLe4U7FOsXN6H6ypuFuE6/g6xY2A+1EpYyXsMS1JIv35vAd2JUz9IHdPRYUvg3+uBh+lqmEI4mOOpFkgwNQxdcJcGmW7fORDnHYmH+/vQt2pIDNyH2mf9YQwgmDBIgFFDEucIkocaie9JvIZgjxRVcxMbskbPUqScWPstVJpqXiHX3AwkKQDuDZkpZNdDrRqIVQ3Yvw1jGg3i2zkDJ+3h/387oojvIYqARBFXolIndcGnKUSA5CC+4v+InTqeyTQ9uCCxAUi/T6B6kmBaEKRJGqvhXfO+ed++9xw4JklqiAcMR4WLcN0LbT/c3SE9eTRsIYnteIjqG4gEkjDwjfttgphBjIgchSRZWFohEpjnwcAFHjSepJpQQUWiDK4NJMjd3QXwnx0TcVMIAOn8pWz7hXU6vo45wHT2v5b+M/ndAG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b8n/KfXeF+G/MJtDSi0P72p/UN1AHh7X4Ueb8zMr4zoDcih53uL/LWSfTnsEtO/vU8Dy3LBm5qpJmnt7YdqRDX8Hupj+ewCU83c9E3V93P1u0J03bB+GdvN0O9F9ySueXt/2navKJHPcT7fwt/ew3gEvDmjhOBKF/rwpzdlFAbhgdiBkeERDvgShNPWDofaQXEB86d7davu3/z1bMOl2b5HLjDVNI3f1E4hV+3tu/MY6KafDznfxroOOTn3M4mXRhDHQQxbL0zeRkpPeoeUf/ViDlUrg7F2NWR0un94YUX1D1pvErjg3g2sN08GfUAwDDltSqp7Hv/zBWOSVcH9I07kTUnQLWTHPLX98FALdrUnOJFyX05PMz7cNH+Fs7cC+uLgZxKoKIbnRBig/PW3YHkehb2A5dXt8+dfpbu/1nLh4Rep/hiFDjfC9KEJm65Md+Cz7HpzYW/J9MfBHx/qsKNcw/0piLpSfuXLDei7h8aHagU/n+zqvso335/uNzue9bkxl8AfSfjwaJIvTDU09/tnV2u71+Du/qZWjYceM05r7x5V/u1Fwk4y1+PAdcu4+OF8sDpL5TMoHjxZ/wog8Lj+ZRhwB3wZhPkG+eEWztPlPlGVcs3Pd+qXmF1NMQI9K8/D96eR90noQm9X+wBnwACcUyH06xy9RPpsAlyQfg8Pr66qgzfYv0NQ7B1Sg5OvTQ/3/1g2PXwA+xAecGEUgaCIDwqkCyOqN6WbXsjsPI3hoiBRKFL7EKqp/YDVrjJEqhi42sBi4Aaq8dRjXylCSqyqcfh8kaUel6Z3jebf3rvAt1L70Y886y7/isfzKVXb48pq18i69q5keXX3BmomdENvalUgVXuL1v6lhp478a91Nr/WSXyts/W88+3Vk3zPmm6PBad13VStfAnVz587Iez05zI+Yqe/BvX/ATWxbjYeSgAA", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=l1qnrihe0g495t4dcu11nhn307; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC01D715DE960D1D66DA142353243330039923BB02E6BE2642E4FA388AA71F7B5B57D81953815B40BF9B076C8E8A3D5133C;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7716"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 13 Sep 2016 20:26:09 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.89.214"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"}, "recorded_at": "2016-09-13T20:11:22"}, {"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/"}, "response": {"body": {"string": "{\"id\":4,\"name\":\"Test Site\",\"description\":\"\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=UDv8Rt0rA4nCgiFjPbkCndKU1QyqMZfd; expires=Tue, 19-Sep-2017 16:28:50 GMT; Max-Age=31449600; Path=/", "sessionid=6aqhd6yk9csw9ksqz9svaet384k87qjo; expires=Tue, 04-Oct-2016 16:28:50 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/"], "Allow": ["GET, POST, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/949cc773ac378030532f36a8ab596483f3586d05.json b/tests/api_tests/tests/api_tests/cassettes/949cc773ac378030532f36a8ab596483f3586d05.json new file mode 100644 index 00000000..f87c6abb --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/949cc773ac378030532f36a8ab596483f3586d05.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=HxblsCzqLPh6JjqediS8zSVXUEocehTq; sessionid=ftc9xszptwq2t700aiktz8gh4cbjit59"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/4/itervalue/4/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/4/itervalue/4/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json b/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json index e68443d5..4cab755a 100644 --- a/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json +++ b/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=FT0tu1VelzTuzxsVWor5h6xGEm6SpYZF; expires=Wed, 13-Sep-2017 14:07:33 GMT; Max-Age=31449600; Path=/", "sessionid=klwzp0ltmzw0xstdu6gttxzuynty26bd; expires=Wed, 28-Sep-2016 14:07:33 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/iterable/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 14 Sep 2016 14:07:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-09-14T14:07:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=FT0tu1VelzTuzxsVWor5h6xGEm6SpYZF; sessionid=klwzp0ltmzw0xstdu6gttxzuynty26bd"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "[{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 14 Sep 2016 14:07:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-09-14T14:07:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=FT0tu1VelzTuzxsVWor5h6xGEm6SpYZF; sessionid=klwzp0ltmzw0xstdu6gttxzuynty26bd"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "[{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 14 Sep 2016 14:07:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-09-14T14:07:33"}, {"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=7XqV57gEz6oK4E4sfoqaRDScJVKhXUA8; expires=Tue, 19-Sep-2017 16:28:50 GMT; Max-Age=31449600; Path=/", "sessionid=vx85yhad6wgrof6unhlpli0f2hbrhglz; expires=Tue, 04-Oct-2016 16:28:50 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/iterable/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json b/tests/api_tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json new file mode 100644 index 00000000..807b7144 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":4,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=HxblsCzqLPh6JjqediS8zSVXUEocehTq; expires=Tue, 19-Sep-2017 16:28:50 GMT; Max-Age=31449600; Path=/", "sessionid=ftc9xszptwq2t700aiktz8gh4cbjit59; expires=Tue, 04-Oct-2016 16:28:50 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/iterable/4/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/iterable/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json b/tests/api_tests/tests/api_tests/cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json new file mode 100644 index 00000000..e1657edf --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=7XqV57gEz6oK4E4sfoqaRDScJVKhXUA8; sessionid=vx85yhad6wgrof6unhlpli0f2hbrhglz"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/itervalue/1/"}, "response": {"body": {"string": "{\"unique_id\":\"uuid_custA_site1\",\"iterable\":1,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/itervalue/1/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json b/tests/api_tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json new file mode 100644 index 00000000..b4762750 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=MxGXqptZpS7mCD00eSjBkttffvP0Je2z; sessionid=thp9dtuxt11wx9agijh5aoy3qi5dqjod"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterable/2/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterable/2/next_value/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json b/tests/api_tests/tests/api_tests/cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json new file mode 100644 index 00000000..0687c874 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"unique_id\": \"uuid_custA_site1\", \"value\": 10, \"iterable\": 1}", "encoding": "utf-8"}, "headers": {"Content-Length": ["61"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=7XqV57gEz6oK4E4sfoqaRDScJVKhXUA8; sessionid=vx85yhad6wgrof6unhlpli0f2hbrhglz"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/itervalue/"}, "response": {"body": {"string": "{\"unique_id\":\"uuid_custA_site1\",\"iterable\":1,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/itervalue/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/itervalue/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json b/tests/api_tests/tests/api_tests/cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json new file mode 100644 index 00000000..89bee903 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"unique_id\": \"uuid_custA_site1\", \"value\": 10, \"iterable\": 3}", "encoding": "utf-8"}, "headers": {"Content-Length": ["61"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fvGoS8xXPMC3ZPVmAw7URgFucdVZiSks; sessionid=c0mvyb8nf0o2z1hrxb6oa9jlpu0h806u"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/itervalue/"}, "response": {"body": {"string": "{\"unique_id\":\"uuid_custA_site1\",\"iterable\":3,\"id\":3,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/itervalue/3/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/itervalue/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file From 085730280d18739bcf23ee6d8545d10cdd159895 Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Mon, 3 Oct 2016 20:27:18 -0400 Subject: [PATCH 19/31] models tested for itervalue with attribute --- nsot/admin.py | 4 +- nsot/api/serializers.py | 30 ++-- nsot/api/urls.py | 4 +- nsot/api/views.py | 14 +- nsot/migrations/0027_auto_20160925_1135.py | 24 +++ nsot/models.py | 23 ++- tests/model_tests/test_itervalues.py | 184 ++++++++++++++------- 7 files changed, 186 insertions(+), 97 deletions(-) create mode 100644 nsot/migrations/0027_auto_20160925_1135.py diff --git a/nsot/admin.py b/nsot/admin.py index bc9a4eee..2edd3322 100644 --- a/nsot/admin.py +++ b/nsot/admin.py @@ -92,8 +92,8 @@ class IterableAdmin(admin.ModelAdmin): admin.site.register(models.Iterable, IterableAdmin) -class IterValueAdmin(admin.ModelAdmin): +class ItervalueAdmin(admin.ModelAdmin): list_display = ('value', 'unique_id', 'iterable', 'site') fields = list_display -admin.site.register(models.IterValue, IterValueAdmin) +admin.site.register(models.Itervalue, ItervalueAdmin) diff --git a/nsot/api/serializers.py b/nsot/api/serializers.py index b28d0bd3..07a63291 100644 --- a/nsot/api/serializers.py +++ b/nsot/api/serializers.py @@ -292,39 +292,39 @@ class Meta: ########### -# IterValue +# Itervalue ########### -class IterValueSerializer(NsotSerializer): - """Used for GET, DELETE on IterValues.""" +class ItervalueSerializer(NsotSerializer): + """Used for GET, DELETE on Itervalues.""" class Meta: - model = models.IterValue + model = models.Itervalue -class IterValueCreateSerializer(IterValueSerializer): - """Used for POST on IterValues.""" +class ItervalueCreateSerializer(ItervalueSerializer): + """Used for POST on Itervalues.""" site_id = fields.IntegerField( label = get_field_attr(models.Iterable, 'site', 'verbose_name'), help_text = get_field_attr(models.Iterable, 'site', 'help_text') ) class Meta: - model = models.IterValue + model = models.Itervalue fields = ('iterable', 'value', 'unique_id', 'site_id') -class IterValueUpdateSerializer(BulkSerializerMixin, - IterValueCreateSerializer): - """ Used for PUT on IterValues. """ +class ItervalueUpdateSerializer(BulkSerializerMixin, + ItervalueCreateSerializer): + """ Used for PUT on Itervalues. """ class Meta: - model = models.IterValue + model = models.Itervalue list_serializer_class = BulkListSerializer fields = ('id', 'iterable', 'value', 'unique_id') -class IterValuePartialUpdateSerializer(BulkSerializerMixin, - IterValueCreateSerializer): - """ Used for PATCH, on IterValues. """ +class ItervaluePartialUpdateSerializer(BulkSerializerMixin, + ItervalueCreateSerializer): + """ Used for PATCH, on Itervalues. """ class Meta: - model = models.IterValue + model = models.Itervalue list_serializer_class = BulkListSerializer fields = ('id', 'iterable', 'value', 'unique_id') diff --git a/nsot/api/urls.py b/nsot/api/urls.py index 2edd9591..508964dd 100644 --- a/nsot/api/urls.py +++ b/nsot/api/urls.py @@ -20,7 +20,7 @@ router.register(r'users', views.UserViewSet) router.register(r'values', views.ValueViewSet) router.register(r'iterable', views.IterableViewSet) -router.register(r'itervalue', views.IterValueViewSet) +router.register(r'itervalue', views.ItervalueViewSet) # Nested router for resources under /sites sites_router = routers.BulkNestedRouter( @@ -35,7 +35,7 @@ sites_router.register(r'networks', views.NetworkViewSet) sites_router.register(r'values', views.ValueViewSet) sites_router.register(r'iterable', views.IterableViewSet) -sites_router.register(r'itervalue', views.IterValueViewSet) +sites_router.register(r'itervalue', views.ItervalueViewSet) # Wire up our API using automatic URL routing. # Additionally, we include login URLs for the browsable API. diff --git a/nsot/api/views.py b/nsot/api/views.py index 62281d0f..d965562b 100644 --- a/nsot/api/views.py +++ b/nsot/api/views.py @@ -371,21 +371,21 @@ def next_value(self, request, pk=None, site_pk=None, *args, **kwargs): return self.success(value) -class IterValueViewSet(ResourceViewSet): +class ItervalueViewSet(ResourceViewSet): """ - API endpoint that allows IterValues to be viewed or edited. + API endpoint that allows Itervalues to be viewed or edited. """ - queryset = models.IterValue.objects.all() - serializer_class = serializers.IterValueSerializer + queryset = models.Itervalue.objects.all() + serializer_class = serializers.ItervalueSerializer filter_fields = ( 'iterable', 'value', 'unique_id') def get_serializer_class(self): if self.request.method == 'POST': - return serializers.IterValueCreateSerializer + return serializers.ItervalueCreateSerializer if self.request.method in ('PUT'): - return serializers.IterValueUpdateSerializer + return serializers.ItervalueUpdateSerializer if self.request.method in ('PATCH'): - return serializers.IterValuePartialUpdateSerializer + return serializers.ItervaluePartialUpdateSerializer return self.serializer_class diff --git a/nsot/migrations/0027_auto_20160925_1135.py b/nsot/migrations/0027_auto_20160925_1135.py new file mode 100644 index 00000000..cf499d1b --- /dev/null +++ b/nsot/migrations/0027_auto_20160925_1135.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models +import django_extensions.db.fields.json + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0026_auto_20160920_1209'), + ] + + operations = [ + migrations.RemoveField( + model_name='itervalue', + name='unique_id', + ), + migrations.AddField( + model_name='itervalue', + name='_attributes_cache', + field=django_extensions.db.fields.json.JSONField(help_text='Local cache of attributes. (Internal use only)', blank=True), + ), + ] diff --git a/nsot/models.py b/nsot/models.py index a8fafa21..061fe15b 100644 --- a/nsot/models.py +++ b/nsot/models.py @@ -27,7 +27,7 @@ # These are constants that becuase they are tied directly to the underlying # objects are explicitly NOT USER CONFIGURABLE. RESOURCE_BY_IDX = ( - 'Site', 'Network', 'Attribute', 'Device', 'Interface', 'Iterable', 'IterValue' + 'Site', 'Network', 'Attribute', 'Device', 'Interface', 'Iterable', 'Itervalue' ) RESOURCE_BY_NAME = { obj_type: idx @@ -38,7 +38,7 @@ VALID_CHANGE_RESOURCES = set(RESOURCE_BY_IDX) VALID_ATTRIBUTE_RESOURCES = set([ - 'Network', 'Device', 'Interface' + 'Network', 'Device', 'Interface', 'Itervalue' ]) # Lists of 2-tuples of (value, option) for displaying choices in certain model @@ -313,7 +313,6 @@ def by_attribute(self, name, value, site_id=None): name=name, value=value, resource_name=resource_name ).values_list('resource_id', flat=True) ) - if site_id is not None: query = query.filter(site=site_id) @@ -1908,7 +1907,7 @@ def get_next_value(self): "Get the next value of the iterable" try: " First try to generate the next value based on the current allocation" - curr_val = IterValue.objects.filter(iterable=self.id).order_by('-value').values_list('value', flat=True)[0] + curr_val = Itervalue.objects.filter(iterable=self.id).order_by('-value').values_list('value', flat=True)[0] incr = self.increment next_val = curr_val + incr try: @@ -1949,7 +1948,7 @@ def to_dict(self): } -class IterValue(models.Model): +class Itervalue(Resource): """Value table for the generic iterable defined above""" ''' value = contains the value @@ -1963,28 +1962,28 @@ class IterValue(models.Model): value = models.IntegerField( default=1, help_text='The value of the iterable.' ) - unique_id = models.TextField( - blank=True, help_text='An identification for the value table, used to id different rows that have this tag' - ) - # BORROW the logic from class Value - for easier mgmt of the IterValue + # BORROW the logic from class Value - for easier mgmt of the Itervalue # We are currently inferring the site_id from the parent Attribute in # .save() method. We don't want to even care about the site_id, but it # simplifies managing them this way. site = models.ForeignKey( Site, db_index=True, related_name='itervalue', on_delete=models.PROTECT, verbose_name='Site', - help_text='Unique ID of the Site this IterValue is under.' + help_text='Unique ID of the Site this Itervalue is under.' ) + + class Meta: + verbose_name = "itervalue" def __unicode__(self): - return u'value=%s, uuid=%s, iterable=%s' % (self.value, self.unique_id, self.iterable.name) + return u'value=%s, iterable=%s' % (self.value, self.iterable.name) def to_dict(self): return { 'id': self.id, 'value': self.value, 'iterable': self.iterable.id, - 'unique_id': self.unique_id + 'attributes': self.get_attributes() } diff --git a/tests/model_tests/test_itervalues.py b/tests/model_tests/test_itervalues.py index 9b179155..2283a4ec 100644 --- a/tests/model_tests/test_itervalues.py +++ b/tests/model_tests/test_itervalues.py @@ -25,20 +25,40 @@ def test_creation(site): increment = 2, site = site ) + #Create the Attribute + models.Attribute.objects.create( + site=site, + resource_name='Itervalue', name='service_key' + ) - itrv1 = models.IterValue.objects.create( - unique_id='jasdgijn001', - iterable=itr, - site=site + itrv1 = models.Itervalue.objects.create( + iterable=itr, + site=site, + attributes={'service_key': 'skey_custA_01'} ) - iterable_val = models.Iterable.objects.values_list('min_val', flat=True)[0] - iterv_uid = models.IterValue.objects.values_list('unique_id', flat=True)[0] assert itrv1.iterable.id == itr.id - assert itrv1.value == iterable_val - assert itrv1.unique_id == iterv_uid + assert itrv1.get_attributes() == {'service_key': 'skey_custA_01'} + #Validate per tests in test_devices + itrv1.set_attributes({}) + assert itrv1.get_attributes() == {} + + with pytest.raises(exc.ValidationError): + itrv1.set_attributes(None) + + with pytest.raises(exc.ValidationError): + itrv1.set_attributes({0: 'value'}) + + with pytest.raises(exc.ValidationError): + itrv1.set_attributes({'key': 0}) + + with pytest.raises(exc.ValidationError): + itrv1.set_attributes({'made_up': 'value'}) + + + def test_getnext(site): itr = models.Iterable.objects.create( @@ -57,27 +77,32 @@ def test_getnext(site): increment = 100, site = site ) - itrv1 = models.IterValue.objects.create( + #Create the Attribute + models.Attribute.objects.create( + site=site, + resource_name='Itervalue', name='service_key' + ) + itrv1 = models.Itervalue.objects.create( value = itr.get_next_value()[0], - unique_id='jasdgijn001', + attributes={'service_key': 'skey_custA_01'}, iterable=itr, site=site ) - itrv2 = models.IterValue.objects.create( + itrv2 = models.Itervalue.objects.create( value = itr.get_next_value()[0], - unique_id='jasdgijn002', + attributes={'service_key': 'skey_custA_02'}, iterable=itr, site=site ) - itrv3 = models.IterValue.objects.create( + itrv3 = models.Itervalue.objects.create( value = itr2.get_next_value()[0], - unique_id='jasdgijn001', + attributes={'service_key': 'skey_custB_01'}, iterable=itr2, site=site ) - itrv4 = models.IterValue.objects.create( + itrv4 = models.Itervalue.objects.create( value = itr2.get_next_value()[0], - unique_id='jasdgijn002', + attributes={'service_key': 'skey_custB_02'}, iterable=itr2, site=site ) @@ -86,27 +111,7 @@ def test_getnext(site): assert itrv2.value == 52 assert itrv4.value == 1300 - -def test_save(site): - itr = models.Iterable.objects.create( - name='test-vlan', - description='test vlan for testing', - min_val = 50, - max_val = 70, - increment = 2, - site = site - ) - itrv1 = models.IterValue.objects.create( - value = itr.get_next_value()[0], - unique_id='jasdgijn001', - iterable=itr, - site=site - ) - itrv1.save() - -def test_delete(site): - "Delete all rows in IterValues given the service identifier criteria" - service_UID = 'jasdgijn002' +def test_retrive(site): itr = models.Iterable.objects.create( name='test-vlan', description='test vlan for testing', @@ -123,40 +128,94 @@ def test_delete(site): increment = 100, site = site ) - itrv1 = models.IterValue.objects.create( + #Create the Attribute + models.Attribute.objects.create( + site=site, + resource_name='Itervalue', name='service_key' + ) + itrv1 = models.Itervalue.objects.create( value = itr.get_next_value()[0], - unique_id='jasdgijn001', + attributes={'service_key': 'skey_custA_01'}, iterable=itr, site=site - ) - itrv2 = models.IterValue.objects.create( + itrv2 = models.Itervalue.objects.create( value = itr.get_next_value()[0], - unique_id='jasdgijn002', + attributes={'service_key': 'skey_custA_02'}, iterable=itr, site=site - ) - itrv3 = models.IterValue.objects.create( + itrv3 = models.Itervalue.objects.create( value = itr2.get_next_value()[0], - unique_id='jasdgijn001', + attributes={'service_key': 'skey_custB_01'}, iterable=itr2, site=site - ) - itrv4 = models.IterValue.objects.create( + itrv4 = models.Itervalue.objects.create( value = itr2.get_next_value()[0], - unique_id='jasdgijn002', + attributes={'service_key': 'skey_custB_02'}, iterable=itr2, site=site + ) + + assert list(site.itervalue.all()) == [itrv1, itrv2, itrv3, itrv4] + + #Retrive by attribute + assert list(site.itervalue.by_attribute('service_key', 'skey_custB_02')) == [ itrv4 ] + assert list(site.itervalue.by_attribute('service_key', 'skey_custB_01')) == [ itrv3 ] + assert list(site.itervalue.by_attribute('service_key', 'skey_custA_02')) == [ itrv2 ] + assert list(site.itervalue.by_attribute('service_key', 'skey_custA_01')) == [ itrv1 ] + +def test_save(site): + itr = models.Iterable.objects.create( + name='test-vlan', + description='test vlan for testing', + min_val = 50, + max_val = 70, + increment = 2, + site = site + ) + #Create the Attribute + models.Attribute.objects.create( + site=site, + resource_name='Itervalue', name='service_key' + ) + + itrv1 = models.Itervalue.objects.create( + value = itr.get_next_value()[0], + attributes={'service_key': 'skey_custB_02'}, + iterable=itr, + site=site + ) + itrv1.save() +def test_delete(site): + "Delete all rows in Itervalues given the service identifier criteria" + itr = models.Iterable.objects.create( + name='test-vlan', + description='test vlan for testing', + min_val = 50, + max_val = 70, + increment = 2, + site = site + ) + #Create the Attribute + models.Attribute.objects.create( + site=site, + resource_name='Itervalue', name='service_key' ) - models.IterValue.objects.filter(unique_id=service_UID).all().delete() + itrv1 = models.Itervalue.objects.create( + value = itr.get_next_value()[0], + attributes={'service_key': 'skey_custB_02'}, + iterable=itr, + site=site + ) + site.itervalue.by_attribute('service_key', 'skey_custB_02').delete() + def test_protected_delete(site): - "Delete all rows in IterValues given the service identifier criteria" - service_UID = 'jasdgijn002' + "Delete all rows in Itervalues given the service identifier criteria" itr = models.Iterable.objects.create( name='test-vlan', description='test vlan for testing', @@ -174,30 +233,37 @@ def test_protected_delete(site): site = site ) - itrv1 = models.IterValue.objects.create( + #Create the Attribute + models.Attribute.objects.create( + site=site, + resource_name='Itervalue', name='service_key' + ) + + + itrv1 = models.Itervalue.objects.create( value = itr.get_next_value()[0], - unique_id='jasdgijn001', + attributes={'service_key': 'skey_custA_01'}, iterable=itr, site=site ) - itrv2 = models.IterValue.objects.create( + itrv2 = models.Itervalue.objects.create( value = itr.get_next_value()[0], - unique_id='jasdgijn002', + attributes={'service_key': 'skey_custA_02'}, iterable=itr, site=site ) - itrv3 = models.IterValue.objects.create( + itrv3 = models.Itervalue.objects.create( value = itr2.get_next_value()[0], - unique_id='jasdgijn001', + attributes={'service_key': 'skey_custB_01'}, iterable=itr2, site=site ) - itrv4 = models.IterValue.objects.create( + itrv4 = models.Itervalue.objects.create( value = itr2.get_next_value()[0], - unique_id='jasdgijn002', + attributes={'service_key': 'skey_custB_02'}, iterable=itr2, site=site From 3cb343b9add5f27d8ebec8f80e7bff133a661148 Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Thu, 6 Oct 2016 14:02:18 -0400 Subject: [PATCH 20/31] Working commit --- nsot/admin.py | 2 +- nsot/api/filters.py | 6 + nsot/api/serializers.py | 158 ++++++++-------- nsot/api/urls.py | 2 +- nsot/api/views.py | 8 +- nsot/migrations/0028_auto_20161004_0830.py | 39 ++++ nsot/migrations/0029_auto_20161005_1445.py | 31 +++ nsot/migrations/0030_auto_20161006_0416.py | 23 +++ nsot/models.py | 12 +- tests/api_tests/test_iterable.py | 3 + tests/api_tests/test_itervalues.py | 177 +++++++++++++++--- ...2aaeb587bff5968f13d0727be522c4fb7e8a0.json | 1 + ...5fecbc10de7af4bc5e9337d5f476142994568.json | 1 + ...4593b203fc4aa3016ecae33955c88c4cc3087.json | 1 + ...ff7f34185571a2f648d36c457ce751f9e71e5.json | 1 + ...efd34b141709f88f6899b0eef60f68b0f8c54.json | 1 + ...97becd90041963d52a7bc2fe0a32eff1b8250.json | 1 + ...1eac1cdfd49b2ede0aebd55763204f974bdd2.json | 1 + ...1a60d19dfadf71e943dca17d8914a87865d85.json | 1 + ...ed06ae1340e16e7bf98cff4acc8305f7e7d83.json | 1 + ...639dae48ee11cb31772377b146270935c05e2.json | 1 + ...882f3491f581dee8cafb6e7761f9f1354282a.json | 2 +- ...db4e888302c283d82b63131b5b51b05655b17.json | 1 + ...29ddf21838a67b257b99cd646b5b632bf0240.json | 2 +- ...3d8843e034c7465037088edd7480e9b7eefaa.json | 1 + ...90370f99dbada2f22883aba385169e51adcd7.json | 1 + ...d6a229c5feb28a10f26464631bc91e3ed4120.json | 1 + ...e767d8bb23a67b0527a8a5b0c218e34fc11f5.json | 1 + ...d487a5f35b07499fa3c5cc906a5db77ed816c.json | 1 + ...3bda6f1cccbb63afa6a53385ad739959e7bdc.json | 1 + ...5efafbb79d39ad5e9fc281baaab9caf809ddf.json | 1 + ...6d802a4cc39f6f4c342ae2435bc4068e87895.json | 1 + ...6b065bd0ce36bf91afe8d8b9da00f07c0f5f8.json | 1 + ...35975b61f5aa73bbf34bc8bd23c344da7c17d.json | 1 + ...a3d2104215406ba907120a6e9b9f81f64074a.json | 1 + ...321903bb496093b81aa0a6d6014973e85fc67.json | 1 + ...52e0562c752284653b0dc256cc24ef88e6587.json | 1 + ...11b6200d6511d81814c1bd5a8aba8f30ed0da.json | 1 + ...6909f2572a95f6f8edf7ce341ecf1edcb79ad.json | 1 + ...180af8d58bc0b7907a76c580089938f93235f.json | 1 + ...bdf3590df980e07baa9dc3ad9360387deb771.json | 1 + ...b46da621eb397704225646943bca8f7ebaf67.json | 1 + ...ef3bb33ed168e15d7aea0b4dc510458799bcb.json | 1 + ...3311dc341610e073890dc8ff28a65fd35d815.json | 1 + ...087b5dcdebe88bdec9374a659582ecef4cf0e.json | 1 + ...8b61bdb25c7dca7049a8f66fa3ed1f6c06033.json | 1 + ...a273d56a0d95e1a8e65f1b96a8ea09673ed4e.json | 1 + ...3e2415076faee1762b5a9bd036ffdf687ec9e.json | 1 + ...bad7234fd22e555fca4e1e661c06150594764.json | 2 +- ...1e78c8eb4ea24b812b2757d34f0425f62c4ce.json | 1 + ...30cd3c7a6a655286e1ff2e4f18cb6b961d558.json | 1 + ...f6226f909731ce2a16f95ad58333e5d46b358.json | 1 + ...d1126d5af748c76fa8186a04e9db94caa4266.json | 1 + ...0942f1ad3a714b8e9b5136374de2c77708332.json | 1 + ...79b39bd62a3954a7525a47266dc24230c10f7.json | 1 + ...3b4cc645e047a48dd09a18ae80bea4f32d15b.json | 1 + ...69da5f6e63f009f084ad75653f7e9e9da6fae.json | 1 + ...1d21d4bfdf0a306e2aa7d0d6c892825fd907b.json | 1 + ...afd1f2714721d518b5a7bd1baee83385a73e8.json | 1 + ...03035213ebcbf62913a52379d1cce83323b1e.json | 1 + ...100f15e145f9702cdccaaa2f57bee320e2862.json | 1 + ...e004374a49df1de91cdfd9e06a71bc33bc3c4.json | 1 + ...49a66414ea0a3db44b8afe10e91106575a075.json | 1 + ...7d375ab4808960a60920ff3c6c258bbd47463.json | 1 + ...5e416f64ed29422d3718056c7909240dec283.json | 1 + ...43f794779e7b3d20c5caae77398edd54148f0.json | 1 + ...c558b7946fde225ef98eba440b352cf8069f6.json | 1 + ...47dfdf33edca136ad0eb5fe63c7593d3776c1.json | 1 + ...6639e6727e1a0e1c2e2e3a2e36a4b4e20248e.json | 1 + ...8ced5800ae3ab7db96f6c05c3934a374bc978.json | 1 + ...dc786c623617dca051d63750642214ad39267.json | 1 + ...efdd348236797e02a79096908ba2b10eb0169.json | 1 + ...7c80bc1093aad4d08f90de4837b9dace269cb.json | 2 +- ...92ec5adcc705efd02698886f997e750efdfd6.json | 1 + ...833c187bcb72feab094f6745102406d7501e2.json | 1 + ...95360c7eea97a7c354ee6ca3c1a8851b53cd9.json | 1 + ...eec6373c55da4a3001fbcac6b72729f72dbc0.json | 1 + ...91e45dfa16138c772576bc27720f4a236fe23.json | 1 + ...b1c96e309feb49d8d2fa0d266b8369a0ec428.json | 1 + ...d72e9eec58ace6e960c148dad4032e5cbe74c.json | 1 + ...ec27a703ec684e7330d283c5cf789add90eeb.json | 1 + ...f2cdf69f64c8608b1f8f8534bb48e0849469b.json | 1 + ...c33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json | 2 +- ...8542c24682f1630f1068f09423a1504d0d054.json | 1 + ...1d0ebe6b2a5539393680f86a221d40c324b1a.json | 1 + ...e2c24b7b96754be5274456846c679c7218f66.json | 1 + ...1c628b50168e5044a6dc8e3034ef9312f44c6.json | 2 +- ...e446940adf75be72d7ff7a59b5db4918d6e1c.json | 1 + ...95e49f6f87bba0c41bf27c3beab3efd9da5a9.json | 2 +- ...6ecd4fe0150cd6217d09c5d4b1f8d9d19e00b.json | 1 + ...dd628a3eb7e38539910dfe4779c436f26fbcf.json | 1 + ...df91a15b8467cb4a0d6e28cff72627c05af10.json | 1 + ...af53e207bf96a18b2686d4332c7d6387741ff.json | 1 + ...8a8939946014bbb652453058fd33ef7a8320e.json | 1 + ...9fc13628275f2a31802bc64c03f049f457bd6.json | 1 + ...750a6d840f704991808815c7cc500845d850f.json | 1 + ...9564d9cc80ce669ba9d87617147b0fdf9e950.json | 1 + ...39450914a324dd6fe58d1530c6e7cbc92668d.json | 2 +- ...6c26cc96805f137aa6e1bf918e945cd2a2dcf.json | 1 + ...63540377cf86fcf1e58bdc5d19bd5db4460aa.json | 1 + ...958d4a89a7cf79ed11404f4294c471ff25aff.json | 1 + ...ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json | 1 + ...74da839501043708fa3000d35851e61d996a3.json | 1 + ...ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json | 2 +- ...34cd954fc463c1cee7195696c5662b0da623a.json | 1 + ...48976a960605bb0cc70cc575506af38968f36.json | 1 + ...3a0cc7197d1128ce53feb5373975328c86a95.json | 1 + ...ce35610f08937e315c7ca43d88e3d52cae87d.json | 1 + ...809628169f516dea4ef452fe982b3b64faf42.json | 1 + ...66aff566078fc644891c3d483a596bc238579.json | 1 + ...fd2df6127b125a3d4d9d702eb97c7151b84b2.json | 1 + ...885aa4d31ad8a2b08b03b992f52f9db466615.json | 1 + ...0ca9382553634281ae742531723e2b84d8b34.json | 1 + ...fa48163eeae1ce7216449002c354cfbb6159c.json | 1 + ...76537fa146be76efe97393539b87248de1c84.json | 1 + ...58e2cf97d7a523c5852924a577f5c8b892866.json | 1 + ...f37f0a1e298db8a44f4f636fb6fb3284127de.json | 1 + ...2f0fadfb95294453118f64f6a030a09446bf9.json | 1 + ...6384a5763e1fb69be4c8a36aabd43efde2aec.json | 1 + ...9fab30966b59910a1ea5aa837e1e1c9c1c7ff.json | 2 +- ...7009c8ca1699486d9116a6ca0da537b1bb8b7.json | 1 + ...396a0e9f44951ae8d3dd39b07e3b4ac792cdc.json | 1 + ...93b207736a02db0e341bc1253b5c708697d6e.json | 1 + ...27a9a7f5006cf428910abcbcb10322f0c9b6a.json | 1 + ...399e8dbcd4774ee2b95798987a3638ea50836.json | 1 + ...b60510140254a7ec730a2383e740cf8048a1d.json | 1 + ...2b0fa792eb79c4d325779b62e416a5f3bd4bd.json | 1 + ...65a9697212637085b4a3e6ab21689f776d9de.json | 1 + ...229400749457eca20861a7205b03d1e2525a9.json | 2 +- ...c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json | 1 + ...e397632a874f9bb32ccda0313de2633938b63.json | 1 + ...da071eb8ac67600e3a674f17e31bc2aa298d6.json | 1 + ...01c6d7cf05a4278dd5458a09e0b04788a0103.json | 1 + ...bf65cf0371d4806fae9e1ff953f163ab0d803.json | 1 + ...563819dcaf8721dcc05b5d25657de7e4a3a8d.json | 1 + ...9b2450520c8fdff8600aef51dc6deda0b9549.json | 2 +- ...ebe116d422145e03dbb05c5d21d8f36ffe70f.json | 1 + ...aea7fe81fb647256ead8b8076b3fa39ae57ec.json | 1 + ...4529bd2b59140eec7020beac2eb51f67ba602.json | 1 + tests/model_tests/test_iterables.py | 22 ++- 140 files changed, 492 insertions(+), 131 deletions(-) create mode 100644 nsot/migrations/0028_auto_20161004_0830.py create mode 100644 nsot/migrations/0029_auto_20161005_1445.py create mode 100644 nsot/migrations/0030_auto_20161006_0416.py create mode 100644 tests/api_tests/tests/api_tests/cassettes/0082aaeb587bff5968f13d0727be522c4fb7e8a0.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/0475fecbc10de7af4bc5e9337d5f476142994568.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/0704593b203fc4aa3016ecae33955c88c4cc3087.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/0cdff7f34185571a2f648d36c457ce751f9e71e5.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/10befd34b141709f88f6899b0eef60f68b0f8c54.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/11f97becd90041963d52a7bc2fe0a32eff1b8250.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/1521eac1cdfd49b2ede0aebd55763204f974bdd2.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/15f1a60d19dfadf71e943dca17d8914a87865d85.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/16ced06ae1340e16e7bf98cff4acc8305f7e7d83.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/17d639dae48ee11cb31772377b146270935c05e2.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/1dadb4e888302c283d82b63131b5b51b05655b17.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/2113d8843e034c7465037088edd7480e9b7eefaa.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/23c90370f99dbada2f22883aba385169e51adcd7.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/24dd6a229c5feb28a10f26464631bc91e3ed4120.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/26ee767d8bb23a67b0527a8a5b0c218e34fc11f5.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/2b3d487a5f35b07499fa3c5cc906a5db77ed816c.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/2bf3bda6f1cccbb63afa6a53385ad739959e7bdc.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/32e5efafbb79d39ad5e9fc281baaab9caf809ddf.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/3366d802a4cc39f6f4c342ae2435bc4068e87895.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/34b6b065bd0ce36bf91afe8d8b9da00f07c0f5f8.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/36035975b61f5aa73bbf34bc8bd23c344da7c17d.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/392a3d2104215406ba907120a6e9b9f81f64074a.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/3af321903bb496093b81aa0a6d6014973e85fc67.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/3df52e0562c752284653b0dc256cc24ef88e6587.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/3e511b6200d6511d81814c1bd5a8aba8f30ed0da.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/3f16909f2572a95f6f8edf7ce341ecf1edcb79ad.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/42f180af8d58bc0b7907a76c580089938f93235f.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/460bdf3590df980e07baa9dc3ad9360387deb771.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/467b46da621eb397704225646943bca8f7ebaf67.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/4693311dc341610e073890dc8ff28a65fd35d815.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/49b087b5dcdebe88bdec9374a659582ecef4cf0e.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/4bc8b61bdb25c7dca7049a8f66fa3ed1f6c06033.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/52aa273d56a0d95e1a8e65f1b96a8ea09673ed4e.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/5863e2415076faee1762b5a9bd036ffdf687ec9e.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/5c61e78c8eb4ea24b812b2757d34f0425f62c4ce.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/5f330cd3c7a6a655286e1ff2e4f18cb6b961d558.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/654f6226f909731ce2a16f95ad58333e5d46b358.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/65ad1126d5af748c76fa8186a04e9db94caa4266.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/65e0942f1ad3a714b8e9b5136374de2c77708332.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/66279b39bd62a3954a7525a47266dc24230c10f7.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/66e3b4cc645e047a48dd09a18ae80bea4f32d15b.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/67a69da5f6e63f009f084ad75653f7e9e9da6fae.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/6811d21d4bfdf0a306e2aa7d0d6c892825fd907b.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/683afd1f2714721d518b5a7bd1baee83385a73e8.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/68a03035213ebcbf62913a52379d1cce83323b1e.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/6c9100f15e145f9702cdccaaa2f57bee320e2862.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/6d3e004374a49df1de91cdfd9e06a71bc33bc3c4.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/6d949a66414ea0a3db44b8afe10e91106575a075.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/6f07d375ab4808960a60920ff3c6c258bbd47463.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/6f95e416f64ed29422d3718056c7909240dec283.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/72143f794779e7b3d20c5caae77398edd54148f0.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/743c558b7946fde225ef98eba440b352cf8069f6.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/78247dfdf33edca136ad0eb5fe63c7593d3776c1.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/7936639e6727e1a0e1c2e2e3a2e36a4b4e20248e.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/7998ced5800ae3ab7db96f6c05c3934a374bc978.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/79ddc786c623617dca051d63750642214ad39267.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/7d2efdd348236797e02a79096908ba2b10eb0169.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/7f592ec5adcc705efd02698886f997e750efdfd6.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/7fc833c187bcb72feab094f6745102406d7501e2.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/80d95360c7eea97a7c354ee6ca3c1a8851b53cd9.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/82beec6373c55da4a3001fbcac6b72729f72dbc0.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/84bb1c96e309feb49d8d2fa0d266b8369a0ec428.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/865d72e9eec58ace6e960c148dad4032e5cbe74c.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/865ec27a703ec684e7330d283c5cf789add90eeb.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/86cf2cdf69f64c8608b1f8f8534bb48e0849469b.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/8fa8542c24682f1630f1068f09423a1504d0d054.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/9071d0ebe6b2a5539393680f86a221d40c324b1a.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/90de2c24b7b96754be5274456846c679c7218f66.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/944e446940adf75be72d7ff7a59b5db4918d6e1c.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/9656ecd4fe0150cd6217d09c5d4b1f8d9d19e00b.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/9a1dd628a3eb7e38539910dfe4779c436f26fbcf.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/9b7df91a15b8467cb4a0d6e28cff72627c05af10.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/9c4af53e207bf96a18b2686d4332c7d6387741ff.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/9e28a8939946014bbb652453058fd33ef7a8320e.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/9e59fc13628275f2a31802bc64c03f049f457bd6.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/a19750a6d840f704991808815c7cc500845d850f.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/a579564d9cc80ce669ba9d87617147b0fdf9e950.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/a956c26cc96805f137aa6e1bf918e945cd2a2dcf.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/b3463540377cf86fcf1e58bdc5d19bd5db4460aa.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/b74958d4a89a7cf79ed11404f4294c471ff25aff.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/b93ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/bd474da839501043708fa3000d35851e61d996a3.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/bde34cd954fc463c1cee7195696c5662b0da623a.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/bed48976a960605bb0cc70cc575506af38968f36.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/c103a0cc7197d1128ce53feb5373975328c86a95.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/c1ace35610f08937e315c7ca43d88e3d52cae87d.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/c26809628169f516dea4ef452fe982b3b64faf42.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/c5166aff566078fc644891c3d483a596bc238579.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/c77fd2df6127b125a3d4d9d702eb97c7151b84b2.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/c87885aa4d31ad8a2b08b03b992f52f9db466615.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/cba0ca9382553634281ae742531723e2b84d8b34.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/ce676537fa146be76efe97393539b87248de1c84.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/ced58e2cf97d7a523c5852924a577f5c8b892866.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/d06f37f0a1e298db8a44f4f636fb6fb3284127de.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/d172f0fadfb95294453118f64f6a030a09446bf9.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/d456384a5763e1fb69be4c8a36aabd43efde2aec.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/d5f7009c8ca1699486d9116a6ca0da537b1bb8b7.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/d64396a0e9f44951ae8d3dd39b07e3b4ac792cdc.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/d9993b207736a02db0e341bc1253b5c708697d6e.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/da427a9a7f5006cf428910abcbcb10322f0c9b6a.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/e0e399e8dbcd4774ee2b95798987a3638ea50836.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/eacb60510140254a7ec730a2383e740cf8048a1d.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/eb12b0fa792eb79c4d325779b62e416a5f3bd4bd.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/eb265a9697212637085b4a3e6ab21689f776d9de.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/f3fe397632a874f9bb32ccda0313de2633938b63.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/f4fda071eb8ac67600e3a674f17e31bc2aa298d6.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/f5d01c6d7cf05a4278dd5458a09e0b04788a0103.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/f88bf65cf0371d4806fae9e1ff953f163ab0d803.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/f89563819dcaf8721dcc05b5d25657de7e4a3a8d.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/fd0ebe116d422145e03dbb05c5d21d8f36ffe70f.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/fdbaea7fe81fb647256ead8b8076b3fa39ae57ec.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/ffd4529bd2b59140eec7020beac2eb51f67ba602.json diff --git a/nsot/admin.py b/nsot/admin.py index 2edd3322..65e0396d 100644 --- a/nsot/admin.py +++ b/nsot/admin.py @@ -93,7 +93,7 @@ class IterableAdmin(admin.ModelAdmin): admin.site.register(models.Iterable, IterableAdmin) class ItervalueAdmin(admin.ModelAdmin): - list_display = ('value', 'unique_id', 'iterable', 'site') + list_display = ('value', 'iterable', 'site') fields = list_display admin.site.register(models.Itervalue, ItervalueAdmin) diff --git a/nsot/api/filters.py b/nsot/api/filters.py index 1cdfa910..079fc581 100644 --- a/nsot/api/filters.py +++ b/nsot/api/filters.py @@ -48,6 +48,12 @@ class Meta: model = models.Device fields = ['hostname', 'attributes'] +class ItervalueFilter(ResourceFilter): + """Filter for Itervalue objects.""" + class Meta: + model = models.Itervalue + fields = ['iterable', 'value', 'attributes'] + class NetworkFilter(ResourceFilter): """Filter for Network objects.""" diff --git a/nsot/api/serializers.py b/nsot/api/serializers.py index 07a63291..2fb44c7d 100644 --- a/nsot/api/serializers.py +++ b/nsot/api/serializers.py @@ -252,82 +252,6 @@ class Meta: 'resource_id') -########### -# Iterable -########### -class IterableSerializer(NsotSerializer): - """Used for GET, DELETE on Iterables.""" - class Meta: - model = models.Iterable - - -class IterableCreateSerializer(IterableSerializer): - """Used for POST on Iterables.""" - site_id = fields.IntegerField( - label = get_field_attr(models.Iterable, 'site', 'verbose_name'), - help_text = get_field_attr(models.Iterable, 'site', 'help_text') - ) - - class Meta: - model = models.Iterable - fields = ( 'name', 'description', 'min_val', 'max_val', 'increment', 'site_id') - - -class IterableUpdateSerializer(BulkSerializerMixin, - IterableCreateSerializer): - """ Used for PUT on Iterables. """ - class Meta: - model = models.Iterable - list_serializer_class = BulkListSerializer - fields = ('id', 'name', 'description', 'min_val', 'max_val', 'increment') - - -class IterablePartialUpdateSerializer(BulkSerializerMixin, - IterableCreateSerializer): - """ Used for PATCH, on Iterables. """ - class Meta: - model = models.Iterable - list_serializer_class = BulkListSerializer - fields = ('id', 'name', 'description', 'min_val', 'max_val', 'increment') - - -########### -# Itervalue -########### -class ItervalueSerializer(NsotSerializer): - """Used for GET, DELETE on Itervalues.""" - class Meta: - model = models.Itervalue - - -class ItervalueCreateSerializer(ItervalueSerializer): - """Used for POST on Itervalues.""" - site_id = fields.IntegerField( - label = get_field_attr(models.Iterable, 'site', 'verbose_name'), - help_text = get_field_attr(models.Iterable, 'site', 'help_text') - ) - class Meta: - model = models.Itervalue - fields = ('iterable', 'value', 'unique_id', 'site_id') - - -class ItervalueUpdateSerializer(BulkSerializerMixin, - ItervalueCreateSerializer): - """ Used for PUT on Itervalues. """ - class Meta: - model = models.Itervalue - list_serializer_class = BulkListSerializer - fields = ('id', 'iterable', 'value', 'unique_id') - - -class ItervaluePartialUpdateSerializer(BulkSerializerMixin, - ItervalueCreateSerializer): - """ Used for PATCH, on Itervalues. """ - class Meta: - model = models.Itervalue - list_serializer_class = BulkListSerializer - fields = ('id', 'iterable', 'value', 'unique_id') - ########### # Resources @@ -603,6 +527,88 @@ class Meta: fields = ('id', 'name', 'description', 'type', 'mac_address', 'speed', 'parent_id', 'addresses', 'attributes') +########### +# Iterable +########### +class IterableSerializer(NsotSerializer): + """Used for GET, DELETE on Iterables.""" + class Meta: + model = models.Iterable + + +class IterableCreateSerializer(IterableSerializer): + """Used for POST on Iterables.""" + site_id = fields.IntegerField( + label = get_field_attr(models.Iterable, 'site', 'verbose_name'), + help_text = get_field_attr(models.Iterable, 'site', 'help_text') + ) + + class Meta: + model = models.Iterable + fields = ( 'name', 'description', 'min_val', 'max_val', 'increment', 'site_id') + + +class IterableUpdateSerializer(BulkSerializerMixin, + IterableCreateSerializer): + """ Used for PUT on Iterables. """ + class Meta: + model = models.Iterable + list_serializer_class = BulkListSerializer + fields = ('id', 'name', 'description', 'min_val', 'max_val', 'increment') + + +class IterablePartialUpdateSerializer(BulkSerializerMixin, + IterableCreateSerializer): + """ Used for PATCH, on Iterables. """ + class Meta: + model = models.Iterable + list_serializer_class = BulkListSerializer + fields = ('id', 'name', 'description', 'min_val', 'max_val', 'increment') + + +########### +# Itervalue +########### +class ItervalueSerializer(ResourceSerializer): + """Used for GET, DELETE on Itervalues.""" + class Meta: + model = models.Itervalue + + +class ItervalueCreateSerializer(ItervalueSerializer): + """Used for POST on Itervalues.""" + site_id = fields.IntegerField( + label = get_field_attr(models.Iterable, 'site', 'verbose_name'), + help_text = get_field_attr(models.Iterable, 'site', 'help_text') + ) + + class Meta: + model = models.Itervalue + fields = ('iterable', 'value', 'attributes', 'site_id') + + +class ItervalueUpdateSerializer(BulkSerializerMixin, + ItervalueCreateSerializer): + """ Used for PUT on Itervalues. """ + attributes = JSONDictField( + required=True, + help_text='Dictionary of attributes to set.' + ) + + class Meta: + model = models.Itervalue + list_serializer_class = BulkListSerializer + fields = ('id', 'iterable', 'value', 'attributes') + + +class ItervaluePartialUpdateSerializer(BulkSerializerMixin, + ItervalueCreateSerializer): + """ Used for PATCH, on Itervalues. """ + class Meta: + model = models.Itervalue + list_serializer_class = BulkListSerializer + fields = ('id', 'iterable', 'value', 'attributes') + ########### # AuthToken diff --git a/nsot/api/urls.py b/nsot/api/urls.py index 508964dd..4b06f353 100644 --- a/nsot/api/urls.py +++ b/nsot/api/urls.py @@ -35,7 +35,7 @@ sites_router.register(r'networks', views.NetworkViewSet) sites_router.register(r'values', views.ValueViewSet) sites_router.register(r'iterable', views.IterableViewSet) -sites_router.register(r'itervalue', views.ItervalueViewSet) +sites_router.register(r'itervalues', views.ItervalueViewSet) # Wire up our API using automatic URL routing. # Additionally, we include login URLs for the browsable API. diff --git a/nsot/api/views.py b/nsot/api/views.py index d965562b..d380c1e5 100644 --- a/nsot/api/views.py +++ b/nsot/api/views.py @@ -353,6 +353,7 @@ class IterableViewSet(ResourceViewSet): queryset = models.Iterable.objects.all() serializer_class = serializers.IterableSerializer filter_fields = ('name', 'description', 'min_val', 'max_val', 'increment') + natural_key = 'name' def get_serializer_class(self): if self.request.method == 'POST': @@ -363,6 +364,10 @@ def get_serializer_class(self): return serializers.IterablePartialUpdateSerializer return self.serializer_class + def get_natural_key_kwargs(self, filter_value): + """Return a dict of kwargs for natural_key lookup.""" + return {self.natural_key: filter_value} + @detail_route(methods=['get']) def next_value(self, request, pk=None, site_pk=None, *args, **kwargs): """Return next available Iterable value from this Network.""" @@ -377,7 +382,7 @@ class ItervalueViewSet(ResourceViewSet): """ queryset = models.Itervalue.objects.all() serializer_class = serializers.ItervalueSerializer - filter_fields = ( 'iterable', 'value', 'unique_id') + filter_class = filters.ItervalueFilter def get_serializer_class(self): if self.request.method == 'POST': @@ -386,6 +391,7 @@ def get_serializer_class(self): return serializers.ItervalueUpdateSerializer if self.request.method in ('PATCH'): return serializers.ItervaluePartialUpdateSerializer + return self.serializer_class diff --git a/nsot/migrations/0028_auto_20161004_0830.py b/nsot/migrations/0028_auto_20161004_0830.py new file mode 100644 index 00000000..f8e1df2a --- /dev/null +++ b/nsot/migrations/0028_auto_20161004_0830.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0027_auto_20160925_1135'), + ] + + operations = [ + migrations.AlterModelOptions( + name='itervalue', + options={'verbose_name': 'itervalue'}, + ), + migrations.AlterField( + model_name='attribute', + name='resource_name', + field=models.CharField(help_text='The name of the Resource to which this Attribute is bound.', max_length=20, verbose_name='Resource Name', db_index=True, choices=[('Device', 'Device'), ('Interface', 'Interface'), ('Itervalue', 'Itervalue'), ('Network', 'Network')]), + ), + migrations.AlterField( + model_name='change', + name='resource_name', + field=models.CharField(help_text='The name of the Resource for this Change.', max_length=20, verbose_name='Resource Type', db_index=True, choices=[('Network', 'Network'), ('Attribute', 'Attribute'), ('Itervalue', 'Itervalue'), ('Site', 'Site'), ('Interface', 'Interface'), ('Device', 'Device'), ('Iterable', 'Iterable')]), + ), + migrations.AlterField( + model_name='itervalue', + name='site', + field=models.ForeignKey(related_name='itervalue', on_delete=django.db.models.deletion.PROTECT, verbose_name='Site', to='nsot.Site', help_text='Unique ID of the Site this Itervalue is under.'), + ), + migrations.AlterField( + model_name='value', + name='resource_name', + field=models.CharField(help_text='The name of the Resource type to which the Value is bound.', max_length=20, verbose_name='Resource Type', db_index=True, choices=[('Network', 'Network'), ('Attribute', 'Attribute'), ('Itervalue', 'Itervalue'), ('Site', 'Site'), ('Interface', 'Interface'), ('Device', 'Device'), ('Iterable', 'Iterable')]), + ), + ] diff --git a/nsot/migrations/0029_auto_20161005_1445.py b/nsot/migrations/0029_auto_20161005_1445.py new file mode 100644 index 00000000..d8309919 --- /dev/null +++ b/nsot/migrations/0029_auto_20161005_1445.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion +import django_extensions.db.fields.json + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0028_auto_20161004_0830'), + ] + + operations = [ + migrations.AddField( + model_name='iterable', + name='_attributes_cache', + field=django_extensions.db.fields.json.JSONField(help_text='Local cache of attributes. (Internal use only)', blank=True), + ), + migrations.AlterField( + model_name='attribute', + name='resource_name', + field=models.CharField(help_text='The name of the Resource to which this Attribute is bound.', max_length=20, verbose_name='Resource Name', db_index=True, choices=[('Device', 'Device'), ('Interface', 'Interface'), ('Itervalue', 'Itervalue'), ('Network', 'Network'), ('Iterable', 'Iterable')]), + ), + migrations.AlterField( + model_name='iterable', + name='site', + field=models.ForeignKey(related_name='iterable', on_delete=django.db.models.deletion.PROTECT, verbose_name='Site', to='nsot.Site', help_text='Unique ID of the Site this Attribute is under.'), + ), + ] diff --git a/nsot/migrations/0030_auto_20161006_0416.py b/nsot/migrations/0030_auto_20161006_0416.py new file mode 100644 index 00000000..c2e175d7 --- /dev/null +++ b/nsot/migrations/0030_auto_20161006_0416.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0029_auto_20161005_1445'), + ] + + operations = [ + migrations.RemoveField( + model_name='iterable', + name='_attributes_cache', + ), + migrations.AlterField( + model_name='attribute', + name='resource_name', + field=models.CharField(help_text='The name of the Resource to which this Attribute is bound.', max_length=20, verbose_name='Resource Name', db_index=True, choices=[('Device', 'Device'), ('Interface', 'Interface'), ('Itervalue', 'Itervalue'), ('Network', 'Network')]), + ), + ] diff --git a/nsot/models.py b/nsot/models.py index 061fe15b..581cfb61 100644 --- a/nsot/models.py +++ b/nsot/models.py @@ -38,7 +38,7 @@ VALID_CHANGE_RESOURCES = set(RESOURCE_BY_IDX) VALID_ATTRIBUTE_RESOURCES = set([ - 'Network', 'Device', 'Interface', 'Itervalue' + 'Network', 'Device', 'Interface', 'Itervalue' ]) # Lists of 2-tuples of (value, option) for displaying choices in certain model @@ -1518,6 +1518,7 @@ class Attribute(models.Model): help_text='The name of the Resource to which this Attribute is bound.' ) + def __unicode__(self): return u'%s %s (site_id: %s)' % ( self.resource_name, self.name, self.site_id @@ -1895,7 +1896,7 @@ class Iterable(models.Model): default = 1, help_text='Increment value of the Iterable by.' ) site = models.ForeignKey( - Site, db_index=True, related_name='Iterable', + Site, db_index=True, related_name='iterable', on_delete=models.PROTECT, verbose_name='Site', help_text='Unique ID of the Site this Attribute is under.' ) @@ -1937,6 +1938,7 @@ def save(self, *args, **kwargs): self.full_clean() super(Iterable, self).save(*args, **kwargs) + def to_dict(self): return { 'id': self.id, @@ -1953,8 +1955,10 @@ class Itervalue(Resource): ''' value = contains the value getnext = returns the next iterated value for this particular Iterable - save = saves the val - unique_id = unique id to associate the value - query/deletes can be based on this unique id - This should also be set externally, to make it callable + This table uses the attribute: + The intention of attribute here is to associate a "service key" that will keep track of the (potentially multiple iterable) values associated with + a particular automation instance (e.g an ansible playbook that needs next available vlan numbers, portchannel numbers etc). We can then use this service key + to perform CRUD operations on those values (in other words on the invocation instance of the automation service/playbook) iterable = Foreign key that ties the Iterable with the value ''' iterable = models.ForeignKey(Iterable, on_delete=models.PROTECT, related_name='itervalue') diff --git a/tests/api_tests/test_iterable.py b/tests/api_tests/test_iterable.py index ddceebd1..bbc27445 100644 --- a/tests/api_tests/test_iterable.py +++ b/tests/api_tests/test_iterable.py @@ -41,6 +41,9 @@ def test_creation(client, site): # Successfully get a single Network Attribute assert_success(client.get(itr_obj_uri), payload) + # Verify successful get of single Iterable by natural_key + itr_natural_uri = site.detail_uri('iterable', id='itr1') + assert_success(client.get(itr_natural_uri), itr) def test_bulk_operations(client, site): """Test creating/updating multiple Iterables at once.""" diff --git a/tests/api_tests/test_itervalues.py b/tests/api_tests/test_itervalues.py index d04fcf6a..46a40246 100644 --- a/tests/api_tests/test_itervalues.py +++ b/tests/api_tests/test_itervalues.py @@ -27,15 +27,69 @@ def test_creation(client, site): itr_uri = site.list_uri('iterable') itr_resp = client.create(itr_uri, name='itr1', description="test-iterable", min_val=10, max_val=20, increment=1) itr = get_result(itr_resp) + + #Create the attribute + attr_uri = site.list_uri('attribute') + client.create(attr_uri, resource_name='Itervalue', name='service_key') + #Create the first value itrval_uri = site.list_uri('itervalue') nval = client.get(reverse('iterable-next-value', args=(site.id, itr['id']))).json()[0] #Get the next value to assign to the itervalue - itrval_resp = client.create(itrval_uri, iterable=itr['id'], value=nval, unique_id='uuid_custA_site1') # create the iterval + itrval_resp = client.create(itrval_uri, iterable=itr['id'], value=nval, attributes={'service_key': 'custA01_key1'}) # create the iterval payload = get_result(itrval_resp) itrval_obj_uri = site.detail_uri('itervalue', id=payload['id']) assert_success(client.get(itrval_obj_uri), payload) +def test_filters(site, client): + """Test attribute filter for Itervalue""" + itr_uri = site.list_uri('iterable') + itr_resp1 = client.create(itr_uri, name='itr1', description="test-iterable1", min_val=10, max_val=20, increment=1) + itr1 = get_result(itr_resp1) + itr_resp2 = client.create(itr_uri, name='itr2', description="test-iterable2", min_val=100, max_val=200, increment=1) + itr2 = get_result(itr_resp2) + + #Create the attribute + attr_uri = site.list_uri('attribute') + client.create(attr_uri, resource_name='Itervalue', name='service_key') + #### create itervalues for itr1 + #create the first value + itrval_uri = site.list_uri('itervalue') + nval = client.get(reverse('iterable-next-value', args=(site.id, itr1['id']))).json()[0] #get the next value to assign to the itervalue + itrval_resp = client.create(itrval_uri, iterable=itr1['id'], value=nval, attributes={'service_key': 'custa01_key1'}) # create the iterval + #create the next value + nval = client.get(reverse('iterable-next-value', args=(site.id, itr1['id']))).json()[0] #get the next value to assign to the itervalue + itrval_resp = client.create(itrval_uri, iterable=itr1['id'], value=nval, attributes={'service_key': 'custa01_key2'}) # create the iterval + #create the next value + nval = client.get(reverse('iterable-next-value', args=(site.id, itr1['id']))).json()[0] #get the next value to assign to the itervalue + itrval_resp = client.create(itrval_uri, iterable=itr1['id'], value=nval, attributes={'service_key': 'custb01_key1'}) # create the iterval + #create the next value + nval = client.get(reverse('iterable-next-value', args=(site.id, itr1['id']))).json()[0] #get the next value to assign to the itervalue + itrval_resp = client.create(itrval_uri, iterable=itr1['id'], value=nval, attributes={'service_key': 'custb01_key2'}) # create the iterval + #### create itervalues for itr2 + #create the first value + itrval_uri = site.list_uri('itervalue') + nval = client.get(reverse('iterable-next-value', args=(site.id, itr2['id']))).json()[0] #get the next value to assign to the itervalue + itrval_resp = client.create(itrval_uri, iterable=itr2['id'], value=nval, attributes={'service_key': 'custa01_key1'}) # create the iterval + #create the next value + nval = client.get(reverse('iterable-next-value', args=(site.id, itr2['id']))).json()[0] #get the next value to assign to the itervalue + itrval_resp = client.create(itrval_uri, iterable=itr2['id'], value=nval, attributes={'service_key': 'custa01_key2'}) # create the iterval + #create the next value + nval = client.get(reverse('iterable-next-value', args=(site.id, itr2['id']))).json()[0] #get the next value to assign to the itervalue + itrval_resp = client.create(itrval_uri, iterable=itr2['id'], value=nval, attributes={'service_key': 'custb01_key1'}) # create the iterval + #create the next value + nval = client.get(reverse('iterable-next-value', args=(site.id, itr2['id']))).json()[0] #get the next value to assign to the itervalue + itrval_resp = client.create(itrval_uri, iterable=itr2['id'], value=nval, attributes={'service_key': 'custb01_key2'}) # create the iterval + + + #Test lookup by attribute + expected = [ 12, 102 ] #Values assigned to custb01_key1 + returned = get_result(client.retrieve(itrval_uri, attributes='service_key=custb01_key1')) + result = [ val['value'] for val in returned ] + assert result == expected + + + def test_update(client, site): """Test PUT method""" itr_uri = site.list_uri('iterable') @@ -43,16 +97,21 @@ def test_update(client, site): itr_resp = client.create(itr_uri, name='itr1', description="test-iterable", min_val=10, max_val=20, increment=1) itr = get_result(itr_resp) + #Create the attribute + attr_uri = site.list_uri('attribute') + client.create(attr_uri, resource_name='Itervalue', name='service_key') + + itr_pk_uri = site.detail_uri('iterable', id=itr['id']) itrval_uri = site.list_uri('itervalue') nval = client.get(reverse('iterable-next-value', args=(site.id, itr['id']))).json()[0] #Get the next value to assign to the itervalue - itrval_resp = client.create(itrval_uri, iterable=itr['id'], value=nval, unique_id='uuid_custA_site1') # create the iterval + itrval_resp = client.create(itrval_uri, iterable=itr['id'], value=nval, attributes={'service_key': 'custA01_key1'}) # create the iterval itrval_resp_dict = get_result(itrval_resp) itrval_obj_uri = site.detail_uri('itervalue', id=itrval_resp_dict['id']) - #Update the U_ID - params = {'iterable': itr['id'], 'value': nval, 'unique_id': 'new_update' } + #Update the attribute + params = {'iterable': itr['id'], 'value': nval, 'attributes': {'service_key': 'UPDATED'} } itrval_backup = copy.deepcopy(itrval_resp_dict) itrval_backup.update(params) assert_success( @@ -74,17 +133,19 @@ def test_partial_update(client, site): itr_resp = client.create(itr_uri, name='itr1', description="test-iterable", min_val=10, max_val=20, increment=1) itr = get_result(itr_resp) - - itr_pk_uri = site.detail_uri('iterable', id=itr['id']) + #Create the attribute + attr_uri = site.list_uri('attribute') + client.create(attr_uri, resource_name='Itervalue', name='service_key') itrval_uri = site.list_uri('itervalue') + itr_pk_uri = site.detail_uri('iterable', id=itr['id']) nval = client.get(reverse('iterable-next-value', args=(site.id, itr['id']))).json()[0] #Get the next value to assign to the itervalue - itrval_resp = client.create(itrval_uri, iterable=itr['id'], value=nval, unique_id='uuid_custA_site1') # create the iterval + itrval_resp = client.create(itrval_uri, iterable=itr['id'], value=nval, attributes={'service_key': 'custA01_key1'}) # create the iterval itrval_resp_dict = get_result(itrval_resp) itrval_obj_uri = site.detail_uri('itervalue', id=itrval_resp_dict['id']) #Update the U_ID - params = {'unique_id': 'new_update' } + params = {'attributes': {'service_key': 'UPDATED'}} itrval_backup = copy.deepcopy(itrval_resp_dict) itrval_backup.update(params) assert_success( @@ -99,41 +160,95 @@ def test_deletion(client, site): itr_resp = client.create(itr_uri, name='itr1', description="test-iterable", min_val=10, max_val=20, increment=1) itr = get_result(itr_resp) + #Create the attribute + attr_uri = site.list_uri('attribute') + client.create(attr_uri, resource_name='Itervalue', name='service_key') itr_pk_uri = site.detail_uri('iterable', id=itr['id']) itrval_uri = site.list_uri('itervalue') nval = client.get(reverse('iterable-next-value', args=(site.id, itr['id']))).json()[0] #Get the next value to assign to the itervalue - itrval_resp = client.create(itrval_uri, iterable=itr['id'], value=nval, unique_id='uuid_custA_site1') # create the iterval + itrval_resp = client.create(itrval_uri, iterable=itr['id'], value=nval, attributes={'service_key': 'custA01_key1'}) # create the iterval itrval_resp_dict = get_result(itrval_resp) itrval_obj_uri = site.detail_uri('itervalue', id=itrval_resp_dict['id']) assert_deleted(client.delete(itrval_obj_uri)) -#def test_bulk_operations(client, site): -# """Test creating/updating multiple Iterables at once.""" -# + +def test_skey_deletion(client, site): + """Test deletion of multiple itervalues based on the service key attribute""" + + itr_uri = site.list_uri('iterable') + itr_resp1 = client.create(itr_uri, name='itr1', description="test-iterable1", min_val=10, max_val=20, increment=1) + itr1 = get_result(itr_resp1) + itr_resp2 = client.create(itr_uri, name='itr2', description="test-iterable2", min_val=100, max_val=200, increment=1) + itr2 = get_result(itr_resp2) + + #Create the attribute + attr_uri = site.list_uri('attribute') + client.create(attr_uri, resource_name='Itervalue', name='service_key') + #### create itervalues for itr1 + #create the first value + itrval_uri = site.list_uri('itervalue') + nval = client.get(reverse('iterable-next-value', args=(site.id, itr1['id']))).json()[0] #get the next value to assign to the itervalue + itrval_resp = client.create(itrval_uri, iterable=itr1['id'], value=nval, attributes={'service_key': 'custa01_key1'}) # create the iterval + #create the next value + nval = client.get(reverse('iterable-next-value', args=(site.id, itr1['id']))).json()[0] #get the next value to assign to the itervalue + itrval_resp = client.create(itrval_uri, iterable=itr1['id'], value=nval, attributes={'service_key': 'custa01_key2'}) # create the iterval + #create the next value + nval = client.get(reverse('iterable-next-value', args=(site.id, itr1['id']))).json()[0] #get the next value to assign to the itervalue + itrval_resp = client.create(itrval_uri, iterable=itr1['id'], value=nval, attributes={'service_key': 'custb01_key1'}) # create the iterval + #create the next value + nval = client.get(reverse('iterable-next-value', args=(site.id, itr1['id']))).json()[0] #get the next value to assign to the itervalue + itrval_resp = client.create(itrval_uri, iterable=itr1['id'], value=nval, attributes={'service_key': 'custb01_key2'}) # create the iterval + #### create itervalues for itr2 + #create the first value + itrval_uri = site.list_uri('itervalue') + nval = client.get(reverse('iterable-next-value', args=(site.id, itr2['id']))).json()[0] #get the next value to assign to the itervalue + itrval_resp = client.create(itrval_uri, iterable=itr2['id'], value=nval, attributes={'service_key': 'custa01_key1'}) # create the iterval + #create the next value + nval = client.get(reverse('iterable-next-value', args=(site.id, itr2['id']))).json()[0] #get the next value to assign to the itervalue + itrval_resp = client.create(itrval_uri, iterable=itr2['id'], value=nval, attributes={'service_key': 'custa01_key2'}) # create the iterval + #create the next value + nval = client.get(reverse('iterable-next-value', args=(site.id, itr2['id']))).json()[0] #get the next value to assign to the itervalue + itrval_resp = client.create(itrval_uri, iterable=itr2['id'], value=nval, attributes={'service_key': 'custb01_key1'}) # create the iterval + #create the next value + nval = client.get(reverse('iterable-next-value', args=(site.id, itr2['id']))).json()[0] #get the next value to assign to the itervalue + itrval_resp = client.create(itrval_uri, iterable=itr2['id'], value=nval, attributes={'service_key': 'custb01_key2'}) # create the iterval + + + #Test lookup by attribute + expected = [ 12, 102 ] #Values assigned to custb01_key1 + returned = get_result(client.retrieve(itrval_uri, attributes='service_key=custb01_key1')) + for iv in returned: + ival_uri = site.detail_uri('itervalue', id=iv['id']) + client.delete(ival_uri) + + #Assert that all values associate with custb, key1 are gone, but cust b key1 is still around + assert get_result(client.retrieve(itrval_uri, attributes='service_key=custb01_key1')) == [] + custb_key2 = get_result(client.retrieve(itrval_uri, attributes='service_key=custb01_key2')) + result = [ val['value'] for val in custb_key2 ] + assert result == [13, 103] + + +# """Test DELETE method""" # itr_uri = site.list_uri('iterable') # -# # Successfully create a collection of Iterables -# collection = [ -# {'name': 'itr1', 'description': 'iterable1', 'min_val': 10, 'max_val': 20, 'increment': 1}, -# {'name': 'itr2', 'description': 'iterable2', 'min_val': 10, 'max_val': 20, 'increment': 1}, -# {'name': 'itr3', 'description': 'iterable3', 'min_val': 10, 'max_val': 20, 'increment': 1}, -# ] -# collection_response = client.post( -# itr_uri, -# data=json.dumps(collection) -# ) -# assert_created(collection_response, None) +# itr_resp = client.create(itr_uri, name='itr1', description="test-iterable", min_val=10, max_val=20, increment=1) +# itr = get_result(itr_resp) +# +# #Create the attribute +# attr_uri = site.list_uri('attribute') +# client.create(attr_uri, resource_name='Itervalue', name='service_key') +# itr_pk_uri = site.detail_uri('iterable', id=itr['id']) +# +# itrval_uri = site.list_uri('itervalue') +# nval = client.get(reverse('iterable-next-value', args=(site.id, itr['id']))).json()[0] #Get the next value to assign to the itervalue # -# # Successfully get all created Attributes -# output = collection_response.json() -# cli_resp = client.get(itr_uri) -# payload = get_result(output) +# itrval_resp = client.create(itrval_uri, iterable=itr['id'], value=nval, attributes={'service_key': 'custA01_key1'}) # create the iterval +# itrval_resp_dict = get_result(itrval_resp) +# itrval_obj_uri = site.detail_uri('itervalue', id=itrval_resp_dict['id']) +# # -# assert_success( -# client.get(itr_uri), -# payload -# ) +# assert_deleted(client.delete(itrval_obj_uri)) # diff --git a/tests/api_tests/tests/api_tests/cassettes/0082aaeb587bff5968f13d0727be522c4fb7e8a0.json b/tests/api_tests/tests/api_tests/cassettes/0082aaeb587bff5968f13d0727be522c4fb7e8a0.json new file mode 100644 index 00000000..b5ed91b2 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/0082aaeb587bff5968f13d0727be522c4fb7e8a0.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "[\n {\n \"attributes\": {\n \"cluster\": \"\", \n \"foo\": \"bar\", \n \"owner\": \"jathan\"\n }, \n \"hostname\": \"foo-bar1\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"\", \n \"foo\": \"baz\", \n \"owner\": \"gary\"\n }, \n \"hostname\": \"foo-bar2\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"lax\", \n \"foo\": \"baz\", \n \"owner\": \"jathan\"\n }, \n \"hostname\": \"foo-bar3\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"sjc\", \n \"foo\": \"bar\", \n \"owner\": \"gary\"\n }, \n \"hostname\": \"foo-bar4\"\n }\n]\n", "encoding": "utf-8"}, "headers": {"Content-Length": ["668"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=GBNXIH9wIhYIx23dUR1rslHAgSdp5FAr; sessionid=udqy24scis5u09bgda0x0xgd01xcd28p"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/devices/"}, "response": {"body": {"string": "[{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"bar\"},\"hostname\":\"foo-bar1\",\"site_id\":4,\"id\":9},{\"attributes\":{\"owner\":\"gary\",\"cluster\":\"\",\"foo\":\"baz\"},\"hostname\":\"foo-bar2\",\"site_id\":4,\"id\":10},{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"hostname\":\"foo-bar3\",\"site_id\":4,\"id\":11},{\"attributes\":{\"owner\":\"gary\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"hostname\":\"foo-bar4\",\"site_id\":4,\"id\":12}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/devices/"}, "recorded_at": "2016-10-04T20:39:05"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/0475fecbc10de7af4bc5e9337d5f476142994568.json b/tests/api_tests/tests/api_tests/cassettes/0475fecbc10de7af4bc5e9337d5f476142994568.json new file mode 100644 index 00000000..2e7148b7 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/0475fecbc10de7af4bc5e9337d5f476142994568.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=9JOFo3zBL5oYq5qEUrBp5guHXsRhAGkm; sessionid=lhjlb73mg7p464m1nbcgc9fvzp5ttq4m"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/itervalues/"}, "response": {"body": {"string": "[{\"attributes\":{\"service_key\":\"custa01_key1\"},\"iterable\":7,\"id\":13,\"value\":10},{\"attributes\":{\"service_key\":\"custa01_key2\"},\"iterable\":7,\"id\":14,\"value\":11},{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":7,\"id\":16,\"value\":13},{\"attributes\":{\"service_key\":\"custa01_key1\"},\"iterable\":8,\"id\":17,\"value\":100},{\"attributes\":{\"service_key\":\"custa01_key2\"},\"iterable\":8,\"id\":18,\"value\":101},{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":8,\"id\":20,\"value\":103}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:20:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/itervalues/"}, "recorded_at": "2016-10-06T13:20:34"}, {"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custb01_key2\"}, \"value\": 103, \"iterable\": 8}", "encoding": "utf-8"}, "headers": {"Content-Length": ["76"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UlL7J2p50Jr77KZp5iAn5OYmIHpUgYTa; sessionid=ncly2disbvl79qmk7jnlfllazf9oeqm3"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":8,\"id\":20,\"value\":103}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/itervalues/20/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/itervalues/"}, "recorded_at": "2016-10-06T13:27:45"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UlL7J2p50Jr77KZp5iAn5OYmIHpUgYTa; sessionid=ncly2disbvl79qmk7jnlfllazf9oeqm3"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/itervalues/?attributes=service_key%3Dcustb01_key1"}, "response": {"body": {"string": "[]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/itervalues/?attributes=service_key%3Dcustb01_key1"}, "recorded_at": "2016-10-06T13:27:45"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UlL7J2p50Jr77KZp5iAn5OYmIHpUgYTa; sessionid=ncly2disbvl79qmk7jnlfllazf9oeqm3"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/itervalues/?attributes=service_key%3Dcustb01_key2"}, "response": {"body": {"string": "[{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":7,\"id\":16,\"value\":13},{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":8,\"id\":20,\"value\":103}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/itervalues/?attributes=service_key%3Dcustb01_key2"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/0704593b203fc4aa3016ecae33955c88c4cc3087.json b/tests/api_tests/tests/api_tests/cassettes/0704593b203fc4aa3016ecae33955c88c4cc3087.json new file mode 100644 index 00000000..c00936c6 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/0704593b203fc4aa3016ecae33955c88c4cc3087.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{}", "encoding": "utf-8"}, "headers": {"Content-Length": ["2"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["user@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/6/devices/bar/"}, "response": {"body": {"string": "{\"error\":{\"message\":\"You do not have permission to perform this action.\",\"code\":403}}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=BjWP0wbPyaFQZ4tvxzStjadERf7BN68i; expires=Tue, 03-Oct-2017 20:39:06 GMT; Max-Age=31449600; Path=/", "sessionid=enjvdydzf6k3tynrdh4z872pphor7pff; expires=Tue, 18-Oct-2016 20:39:06 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "FORBIDDEN", "code": 403}, "url": "http://localhost:8081/api/sites/6/devices/bar/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/0cdff7f34185571a2f648d36c457ce751f9e71e5.json b/tests/api_tests/tests/api_tests/cassettes/0cdff7f34185571a2f648d36c457ce751f9e71e5.json new file mode 100644 index 00000000..284c39ae --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/0cdff7f34185571a2f648d36c457ce751f9e71e5.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UlL7J2p50Jr77KZp5iAn5OYmIHpUgYTa; sessionid=ncly2disbvl79qmk7jnlfllazf9oeqm3"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/6/itervalues/15/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/6/itervalues/15/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/10befd34b141709f88f6899b0eef60f68b0f8c54.json b/tests/api_tests/tests/api_tests/cassettes/10befd34b141709f88f6899b0eef60f68b0f8c54.json new file mode 100644 index 00000000..bec9d0b0 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/10befd34b141709f88f6899b0eef60f68b0f8c54.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UFl1W0wjMeWEdWkqIF1Bw6Xj6m44mQQr; sessionid=kaaqgx1er446gahsdi2uww6kg6mjb5m1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/5/itervalue/12/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:35:48 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/5/itervalue/12/"}, "recorded_at": "2016-10-05T14:35:48"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/11f97becd90041963d52a7bc2fe0a32eff1b8250.json b/tests/api_tests/tests/api_tests/cassettes/11f97becd90041963d52a7bc2fe0a32eff1b8250.json new file mode 100644 index 00000000..b773e761 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/11f97becd90041963d52a7bc2fe0a32eff1b8250.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":6,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=XjwUIiPPmFZjlfEieDo2F46uRxZ7rwSO; expires=Thu, 05-Oct-2017 13:27:45 GMT; Max-Age=31449600; Path=/", "sessionid=avv2q45rkjpgt7ujizz0hrt69ku2spzn; expires=Thu, 20-Oct-2016 13:27:45 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/iterable/6/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/iterable/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/1521eac1cdfd49b2ede0aebd55763204f974bdd2.json b/tests/api_tests/tests/api_tests/cassettes/1521eac1cdfd49b2ede0aebd55763204f974bdd2.json new file mode 100644 index 00000000..b8c6c013 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/1521eac1cdfd49b2ede0aebd55763204f974bdd2.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=XjwUIiPPmFZjlfEieDo2F46uRxZ7rwSO; sessionid=avv2q45rkjpgt7ujizz0hrt69ku2spzn"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/5/iterable/6/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/5/iterable/6/next_value/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/15f1a60d19dfadf71e943dca17d8914a87865d85.json b/tests/api_tests/tests/api_tests/cassettes/15f1a60d19dfadf71e943dca17d8914a87865d85.json new file mode 100644 index 00000000..0b0d1b63 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/15f1a60d19dfadf71e943dca17d8914a87865d85.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/30/ancestors/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27},{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28},{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/30/ancestors/"}, "recorded_at": "2016-09-21T01:06:01"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/30/ancestors/?ascending=True"}, "response": {"body": {"string": "[{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29},{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/30/ancestors/?ascending=True"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/16ced06ae1340e16e7bf98cff4acc8305f7e7d83.json b/tests/api_tests/tests/api_tests/cassettes/16ced06ae1340e16e7bf98cff4acc8305f7e7d83.json new file mode 100644 index 00000000..8b2207aa --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/16ced06ae1340e16e7bf98cff4acc8305f7e7d83.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"hostname\": \"foo-bar1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["24"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/9/devices/"}, "response": {"body": {"string": "{\"attributes\":{},\"hostname\":\"foo-bar1\",\"site_id\":9,\"id\":19}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=VOWIruYGh2cNAJfPR6I6SwE9gboBFVAz; expires=Tue, 03-Oct-2017 20:39:06 GMT; Max-Age=31449600; Path=/", "sessionid=n64m0t4yrcn58gblfe1altpzwzh2bclr; expires=Tue, 18-Oct-2016 20:39:06 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/9/devices/19/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/9/devices/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/17d639dae48ee11cb31772377b146270935c05e2.json b/tests/api_tests/tests/api_tests/cassettes/17d639dae48ee11cb31772377b146270935c05e2.json new file mode 100644 index 00000000..4125aade --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/17d639dae48ee11cb31772377b146270935c05e2.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=aG6lS80qF5MnewAKm7vYVN6OjxZf5MFG; sessionid=ga13ui6clagtfsarxbrc59cp81qrdz7e"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/devices/?attributes=foo%3Dbaz"}, "response": {"body": {"string": "[{\"attributes\":{\"owner\":\"gary\",\"cluster\":\"\",\"foo\":\"baz\"},\"hostname\":\"foo-bar2\",\"site_id\":3,\"id\":6},{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"hostname\":\"foo-bar3\",\"site_id\":3,\"id\":7}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 19:18:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/devices/?attributes=foo%3Dbaz"}, "recorded_at": "2016-10-04T19:18:03"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=aG6lS80qF5MnewAKm7vYVN6OjxZf5MFG; sessionid=ga13ui6clagtfsarxbrc59cp81qrdz7e"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/devices/?attributes=foo%3Dbaz&attributes=cluster%3Dlax"}, "response": {"body": {"string": "[{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"hostname\":\"foo-bar3\",\"site_id\":3,\"id\":7}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 19:18:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/devices/?attributes=foo%3Dbaz&attributes=cluster%3Dlax"}, "recorded_at": "2016-10-04T19:18:03"}, {"request": {"body": {"string": "[\n {\n \"attributes\": {\n \"cluster\": \"\", \n \"foo\": \"bar\", \n \"owner\": \"jathan\"\n }, \n \"hostname\": \"foo-bar1\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"\", \n \"foo\": \"baz\", \n \"owner\": \"gary\"\n }, \n \"hostname\": \"foo-bar2\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"lax\", \n \"foo\": \"baz\", \n \"owner\": \"jathan\"\n }, \n \"hostname\": \"foo-bar3\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"sjc\", \n \"foo\": \"bar\", \n \"owner\": \"gary\"\n }, \n \"hostname\": \"foo-bar4\"\n }\n]\n", "encoding": "utf-8"}, "headers": {"Content-Length": ["668"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=WljdaNu1c3YNSdyo41LokfsKqAkdDkz8; sessionid=ge4lsq4k5fc78t52vtmmeiua76o3z0h8"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/devices/"}, "response": {"body": {"string": "[{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"bar\"},\"hostname\":\"foo-bar1\",\"site_id\":3,\"id\":5},{\"attributes\":{\"owner\":\"gary\",\"cluster\":\"\",\"foo\":\"baz\"},\"hostname\":\"foo-bar2\",\"site_id\":3,\"id\":6},{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"hostname\":\"foo-bar3\",\"site_id\":3,\"id\":7},{\"attributes\":{\"owner\":\"gary\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"hostname\":\"foo-bar4\",\"site_id\":3,\"id\":8}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:38:16 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/devices/"}, "recorded_at": "2016-10-04T20:38:16"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=WljdaNu1c3YNSdyo41LokfsKqAkdDkz8; sessionid=ge4lsq4k5fc78t52vtmmeiua76o3z0h8"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/devices/?hostname=foo-bar3"}, "response": {"body": {"string": "[{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"hostname\":\"foo-bar3\",\"site_id\":3,\"id\":7}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:38:16 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/devices/?hostname=foo-bar3"}, "recorded_at": "2016-10-04T20:38:16"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json b/tests/api_tests/tests/api_tests/cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json index bc3509df..088ce1f7 100644 --- a/tests/api_tests/tests/api_tests/cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json +++ b/tests/api_tests/tests/api_tests/cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"unique_id\": \"uuid_custA_site1\", \"value\": 10, \"iterable\": 4}", "encoding": "utf-8"}, "headers": {"Content-Length": ["61"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=HxblsCzqLPh6JjqediS8zSVXUEocehTq; sessionid=ftc9xszptwq2t700aiktz8gh4cbjit59"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/itervalue/"}, "response": {"body": {"string": "{\"unique_id\":\"uuid_custA_site1\",\"iterable\":4,\"id\":4,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/itervalue/4/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/itervalue/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 5}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=A3FKpUax8zE3bHg19bCaRidkqg6l60hn; sessionid=v2e3vwnj0nob5r7i1kk6yj132tbuxty6"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/itervalue/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":5,\"id\":11,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/itervalue/11/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:35:48 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/itervalue/"}, "recorded_at": "2016-10-05T14:35:48"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/1dadb4e888302c283d82b63131b5b51b05655b17.json b/tests/api_tests/tests/api_tests/cassettes/1dadb4e888302c283d82b63131b5b51b05655b17.json new file mode 100644 index 00000000..5bfdf296 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/1dadb4e888302c283d82b63131b5b51b05655b17.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"cidr\": \"10.250.0.0/25\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["25"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=q8GGhuE1Dueo7kgW7Ul4VnDZZp8B5Kjk; sessionid=ugt61lak8mm8mwbgwy0nnokxa3x96h45"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/11/networks/"}, "response": {"body": {"string": "{\"parent_id\":41,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.250.0.0\",\"attributes\":{},\"site_id\":11,\"id\":42}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/11/networks/42/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:08:51 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/11/networks/"}, "recorded_at": "2016-09-21T01:08:51"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json b/tests/api_tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json index 27720618..0da74468 100644 --- a/tests/api_tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json +++ b/tests/api_tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":2,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=MxGXqptZpS7mCD00eSjBkttffvP0Je2z; expires=Tue, 19-Sep-2017 16:28:50 GMT; Max-Age=31449600; Path=/", "sessionid=thp9dtuxt11wx9agijh5aoy3qi5dqjod; expires=Tue, 04-Oct-2016 16:28:50 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/iterable/2/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/iterable/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=1eoglWCHwPOtX9lw8Shi1D2LMcJ6ILfd; sessionid=004l48so04mei6dct18297tznrghglow"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterable/"}, "response": {"body": {"string": "[{\"description\":\"iterable1\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":2,\"name\":\"itr1\"},{\"description\":\"iterable2\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":3,\"name\":\"itr2\"},{\"description\":\"iterable3\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":4,\"name\":\"itr3\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterable/"}, "recorded_at": "2016-10-06T12:41:33"}, {"request": {"body": {"string": "{\"max_val\": 200, \"min_val\": 100, \"name\": \"itr2\", \"increment\": 1, \"description\": \"test-iterable2\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["97"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=iRn6tFq8uliu3wHJ0fsp5GyTQghOGCRS; sessionid=3up6x0aeqyzb6ivufr0lfy0bl9g3tu80"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable2\",\"min_val\":100,\"max_val\":200,\"increment\":1,\"id\":3,\"name\":\"itr2\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/iterable/3/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/iterable/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/2113d8843e034c7465037088edd7480e9b7eefaa.json b/tests/api_tests/tests/api_tests/cassettes/2113d8843e034c7465037088edd7480e9b7eefaa.json new file mode 100644 index 00000000..c50ebb1b --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/2113d8843e034c7465037088edd7480e9b7eefaa.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UlL7J2p50Jr77KZp5iAn5OYmIHpUgYTa; sessionid=ncly2disbvl79qmk7jnlfllazf9oeqm3"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":6,\"id\":6,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/attributes/6/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/attributes/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/23c90370f99dbada2f22883aba385169e51adcd7.json b/tests/api_tests/tests/api_tests/cassettes/23c90370f99dbada2f22883aba385169e51adcd7.json new file mode 100644 index 00000000..dbcd34b4 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/23c90370f99dbada2f22883aba385169e51adcd7.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=WXJgGnEJSR9o5vSopq7w00BssjHtGHaa; sessionid=2wn8p8mf8y6vsjb2ulevpodocycj52y9"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/networks/25/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/networks/25/"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/24dd6a229c5feb28a10f26464631bc91e3ed4120.json b/tests/api_tests/tests/api_tests/cassettes/24dd6a229c5feb28a10f26464631bc91e3ed4120.json new file mode 100644 index 00000000..0ed4acbe --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/24dd6a229c5feb28a10f26464631bc91e3ed4120.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=GBNXIH9wIhYIx23dUR1rslHAgSdp5FAr; sessionid=udqy24scis5u09bgda0x0xgd01xcd28p"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/devices/query/?query=foo%3Dbar"}, "response": {"body": {"string": "[{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"bar\"},\"hostname\":\"foo-bar1\",\"site_id\":4,\"id\":9},{\"attributes\":{\"owner\":\"gary\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"hostname\":\"foo-bar4\",\"site_id\":4,\"id\":12}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/devices/query/?query=foo%3Dbar"}, "recorded_at": "2016-10-04T20:39:05"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=GBNXIH9wIhYIx23dUR1rslHAgSdp5FAr; sessionid=udqy24scis5u09bgda0x0xgd01xcd28p"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/devices/query/?query=foo%3Dbar+owner%3Djathan"}, "response": {"body": {"string": "[{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"bar\"},\"hostname\":\"foo-bar1\",\"site_id\":4,\"id\":9}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/devices/query/?query=foo%3Dbar+owner%3Djathan"}, "recorded_at": "2016-10-04T20:39:05"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=GBNXIH9wIhYIx23dUR1rslHAgSdp5FAr; sessionid=udqy24scis5u09bgda0x0xgd01xcd28p"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/devices/query/?query=-owner%3Dgary"}, "response": {"body": {"string": "[{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"bar\"},\"hostname\":\"foo-bar1\",\"site_id\":4,\"id\":9},{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"hostname\":\"foo-bar3\",\"site_id\":4,\"id\":11}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/devices/query/?query=-owner%3Dgary"}, "recorded_at": "2016-10-04T20:39:05"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=GBNXIH9wIhYIx23dUR1rslHAgSdp5FAr; sessionid=udqy24scis5u09bgda0x0xgd01xcd28p"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/devices/query/?query=cluster+%2Bfoo%3Dbaz"}, "response": {"body": {"string": "[{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"bar\"},\"hostname\":\"foo-bar1\",\"site_id\":4,\"id\":9},{\"attributes\":{\"owner\":\"gary\",\"cluster\":\"\",\"foo\":\"baz\"},\"hostname\":\"foo-bar2\",\"site_id\":4,\"id\":10},{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"hostname\":\"foo-bar3\",\"site_id\":4,\"id\":11}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/devices/query/?query=cluster+%2Bfoo%3Dbaz"}, "recorded_at": "2016-10-04T20:39:05"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=GBNXIH9wIhYIx23dUR1rslHAgSdp5FAr; sessionid=udqy24scis5u09bgda0x0xgd01xcd28p"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/devices/query/?query=chop%3Dsuey"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"query\":\"Attribute matching query does not exist: 'chop'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/4/devices/query/?query=chop%3Dsuey"}, "recorded_at": "2016-10-04T20:39:05"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/26ee767d8bb23a67b0527a8a5b0c218e34fc11f5.json b/tests/api_tests/tests/api_tests/cassettes/26ee767d8bb23a67b0527a8a5b0c218e34fc11f5.json new file mode 100644 index 00000000..a90c92bc --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/26ee767d8bb23a67b0527a8a5b0c218e34fc11f5.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"hostname\": \"device3\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["23"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=WdHoWv3DqBYwGlJvGbTJ947ZgeSgmnyl; sessionid=zb5hgmz14dupbd90xksy1u635yjsbiiy"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/8/devices/"}, "response": {"body": {"string": "{\"attributes\":{},\"hostname\":\"device3\",\"site_id\":8,\"id\":18}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/8/devices/18/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/8/devices/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/2b3d487a5f35b07499fa3c5cc906a5db77ed816c.json b/tests/api_tests/tests/api_tests/cassettes/2b3d487a5f35b07499fa3c5cc906a5db77ed816c.json new file mode 100644 index 00000000..2e1e13fe --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/2b3d487a5f35b07499fa3c5cc906a5db77ed816c.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=VOWIruYGh2cNAJfPR6I6SwE9gboBFVAz; sessionid=n64m0t4yrcn58gblfe1altpzwzh2bclr"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/devices/foo-bar1/interfaces/"}, "response": {"body": {"string": "[{\"addresses\":[],\"device\":19,\"speed\":1000,\"networks\":[],\"description\":\"\",\"name\":\"eth0\",\"id\":1,\"parent_id\":null,\"mac_address\":\"00:00:00:00:00:00\",\"attributes\":{},\"type\":6},{\"addresses\":[],\"device\":19,\"speed\":1000,\"networks\":[],\"description\":\"\",\"name\":\"eth1\",\"id\":2,\"parent_id\":null,\"mac_address\":\"00:00:00:00:00:00\",\"attributes\":{},\"type\":6}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/devices/foo-bar1/interfaces/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/2bf3bda6f1cccbb63afa6a53385ad739959e7bdc.json b/tests/api_tests/tests/api_tests/cassettes/2bf3bda6f1cccbb63afa6a53385ad739959e7bdc.json new file mode 100644 index 00000000..0a7a4854 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/2bf3bda6f1cccbb63afa6a53385ad739959e7bdc.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=XjwUIiPPmFZjlfEieDo2F46uRxZ7rwSO; sessionid=avv2q45rkjpgt7ujizz0hrt69ku2spzn"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":5,\"id\":5,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/attributes/5/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/attributes/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/32e5efafbb79d39ad5e9fc281baaab9caf809ddf.json b/tests/api_tests/tests/api_tests/cassettes/32e5efafbb79d39ad5e9fc281baaab9caf809ddf.json new file mode 100644 index 00000000..b36b86a7 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/32e5efafbb79d39ad5e9fc281baaab9caf809ddf.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/siblings/"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/siblings/"}, "recorded_at": "2016-09-21T01:06:02"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/siblings/?include_self=True"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/siblings/?include_self=True"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/3366d802a4cc39f6f4c342ae2435bc4068e87895.json b/tests/api_tests/tests/api_tests/cassettes/3366d802a4cc39f6f4c342ae2435bc4068e87895.json new file mode 100644 index 00000000..9c791452 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/3366d802a4cc39f6f4c342ae2435bc4068e87895.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {}, \"hostname\": \"foo\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["37"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=N5Iml4tSryasVqnXLZOu3U5MJBvEhYu5; sessionid=k4ysuun793bmqonjhde2vdvwuqdvckbm"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/6/devices/device1/"}, "response": {"body": {"string": "{\"attributes\":{},\"hostname\":\"foo\",\"site_id\":6,\"id\":14}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/devices/device1/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/34b6b065bd0ce36bf91afe8d8b9da00f07c0f5f8.json b/tests/api_tests/tests/api_tests/cassettes/34b6b065bd0ce36bf91afe8d8b9da00f07c0f5f8.json new file mode 100644 index 00000000..5fa074c8 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/34b6b065bd0ce36bf91afe8d8b9da00f07c0f5f8.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"attr1\": \"foo\"}, \"hostname\": \"bar\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["51"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=N5Iml4tSryasVqnXLZOu3U5MJBvEhYu5; sessionid=k4ysuun793bmqonjhde2vdvwuqdvckbm"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/6/devices/foo/"}, "response": {"body": {"string": "{\"attributes\":{\"attr1\":\"foo\"},\"hostname\":\"bar\",\"site_id\":6,\"id\":14}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/devices/foo/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/36035975b61f5aa73bbf34bc8bd23c344da7c17d.json b/tests/api_tests/tests/api_tests/cassettes/36035975b61f5aa73bbf34bc8bd23c344da7c17d.json new file mode 100644 index 00000000..a1741204 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/36035975b61f5aa73bbf34bc8bd23c344da7c17d.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=q8GGhuE1Dueo7kgW7Ul4VnDZZp8B5Kjk; sessionid=ugt61lak8mm8mwbgwy0nnokxa3x96h45"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/11/networks/1.0.0.1/32/closest_parent/"}, "response": {"body": {"string": "{\"error\":{\"message\":\"No such Network found at (site_id, id) = (11, 1.0.0.1/32)\",\"code\":404}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:08:51 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "NOT FOUND", "code": 404}, "url": "http://localhost:8081/api/sites/11/networks/1.0.0.1/32/closest_parent/"}, "recorded_at": "2016-09-21T01:08:51"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/392a3d2104215406ba907120a6e9b9f81f64074a.json b/tests/api_tests/tests/api_tests/cassettes/392a3d2104215406ba907120a6e9b9f81f64074a.json new file mode 100644 index 00000000..e3e7bb3b --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/392a3d2104215406ba907120a6e9b9f81f64074a.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=VuMVy029S4A19H2gB204lnf0qwqM5zTy; sessionid=90dcjhooh9cwc8xk6qufzvqfd3d3s0sl"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/networks/10.0.0.0/24/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":1,\"id\":1}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:05:59 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/networks/10.0.0.0/24/"}, "recorded_at": "2016-09-21T01:05:59"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/3af321903bb496093b81aa0a6d6014973e85fc67.json b/tests/api_tests/tests/api_tests/cassettes/3af321903bb496093b81aa0a6d6014973e85fc67.json new file mode 100644 index 00000000..218c5ab2 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/3af321903bb496093b81aa0a6d6014973e85fc67.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=WdHoWv3DqBYwGlJvGbTJ947ZgeSgmnyl; sessionid=zb5hgmz14dupbd90xksy1u635yjsbiiy"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/8/devices/16/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/8/devices/16/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/3df52e0562c752284653b0dc256cc24ef88e6587.json b/tests/api_tests/tests/api_tests/cassettes/3df52e0562c752284653b0dc256cc24ef88e6587.json new file mode 100644 index 00000000..6a5238b5 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/3df52e0562c752284653b0dc256cc24ef88e6587.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Ig878iB2FT2tK452bUU9pAr4QHx4b2Jk; sessionid=xkfzerydl2k0dsci3zr4vggxvkps8o4c"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/5/itervalues/4/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:40:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/5/itervalues/4/"}, "recorded_at": "2016-10-05T14:40:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/3e511b6200d6511d81814c1bd5a8aba8f30ed0da.json b/tests/api_tests/tests/api_tests/cassettes/3e511b6200d6511d81814c1bd5a8aba8f30ed0da.json new file mode 100644 index 00000000..90618725 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/3e511b6200d6511d81814c1bd5a8aba8f30ed0da.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UlL7J2p50Jr77KZp5iAn5OYmIHpUgYTa; sessionid=ncly2disbvl79qmk7jnlfllazf9oeqm3"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/iterable/8/next_value/"}, "response": {"body": {"string": "[103]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/iterable/8/next_value/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/3f16909f2572a95f6f8edf7ce341ecf1edcb79ad.json b/tests/api_tests/tests/api_tests/cassettes/3f16909f2572a95f6f8edf7ce341ecf1edcb79ad.json new file mode 100644 index 00000000..d0bf9747 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/3f16909f2572a95f6f8edf7ce341ecf1edcb79ad.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=kib9xqehCEGKpnYQ1j8C7slVF09qjKXc; sessionid=yadinva7mdetd55mnoxclkjb0w6b6hy1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/5/iterable/7/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/5/iterable/7/next_value/"}, "recorded_at": "2016-10-06T12:41:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/42f180af8d58bc0b7907a76c580089938f93235f.json b/tests/api_tests/tests/api_tests/cassettes/42f180af8d58bc0b7907a76c580089938f93235f.json new file mode 100644 index 00000000..f0cef2b2 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/42f180af8d58bc0b7907a76c580089938f93235f.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"cidr\": \"192.168.3.0/24\", \"state\": \"reserved\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["47"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/10/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.3.0\",\"attributes\":{},\"site_id\":10,\"id\":39}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=WUMy9KRlID4TurmOFFLwAhnALfD1pcO4; expires=Wed, 20-Sep-2017 01:08:51 GMT; Max-Age=31449600; Path=/", "sessionid=9nb3h0l94o1ha991e1gbp9igl9chv25i; expires=Wed, 05-Oct-2016 01:08:51 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/10/networks/39/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:08:51 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/10/networks/"}, "recorded_at": "2016-09-21T01:08:51"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/460bdf3590df980e07baa9dc3ad9360387deb771.json b/tests/api_tests/tests/api_tests/cassettes/460bdf3590df980e07baa9dc3ad9360387deb771.json new file mode 100644 index 00000000..34615c88 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/460bdf3590df980e07baa9dc3ad9360387deb771.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=WUMy9KRlID4TurmOFFLwAhnALfD1pcO4; sessionid=9nb3h0l94o1ha991e1gbp9igl9chv25i"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/10/networks/reserved/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.3.0\",\"attributes\":{},\"site_id\":10,\"id\":39}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:08:51 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/10/networks/reserved/"}, "recorded_at": "2016-09-21T01:08:51"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/467b46da621eb397704225646943bca8f7ebaf67.json b/tests/api_tests/tests/api_tests/cassettes/467b46da621eb397704225646943bca8f7ebaf67.json new file mode 100644 index 00000000..06a8c61c --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/467b46da621eb397704225646943bca8f7ebaf67.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UlL7J2p50Jr77KZp5iAn5OYmIHpUgYTa; sessionid=ncly2disbvl79qmk7jnlfllazf9oeqm3"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/6/itervalues/19/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/6/itervalues/19/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json b/tests/api_tests/tests/api_tests/cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json new file mode 100644 index 00000000..8b27f752 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=FBn2TezSJYjue2DD8NCWliyVU6nT8tK2; sessionid=15hnh0mr2peltqvvkqtubvtzu0nar270"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/6/iterable/8/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/6/iterable/8/"}, "recorded_at": "2016-10-06T12:41:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/4693311dc341610e073890dc8ff28a65fd35d815.json b/tests/api_tests/tests/api_tests/cassettes/4693311dc341610e073890dc8ff28a65fd35d815.json new file mode 100644 index 00000000..8936cc96 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/4693311dc341610e073890dc8ff28a65fd35d815.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 6}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=XjwUIiPPmFZjlfEieDo2F46uRxZ7rwSO; sessionid=avv2q45rkjpgt7ujizz0hrt69ku2spzn"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":6,\"id\":12,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/itervalues/12/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/itervalues/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/49b087b5dcdebe88bdec9374a659582ecef4cf0e.json b/tests/api_tests/tests/api_tests/cassettes/49b087b5dcdebe88bdec9374a659582ecef4cf0e.json new file mode 100644 index 00000000..b71b1b80 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/49b087b5dcdebe88bdec9374a659582ecef4cf0e.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=TJgS61dEbp0dCpCSeweCmnSbDdIBO9JK; sessionid=j8zi4c4ruijvrnmkqqodvvxml2m18yip"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/itervalue/1/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 19:19:09 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/itervalue/1/"}, "recorded_at": "2016-10-04T19:19:09"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/4bc8b61bdb25c7dca7049a8f66fa3ed1f6c06033.json b/tests/api_tests/tests/api_tests/cassettes/4bc8b61bdb25c7dca7049a8f66fa3ed1f6c06033.json new file mode 100644 index 00000000..8d273d80 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/4bc8b61bdb25c7dca7049a8f66fa3ed1f6c06033.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/32/descendents/"}, "response": {"body": {"string": "[]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/32/descendents/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/52aa273d56a0d95e1a8e65f1b96a8ea09673ed4e.json b/tests/api_tests/tests/api_tests/cassettes/52aa273d56a0d95e1a8e65f1b96a8ea09673ed4e.json new file mode 100644 index 00000000..2d877534 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/52aa273d56a0d95e1a8e65f1b96a8ea09673ed4e.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=VuMVy029S4A19H2gB204lnf0qwqM5zTy; sessionid=90dcjhooh9cwc8xk6qufzvqfd3d3s0sl"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":1,\"id\":1}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:05:59 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/networks/"}, "recorded_at": "2016-09-21T01:05:59"}, {"request": {"body": {"string": "{\"network_address\": \"10.8.0.0\", \"prefix_length\": 16}", "encoding": "utf-8"}, "headers": {"Content-Length": ["52"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=VuMVy029S4A19H2gB204lnf0qwqM5zTy; sessionid=90dcjhooh9cwc8xk6qufzvqfd3d3s0sl"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.8.0.0\",\"attributes\":{},\"site_id\":1,\"id\":3}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/networks/3/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:05:59 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/networks/"}, "recorded_at": "2016-09-21T01:05:59"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/5863e2415076faee1762b5a9bd036ffdf687ec9e.json b/tests/api_tests/tests/api_tests/cassettes/5863e2415076faee1762b5a9bd036ffdf687ec9e.json new file mode 100644 index 00000000..70b0d28b --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/5863e2415076faee1762b5a9bd036ffdf687ec9e.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/29/descendents/"}, "response": {"body": {"string": "[{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/29/descendents/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json b/tests/api_tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json index 7a88933a..73e164f6 100644 --- a/tests/api_tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json +++ b/tests/api_tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":3,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=fvGoS8xXPMC3ZPVmAw7URgFucdVZiSks; expires=Tue, 19-Sep-2017 16:28:50 GMT; Max-Age=31449600; Path=/", "sessionid=c0mvyb8nf0o2z1hrxb6oa9jlpu0h806u; expires=Tue, 04-Oct-2016 16:28:50 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/iterable/3/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/iterable/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":4,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=Hgn6y7kBK9c0uMVXE40cKgx4puZ5gxwS; expires=Thu, 05-Oct-2017 13:27:44 GMT; Max-Age=31449600; Path=/", "sessionid=sgqmo7jmoo53y70zff5wcd5ohir0pyq7; expires=Thu, 20-Oct-2016 13:27:44 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/iterable/4/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/iterable/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/5c61e78c8eb4ea24b812b2757d34f0425f62c4ce.json b/tests/api_tests/tests/api_tests/cassettes/5c61e78c8eb4ea24b812b2757d34f0425f62c4ce.json new file mode 100644 index 00000000..e4ef238c --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/5c61e78c8eb4ea24b812b2757d34f0425f62c4ce.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=OHOOoWTovPwZJv7kRtf5S2XFvpcZfnpf; sessionid=haw2ev08es5n35uatgh8sl6jkvwxs03h"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":4,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/attributes/4/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/attributes/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/5f330cd3c7a6a655286e1ff2e4f18cb6b961d558.json b/tests/api_tests/tests/api_tests/cassettes/5f330cd3c7a6a655286e1ff2e4f18cb6b961d558.json new file mode 100644 index 00000000..f3344a13 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/5f330cd3c7a6a655286e1ff2e4f18cb6b961d558.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=dFDn2eTCyL6dOFW8yajm18Axrb2lvCzP; sessionid=qvpsz14igjfnj9l50jvi35eyq7hqfa8m"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/itr1/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/itr1/"}, "recorded_at": "2016-10-06T12:41:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/654f6226f909731ce2a16f95ad58333e5d46b358.json b/tests/api_tests/tests/api_tests/cassettes/654f6226f909731ce2a16f95ad58333e5d46b358.json new file mode 100644 index 00000000..5847e4a9 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/654f6226f909731ce2a16f95ad58333e5d46b358.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.0/25/ancestors/?ascending=True"}, "response": {"body": {"string": "[{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29},{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.0/25/ancestors/?ascending=True"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/65ad1126d5af748c76fa8186a04e9db94caa4266.json b/tests/api_tests/tests/api_tests/cassettes/65ad1126d5af748c76fa8186a04e9db94caa4266.json new file mode 100644 index 00000000..62e23ad1 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/65ad1126d5af748c76fa8186a04e9db94caa4266.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/27/descendents/"}, "response": {"body": {"string": "[{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28},{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29},{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/27/descendents/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/65e0942f1ad3a714b8e9b5136374de2c77708332.json b/tests/api_tests/tests/api_tests/cassettes/65e0942f1ad3a714b8e9b5136374de2c77708332.json new file mode 100644 index 00000000..b10b8b28 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/65e0942f1ad3a714b8e9b5136374de2c77708332.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 200, \"min_val\": 100, \"name\": \"itr2\", \"increment\": 1, \"description\": \"test-iterable2\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["97"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UlL7J2p50Jr77KZp5iAn5OYmIHpUgYTa; sessionid=ncly2disbvl79qmk7jnlfllazf9oeqm3"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable2\",\"min_val\":100,\"max_val\":200,\"increment\":1,\"id\":8,\"name\":\"itr2\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/iterable/8/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/iterable/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/66279b39bd62a3954a7525a47266dc24230c10f7.json b/tests/api_tests/tests/api_tests/cassettes/66279b39bd62a3954a7525a47266dc24230c10f7.json new file mode 100644 index 00000000..de4e5b1b --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/66279b39bd62a3954a7525a47266dc24230c10f7.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.2/32/descendents/"}, "response": {"body": {"string": "[]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.2/32/descendents/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/66e3b4cc645e047a48dd09a18ae80bea4f32d15b.json b/tests/api_tests/tests/api_tests/cassettes/66e3b4cc645e047a48dd09a18ae80bea4f32d15b.json new file mode 100644 index 00000000..18f81a7c --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/66e3b4cc645e047a48dd09a18ae80bea4f32d15b.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"UPDATED\"}}", "encoding": "utf-8"}, "headers": {"Content-Length": ["42"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=A3FKpUax8zE3bHg19bCaRidkqg6l60hn; sessionid=v2e3vwnj0nob5r7i1kk6yj132tbuxty6"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/4/itervalue/11/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"UPDATED\"},\"iterable\":5,\"id\":11,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:35:48 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/itervalue/11/"}, "recorded_at": "2016-10-05T14:35:48"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/67a69da5f6e63f009f084ad75653f7e9e9da6fae.json b/tests/api_tests/tests/api_tests/cassettes/67a69da5f6e63f009f084ad75653f7e9e9da6fae.json new file mode 100644 index 00000000..115426b0 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/67a69da5f6e63f009f084ad75653f7e9e9da6fae.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/30/children/"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/30/children/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/6811d21d4bfdf0a306e2aa7d0d6c892825fd907b.json b/tests/api_tests/tests/api_tests/cassettes/6811d21d4bfdf0a306e2aa7d0d6c892825fd907b.json new file mode 100644 index 00000000..61e694ad --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/6811d21d4bfdf0a306e2aa7d0d6c892825fd907b.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Hgn6y7kBK9c0uMVXE40cKgx4puZ5gxwS; sessionid=sgqmo7jmoo53y70zff5wcd5ohir0pyq7"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":3,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/attributes/3/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/attributes/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/683afd1f2714721d518b5a7bd1baee83385a73e8.json b/tests/api_tests/tests/api_tests/cassettes/683afd1f2714721d518b5a7bd1baee83385a73e8.json new file mode 100644 index 00000000..f7980196 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/683afd1f2714721d518b5a7bd1baee83385a73e8.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/31/root/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/31/root/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/68a03035213ebcbf62913a52379d1cce83323b1e.json b/tests/api_tests/tests/api_tests/cassettes/68a03035213ebcbf62913a52379d1cce83323b1e.json new file mode 100644 index 00000000..e33cdc23 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/68a03035213ebcbf62913a52379d1cce83323b1e.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{}", "encoding": "utf-8"}, "headers": {"Content-Length": ["2"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["user@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/5/networks/22/"}, "response": {"body": {"string": "{\"error\":{\"message\":\"You do not have permission to perform this action.\",\"code\":403}}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=4J78HLV7Xe5c1YYt7nM4L7ksRciRNnJD; expires=Wed, 20-Sep-2017 01:06:01 GMT; Max-Age=31449600; Path=/", "sessionid=9v9izmw36k0hr9bwm8gf8p1wp2sav1z6; expires=Wed, 05-Oct-2016 01:06:01 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "FORBIDDEN", "code": 403}, "url": "http://localhost:8081/api/sites/5/networks/22/"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/6c9100f15e145f9702cdccaaa2f57bee320e2862.json b/tests/api_tests/tests/api_tests/cassettes/6c9100f15e145f9702cdccaaa2f57bee320e2862.json new file mode 100644 index 00000000..17107529 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/6c9100f15e145f9702cdccaaa2f57bee320e2862.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/root/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/root/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/6d3e004374a49df1de91cdfd9e06a71bc33bc3c4.json b/tests/api_tests/tests/api_tests/cassettes/6d3e004374a49df1de91cdfd9e06a71bc33bc3c4.json new file mode 100644 index 00000000..2ccb8fc0 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/6d3e004374a49df1de91cdfd9e06a71bc33bc3c4.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "[{\"cidr\": \"1.1.1.0/24\"}, {\"cidr\": \"2.2.2.0/24\"}, {\"cidr\": \"3.3.3.0/24\"}]", "encoding": "utf-8"}, "headers": {"Content-Length": ["72"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"1.1.1.0\",\"attributes\":{},\"site_id\":2,\"id\":4},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"2.2.2.0\",\"attributes\":{},\"site_id\":2,\"id\":5},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"3.3.3.0\",\"attributes\":{},\"site_id\":2,\"id\":6}]", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=mJkuO2lRmsH3D75Np9LC68G7OPWJKqpg; expires=Wed, 20-Sep-2017 01:05:59 GMT; Max-Age=31449600; Path=/", "sessionid=fg4g5f9pz0ymc7ncf0hx9ijs949oeiin; expires=Wed, 05-Oct-2016 01:05:59 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:05:59 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/networks/"}, "recorded_at": "2016-09-21T01:05:59"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=mJkuO2lRmsH3D75Np9LC68G7OPWJKqpg; sessionid=fg4g5f9pz0ymc7ncf0hx9ijs949oeiin"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"1.1.1.0\",\"attributes\":{},\"site_id\":2,\"id\":4},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"2.2.2.0\",\"attributes\":{},\"site_id\":2,\"id\":5},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"3.3.3.0\",\"attributes\":{},\"site_id\":2,\"id\":6}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:05:59 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/networks/"}, "recorded_at": "2016-09-21T01:05:59"}, {"request": {"body": {"string": "[{\"is_ip\": false, \"network_address\": \"1.1.1.0\", \"site_id\": 2, \"parent_id\": null, \"state\": \"allocated\", \"prefix_length\": 24, \"ip_version\": \"4\", \"attributes\": {\"vlan\": \"300\"}, \"id\": 4}, {\"is_ip\": false, \"network_address\": \"2.2.2.0\", \"site_id\": 2, \"parent_id\": null, \"state\": \"allocated\", \"prefix_length\": 24, \"ip_version\": \"4\", \"attributes\": {\"vlan\": \"300\"}, \"id\": 5}, {\"is_ip\": false, \"network_address\": \"3.3.3.0\", \"site_id\": 2, \"parent_id\": null, \"state\": \"allocated\", \"prefix_length\": 24, \"ip_version\": \"4\", \"attributes\": {\"vlan\": \"300\"}, \"id\": 6}]", "encoding": "utf-8"}, "headers": {"Content-Length": ["549"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=mJkuO2lRmsH3D75Np9LC68G7OPWJKqpg; sessionid=fg4g5f9pz0ymc7ncf0hx9ijs949oeiin"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/2/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"1.1.1.0\",\"attributes\":{\"vlan\":\"300\"},\"site_id\":2,\"id\":4},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"2.2.2.0\",\"attributes\":{\"vlan\":\"300\"},\"site_id\":2,\"id\":5},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"3.3.3.0\",\"attributes\":{\"vlan\":\"300\"},\"site_id\":2,\"id\":6}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:05:59 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/networks/"}, "recorded_at": "2016-09-21T01:05:59"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/6d949a66414ea0a3db44b8afe10e91106575a075.json b/tests/api_tests/tests/api_tests/cassettes/6d949a66414ea0a3db44b8afe10e91106575a075.json new file mode 100644 index 00000000..bdc86713 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/6d949a66414ea0a3db44b8afe10e91106575a075.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"attr1\": \"foo\"}, \"hostname\": \"bar\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["51"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=bdnoRZDYi6P4Hzdd6iaD8y96dzTDTJtU; sessionid=df1cs5ru1itob37m9myu465h69z2an9t"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/5/devices/13/"}, "response": {"body": {"string": "{\"attributes\":{\"attr1\":\"foo\"},\"hostname\":\"bar\",\"site_id\":5,\"id\":13}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/5/devices/13/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/6f07d375ab4808960a60920ff3c6c258bbd47463.json b/tests/api_tests/tests/api_tests/cassettes/6f07d375ab4808960a60920ff3c6c258bbd47463.json new file mode 100644 index 00000000..e0f569c7 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/6f07d375ab4808960a60920ff3c6c258bbd47463.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=BJ0e5rQ2IVpivqYQkqGqys32qSpVRNdC; sessionid=evkwzr9y3noylyc5rmmjdudzoena2o0e"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/itervalues/1/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":1,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:43 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/itervalues/1/"}, "recorded_at": "2016-10-06T13:27:43"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/6f95e416f64ed29422d3718056c7909240dec283.json b/tests/api_tests/tests/api_tests/cassettes/6f95e416f64ed29422d3718056c7909240dec283.json new file mode 100644 index 00000000..fa7594d3 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/6f95e416f64ed29422d3718056c7909240dec283.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 1}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=BJ0e5rQ2IVpivqYQkqGqys32qSpVRNdC; sessionid=evkwzr9y3noylyc5rmmjdudzoena2o0e"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":1,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/itervalues/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:43 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/itervalues/"}, "recorded_at": "2016-10-06T13:27:43"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/72143f794779e7b3d20c5caae77398edd54148f0.json b/tests/api_tests/tests/api_tests/cassettes/72143f794779e7b3d20c5caae77398edd54148f0.json new file mode 100644 index 00000000..6e8653a5 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/72143f794779e7b3d20c5caae77398edd54148f0.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"cidr\": \"10.0.0.0/8\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["22"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=WXJgGnEJSR9o5vSopq7w00BssjHtGHaa; sessionid=2wn8p8mf8y6vsjb2ulevpodocycj52y9"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":7,\"id\":26}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/networks/26/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/networks/"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/743c558b7946fde225ef98eba440b352cf8069f6.json b/tests/api_tests/tests/api_tests/cassettes/743c558b7946fde225ef98eba440b352cf8069f6.json new file mode 100644 index 00000000..c96c5438 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/743c558b7946fde225ef98eba440b352cf8069f6.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=q8GGhuE1Dueo7kgW7Ul4VnDZZp8B5Kjk; sessionid=ugt61lak8mm8mwbgwy0nnokxa3x96h45"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/"}, "response": {"body": {"string": "{\"parent_id\":40,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.250.0.0\",\"attributes\":{},\"site_id\":11,\"id\":41}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:08:51 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/"}, "recorded_at": "2016-09-21T01:08:51"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=q8GGhuE1Dueo7kgW7Ul4VnDZZp8B5Kjk; sessionid=ugt61lak8mm8mwbgwy0nnokxa3x96h45"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/?prefix_length=27"}, "response": {"body": {"string": "{\"error\":{\"message\":\"No such Network found at (site_id, id) = (11, 10.250.0.185/32)\",\"code\":404}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:08:51 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "NOT FOUND", "code": 404}, "url": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/?prefix_length=27"}, "recorded_at": "2016-09-21T01:08:51"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=q8GGhuE1Dueo7kgW7Ul4VnDZZp8B5Kjk; sessionid=ugt61lak8mm8mwbgwy0nnokxa3x96h45"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/?prefix_length=shoe"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"prefix_length\":\"Invalid prefix_length: u'shoe'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:08:51 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/?prefix_length=shoe"}, "recorded_at": "2016-09-21T01:08:51"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/78247dfdf33edca136ad0eb5fe63c7593d3776c1.json b/tests/api_tests/tests/api_tests/cassettes/78247dfdf33edca136ad0eb5fe63c7593d3776c1.json new file mode 100644 index 00000000..7c29b183 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/78247dfdf33edca136ad0eb5fe63c7593d3776c1.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=VuMVy029S4A19H2gB204lnf0qwqM5zTy; sessionid=90dcjhooh9cwc8xk6qufzvqfd3d3s0sl"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/networks/1/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":1,\"id\":1}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:05:59 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/networks/1/"}, "recorded_at": "2016-09-21T01:05:59"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/7936639e6727e1a0e1c2e2e3a2e36a4b4e20248e.json b/tests/api_tests/tests/api_tests/cassettes/7936639e6727e1a0e1c2e2e3a2e36a4b4e20248e.json new file mode 100644 index 00000000..faa81b54 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/7936639e6727e1a0e1c2e2e3a2e36a4b4e20248e.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"iterable\": 4, \"id\": 2, \"value\": 10}", "encoding": "utf-8"}, "headers": {"Content-Length": ["84"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=kOIZG327CxR9qxeedmfb81EI8vxmHWh8; sessionid=e08q4gyn4vjg4bzw5dzbhraki38nrm9t"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/3/itervalues/2/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":4,\"id\":2,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:40:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/itervalues/2/"}, "recorded_at": "2016-10-05T14:40:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/7998ced5800ae3ab7db96f6c05c3934a374bc978.json b/tests/api_tests/tests/api_tests/cassettes/7998ced5800ae3ab7db96f6c05c3934a374bc978.json new file mode 100644 index 00000000..60a81b9e --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/7998ced5800ae3ab7db96f6c05c3934a374bc978.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=WXJgGnEJSR9o5vSopq7w00BssjHtGHaa; sessionid=2wn8p8mf8y6vsjb2ulevpodocycj52y9"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/networks/10.0.0.0/8/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/networks/10.0.0.0/8/"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/79ddc786c623617dca051d63750642214ad39267.json b/tests/api_tests/tests/api_tests/cassettes/79ddc786c623617dca051d63750642214ad39267.json new file mode 100644 index 00000000..83c99474 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/79ddc786c623617dca051d63750642214ad39267.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"attr1\": \"foo\"}, \"hostname\": \"device1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["55"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=CPtIqWHyePHbcGfhZqk9IKyyYhSlML8t; sessionid=ggk4wjqiab7selwzdznchxcz2jgiiioo"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/devices/"}, "response": {"body": {"string": "{\"attributes\":{\"attr1\":\"foo\"},\"hostname\":\"device1\",\"site_id\":7,\"id\":15}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/devices/15/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/devices/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/7d2efdd348236797e02a79096908ba2b10eb0169.json b/tests/api_tests/tests/api_tests/cassettes/7d2efdd348236797e02a79096908ba2b10eb0169.json new file mode 100644 index 00000000..39d60049 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/7d2efdd348236797e02a79096908ba2b10eb0169.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/27/root/"}, "response": {"body": {"string": "{\"error\":{\"message\":\"No such Network found at (site_id, id) = (8, None)\",\"code\":404}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "NOT FOUND", "code": 404}, "url": "http://localhost:8081/api/sites/8/networks/27/root/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json b/tests/api_tests/tests/api_tests/cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json index a8e31843..c30447f4 100644 --- a/tests/api_tests/tests/api_tests/cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json +++ b/tests/api_tests/tests/api_tests/cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"unique_id\": \"uuid_custA_site1\", \"value\": 10, \"iterable\": 2}", "encoding": "utf-8"}, "headers": {"Content-Length": ["61"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=MxGXqptZpS7mCD00eSjBkttffvP0Je2z; sessionid=thp9dtuxt11wx9agijh5aoy3qi5dqjod"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/itervalue/"}, "response": {"body": {"string": "{\"unique_id\":\"uuid_custA_site1\",\"iterable\":2,\"id\":2,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/itervalue/2/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/itervalue/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=NAJj7pbdLNRLFLTxDzv601VWE5EDg1Xf; sessionid=s8rsm15whvimr0096a7wqw848fd64b0d"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/itervalue/?attributes=service_key%3DcustB01_key1"}, "response": {"body": {"string": "[]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:56:36 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/itervalue/?attributes=service_key%3DcustB01_key1"}, "recorded_at": "2016-10-04T20:56:36"}, {"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custb01_key2\"}, \"value\": 103, \"iterable\": 3}", "encoding": "utf-8"}, "headers": {"Content-Length": ["76"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pkphlCLxxRu65ZdYnkmqiT4ojUTOCkAs; sessionid=lhdmda52admpbpisdjrf0nml8687dngj"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/itervalue/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":3,\"id\":9,\"value\":103}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/itervalue/9/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:35:48 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/itervalue/"}, "recorded_at": "2016-10-05T14:35:48"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pkphlCLxxRu65ZdYnkmqiT4ojUTOCkAs; sessionid=lhdmda52admpbpisdjrf0nml8687dngj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/itervalue/?attributes=service_key%3Dcustb01_key1"}, "response": {"body": {"string": "[{\"attributes\":{\"service_key\":\"custb01_key1\"},\"iterable\":2,\"id\":4,\"value\":12},{\"attributes\":{\"service_key\":\"custb01_key1\"},\"iterable\":3,\"id\":8,\"value\":102}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:35:48 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/itervalue/?attributes=service_key%3Dcustb01_key1"}, "recorded_at": "2016-10-05T14:35:48"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/7f592ec5adcc705efd02698886f997e750efdfd6.json b/tests/api_tests/tests/api_tests/cassettes/7f592ec5adcc705efd02698886f997e750efdfd6.json new file mode 100644 index 00000000..3f1b36ca --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/7f592ec5adcc705efd02698886f997e750efdfd6.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"UPDATED\"}}", "encoding": "utf-8"}, "headers": {"Content-Length": ["42"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=OHOOoWTovPwZJv7kRtf5S2XFvpcZfnpf; sessionid=haw2ev08es5n35uatgh8sl6jkvwxs03h"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/4/itervalues/11/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"UPDATED\"},\"iterable\":5,\"id\":11,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/itervalues/11/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/7fc833c187bcb72feab094f6745102406d7501e2.json b/tests/api_tests/tests/api_tests/cassettes/7fc833c187bcb72feab094f6745102406d7501e2.json new file mode 100644 index 00000000..9dd337c3 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/7fc833c187bcb72feab094f6745102406d7501e2.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"attr1\": \"foo\"}, \"hostname\": \"device1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["55"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=bdnoRZDYi6P4Hzdd6iaD8y96dzTDTJtU; sessionid=df1cs5ru1itob37m9myu465h69z2an9t"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/devices/"}, "response": {"body": {"string": "{\"attributes\":{\"attr1\":\"foo\"},\"hostname\":\"device1\",\"site_id\":5,\"id\":13}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/devices/13/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/devices/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/80d95360c7eea97a7c354ee6ca3c1a8851b53cd9.json b/tests/api_tests/tests/api_tests/cassettes/80d95360c7eea97a7c354ee6ca3c1a8851b53cd9.json new file mode 100644 index 00000000..0b2442b1 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/80d95360c7eea97a7c354ee6ca3c1a8851b53cd9.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":3,\"id\":7},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":3,\"id\":8},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":3,\"id\":9},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":3,\"id\":10},{\"parent_id\":13,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":3,\"id\":11},{\"parent_id\":7,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":12},{\"parent_id\":12,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":13}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:05:59 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/"}, "recorded_at": "2016-09-21T01:05:59"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?cidr=10.0.0.0%2F8"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":3,\"id\":8}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?cidr=10.0.0.0%2F8"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?attributes=foo%3Dbaz"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":3,\"id\":7},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":3,\"id\":9}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?attributes=foo%3Dbaz"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?attributes=foo%3Dbaz&attributes=cluster%3Dlax"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":3,\"id\":9}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?attributes=foo%3Dbaz&attributes=cluster%3Dlax"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?network_address=169.254.0.0"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":3,\"id\":10}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?network_address=169.254.0.0"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?prefix_length=16"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":3,\"id\":7},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":3,\"id\":10}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?prefix_length=16"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?network_address=10.0.0.0&prefix_length=8"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":3,\"id\":8}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?network_address=10.0.0.0&prefix_length=8"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?include_ips=True&include_networks=False"}, "response": {"body": {"string": "[{\"parent_id\":13,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":3,\"id\":11}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?include_ips=True&include_networks=False"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?include_ips=False&include_networks=True"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":3,\"id\":7},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":3,\"id\":8},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":3,\"id\":9},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":3,\"id\":10},{\"parent_id\":7,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":12},{\"parent_id\":12,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":13}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?include_ips=False&include_networks=True"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?include_ips=True&include_networks=True"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":3,\"id\":7},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":3,\"id\":8},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":3,\"id\":9},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":3,\"id\":10},{\"parent_id\":13,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":3,\"id\":11},{\"parent_id\":7,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":12},{\"parent_id\":12,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":13}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?include_ips=True&include_networks=True"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?include_ips=False&include_networks=False"}, "response": {"body": {"string": "[]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?include_ips=False&include_networks=False"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "{\"cidr\": \"2401:d:d0e::/64\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["27"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":64,\"is_ip\":false,\"ip_version\":\"6\",\"network_address\":\"2401:d:d0e::\",\"attributes\":{},\"site_id\":3,\"id\":14}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/networks/14/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/networks/"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?ip_version=6"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":64,\"is_ip\":false,\"ip_version\":\"6\",\"network_address\":\"2401:d:d0e::\",\"attributes\":{},\"site_id\":3,\"id\":14}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?ip_version=6"}, "recorded_at": "2016-09-21T01:06:00"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/82beec6373c55da4a3001fbcac6b72729f72dbc0.json b/tests/api_tests/tests/api_tests/cassettes/82beec6373c55da4a3001fbcac6b72729f72dbc0.json new file mode 100644 index 00000000..b68dd83b --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/82beec6373c55da4a3001fbcac6b72729f72dbc0.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=WXJgGnEJSR9o5vSopq7w00BssjHtGHaa; sessionid=2wn8p8mf8y6vsjb2ulevpodocycj52y9"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/networks/24/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/networks/24/"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json b/tests/api_tests/tests/api_tests/cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json new file mode 100644 index 00000000..606549a6 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=m2JaBP0BrhgtPDXBW0wRlpozGpEIiyli; sessionid=1s928o7lvfqwg9z74ah4ogz9k8f4ib51"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/iterable/9/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/iterable/9/"}, "recorded_at": "2016-10-06T12:41:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/84bb1c96e309feb49d8d2fa0d266b8369a0ec428.json b/tests/api_tests/tests/api_tests/cassettes/84bb1c96e309feb49d8d2fa0d266b8369a0ec428.json new file mode 100644 index 00000000..19ff2511 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/84bb1c96e309feb49d8d2fa0d266b8369a0ec428.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.0/25/children/"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.0/25/children/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/865d72e9eec58ace6e960c148dad4032e5cbe74c.json b/tests/api_tests/tests/api_tests/cassettes/865d72e9eec58ace6e960c148dad4032e5cbe74c.json new file mode 100644 index 00000000..6db42929 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/865d72e9eec58ace6e960c148dad4032e5cbe74c.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UlL7J2p50Jr77KZp5iAn5OYmIHpUgYTa; sessionid=ncly2disbvl79qmk7jnlfllazf9oeqm3"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/iterable/7/next_value/"}, "response": {"body": {"string": "[13]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/iterable/7/next_value/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/865ec27a703ec684e7330d283c5cf789add90eeb.json b/tests/api_tests/tests/api_tests/cassettes/865ec27a703ec684e7330d283c5cf789add90eeb.json new file mode 100644 index 00000000..6add76c0 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/865ec27a703ec684e7330d283c5cf789add90eeb.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"attr1\": \"foo\"}, \"cidr\": \"10.0.0.0/24\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["55"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=j48jakWNXNSZz6OoIsHT1Fg3gn0NtQyE; sessionid=66tkqx5vrs78lqteshyq3cu4f14wi0pf"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":6,\"id\":23}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/networks/23/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/networks/"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/86cf2cdf69f64c8608b1f8f8534bb48e0849469b.json b/tests/api_tests/tests/api_tests/cassettes/86cf2cdf69f64c8608b1f8f8534bb48e0849469b.json new file mode 100644 index 00000000..c4256117 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/86cf2cdf69f64c8608b1f8f8534bb48e0849469b.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"UPDATED\"}}", "encoding": "utf-8"}, "headers": {"Content-Length": ["42"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=MlYVqOHjGzJmQ3upYCmNLxWLjktdd9mU; sessionid=i2seglxpsln3rcombwwt3z5ve7ne1d26"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/4/itervalues/3/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"UPDATED\"},\"iterable\":5,\"id\":3,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:40:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/itervalues/3/"}, "recorded_at": "2016-10-05T14:40:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json b/tests/api_tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json index 32b8dac7..9c20f959 100644 --- a/tests/api_tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json +++ b/tests/api_tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=7XqV57gEz6oK4E4sfoqaRDScJVKhXUA8; sessionid=vx85yhad6wgrof6unhlpli0f2hbrhglz"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/1/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/1/next_value/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=BJ0e5rQ2IVpivqYQkqGqys32qSpVRNdC; sessionid=evkwzr9y3noylyc5rmmjdudzoena2o0e"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/1/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:43 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/1/next_value/"}, "recorded_at": "2016-10-06T13:27:43"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/8fa8542c24682f1630f1068f09423a1504d0d054.json b/tests/api_tests/tests/api_tests/cassettes/8fa8542c24682f1630f1068f09423a1504d0d054.json new file mode 100644 index 00000000..564a9f48 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/8fa8542c24682f1630f1068f09423a1504d0d054.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"iterable\": 4, \"id\": 10, \"value\": 10}", "encoding": "utf-8"}, "headers": {"Content-Length": ["85"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Hgn6y7kBK9c0uMVXE40cKgx4puZ5gxwS; sessionid=sgqmo7jmoo53y70zff5wcd5ohir0pyq7"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/3/itervalues/10/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":4,\"id\":10,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/itervalues/10/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/9071d0ebe6b2a5539393680f86a221d40c324b1a.json b/tests/api_tests/tests/api_tests/cassettes/9071d0ebe6b2a5539393680f86a221d40c324b1a.json new file mode 100644 index 00000000..481e031e --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/9071d0ebe6b2a5539393680f86a221d40c324b1a.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {}}", "encoding": "utf-8"}, "headers": {"Content-Length": ["18"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=CPtIqWHyePHbcGfhZqk9IKyyYhSlML8t; sessionid=ggk4wjqiab7selwzdznchxcz2jgiiioo"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/7/devices/15/"}, "response": {"body": {"string": "{\"attributes\":{},\"hostname\":\"device1\",\"site_id\":7,\"id\":15}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/7/devices/15/"}, "recorded_at": "2016-10-04T20:39:06"}, {"request": {"body": {"string": "{\"attributes\": {}}", "encoding": "utf-8"}, "headers": {"Content-Length": ["18"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=CPtIqWHyePHbcGfhZqk9IKyyYhSlML8t; sessionid=ggk4wjqiab7selwzdznchxcz2jgiiioo"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/7/devices/15/"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"hostname\":[\"This field is required.\"]},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/7/devices/15/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/90de2c24b7b96754be5274456846c679c7218f66.json b/tests/api_tests/tests/api_tests/cassettes/90de2c24b7b96754be5274456846c679c7218f66.json new file mode 100644 index 00000000..c0349d3f --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/90de2c24b7b96754be5274456846c679c7218f66.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.0.0/14/descendents/"}, "response": {"body": {"string": "[{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.0.0/14/descendents/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json b/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json index 41611283..fd6742c5 100644 --- a/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json +++ b/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=qQ62n3SrvDPWsjt1Nn3SrVSMQ1fr62n3ZvrV5Hvzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18yZLbyLbY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vyyOR2v2pzeFf8jT/7fFPPF4YyZebkNvQIoc31vir/nSY7BLRv+2GPuW5YA3BVON4sLbDzlEDl5E6og/a8BUEyd+k/f9kv/OCV3D1a9TuwH9XnKPspq3xVPQvZIkvqT5NIC/LaJsBLw5k0TosAe9/9MbnIMhfCCEKC88IoCXMJwCOwLd+NkFzZ+Kqq3u3/z1bMLYat8TF5xqHIdvCqeEq/D23RkGeemnIOe7L1eQk28/s3hpBGHoh6j1ImR7t2yO3xH4bwxMkGYlKNPOQXqn214XUeT/kPFGvgOKjm+9eQT0gaAo4hSTVOcM/8uFYpTkqf0DTeINZugWMzRPbT/dF/xt4RFNAkfl+DTiw03zVyR7u0AvAj9ZgZxjtEtE6clffw+VpznYM1Re3X7+8pt09zcaLtr5EvnNfx2FwfieRU1XmUP0ibveXKSLZf4A/PG+hDrwFIqnDOrK+FUsN6jv7ukP+QR+OZlVMT9sLp4uk0LX+tKWMfIHFj48WOQzQw3N+f7R+dyKGortbwo5PPKXYVx496Dxby8LDKOJHvqOg5Pi+/Ou6rwoX2Bx0bb6NyBBe/WXcaD49zwK8w3x0y2ex9N9pCl4zk/j9HPCzocYvp7gzXDxBFmMAgc5u8IHNAJl34qKsF/H6JjokwFoQnoR7VwdVQdvqH9HkNQ7ooAGX5vui/+Im+4/gH2AdrcohyBIwgMZUUP51BvspWdTeRKHaFKIKZIofAjUeHNPFa5rSOQZcB6+QuD4qvHYYV85IjBV1Th8OUmsx9jyrqn826IDPCvePLiRJ934TyY8HZK3PcyscM2rC++wyPPbDUgzkRd6U8jTqMJbsvAvBfLcyXytk/1aJ/e1Tv5p59urI/meOd1uCk7zuilZeYnUL1/6IOr0twk+Uqc/vfP/Af8Zv1eLRwAA", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=pe7inl3s8j8cj2g55nr2o0r0n5; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC0A6E3C9FCE34C046AB92421DA69EC3725534C42CB695BD59EB2C313B2EEA08C45A0C008CE5DCC69AB74FACDE96E159D6D;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7206"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 13 Sep 2016 18:26:53 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.88.38"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=qQ62n3SrvDPWsjt1Nn3SrVSMQ1fr62n3ZvrV5Hvzsq"}, "recorded_at": "2016-09-13T18:33:48"}, {"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8100/api/sites/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Location": ["https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"], "Server": ["Zscaler/5.2"]}, "status": {"message": "Moved Temporarily", "code": 302}, "url": "http://localhost:8100/api/sites/"}, "recorded_at": "2016-09-13T20:11:22"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18yZLb2LLYXl+B5rutkB5UBRIECVBS6T0ABEBwJgiSIG9cd2A4GEjMI8n7eu2N1/bG4Z3DEQ574Z33z5/iuOHP8AE4FKtUUrfU/e6qFaUCeIbMPDmdPMw89fGH7oSV11MOsVPP/fTqY/lAXNW3HmrAr5UNQDU+vUKQjx5IVUS31TgB6UMtS807qvbYYadpeAeizMkfasrdgr5jAy9UU0dzQQ3RAz8FPpwlcg/AsMDNPF/1wEMtd0ARBnF6M7RwjNR+MEDu6OCu+vAOcXwndVT3LtFVFzw0voCePYG4kw/hLe4U7FOsXN6H6ypuFuE6/g6xY2A+1EpYyXsMS1JIv35vAd2JUz9IHdPRYUvg3+uBh+lqmEI4mOOpFkgwNQxdcJcGmW7fORDnHYmH+/vQt2pIDNyH2mf9YQwgmDB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Aaq8dRjXylCSqyqcfh8kaUel6Z3jebf3rvAt1L70Y886y7/isfzKVXb48pq18i69q5keXX3BmomdENvalUgVXuL1v6lhp478a91Nr/WSXyts/W88+3Vk3zPmm6PBad13VStfAnVz587Iez05zI+Yqe/BvX/ATWxbjYeSgAA", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=l1qnrihe0g495t4dcu11nhn307; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC01D715DE960D1D66DA142353243330039923BB02E6BE2642E4FA388AA71F7B5B57D81953815B40BF9B076C8E8A3D5133C;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7716"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 13 Sep 2016 20:26:09 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.89.214"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"}, "recorded_at": "2016-09-13T20:11:22"}, {"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/"}, "response": {"body": {"string": "{\"id\":4,\"name\":\"Test Site\",\"description\":\"\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=UDv8Rt0rA4nCgiFjPbkCndKU1QyqMZfd; expires=Tue, 19-Sep-2017 16:28:50 GMT; Max-Age=31449600; Path=/", "sessionid=6aqhd6yk9csw9ksqz9svaet384k87qjo; expires=Tue, 04-Oct-2016 16:28:50 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/"], "Allow": ["GET, POST, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=qQ62n3SrvDPWsjt1Nn3SrVSMQ1fr62n3ZvrV5Hvzsq"}, "response": {"body": {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nz8Q7An8ESA+8MJPHeJ9I/E//jW5POYvyyOR2v2pzeFf8jT/7fFPPF4YyZebkNvQIoc31vir/nSY7BLRv+2GPuW5YA3BVON4sLbDzlEDl5E6og/a8BUEyd+k/f9kv/OCV3D1a9TuwH9XnKPspq3xVPQvZIkvqT5NIC/LaJsBLw5k0TosAe9/9MbnIMhfCCEKC88IoCXMJwCOwLd+NkFzZ+Kqq3u3/z1bMLYat8TF5xqHIdvCqeEq/D23RkGeemnIOe7L1eQk28/s3hpBGHoh6j1ImR7t2yO3xH4bwxMkGYlKNPOQXqn214XUeT/kPFGvgOKjm+9eQT0gaAo4hSTVOcM/8uFYpTkqf0DTeINZugWMzRPbT/dF/xt4RFNAkfl+DTiw03zVyR7u0AvAj9ZgZxjtEtE6clffw+VpznYM1Re3X7+8pt09zcaLtr5EvnNfx2FwfieRU1XmUP0ibveXKSLZf4A/PG+hDrwFIqnDOrK+FUsN6jv7ukP+QR+OZlVMT9sLp4uk0LX+tKWMfIHFj48WOQzQw3N+f7R+dyKGortbwo5PPKXYVx496Dxby8LDKOJHvqOg5Pi+/Ou6rwoX2Bx0bb6NyBBe/WXcaD49zwK8w3x0y2ex9N9pCl4zk/j9HPCzocYvp7gzXDxBFmMAgc5u8IHNAJl34qKsF/H6JjokwFoQnoR7VwdVQdvqH9HkNQ7ooAGX5vui/+Im+4/gH2AdrcohyBIwgMZUUP51BvspWdTeRKHaFKIKZIofAjUeHNPFa5rSOQZcB6+QuD4qvHYYV85IjBV1Th8OUmsx9jyrqn826IDPCvePLiRJ934TyY8HZK3PcyscM2rC++wyPPbDUgzkRd6U8jTqMJbsvAvBfLcyXytk/1aJ/e1Tv5p59urI/meOd1uCk7zuilZeYnUL1/6IOr0twk+Uqc/vfP/Af8Zv1eLRwAA", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=pe7inl3s8j8cj2g55nr2o0r0n5; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC0A6E3C9FCE34C046AB92421DA69EC3725534C42CB695BD59EB2C313B2EEA08C45A0C008CE5DCC69AB74FACDE96E159D6D;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7206"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 13 Sep 2016 18:26:53 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.88.38"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=qQ62n3SrvDPWsjt1Nn3SrVSMQ1fr62n3ZvrV5Hvzsq"}, "recorded_at": "2016-09-13T18:33:48"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Mi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afDznfxroOOTn3M4mXRhDHQQxbL0zeRkpPeoeUf/ViDlUrg7F2NWR0un94YUX1D1pvErjg3g2sN08GfUAwDDltSqp7Hv/zBWOSVcH9I07kTUnQLWTHPLX98FALdrUnOJFyX05PMz7cNH+Fs7cC+uLgZxKoKIbnRBig/PW3YHkehb2A5dXt8+dfpbu/1nLh4Rep/hiFDjfC9KEJm65Md+Cz7HpzYW/J9MfBHx/qsKNcw/0piLpSfuXLDei7h8aHagU/n+zqvso335/uNzue9bkxl8AfSfjwaJIvTDU09/tnV2u71+Du/qZWjYceM05r7x5V/u1Fwk4y1+PAdcu4+OF8sDpL5TMoHjxZ/wog8Lj+ZRhwB3wZhPkG+eEWztPlPlGVcs3Pd+qXmF1NMQI9K8/D96eR90noQm9X+wBnwACcUyH06xy9RPpsAlyQfg8Pr66qgzfYv0NQ7B1Sg5OvTQ/3/1g2PXwA+xAecGEUgaCIDwqkCyOqN6WbXsjsPI3hoiBRKFL7EKqp/YDVrjJEqhi42sBi4Aaq8dRjXylCSqyqcfh8kaUel6Z3jebf3rvAt1L70Y886y7/isfzKVXb48pq18i69q5keXX3BmomdENvalUgVXuL1v6lhp478a91Nr/WSXyts/W88+3Vk3zPmm6PBad13VStfAnVz587Iez05zI+Yqe/BvX/ATWxbjYeSgAA", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=l1qnrihe0g495t4dcu11nhn307; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC01D715DE960D1D66DA142353243330039923BB02E6BE2642E4FA388AA71F7B5B57D81953815B40BF9B076C8E8A3D5133C;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7716"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 13 Sep 2016 20:26:09 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.89.214"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"}, "recorded_at": "2016-09-13T20:11:22"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept": ["*/*"], "Connection": ["keep-alive"], "Accept-Encoding": ["gzip, deflate"], "X-NSoT-Email": ["admin@localhost"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=D07KSHHSj04SD4RtVSHN6PrQFMN17KSHHt3V3Jnzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18y5LbyJbYXl+B5txWSAMVQYIACUoqzYAgQIJvggRJ8Ma1AgQSL+JFIAGQvNNrb7y2Nw7vHI5w2AvvvB9/iuOGP8MJ8FGsUpW6pe65KylKRTAf55w870SerI8/tcfcXJnwmAU999Orj/kH5qq+eV8CfilvAKr+6RWGffQA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K+F7PNhl5z+bRkGpumCNyVDjWHp7YdiRDG8jPQx/2wDQ01c+Kbo+6X4XSC6Bqxfx3Yz9HvRPcpr3pZPYfeKEvsS59MQ/raM8hHw5owSgctd6P2f3uRZGIIHIhtlhkc04CUIp9COhlpBdgHzp7LqqPs3fz3bcG6277ELTBXC6E3plHKV3r47j0Fu+umQ8+2Z65CTcz+TeGkEURREqPXCZGe36krvsPyvFMyQaiUo1y6GDE/3xS6sKP4h640DF5TdwHzzaNAHjCCwU1BS3fP4Xy4Y46RI7h9wYm9ygm4h28ap7af7UrAtPcKJ5XEZnmZ8uGn+CmdvBfTi4CcSKChG+0SUoPz192B5moU9g+XV7ecvv0l3f6vlos0vVvzxAA0FQnhfQ01XptvoM+96c2FvzvSHwR/vK6gjX0P5lERdKb/y5Qb03X31Q7GCX052VS7Om8un+6i2Z35pzDnwBxI+PJjkM1P1jfv9s4u1lTcour8pFeORx4xg6d2Dyr+9SNiOZ1oUuG6eF9+fN1ZnqXwBxUM7698ABG3XX4aBIuDzIIw32E+3cB4v95Gq5Gt+GqmfY3YxRQ+0JN8Pl08jy3HoIm9X+oBmoAScVxH06xwtR/pkAlqQVkabV1fVwBvi32E48Q4rocnXpvvyP+ZN9x/APkQbXJRFYDjmgwxro4zqTe6m5Tk3gxFaFCIKx0ofQhVa90TpKkOsyIGLABYBN1D1xx77ShGWY1X1w5eLzPU4N71rNv+27ALfhNaDH3nSnf/VhadTiraHlZWumXXpXc7y4n4G0kzkht6UikSq9BYv/UsJP3eSX+usfa2T+lon/bTz7dWTfM+abrcFp3XdVK28hOqXL50QcfrzBh+J01/v+f8kC0huzkcAAA==", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.109"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=pdl5ukr6o4pbj0h4hkd4llrvn5; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC01D715DE960D1D66DA142353243330039923BB02E6BE2642E4FA388AA71F7B5B57D81953815B40BF9B076C8E8A3D5133C;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7258"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Wed, 21 Sep 2016 01:17:56 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.89.214"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=D07KSHHSj04SD4RtVSHN6PrQFMN17KSHHt3V3Jnzsq"}, "recorded_at": "2016-09-21T01:02:56"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=other&lang=en_US&zsq=JfSvLWWksTDVVkjjQpW01LTFJQMtSvLWrP1rfsrzsq"}, "response": {"body": {"base64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WgdQRH+QIC9OoV6WbFlfMMongoiBRdaT2LpQT8wGtXWWIVIlvFcAi4Aay9tRjXylCSqyydvh0kaUel6Z3TeFf37vANxLz0Y886y5//eH5lKrtcWW1azpde1OyvLq6ATUTuqFXtSqRqr2u1/65Vj934l/rbH6tk/haZ+t55+urJ/mRNd3uBU7ruikU+RKqXz51QujpZxbeo6dfEfr/oJVahFZIAAA=", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=r6nok0lbso5irhn53a6a6m3uh0; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC0D65393CC1ECC6691BB689F86B76324B8923BB02E6BE2642E4FA388AA71F7B5B57D81953815B40BF9B076C8E8A3D5133C;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7469"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 04 Oct 2016 13:46:38 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.89.214"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=other&lang=en_US&zsq=JfSvLWWksTDVVkjjQpW01LTFJQMtSvLWrP1rfsrzsq"}, "recorded_at": "2016-10-04T13:31:01"}, {"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8100/api/sites/"}, "response": {"body": {"string": "504 Gateway Timeout\r\n

    Gateway Timeout

    \r\n

    Server error - server 127.0.0.1 is unreachable at this moment.

    Please retry the request or contact your administrator.

    \r\n\r\n", "encoding": "ISO-8859-1"}, "headers": {"Connection": ["close"], "Content-Type": ["text/html"], "Server": ["Zscaler/5.2"]}, "status": {"message": "Gateway Timeout", "code": 504}, "url": "http://localhost:8100/api/sites/"}, "recorded_at": "2016-10-04T19:18:56"}, {"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/"}, "response": {"body": {"string": "{\"id\":6,\"name\":\"Test Site\",\"description\":\"\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=B7dTwu2ekjIsi53GGmzgYRTOXdERq34K; expires=Thu, 05-Oct-2017 13:27:45 GMT; Max-Age=31449600; Path=/", "sessionid=tx12n8jcmajkbq31fpz6uqbk0lbwuuif; expires=Thu, 20-Oct-2016 13:27:45 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/"], "Allow": ["GET, POST, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/944e446940adf75be72d7ff7a59b5db4918d6e1c.json b/tests/api_tests/tests/api_tests/cassettes/944e446940adf75be72d7ff7a59b5db4918d6e1c.json new file mode 100644 index 00000000..48cac62c --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/944e446940adf75be72d7ff7a59b5db4918d6e1c.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=VuMVy029S4A19H2gB204lnf0qwqM5zTy; sessionid=90dcjhooh9cwc8xk6qufzvqfd3d3s0sl"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/1/networks/2/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:05:59 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/1/networks/2/"}, "recorded_at": "2016-09-21T01:05:59"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json b/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json index 4cab755a..78257afa 100644 --- a/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json +++ b/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=FT0tu1VelzTuzxsVWor5h6xGEm6SpYZF; sessionid=klwzp0ltmzw0xstdu6gttxzuynty26bd"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "[{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 14 Sep 2016 14:07:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-09-14T14:07:33"}, {"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=7XqV57gEz6oK4E4sfoqaRDScJVKhXUA8; expires=Tue, 19-Sep-2017 16:28:50 GMT; Max-Age=31449600; Path=/", "sessionid=vx85yhad6wgrof6unhlpli0f2hbrhglz; expires=Tue, 04-Oct-2016 16:28:50 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/iterable/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=dFDn2eTCyL6dOFW8yajm18Axrb2lvCzP; sessionid=qvpsz14igjfnj9l50jvi35eyq7hqfa8m"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "[{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-10-06T12:41:33"}, {"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=BJ0e5rQ2IVpivqYQkqGqys32qSpVRNdC; expires=Thu, 05-Oct-2017 13:27:43 GMT; Max-Age=31449600; Path=/", "sessionid=evkwzr9y3noylyc5rmmjdudzoena2o0e; expires=Thu, 20-Oct-2016 13:27:43 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/iterable/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:43 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-10-06T13:27:43"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/9656ecd4fe0150cd6217d09c5d4b1f8d9d19e00b.json b/tests/api_tests/tests/api_tests/cassettes/9656ecd4fe0150cd6217d09c5d4b1f8d9d19e00b.json new file mode 100644 index 00000000..e45fbaa1 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/9656ecd4fe0150cd6217d09c5d4b1f8d9d19e00b.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.0.0.0/8/descendents/"}, "response": {"body": {"string": "[{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28},{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29},{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.0.0.0/8/descendents/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/9a1dd628a3eb7e38539910dfe4779c436f26fbcf.json b/tests/api_tests/tests/api_tests/cassettes/9a1dd628a3eb7e38539910dfe4779c436f26fbcf.json new file mode 100644 index 00000000..a1dd3b97 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/9a1dd628a3eb7e38539910dfe4779c436f26fbcf.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 4}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Hgn6y7kBK9c0uMVXE40cKgx4puZ5gxwS; sessionid=sgqmo7jmoo53y70zff5wcd5ohir0pyq7"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":4,\"id\":10,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/itervalues/10/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/itervalues/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/9b7df91a15b8467cb4a0d6e28cff72627c05af10.json b/tests/api_tests/tests/api_tests/cassettes/9b7df91a15b8467cb4a0d6e28cff72627c05af10.json new file mode 100644 index 00000000..2ea92582 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/9b7df91a15b8467cb4a0d6e28cff72627c05af10.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=VOWIruYGh2cNAJfPR6I6SwE9gboBFVAz; sessionid=n64m0t4yrcn58gblfe1altpzwzh2bclr"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/devices/19/interfaces/"}, "response": {"body": {"string": "[{\"addresses\":[],\"device\":19,\"speed\":1000,\"networks\":[],\"description\":\"\",\"name\":\"eth0\",\"id\":1,\"parent_id\":null,\"mac_address\":\"00:00:00:00:00:00\",\"attributes\":{},\"type\":6},{\"addresses\":[],\"device\":19,\"speed\":1000,\"networks\":[],\"description\":\"\",\"name\":\"eth1\",\"id\":2,\"parent_id\":null,\"mac_address\":\"00:00:00:00:00:00\",\"attributes\":{},\"type\":6}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/devices/19/interfaces/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/9c4af53e207bf96a18b2686d4332c7d6387741ff.json b/tests/api_tests/tests/api_tests/cassettes/9c4af53e207bf96a18b2686d4332c7d6387741ff.json new file mode 100644 index 00000000..d7e1b427 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/9c4af53e207bf96a18b2686d4332c7d6387741ff.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"attr1\": \"foo\"}, \"hostname\": \"device1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["55"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=N5Iml4tSryasVqnXLZOu3U5MJBvEhYu5; sessionid=k4ysuun793bmqonjhde2vdvwuqdvckbm"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/devices/"}, "response": {"body": {"string": "{\"attributes\":{\"attr1\":\"foo\"},\"hostname\":\"device1\",\"site_id\":6,\"id\":14}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/devices/14/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/devices/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/9e28a8939946014bbb652453058fd33ef7a8320e.json b/tests/api_tests/tests/api_tests/cassettes/9e28a8939946014bbb652453058fd33ef7a8320e.json new file mode 100644 index 00000000..4f201220 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/9e28a8939946014bbb652453058fd33ef7a8320e.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 5}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=OHOOoWTovPwZJv7kRtf5S2XFvpcZfnpf; sessionid=haw2ev08es5n35uatgh8sl6jkvwxs03h"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":5,\"id\":11,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/itervalues/11/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/itervalues/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/9e59fc13628275f2a31802bc64c03f049f457bd6.json b/tests/api_tests/tests/api_tests/cassettes/9e59fc13628275f2a31802bc64c03f049f457bd6.json new file mode 100644 index 00000000..19b12cb5 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/9e59fc13628275f2a31802bc64c03f049f457bd6.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"cidr\": \"10.16.2.17/32\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["25"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=hDa66i1nmtMI2kUfyAZXjJiTixWEfKQD; sessionid=509nslsvqj13ww93k0nmzpm5yuqyw5uc"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/9/networks/"}, "response": {"body": {"string": "{\"parent_id\":33,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.17\",\"attributes\":{},\"site_id\":9,\"id\":38}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/9/networks/38/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/9/networks/"}, "recorded_at": "2016-09-21T01:06:02"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=hDa66i1nmtMI2kUfyAZXjJiTixWEfKQD; sessionid=509nslsvqj13ww93k0nmzpm5yuqyw5uc"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.0%2F25"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":9,\"id\":33}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.0%2F25"}, "recorded_at": "2016-09-21T01:06:02"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=hDa66i1nmtMI2kUfyAZXjJiTixWEfKQD; sessionid=509nslsvqj13ww93k0nmzpm5yuqyw5uc"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.8%2F29"}, "response": {"body": {"string": "[{\"parent_id\":33,\"state\":\"allocated\",\"prefix_length\":29,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.8\",\"attributes\":{},\"site_id\":9,\"id\":34}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.8%2F29"}, "recorded_at": "2016-09-21T01:06:02"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=hDa66i1nmtMI2kUfyAZXjJiTixWEfKQD; sessionid=509nslsvqj13ww93k0nmzpm5yuqyw5uc"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.1%2F32"}, "response": {"body": {"string": "[{\"parent_id\":33,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":9,\"id\":35}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.1%2F32"}, "recorded_at": "2016-09-21T01:06:02"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=hDa66i1nmtMI2kUfyAZXjJiTixWEfKQD; sessionid=509nslsvqj13ww93k0nmzpm5yuqyw5uc"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.2%2F32"}, "response": {"body": {"string": "[{\"parent_id\":33,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":9,\"id\":36}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.2%2F32"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/a19750a6d840f704991808815c7cc500845d850f.json b/tests/api_tests/tests/api_tests/cassettes/a19750a6d840f704991808815c7cc500845d850f.json new file mode 100644 index 00000000..46601c3c --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/a19750a6d840f704991808815c7cc500845d850f.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.2/32/parent/"}, "response": {"body": {"string": "{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.2/32/parent/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/a579564d9cc80ce669ba9d87617147b0fdf9e950.json b/tests/api_tests/tests/api_tests/cassettes/a579564d9cc80ce669ba9d87617147b0fdf9e950.json new file mode 100644 index 00000000..44ff0874 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/a579564d9cc80ce669ba9d87617147b0fdf9e950.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=XjwUIiPPmFZjlfEieDo2F46uRxZ7rwSO; sessionid=avv2q45rkjpgt7ujizz0hrt69ku2spzn"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/5/itervalues/12/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/5/itervalues/12/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json b/tests/api_tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json index 807b7144..0dbec29b 100644 --- a/tests/api_tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json +++ b/tests/api_tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":4,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=HxblsCzqLPh6JjqediS8zSVXUEocehTq; expires=Tue, 19-Sep-2017 16:28:50 GMT; Max-Age=31449600; Path=/", "sessionid=ftc9xszptwq2t700aiktz8gh4cbjit59; expires=Tue, 04-Oct-2016 16:28:50 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/iterable/4/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/iterable/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":5,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=OHOOoWTovPwZJv7kRtf5S2XFvpcZfnpf; expires=Thu, 05-Oct-2017 13:27:44 GMT; Max-Age=31449600; Path=/", "sessionid=haw2ev08es5n35uatgh8sl6jkvwxs03h; expires=Thu, 20-Oct-2016 13:27:44 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/iterable/5/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/iterable/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/a956c26cc96805f137aa6e1bf918e945cd2a2dcf.json b/tests/api_tests/tests/api_tests/cassettes/a956c26cc96805f137aa6e1bf918e945cd2a2dcf.json new file mode 100644 index 00000000..c626d35d --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/a956c26cc96805f137aa6e1bf918e945cd2a2dcf.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"attr1\": \"foo\"}, \"hostname\": \"device1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["55"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=qIHIQEHWCtnnLeiCmOFobn6dub8U3UIG; sessionid=bfdrv3kix03ys3fkhkjr246vehgkn4co"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/devices/"}, "response": {"body": {"string": "{\"attributes\":{\"attr1\":\"foo\"},\"hostname\":\"device1\",\"site_id\":1,\"id\":1}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/devices/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:38:16 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/devices/"}, "recorded_at": "2016-10-04T20:38:16"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=qIHIQEHWCtnnLeiCmOFobn6dub8U3UIG; sessionid=bfdrv3kix03ys3fkhkjr246vehgkn4co"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/devices/"}, "response": {"body": {"string": "[{\"attributes\":{\"attr1\":\"foo\"},\"hostname\":\"device1\",\"site_id\":1,\"id\":1}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:38:16 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/devices/"}, "recorded_at": "2016-10-04T20:38:16"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/b3463540377cf86fcf1e58bdc5d19bd5db4460aa.json b/tests/api_tests/tests/api_tests/cassettes/b3463540377cf86fcf1e58bdc5d19bd5db4460aa.json new file mode 100644 index 00000000..38062376 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/b3463540377cf86fcf1e58bdc5d19bd5db4460aa.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Device\", \"name\": \"attr1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["44"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/8/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Device\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":8,\"id\":26,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"attr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=WdHoWv3DqBYwGlJvGbTJ947ZgeSgmnyl; expires=Tue, 03-Oct-2017 20:39:06 GMT; Max-Age=31449600; Path=/", "sessionid=zb5hgmz14dupbd90xksy1u635yjsbiiy; expires=Tue, 18-Oct-2016 20:39:06 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/8/attributes/26/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/8/attributes/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/b74958d4a89a7cf79ed11404f4294c471ff25aff.json b/tests/api_tests/tests/api_tests/cassettes/b74958d4a89a7cf79ed11404f4294c471ff25aff.json new file mode 100644 index 00000000..5c8e7011 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/b74958d4a89a7cf79ed11404f4294c471ff25aff.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Hgn6y7kBK9c0uMVXE40cKgx4puZ5gxwS; sessionid=sgqmo7jmoo53y70zff5wcd5ohir0pyq7"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/iterable/4/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/iterable/4/next_value/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/b93ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json b/tests/api_tests/tests/api_tests/cassettes/b93ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json new file mode 100644 index 00000000..53a38b4d --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/b93ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"description\": \"Iterable 1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["29"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YbdDUxQ9ps1aHMZzwmB0wxiyw9p1ngjL; sessionid=5mh36l9r6y35nroza33wd36pphsx063n"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/4/iterable/6/"}, "response": {"body": {"string": "{\"description\":\"Iterable 1\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":6,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/iterable/6/"}, "recorded_at": "2016-10-06T12:41:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/bd474da839501043708fa3000d35851e61d996a3.json b/tests/api_tests/tests/api_tests/cassettes/bd474da839501043708fa3000d35851e61d996a3.json new file mode 100644 index 00000000..de2c66de --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/bd474da839501043708fa3000d35851e61d996a3.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"state\": \"reserved\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=j48jakWNXNSZz6OoIsHT1Fg3gn0NtQyE; sessionid=66tkqx5vrs78lqteshyq3cu4f14wi0pf"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/6/networks/23/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":6,\"id\":23}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/networks/23/"}, "recorded_at": "2016-09-21T01:06:01"}, {"request": {"body": {"string": "{\"state\": \"reserved\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=j48jakWNXNSZz6OoIsHT1Fg3gn0NtQyE; sessionid=66tkqx5vrs78lqteshyq3cu4f14wi0pf"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/6/networks/23/"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"attributes\":[\"This field is required.\"]},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/6/networks/23/"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json b/tests/api_tests/tests/api_tests/cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json index e1657edf..ccc779be 100644 --- a/tests/api_tests/tests/api_tests/cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json +++ b/tests/api_tests/tests/api_tests/cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=7XqV57gEz6oK4E4sfoqaRDScJVKhXUA8; sessionid=vx85yhad6wgrof6unhlpli0f2hbrhglz"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/itervalue/1/"}, "response": {"body": {"string": "{\"unique_id\":\"uuid_custA_site1\",\"iterable\":1,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/itervalue/1/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sD4CcXAXHerBDExnN5GNDHp7Xj5Izbya; sessionid=2gufgzbn3tdlmsgdggk0icfkn6zi1wh3"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/itervalue/1/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":1,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:35:47 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/itervalue/1/"}, "recorded_at": "2016-10-05T14:35:47"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/bde34cd954fc463c1cee7195696c5662b0da623a.json b/tests/api_tests/tests/api_tests/cassettes/bde34cd954fc463c1cee7195696c5662b0da623a.json new file mode 100644 index 00000000..cf7ade9a --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/bde34cd954fc463c1cee7195696c5662b0da623a.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=m2JaBP0BrhgtPDXBW0wRlpozGpEIiyli; sessionid=1s928o7lvfqwg9z74ah4ogz9k8f4ib51"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/itervalues/1/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/itervalues/1/"}, "recorded_at": "2016-10-06T12:41:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/bed48976a960605bb0cc70cc575506af38968f36.json b/tests/api_tests/tests/api_tests/cassettes/bed48976a960605bb0cc70cc575506af38968f36.json new file mode 100644 index 00000000..a74a2e73 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/bed48976a960605bb0cc70cc575506af38968f36.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=vkXrwAhSaMqK35Ks1em83fhFYB9bLHrw; sessionid=y16ht5zhdbuufj8kp6q9dd8g33wqydxy"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?query=foo%3Dbar"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":4,\"id\":16},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":4,\"id\":18}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/query/?query=foo%3Dbar"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=vkXrwAhSaMqK35Ks1em83fhFYB9bLHrw; sessionid=y16ht5zhdbuufj8kp6q9dd8g33wqydxy"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?query=foo%3Dbar+owner%3Djathan"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":4,\"id\":18}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/query/?query=foo%3Dbar+owner%3Djathan"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=vkXrwAhSaMqK35Ks1em83fhFYB9bLHrw; sessionid=y16ht5zhdbuufj8kp6q9dd8g33wqydxy"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?include_ips=False&query=-owner%3Dgary"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":4,\"id\":15},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":4,\"id\":18},{\"parent_id\":15,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":20},{\"parent_id\":20,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":21}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/query/?include_ips=False&query=-owner%3Dgary"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=vkXrwAhSaMqK35Ks1em83fhFYB9bLHrw; sessionid=y16ht5zhdbuufj8kp6q9dd8g33wqydxy"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?query=cluster+%2Bfoo%3Dbaz"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":4,\"id\":15},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":4,\"id\":17}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/query/?query=cluster+%2Bfoo%3Dbaz"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=vkXrwAhSaMqK35Ks1em83fhFYB9bLHrw; sessionid=y16ht5zhdbuufj8kp6q9dd8g33wqydxy"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?query=vlan%3D300"}, "response": {"body": {"string": "[{\"parent_id\":21,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":4,\"id\":19}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/query/?query=vlan%3D300"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=vkXrwAhSaMqK35Ks1em83fhFYB9bLHrw; sessionid=y16ht5zhdbuufj8kp6q9dd8g33wqydxy"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?query=fake%3Dbad"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"query\":\"Attribute matching query does not exist: 'fake'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/4/networks/query/?query=fake%3Dbad"}, "recorded_at": "2016-09-21T01:06:00"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/c103a0cc7197d1128ce53feb5373975328c86a95.json b/tests/api_tests/tests/api_tests/cassettes/c103a0cc7197d1128ce53feb5373975328c86a95.json new file mode 100644 index 00000000..897daade --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/c103a0cc7197d1128ce53feb5373975328c86a95.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=WdHoWv3DqBYwGlJvGbTJ947ZgeSgmnyl; sessionid=zb5hgmz14dupbd90xksy1u635yjsbiiy"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/8/devices/device3/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/8/devices/device3/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/c1ace35610f08937e315c7ca43d88e3d52cae87d.json b/tests/api_tests/tests/api_tests/cassettes/c1ace35610f08937e315c7ca43d88e3d52cae87d.json new file mode 100644 index 00000000..3630d39a --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/c1ace35610f08937e315c7ca43d88e3d52cae87d.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=iRn6tFq8uliu3wHJ0fsp5GyTQghOGCRS; sessionid=3up6x0aeqyzb6ivufr0lfy0bl9g3tu80"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":2,\"id\":2,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/attributes/2/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/attributes/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/c26809628169f516dea4ef452fe982b3b64faf42.json b/tests/api_tests/tests/api_tests/cassettes/c26809628169f516dea4ef452fe982b3b64faf42.json new file mode 100644 index 00000000..15dddc0c --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/c26809628169f516dea4ef452fe982b3b64faf42.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=qIHIQEHWCtnnLeiCmOFobn6dub8U3UIG; sessionid=bfdrv3kix03ys3fkhkjr246vehgkn4co"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/devices/device1/"}, "response": {"body": {"string": "{\"attributes\":{\"attr1\":\"foo\"},\"hostname\":\"device1\",\"site_id\":1,\"id\":1}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:38:16 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/devices/device1/"}, "recorded_at": "2016-10-04T20:38:16"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/c5166aff566078fc644891c3d483a596bc238579.json b/tests/api_tests/tests/api_tests/cassettes/c5166aff566078fc644891c3d483a596bc238579.json new file mode 100644 index 00000000..eddfc8cd --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/c5166aff566078fc644891c3d483a596bc238579.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.0.0/12/children/"}, "response": {"body": {"string": "[{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.0.0/12/children/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/c77fd2df6127b125a3d4d9d702eb97c7151b84b2.json b/tests/api_tests/tests/api_tests/cassettes/c77fd2df6127b125a3d4d9d702eb97c7151b84b2.json new file mode 100644 index 00000000..3721b1c3 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/c77fd2df6127b125a3d4d9d702eb97c7151b84b2.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "[\n {\n \"attributes\": {\n \"cluster\": \"\", \n \"foo\": \"baz\", \n \"owner\": \"jathan\"\n }, \n \"cidr\": \"192.168.0.0/16\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"lax\", \n \"foo\": \"bar\", \n \"owner\": \"gary\"\n }, \n \"cidr\": \"10.0.0.0/8\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"lax\", \n \"foo\": \"baz\", \n \"owner\": \"gary\"\n }, \n \"cidr\": \"172.16.0.0/12\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"sjc\", \n \"foo\": \"bar\", \n \"owner\": \"jathan\"\n }, \n \"cidr\": \"169.254.0.0/16\"\n }, \n {\n \"attributes\": {\n \"hostname\": \"foo-bar1\", \n \"vlan\": \"300\"\n }, \n \"cidr\": \"192.168.0.1/32\"\n }, \n {\n \"attributes\": {\n \"hostname\": \"foo-bar1\"\n }, \n \"cidr\": \"192.168.0.0/24\"\n }, \n {\n \"attributes\": {\n \"hostname\": \"foo-bar1\"\n }, \n \"cidr\": \"192.168.0.0/25\"\n }\n]\n", "encoding": "utf-8"}, "headers": {"Content-Length": ["1056"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=vkXrwAhSaMqK35Ks1em83fhFYB9bLHrw; sessionid=y16ht5zhdbuufj8kp6q9dd8g33wqydxy"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":4,\"id\":15},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":4,\"id\":16},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":4,\"id\":17},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":4,\"id\":18},{\"parent_id\":15,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":4,\"id\":19},{\"parent_id\":15,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":20},{\"parent_id\":20,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":21}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/networks/"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=vkXrwAhSaMqK35Ks1em83fhFYB9bLHrw; sessionid=y16ht5zhdbuufj8kp6q9dd8g33wqydxy"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":4,\"id\":15},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":4,\"id\":16},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":4,\"id\":17},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":4,\"id\":18},{\"parent_id\":21,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":4,\"id\":19},{\"parent_id\":15,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":20},{\"parent_id\":20,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":21}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/"}, "recorded_at": "2016-09-21T01:06:00"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/c87885aa4d31ad8a2b08b03b992f52f9db466615.json b/tests/api_tests/tests/api_tests/cassettes/c87885aa4d31ad8a2b08b03b992f52f9db466615.json new file mode 100644 index 00000000..5d6c40c4 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/c87885aa4d31ad8a2b08b03b992f52f9db466615.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"cidr\": \"10.16.2.2/32\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["24"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/8/networks/"}, "response": {"body": {"string": "{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/8/networks/32/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/8/networks/"}, "recorded_at": "2016-09-21T01:06:01"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.0.0.0%2F8"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.0.0.0%2F8"}, "recorded_at": "2016-09-21T01:06:01"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.0.0%2F12"}, "response": {"body": {"string": "[{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.0.0%2F12"}, "recorded_at": "2016-09-21T01:06:01"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.0.0%2F14"}, "response": {"body": {"string": "[{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.0.0%2F14"}, "recorded_at": "2016-09-21T01:06:01"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.0%2F25"}, "response": {"body": {"string": "[{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.0%2F25"}, "recorded_at": "2016-09-21T01:06:01"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.1%2F32"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.1%2F32"}, "recorded_at": "2016-09-21T01:06:01"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.2%2F32"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.2%2F32"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/cba0ca9382553634281ae742531723e2b84d8b34.json b/tests/api_tests/tests/api_tests/cassettes/cba0ca9382553634281ae742531723e2b84d8b34.json new file mode 100644 index 00000000..56b07046 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/cba0ca9382553634281ae742531723e2b84d8b34.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=iRn6tFq8uliu3wHJ0fsp5GyTQghOGCRS; sessionid=3up6x0aeqyzb6ivufr0lfy0bl9g3tu80"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterable/3/next_value/"}, "response": {"body": {"string": "[103]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterable/3/next_value/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json b/tests/api_tests/tests/api_tests/cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json new file mode 100644 index 00000000..0718903e --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=m2JaBP0BrhgtPDXBW0wRlpozGpEIiyli; sessionid=1s928o7lvfqwg9z74ah4ogz9k8f4ib51"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/7/iterable/9/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/7/iterable/9/next_value/"}, "recorded_at": "2016-10-06T12:41:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/ce676537fa146be76efe97393539b87248de1c84.json b/tests/api_tests/tests/api_tests/cassettes/ce676537fa146be76efe97393539b87248de1c84.json new file mode 100644 index 00000000..7025796c --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/ce676537fa146be76efe97393539b87248de1c84.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "[{\"hostname\": \"device1\"}, {\"hostname\": \"device2\"}, {\"hostname\": \"device3\"}]", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/devices/"}, "response": {"body": {"string": "[{\"attributes\":{},\"hostname\":\"device1\",\"site_id\":2,\"id\":2},{\"attributes\":{},\"hostname\":\"device2\",\"site_id\":2,\"id\":3},{\"attributes\":{},\"hostname\":\"device3\",\"site_id\":2,\"id\":4}]", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=7uXfLwSFGivPepTOwmwYNNyeDfNtDfBl; expires=Tue, 03-Oct-2017 20:38:16 GMT; Max-Age=31449600; Path=/", "sessionid=edrhev3q9jv1jxb8x2ie67dqkb2ue1a6; expires=Tue, 18-Oct-2016 20:38:16 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:38:16 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/devices/"}, "recorded_at": "2016-10-04T20:38:16"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=7uXfLwSFGivPepTOwmwYNNyeDfNtDfBl; sessionid=edrhev3q9jv1jxb8x2ie67dqkb2ue1a6"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/devices/"}, "response": {"body": {"string": "[{\"attributes\":{},\"hostname\":\"device1\",\"site_id\":2,\"id\":2},{\"attributes\":{},\"hostname\":\"device2\",\"site_id\":2,\"id\":3},{\"attributes\":{},\"hostname\":\"device3\",\"site_id\":2,\"id\":4}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:38:16 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/devices/"}, "recorded_at": "2016-10-04T20:38:16"}, {"request": {"body": {"string": "[{\"attributes\": {\"owner\": \"jathan\"}, \"hostname\": \"device1\", \"site_id\": 2, \"id\": 2}, {\"attributes\": {\"owner\": \"jathan\"}, \"hostname\": \"device2\", \"site_id\": 2, \"id\": 3}, {\"attributes\": {\"owner\": \"jathan\"}, \"hostname\": \"device3\", \"site_id\": 2, \"id\": 4}]", "encoding": "utf-8"}, "headers": {"Content-Length": ["249"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=7uXfLwSFGivPepTOwmwYNNyeDfNtDfBl; sessionid=edrhev3q9jv1jxb8x2ie67dqkb2ue1a6"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/2/devices/"}, "response": {"body": {"string": "[{\"attributes\":{\"owner\":\"jathan\"},\"hostname\":\"device1\",\"site_id\":2,\"id\":2},{\"attributes\":{\"owner\":\"jathan\"},\"hostname\":\"device2\",\"site_id\":2,\"id\":3},{\"attributes\":{\"owner\":\"jathan\"},\"hostname\":\"device3\",\"site_id\":2,\"id\":4}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:38:16 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/devices/"}, "recorded_at": "2016-10-04T20:38:16"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/ced58e2cf97d7a523c5852924a577f5c8b892866.json b/tests/api_tests/tests/api_tests/cassettes/ced58e2cf97d7a523c5852924a577f5c8b892866.json new file mode 100644 index 00000000..c68a73bb --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/ced58e2cf97d7a523c5852924a577f5c8b892866.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=dFDn2eTCyL6dOFW8yajm18Axrb2lvCzP; sessionid=qvpsz14igjfnj9l50jvi35eyq7hqfa8m"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/1/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/1/"}, "recorded_at": "2016-10-06T12:41:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/d06f37f0a1e298db8a44f4f636fb6fb3284127de.json b/tests/api_tests/tests/api_tests/cassettes/d06f37f0a1e298db8a44f4f636fb6fb3284127de.json new file mode 100644 index 00000000..9d7875c8 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/d06f37f0a1e298db8a44f4f636fb6fb3284127de.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Device\", \"name\": \"attr1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["44"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Device\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":7,\"id\":25,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"attr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=CPtIqWHyePHbcGfhZqk9IKyyYhSlML8t; expires=Tue, 03-Oct-2017 20:39:06 GMT; Max-Age=31449600; Path=/", "sessionid=ggk4wjqiab7selwzdznchxcz2jgiiioo; expires=Tue, 18-Oct-2016 20:39:06 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/attributes/25/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/attributes/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/d172f0fadfb95294453118f64f6a030a09446bf9.json b/tests/api_tests/tests/api_tests/cassettes/d172f0fadfb95294453118f64f6a030a09446bf9.json new file mode 100644 index 00000000..5986f80b --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/d172f0fadfb95294453118f64f6a030a09446bf9.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=OHOOoWTovPwZJv7kRtf5S2XFvpcZfnpf; sessionid=haw2ev08es5n35uatgh8sl6jkvwxs03h"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/iterable/5/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/iterable/5/next_value/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/d456384a5763e1fb69be4c8a36aabd43efde2aec.json b/tests/api_tests/tests/api_tests/cassettes/d456384a5763e1fb69be4c8a36aabd43efde2aec.json new file mode 100644 index 00000000..2d3fcd1c --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/d456384a5763e1fb69be4c8a36aabd43efde2aec.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"device\": 19, \"name\": \"eth1\", \"parent\": 1}", "encoding": "utf-8"}, "headers": {"Content-Length": ["43"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=VOWIruYGh2cNAJfPR6I6SwE9gboBFVAz; sessionid=n64m0t4yrcn58gblfe1altpzwzh2bclr"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/9/interfaces/"}, "response": {"body": {"string": "{\"addresses\":[],\"device\":19,\"speed\":1000,\"networks\":[],\"description\":\"\",\"name\":\"eth1\",\"id\":2,\"parent_id\":null,\"mac_address\":\"00:00:00:00:00:00\",\"attributes\":{},\"type\":6}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/9/interfaces/2/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/9/interfaces/"}, "recorded_at": "2016-10-04T20:39:06"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=VOWIruYGh2cNAJfPR6I6SwE9gboBFVAz; sessionid=n64m0t4yrcn58gblfe1altpzwzh2bclr"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/interfaces/"}, "response": {"body": {"string": "[{\"addresses\":[],\"device\":19,\"speed\":1000,\"networks\":[],\"description\":\"\",\"name\":\"eth0\",\"id\":1,\"parent_id\":null,\"mac_address\":\"00:00:00:00:00:00\",\"attributes\":{},\"type\":6},{\"addresses\":[],\"device\":19,\"speed\":1000,\"networks\":[],\"description\":\"\",\"name\":\"eth1\",\"id\":2,\"parent_id\":null,\"mac_address\":\"00:00:00:00:00:00\",\"attributes\":{},\"type\":6}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/interfaces/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json b/tests/api_tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json index b4762750..7046784b 100644 --- a/tests/api_tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json +++ b/tests/api_tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=MxGXqptZpS7mCD00eSjBkttffvP0Je2z; sessionid=thp9dtuxt11wx9agijh5aoy3qi5dqjod"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterable/2/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterable/2/next_value/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=iRn6tFq8uliu3wHJ0fsp5GyTQghOGCRS; sessionid=3up6x0aeqyzb6ivufr0lfy0bl9g3tu80"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterable/2/next_value/"}, "response": {"body": {"string": "[13]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterable/2/next_value/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/d5f7009c8ca1699486d9116a6ca0da537b1bb8b7.json b/tests/api_tests/tests/api_tests/cassettes/d5f7009c8ca1699486d9116a6ca0da537b1bb8b7.json new file mode 100644 index 00000000..47407260 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/d5f7009c8ca1699486d9116a6ca0da537b1bb8b7.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"attr1\": \"foo\"}, \"cidr\": \"10.0.0.0/24\", \"state\": \"reserved\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["76"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=FdJmKwmbb8BJzw09wi7k0FuCbLc8gwhF; sessionid=lxqchn5x2ttbr51rldzgm50ua9qmzbcn"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":5,\"id\":22}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/networks/22/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/networks/"}, "recorded_at": "2016-09-21T01:06:00"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/d64396a0e9f44951ae8d3dd39b07e3b4ac792cdc.json b/tests/api_tests/tests/api_tests/cassettes/d64396a0e9f44951ae8d3dd39b07e3b4ac792cdc.json new file mode 100644 index 00000000..aa5fa766 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/d64396a0e9f44951ae8d3dd39b07e3b4ac792cdc.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"unique_id\": \"uuid_custA_site1\", \"value\": 10, \"iterable\": 9}", "encoding": "utf-8"}, "headers": {"Content-Length": ["61"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=m2JaBP0BrhgtPDXBW0wRlpozGpEIiyli; sessionid=1s928o7lvfqwg9z74ah4ogz9k8f4ib51"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{},\"iterable\":9,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/itervalues/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/itervalues/"}, "recorded_at": "2016-10-06T12:41:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/d9993b207736a02db0e341bc1253b5c708697d6e.json b/tests/api_tests/tests/api_tests/cassettes/d9993b207736a02db0e341bc1253b5c708697d6e.json new file mode 100644 index 00000000..59067d51 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/d9993b207736a02db0e341bc1253b5c708697d6e.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=qIHIQEHWCtnnLeiCmOFobn6dub8U3UIG; sessionid=bfdrv3kix03ys3fkhkjr246vehgkn4co"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/devices/1/"}, "response": {"body": {"string": "{\"attributes\":{\"attr1\":\"foo\"},\"hostname\":\"device1\",\"site_id\":1,\"id\":1}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:38:16 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/devices/1/"}, "recorded_at": "2016-10-04T20:38:16"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/da427a9a7f5006cf428910abcbcb10322f0c9b6a.json b/tests/api_tests/tests/api_tests/cassettes/da427a9a7f5006cf428910abcbcb10322f0c9b6a.json new file mode 100644 index 00000000..96558bec --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/da427a9a7f5006cf428910abcbcb10322f0c9b6a.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"unique_id\": \"uuid_custA_site1\", \"value\": 10, \"iterable\": 9}", "encoding": "utf-8"}, "headers": {"Content-Length": ["61"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=TJgS61dEbp0dCpCSeweCmnSbDdIBO9JK; sessionid=j8zi4c4ruijvrnmkqqodvvxml2m18yip"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/itervalue/"}, "response": {"body": {"string": "{\"attributes\":{},\"iterable\":9,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/itervalue/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 19:19:09 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/itervalue/"}, "recorded_at": "2016-10-04T19:19:09"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/e0e399e8dbcd4774ee2b95798987a3638ea50836.json b/tests/api_tests/tests/api_tests/cassettes/e0e399e8dbcd4774ee2b95798987a3638ea50836.json new file mode 100644 index 00000000..c285501a --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/e0e399e8dbcd4774ee2b95798987a3638ea50836.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/28/children/"}, "response": {"body": {"string": "[{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/28/children/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/eacb60510140254a7ec730a2383e740cf8048a1d.json b/tests/api_tests/tests/api_tests/cassettes/eacb60510140254a7ec730a2383e740cf8048a1d.json new file mode 100644 index 00000000..7d836d0a --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/eacb60510140254a7ec730a2383e740cf8048a1d.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=BJ0e5rQ2IVpivqYQkqGqys32qSpVRNdC; sessionid=evkwzr9y3noylyc5rmmjdudzoena2o0e"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":1,\"id\":1,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/attributes/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:43 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/attributes/"}, "recorded_at": "2016-10-06T13:27:43"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/eb12b0fa792eb79c4d325779b62e416a5f3bd4bd.json b/tests/api_tests/tests/api_tests/cassettes/eb12b0fa792eb79c4d325779b62e416a5f3bd4bd.json new file mode 100644 index 00000000..e81466e2 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/eb12b0fa792eb79c4d325779b62e416a5f3bd4bd.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"iterable\": 4, \"id\": 10, \"value\": 10}", "encoding": "utf-8"}, "headers": {"Content-Length": ["85"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Lv6SSGQMhjVBqUW85JFqwtnYZ4qUvwta; sessionid=sjp0x9th99km65jjz7lxz60vrh2e9jsw"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/3/itervalue/10/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":4,\"id\":10,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:35:48 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/itervalue/10/"}, "recorded_at": "2016-10-05T14:35:48"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/eb265a9697212637085b4a3e6ab21689f776d9de.json b/tests/api_tests/tests/api_tests/cassettes/eb265a9697212637085b4a3e6ab21689f776d9de.json new file mode 100644 index 00000000..942553d9 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/eb265a9697212637085b4a3e6ab21689f776d9de.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {}, \"state\": \"orphaned\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["39"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=FdJmKwmbb8BJzw09wi7k0FuCbLc8gwhF; sessionid=lxqchn5x2ttbr51rldzgm50ua9qmzbcn"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/5/networks/10.0.0.0/24/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"orphaned\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":5,\"id\":22}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/5/networks/10.0.0.0/24/"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json b/tests/api_tests/tests/api_tests/cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json index 0687c874..4b86c798 100644 --- a/tests/api_tests/tests/api_tests/cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json +++ b/tests/api_tests/tests/api_tests/cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"unique_id\": \"uuid_custA_site1\", \"value\": 10, \"iterable\": 1}", "encoding": "utf-8"}, "headers": {"Content-Length": ["61"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=7XqV57gEz6oK4E4sfoqaRDScJVKhXUA8; sessionid=vx85yhad6wgrof6unhlpli0f2hbrhglz"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/itervalue/"}, "response": {"body": {"string": "{\"unique_id\":\"uuid_custA_site1\",\"iterable\":1,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/itervalue/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/itervalue/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 1}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sD4CcXAXHerBDExnN5GNDHp7Xj5Izbya; sessionid=2gufgzbn3tdlmsgdggk0icfkn6zi1wh3"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/itervalue/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":1,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/itervalue/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:35:47 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/itervalue/"}, "recorded_at": "2016-10-05T14:35:47"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json b/tests/api_tests/tests/api_tests/cassettes/f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json new file mode 100644 index 00000000..1f258e70 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":9,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=m2JaBP0BrhgtPDXBW0wRlpozGpEIiyli; expires=Thu, 05-Oct-2017 12:41:33 GMT; Max-Age=31449600; Path=/", "sessionid=1s928o7lvfqwg9z74ah4ogz9k8f4ib51; expires=Thu, 20-Oct-2016 12:41:33 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/iterable/9/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/iterable/"}, "recorded_at": "2016-10-06T12:41:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/f3fe397632a874f9bb32ccda0313de2633938b63.json b/tests/api_tests/tests/api_tests/cassettes/f3fe397632a874f9bb32ccda0313de2633938b63.json new file mode 100644 index 00000000..2ceb1a14 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/f3fe397632a874f9bb32ccda0313de2633938b63.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/32/parent/"}, "response": {"body": {"string": "{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/32/parent/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/f4fda071eb8ac67600e3a674f17e31bc2aa298d6.json b/tests/api_tests/tests/api_tests/cassettes/f4fda071eb8ac67600e3a674f17e31bc2aa298d6.json new file mode 100644 index 00000000..f21982f1 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/f4fda071eb8ac67600e3a674f17e31bc2aa298d6.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 6}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UFl1W0wjMeWEdWkqIF1Bw6Xj6m44mQQr; sessionid=kaaqgx1er446gahsdi2uww6kg6mjb5m1"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/itervalue/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":6,\"id\":12,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/itervalue/12/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:35:48 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/itervalue/"}, "recorded_at": "2016-10-05T14:35:48"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/f5d01c6d7cf05a4278dd5458a09e0b04788a0103.json b/tests/api_tests/tests/api_tests/cassettes/f5d01c6d7cf05a4278dd5458a09e0b04788a0103.json new file mode 100644 index 00000000..cb3711cd --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/f5d01c6d7cf05a4278dd5458a09e0b04788a0103.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/31/siblings/"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/31/siblings/"}, "recorded_at": "2016-09-21T01:06:02"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/31/siblings/?include_self=True"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/31/siblings/?include_self=True"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/f88bf65cf0371d4806fae9e1ff953f163ab0d803.json b/tests/api_tests/tests/api_tests/cassettes/f88bf65cf0371d4806fae9e1ff953f163ab0d803.json new file mode 100644 index 00000000..d16871c1 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/f88bf65cf0371d4806fae9e1ff953f163ab0d803.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=q8GGhuE1Dueo7kgW7Ul4VnDZZp8B5Kjk; sessionid=ugt61lak8mm8mwbgwy0nnokxa3x96h45"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/11/networks/1/closest_parent/"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"cidr\":\"u'1' does not appear to be an IPv4 or IPv6 network\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:08:51 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/11/networks/1/closest_parent/"}, "recorded_at": "2016-09-21T01:08:51"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/f89563819dcaf8721dcc05b5d25657de7e4a3a8d.json b/tests/api_tests/tests/api_tests/cassettes/f89563819dcaf8721dcc05b5d25657de7e4a3a8d.json new file mode 100644 index 00000000..c4d1c36a --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/f89563819dcaf8721dcc05b5d25657de7e4a3a8d.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custb01_key2\"}, \"value\": 103, \"iterable\": 3}", "encoding": "utf-8"}, "headers": {"Content-Length": ["76"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=iRn6tFq8uliu3wHJ0fsp5GyTQghOGCRS; sessionid=3up6x0aeqyzb6ivufr0lfy0bl9g3tu80"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":3,\"id\":9,\"value\":103}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/itervalues/9/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/itervalues/"}, "recorded_at": "2016-10-06T13:27:44"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=iRn6tFq8uliu3wHJ0fsp5GyTQghOGCRS; sessionid=3up6x0aeqyzb6ivufr0lfy0bl9g3tu80"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/itervalues/?attributes=service_key%3Dcustb01_key1"}, "response": {"body": {"string": "[{\"attributes\":{\"service_key\":\"custb01_key1\"},\"iterable\":2,\"id\":4,\"value\":12},{\"attributes\":{\"service_key\":\"custb01_key1\"},\"iterable\":3,\"id\":8,\"value\":102}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/itervalues/?attributes=service_key%3Dcustb01_key1"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json b/tests/api_tests/tests/api_tests/cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json index 89bee903..ef748a1a 100644 --- a/tests/api_tests/tests/api_tests/cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json +++ b/tests/api_tests/tests/api_tests/cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"unique_id\": \"uuid_custA_site1\", \"value\": 10, \"iterable\": 3}", "encoding": "utf-8"}, "headers": {"Content-Length": ["61"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fvGoS8xXPMC3ZPVmAw7URgFucdVZiSks; sessionid=c0mvyb8nf0o2z1hrxb6oa9jlpu0h806u"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/itervalue/"}, "response": {"body": {"string": "{\"unique_id\":\"uuid_custA_site1\",\"iterable\":3,\"id\":3,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/itervalue/3/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/itervalue/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 4}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Lv6SSGQMhjVBqUW85JFqwtnYZ4qUvwta; sessionid=sjp0x9th99km65jjz7lxz60vrh2e9jsw"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/itervalue/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":4,\"id\":10,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/itervalue/10/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:35:48 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/itervalue/"}, "recorded_at": "2016-10-05T14:35:48"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/fd0ebe116d422145e03dbb05c5d21d8f36ffe70f.json b/tests/api_tests/tests/api_tests/cassettes/fd0ebe116d422145e03dbb05c5d21d8f36ffe70f.json new file mode 100644 index 00000000..159ddbdf --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/fd0ebe116d422145e03dbb05c5d21d8f36ffe70f.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=q8GGhuE1Dueo7kgW7Ul4VnDZZp8B5Kjk; sessionid=ugt61lak8mm8mwbgwy0nnokxa3x96h45"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/networks/11/closest_parent.bogus"}, "response": {"body": {"string": "{\"error\":{\"message\":\"Endpoint not found.\",\"code\":404}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:08:51 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "NOT FOUND", "code": 404}, "url": "http://localhost:8081/api/networks/11/closest_parent.bogus"}, "recorded_at": "2016-09-21T01:08:51"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/fdbaea7fe81fb647256ead8b8076b3fa39ae57ec.json b/tests/api_tests/tests/api_tests/cassettes/fdbaea7fe81fb647256ead8b8076b3fa39ae57ec.json new file mode 100644 index 00000000..d253cbf8 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/fdbaea7fe81fb647256ead8b8076b3fa39ae57ec.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.0.0.0/8/root/"}, "response": {"body": {"string": "{\"error\":{\"message\":\"No such Network found at (site_id, id) = (8, None)\",\"code\":404}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "NOT FOUND", "code": 404}, "url": "http://localhost:8081/api/sites/8/networks/10.0.0.0/8/root/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/ffd4529bd2b59140eec7020beac2eb51f67ba602.json b/tests/api_tests/tests/api_tests/cassettes/ffd4529bd2b59140eec7020beac2eb51f67ba602.json new file mode 100644 index 00000000..0422f1d0 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/ffd4529bd2b59140eec7020beac2eb51f67ba602.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"description\": \"test-iterable\", \"min_val\": 10, \"max_val\": 20, \"increment\": 1, \"id\": 5, \"name\": \"itr1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["103"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=6MUAPT23aYlB6zE7fkjN01lHnoEfzVWe; sessionid=sw7ozsq7pjzb8n5nyd1wulo122411f3w"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/3/iterable/5/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":5,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/iterable/5/"}, "recorded_at": "2016-10-06T12:41:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/model_tests/test_iterables.py b/tests/model_tests/test_iterables.py index 98b2ccff..44e2d73c 100644 --- a/tests/model_tests/test_iterables.py +++ b/tests/model_tests/test_iterables.py @@ -18,12 +18,12 @@ def test_creation(site): itr = models.Iterable.objects.create( + site = site, name='test-vlan', description='test vlan for testing', min_val = 50, max_val = 70, increment = 2, - site = site ) iterable = models.Iterable.objects.all() @@ -36,6 +36,7 @@ def test_creation(site): assert iterable[0].max_val == itr.max_val assert iterable[0].increment == itr.increment + def test_nextval(site): itr = models.Iterable.objects.create( name='auto-increment-test', @@ -45,11 +46,16 @@ def test_nextval(site): increment = 2, site = site ) + #Create the Attribute + models.Attribute.objects.create( + site=site, + resource_name='Itervalue', name='service_key' + ) #Create a test value and assign the min val to it - itrv1 = models.IterValue.objects.create( + itrv1 = models.Itervalue.objects.create( value = itr.get_next_value()[0], - unique_id='jasdgijn001', iterable=itr, + attributes={'service_key': 'cust01A_key1'}, site=site ) @@ -66,11 +72,17 @@ def test_valrange(site): increment = 10, site = site ) + #Create an attribute for the Itervalue + models.Attribute.objects.create( + site=site, + resource_name='Itervalue', name='service_key' + ) + #Create a test value and assign the min val to it - itrv0 = models.IterValue.objects.create( + itrv0 = models.Itervalue.objects.create( value = 10, - unique_id='jasdgijn001', iterable=itr, + attributes={'service_key': 'custA01_key1'}, site=site ) From 85c10c8bb045b123e0da81f2707a8124861bd4d1 Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Mon, 10 Oct 2016 17:54:26 -0400 Subject: [PATCH 21/31] All tests working --- bin/activate | 80 +++++++++ bin/activate.csh | 42 +++++ bin/activate.fish | 74 ++++++++ bin/activate_this.py | 34 ++++ bin/django-admin | 10 ++ bin/easy_install | 10 ++ bin/easy_install-2.7 | 11 ++ bin/easy_install-3.4 | 10 ++ bin/gunicorn | 10 ++ bin/gunicorn_django | 10 ++ bin/gunicorn_paster | 10 ++ bin/ipcluster | 10 ++ bin/ipcluster2 | 10 ++ bin/ipcontroller | 10 ++ bin/ipcontroller2 | 10 ++ bin/ipengine | 10 ++ bin/ipengine2 | 10 ++ bin/iptest | 10 ++ bin/iptest2 | 10 ++ bin/ipython | 10 ++ bin/ipython2 | 10 ++ bin/nsot-server | 10 ++ bin/pip | 11 ++ bin/pip2 | 11 ++ bin/pip2.7 | 11 ++ bin/py.test | 11 ++ bin/pytest | 11 ++ bin/python | Bin 0 -> 25152 bytes bin/python2 | 1 + bin/python2.7 | 1 + bin/snot-server | 10 ++ bin/static | 10 ++ bin/wheel | 11 ++ nsot/api/urls.py | 6 +- pip-selfcheck.json | 2 +- .../{test_iterable.py => test_iterables.py} | 0 tests/api_tests/test_itervalues.py | 2 +- ...5fecbc10de7af4bc5e9337d5f476142994568.json | 2 +- ...fbb5b10e3458f9cb36eb24c2dad5da7febf7e.json | 1 + ...ff7f34185571a2f648d36c457ce751f9e71e5.json | 2 +- ...97becd90041963d52a7bc2fe0a32eff1b8250.json | 2 +- ...1eac1cdfd49b2ede0aebd55763204f974bdd2.json | 2 +- ...29ddf21838a67b257b99cd646b5b632bf0240.json | 2 +- ...3d8843e034c7465037088edd7480e9b7eefaa.json | 2 +- ...3bda6f1cccbb63afa6a53385ad739959e7bdc.json | 2 +- ...c0c2c5dd3fb20222b80d3c9ef6bd8a51f2e66.json | 1 + ...35c88acbd2e01dca6bb8c688a6b5367141edd.json | 1 + ...11b6200d6511d81814c1bd5a8aba8f30ed0da.json | 2 +- ...6909f2572a95f6f8edf7ce341ecf1edcb79ad.json | 2 +- ...b46da621eb397704225646943bca8f7ebaf67.json | 2 +- ...ef3bb33ed168e15d7aea0b4dc510458799bcb.json | 2 +- ...3311dc341610e073890dc8ff28a65fd35d815.json | 2 +- ...d3c033871a72fd2c0264918832f7ee1c2793e.json | 1 + ...bad7234fd22e555fca4e1e661c06150594764.json | 2 +- ...1e78c8eb4ea24b812b2757d34f0425f62c4ce.json | 2 +- ...30cd3c7a6a655286e1ff2e4f18cb6b961d558.json | 2 +- ...0942f1ad3a714b8e9b5136374de2c77708332.json | 2 +- ...1d21d4bfdf0a306e2aa7d0d6c892825fd907b.json | 2 +- ...7d375ab4808960a60920ff3c6c258bbd47463.json | 2 +- ...5e416f64ed29422d3718056c7909240dec283.json | 2 +- ...42bff64de43747c29a669b078d3011e494ce0.json | 1 + ...2fe0784a357d6d3723d8af97fe8ce31e055b1.json | 1 + ...92ec5adcc705efd02698886f997e750efdfd6.json | 2 +- ...7bf578e29d120370ac72152d7f85c722827b1.json | 1 + ...91e45dfa16138c772576bc27720f4a236fe23.json | 2 +- ...d72e9eec58ace6e960c148dad4032e5cbe74c.json | 2 +- ...c33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json | 2 +- ...a31734a3996d9000e28677df02c7fb6fce82e.json | 1 + ...8542c24682f1630f1068f09423a1504d0d054.json | 2 +- ...c5029f7d582d42cc9c979ad541df4c4cabcd9.json | 1 + ...d631c466c9febf8dfbcd1246122265290db14.json | 1 + ...1c628b50168e5044a6dc8e3034ef9312f44c6.json | 2 +- ...95e49f6f87bba0c41bf27c3beab3efd9da5a9.json | 2 +- ...dd628a3eb7e38539910dfe4779c436f26fbcf.json | 2 +- ...8a8939946014bbb652453058fd33ef7a8320e.json | 2 +- ...9b1813ccf9f5f378c4b0c94bb02765f90d513.json | 1 + ...c16e99e6840d0b9309e5e2f140d779be5bb4d.json | 1 + ...495323d11fad28e7e5e2054e5b0a25ec0952f.json | 1 + ...9564d9cc80ce669ba9d87617147b0fdf9e950.json | 2 +- ...39450914a324dd6fe58d1530c6e7cbc92668d.json | 2 +- ...4741009c2752d2974626d95219cb08ed03332.json | 1 + ...958d4a89a7cf79ed11404f4294c471ff25aff.json | 2 +- ...ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json | 2 +- ...629ed91285cf74bf94815135d5cc474ee2cdd.json | 1 + ...34cd954fc463c1cee7195696c5662b0da623a.json | 2 +- ...b95ea14a08d6a6bcfc780eec553cc3f4bded7.json | 1 + ...ce35610f08937e315c7ca43d88e3d52cae87d.json | 2 +- ...917cb3dae1fb80ec025a88502d8930abad8ed.json | 1 + ...0ca9382553634281ae742531723e2b84d8b34.json | 2 +- ...e3fb07643a66ab8033584bea01b2a56d2a4a7.json | 1 + ...fa48163eeae1ce7216449002c354cfbb6159c.json | 2 +- ...58e2cf97d7a523c5852924a577f5c8b892866.json | 2 +- ...2f0fadfb95294453118f64f6a030a09446bf9.json | 2 +- ...9fab30966b59910a1ea5aa837e1e1c9c1c7ff.json | 2 +- ...396a0e9f44951ae8d3dd39b07e3b4ac792cdc.json | 2 +- ...de6e6562d496610045848634ac64d824062a5.json | 1 + ...b60510140254a7ec730a2383e740cf8048a1d.json | 2 +- ...5ea30273120cefcc90a7f78227fc9af2c4f25.json | 1 + ...b0d065d59bf08356f8637dc33c6aafed9083a.json | 1 + ...faf06458551f5d928717e1a227e44b1a4b03b.json | 1 + ...c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json | 2 +- ...454793819b78cee2c3266c61a2ef84dd8e291.json | 1 + ...563819dcaf8721dcc05b5d25657de7e4a3a8d.json | 2 +- ...4529bd2b59140eec7020beac2eb51f67ba602.json | 2 +- vagrant/index.html | 163 ++++++++++++++++++ vagrant/index.html.1 | 163 ++++++++++++++++++ 106 files changed, 897 insertions(+), 49 deletions(-) create mode 100644 bin/activate create mode 100644 bin/activate.csh create mode 100644 bin/activate.fish create mode 100644 bin/activate_this.py create mode 100755 bin/django-admin create mode 100755 bin/easy_install create mode 100755 bin/easy_install-2.7 create mode 100755 bin/easy_install-3.4 create mode 100755 bin/gunicorn create mode 100755 bin/gunicorn_django create mode 100755 bin/gunicorn_paster create mode 100755 bin/ipcluster create mode 100755 bin/ipcluster2 create mode 100755 bin/ipcontroller create mode 100755 bin/ipcontroller2 create mode 100755 bin/ipengine create mode 100755 bin/ipengine2 create mode 100755 bin/iptest create mode 100755 bin/iptest2 create mode 100755 bin/ipython create mode 100755 bin/ipython2 create mode 100755 bin/nsot-server create mode 100755 bin/pip create mode 100755 bin/pip2 create mode 100755 bin/pip2.7 create mode 100755 bin/py.test create mode 100755 bin/pytest create mode 100755 bin/python create mode 120000 bin/python2 create mode 120000 bin/python2.7 create mode 100755 bin/snot-server create mode 100755 bin/static create mode 100755 bin/wheel rename tests/api_tests/{test_iterable.py => test_iterables.py} (100%) create mode 100644 tests/api_tests/tests/api_tests/cassettes/0cbfbb5b10e3458f9cb36eb24c2dad5da7febf7e.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/2ffc0c2c5dd3fb20222b80d3c9ef6bd8a51f2e66.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/35035c88acbd2e01dca6bb8c688a6b5367141edd.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/4c9d3c033871a72fd2c0264918832f7ee1c2793e.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/70142bff64de43747c29a669b078d3011e494ce0.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/7dd2fe0784a357d6d3723d8af97fe8ce31e055b1.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/8127bf578e29d120370ac72152d7f85c722827b1.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/8f6a31734a3996d9000e28677df02c7fb6fce82e.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/929c5029f7d582d42cc9c979ad541df4c4cabcd9.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/92ed631c466c9febf8dfbcd1246122265290db14.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/a219b1813ccf9f5f378c4b0c94bb02765f90d513.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/a2fc16e99e6840d0b9309e5e2f140d779be5bb4d.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/a48495323d11fad28e7e5e2054e5b0a25ec0952f.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/ac14741009c2752d2974626d95219cb08ed03332.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/baf629ed91285cf74bf94815135d5cc474ee2cdd.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/c0cb95ea14a08d6a6bcfc780eec553cc3f4bded7.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/c27917cb3dae1fb80ec025a88502d8930abad8ed.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/cbbe3fb07643a66ab8033584bea01b2a56d2a4a7.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/d94de6e6562d496610045848634ac64d824062a5.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/edd5ea30273120cefcc90a7f78227fc9af2c4f25.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/ee0b0d065d59bf08356f8637dc33c6aafed9083a.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/efdfaf06458551f5d928717e1a227e44b1a4b03b.json create mode 100644 tests/api_tests/tests/api_tests/cassettes/f4f454793819b78cee2c3266c61a2ef84dd8e291.json create mode 100644 vagrant/index.html create mode 100644 vagrant/index.html.1 diff --git a/bin/activate b/bin/activate new file mode 100644 index 00000000..2786526a --- /dev/null +++ b/bin/activate @@ -0,0 +1,80 @@ +# This file must be used with "source bin/activate" *from bash* +# you cannot run it directly + +deactivate () { + unset pydoc + + # reset old environment variables + if [ -n "${_OLD_VIRTUAL_PATH-}" ] ; then + PATH="$_OLD_VIRTUAL_PATH" + export PATH + unset _OLD_VIRTUAL_PATH + fi + if [ -n "${_OLD_VIRTUAL_PYTHONHOME-}" ] ; then + PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME" + export PYTHONHOME + unset _OLD_VIRTUAL_PYTHONHOME + fi + + # This should detect bash and zsh, which have a hash command that must + # be called to get it to forget past commands. Without forgetting + # past commands the $PATH changes we made may not be respected + if [ -n "${BASH-}" -o -n "${ZSH_VERSION-}" ] ; then + hash -r 2>/dev/null + fi + + if [ -n "${_OLD_VIRTUAL_PS1-}" ] ; then + PS1="$_OLD_VIRTUAL_PS1" + export PS1 + unset _OLD_VIRTUAL_PS1 + fi + + unset VIRTUAL_ENV + if [ ! "${1-}" = "nondestructive" ] ; then + # Self destruct! + unset -f deactivate + fi +} + +# unset irrelevant variables +deactivate nondestructive + +VIRTUAL_ENV="/Users/ajaychenampara/vagrant/nsot" +export VIRTUAL_ENV + +_OLD_VIRTUAL_PATH="$PATH" +PATH="$VIRTUAL_ENV/bin:$PATH" +export PATH + +# unset PYTHONHOME if set +# this will fail if PYTHONHOME is set to the empty string (which is bad anyway) +# could use `if (set -u; : $PYTHONHOME) ;` in bash +if [ -n "${PYTHONHOME-}" ] ; then + _OLD_VIRTUAL_PYTHONHOME="$PYTHONHOME" + unset PYTHONHOME +fi + +if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT-}" ] ; then + _OLD_VIRTUAL_PS1="$PS1" + if [ "x" != x ] ; then + PS1="$PS1" + else + if [ "`basename \"$VIRTUAL_ENV\"`" = "__" ] ; then + # special case for Aspen magic directories + # see http://www.zetadev.com/software/aspen/ + PS1="[`basename \`dirname \"$VIRTUAL_ENV\"\``] $PS1" + else + PS1="(`basename \"$VIRTUAL_ENV\"`)$PS1" + fi + fi + export PS1 +fi + +alias pydoc="python -m pydoc" + +# This should detect bash and zsh, which have a hash command that must +# be called to get it to forget past commands. Without forgetting +# past commands the $PATH changes we made may not be respected +if [ -n "${BASH-}" -o -n "${ZSH_VERSION-}" ] ; then + hash -r 2>/dev/null +fi diff --git a/bin/activate.csh b/bin/activate.csh new file mode 100644 index 00000000..8976c78c --- /dev/null +++ b/bin/activate.csh @@ -0,0 +1,42 @@ +# This file must be used with "source bin/activate.csh" *from csh*. +# You cannot run it directly. +# Created by Davide Di Blasi . + +alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc' + +# Unset irrelevant variables. +deactivate nondestructive + +setenv VIRTUAL_ENV "/Users/ajaychenampara/vagrant/nsot" + +set _OLD_VIRTUAL_PATH="$PATH" +setenv PATH "$VIRTUAL_ENV/bin:$PATH" + + + +if ("" != "") then + set env_name = "" +else + if (`basename "$VIRTUAL_ENV"` == "__") then + # special case for Aspen magic directories + # see http://www.zetadev.com/software/aspen/ + set env_name = `basename \`dirname "$VIRTUAL_ENV"\`` + else + set env_name = `basename "$VIRTUAL_ENV"` + endif +endif + +# Could be in a non-interactive environment, +# in which case, $prompt is undefined and we wouldn't +# care about the prompt anyway. +if ( $?prompt ) then + set _OLD_VIRTUAL_PROMPT="$prompt" + set prompt = "[$env_name] $prompt" +endif + +unset env_name + +alias pydoc python -m pydoc + +rehash + diff --git a/bin/activate.fish b/bin/activate.fish new file mode 100644 index 00000000..5947d713 --- /dev/null +++ b/bin/activate.fish @@ -0,0 +1,74 @@ +# This file must be used with "source bin/activate.fish" *from fish* (http://fishshell.com) +# you cannot run it directly + +function deactivate -d "Exit virtualenv and return to normal shell environment" + # reset old environment variables + if test -n "$_OLD_VIRTUAL_PATH" + set -gx PATH $_OLD_VIRTUAL_PATH + set -e _OLD_VIRTUAL_PATH + end + if test -n "$_OLD_VIRTUAL_PYTHONHOME" + set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME + set -e _OLD_VIRTUAL_PYTHONHOME + end + + if test -n "$_OLD_FISH_PROMPT_OVERRIDE" + # set an empty local fish_function_path, so fish_prompt doesn't automatically reload + set -l fish_function_path + # erase the virtualenv's fish_prompt function, and restore the original + functions -e fish_prompt + functions -c _old_fish_prompt fish_prompt + functions -e _old_fish_prompt + set -e _OLD_FISH_PROMPT_OVERRIDE + end + + set -e VIRTUAL_ENV + if test "$argv[1]" != "nondestructive" + # Self destruct! + functions -e deactivate + end +end + +# unset irrelevant variables +deactivate nondestructive + +set -gx VIRTUAL_ENV "/Users/ajaychenampara/vagrant/nsot" + +set -gx _OLD_VIRTUAL_PATH $PATH +set -gx PATH "$VIRTUAL_ENV/bin" $PATH + +# unset PYTHONHOME if set +if set -q PYTHONHOME + set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME + set -e PYTHONHOME +end + +if test -z "$VIRTUAL_ENV_DISABLE_PROMPT" + # fish uses a function instead of an env var to generate the prompt. + + # copy the current fish_prompt function as the function _old_fish_prompt + functions -c fish_prompt _old_fish_prompt + + # with the original prompt function copied, we can override with our own. + function fish_prompt + # Prompt override? + if test -n "" + printf "%s%s" "" (set_color normal) + _old_fish_prompt + return + end + # ...Otherwise, prepend env + set -l _checkbase (basename "$VIRTUAL_ENV") + if test $_checkbase = "__" + # special case for Aspen magic directories + # see http://www.zetadev.com/software/aspen/ + printf "%s[%s]%s " (set_color -b blue white) (basename (dirname "$VIRTUAL_ENV")) (set_color normal) + _old_fish_prompt + else + printf "%s(%s)%s" (set_color -b blue white) (basename "$VIRTUAL_ENV") (set_color normal) + _old_fish_prompt + end + end + + set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV" +end diff --git a/bin/activate_this.py b/bin/activate_this.py new file mode 100644 index 00000000..f18193bf --- /dev/null +++ b/bin/activate_this.py @@ -0,0 +1,34 @@ +"""By using execfile(this_file, dict(__file__=this_file)) you will +activate this virtualenv environment. + +This can be used when you must use an existing Python interpreter, not +the virtualenv bin/python +""" + +try: + __file__ +except NameError: + raise AssertionError( + "You must run this like execfile('path/to/activate_this.py', dict(__file__='path/to/activate_this.py'))") +import sys +import os + +old_os_path = os.environ.get('PATH', '') +os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + os.pathsep + old_os_path +base = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +if sys.platform == 'win32': + site_packages = os.path.join(base, 'Lib', 'site-packages') +else: + site_packages = os.path.join(base, 'lib', 'python%s' % sys.version[:3], 'site-packages') +prev_sys_path = list(sys.path) +import site +site.addsitedir(site_packages) +sys.real_prefix = sys.prefix +sys.prefix = base +# Move the added items to the front of the path: +new_sys_path = [] +for item in list(sys.path): + if item not in prev_sys_path: + new_sys_path.append(item) + sys.path.remove(item) +sys.path[:0] = new_sys_path diff --git a/bin/django-admin b/bin/django-admin new file mode 100755 index 00000000..db4026f8 --- /dev/null +++ b/bin/django-admin @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'Django==1.8.11','console_scripts','django-admin' +__requires__ = 'Django==1.8.11' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('Django==1.8.11', 'console_scripts', 'django-admin')() + ) diff --git a/bin/easy_install b/bin/easy_install new file mode 100755 index 00000000..dba97f51 --- /dev/null +++ b/bin/easy_install @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==18.2','console_scripts','easy_install' +__requires__ = 'setuptools==18.2' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('setuptools==18.2', 'console_scripts', 'easy_install')() + ) diff --git a/bin/easy_install-2.7 b/bin/easy_install-2.7 new file mode 100755 index 00000000..ae9642ea --- /dev/null +++ b/bin/easy_install-2.7 @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from setuptools.command.easy_install import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/easy_install-3.4 b/bin/easy_install-3.4 new file mode 100755 index 00000000..874b2b33 --- /dev/null +++ b/bin/easy_install-3.4 @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==18.2','console_scripts','easy_install-3.4' +__requires__ = 'setuptools==18.2' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('setuptools==18.2', 'console_scripts', 'easy_install-3.4')() + ) diff --git a/bin/gunicorn b/bin/gunicorn new file mode 100755 index 00000000..14606447 --- /dev/null +++ b/bin/gunicorn @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'gunicorn==19.3.0','console_scripts','gunicorn' +__requires__ = 'gunicorn==19.3.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('gunicorn==19.3.0', 'console_scripts', 'gunicorn')() + ) diff --git a/bin/gunicorn_django b/bin/gunicorn_django new file mode 100755 index 00000000..c248ee95 --- /dev/null +++ b/bin/gunicorn_django @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'gunicorn==19.3.0','console_scripts','gunicorn_django' +__requires__ = 'gunicorn==19.3.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('gunicorn==19.3.0', 'console_scripts', 'gunicorn_django')() + ) diff --git a/bin/gunicorn_paster b/bin/gunicorn_paster new file mode 100755 index 00000000..3c557e4e --- /dev/null +++ b/bin/gunicorn_paster @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'gunicorn==19.3.0','console_scripts','gunicorn_paster' +__requires__ = 'gunicorn==19.3.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('gunicorn==19.3.0', 'console_scripts', 'gunicorn_paster')() + ) diff --git a/bin/ipcluster b/bin/ipcluster new file mode 100755 index 00000000..468558c6 --- /dev/null +++ b/bin/ipcluster @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipcluster' +__requires__ = 'ipython==3.1.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('ipython==3.1.0', 'console_scripts', 'ipcluster')() + ) diff --git a/bin/ipcluster2 b/bin/ipcluster2 new file mode 100755 index 00000000..8c9a0f6e --- /dev/null +++ b/bin/ipcluster2 @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipcluster2' +__requires__ = 'ipython==3.1.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('ipython==3.1.0', 'console_scripts', 'ipcluster2')() + ) diff --git a/bin/ipcontroller b/bin/ipcontroller new file mode 100755 index 00000000..a7a23330 --- /dev/null +++ b/bin/ipcontroller @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipcontroller' +__requires__ = 'ipython==3.1.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('ipython==3.1.0', 'console_scripts', 'ipcontroller')() + ) diff --git a/bin/ipcontroller2 b/bin/ipcontroller2 new file mode 100755 index 00000000..3a50a215 --- /dev/null +++ b/bin/ipcontroller2 @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipcontroller2' +__requires__ = 'ipython==3.1.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('ipython==3.1.0', 'console_scripts', 'ipcontroller2')() + ) diff --git a/bin/ipengine b/bin/ipengine new file mode 100755 index 00000000..a91727eb --- /dev/null +++ b/bin/ipengine @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipengine' +__requires__ = 'ipython==3.1.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('ipython==3.1.0', 'console_scripts', 'ipengine')() + ) diff --git a/bin/ipengine2 b/bin/ipengine2 new file mode 100755 index 00000000..4e39382d --- /dev/null +++ b/bin/ipengine2 @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipengine2' +__requires__ = 'ipython==3.1.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('ipython==3.1.0', 'console_scripts', 'ipengine2')() + ) diff --git a/bin/iptest b/bin/iptest new file mode 100755 index 00000000..1072172f --- /dev/null +++ b/bin/iptest @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','iptest' +__requires__ = 'ipython==3.1.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('ipython==3.1.0', 'console_scripts', 'iptest')() + ) diff --git a/bin/iptest2 b/bin/iptest2 new file mode 100755 index 00000000..a5e8f2c3 --- /dev/null +++ b/bin/iptest2 @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','iptest2' +__requires__ = 'ipython==3.1.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('ipython==3.1.0', 'console_scripts', 'iptest2')() + ) diff --git a/bin/ipython b/bin/ipython new file mode 100755 index 00000000..ba64410c --- /dev/null +++ b/bin/ipython @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipython' +__requires__ = 'ipython==3.1.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('ipython==3.1.0', 'console_scripts', 'ipython')() + ) diff --git a/bin/ipython2 b/bin/ipython2 new file mode 100755 index 00000000..0239a9dc --- /dev/null +++ b/bin/ipython2 @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipython2' +__requires__ = 'ipython==3.1.0' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('ipython==3.1.0', 'console_scripts', 'ipython2')() + ) diff --git a/bin/nsot-server b/bin/nsot-server new file mode 100755 index 00000000..cd977f25 --- /dev/null +++ b/bin/nsot-server @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'nsot==1.0.1','console_scripts','nsot-server' +__requires__ = 'nsot==1.0.1' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('nsot==1.0.1', 'console_scripts', 'nsot-server')() + ) diff --git a/bin/pip b/bin/pip new file mode 100755 index 00000000..2e8bb4e3 --- /dev/null +++ b/bin/pip @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from pip import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/pip2 b/bin/pip2 new file mode 100755 index 00000000..2e8bb4e3 --- /dev/null +++ b/bin/pip2 @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from pip import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/pip2.7 b/bin/pip2.7 new file mode 100755 index 00000000..2e8bb4e3 --- /dev/null +++ b/bin/pip2.7 @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from pip import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/py.test b/bin/py.test new file mode 100755 index 00000000..33a369b7 --- /dev/null +++ b/bin/py.test @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from pytest import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/pytest b/bin/pytest new file mode 100755 index 00000000..33a369b7 --- /dev/null +++ b/bin/pytest @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from pytest import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/python b/bin/python new file mode 100755 index 0000000000000000000000000000000000000000..947e5658c0ca209d0afe940788365173d22802a8 GIT binary patch literal 25152 zcmeHPZEPGz8J-JveN7EHM=qqrDVJcQP^3F2jnfEd@P%BkRmXAsMM^%Fv%Se3+=sQd zPVD|bhCq@NJ;_24MXkbFGP?CyDQ zZ6_5Fl}PU^&&>NV^X|+ud(zI#JHEbr`HE6%15y*xhm?w-*uDcK5 zARq_`0)l`bAP5Kof`A|(2nYg#fFK|U++zs5@y|amy9wmQu z$uI^IUrK%@Ie6GNIBpZHLu~g9GQ${79v${oVjHg=N_?PhKRpUJIzH}$0zS~#NSoP7 z)6#PNIOgD^2l_eq;KoUfTpyGTW4vfvnfz(j80^Ol`1m7iH{iohet(8Bl|P%wPZ*i} zsRAkmeawHt>Bs!0KtFsAImQLu_CR7d;WI?Rd-LJW1vYg zp{>8q#E*$&7}?bAe1xM)Z9%Rip_~58hvJLBc zv|XuLRMB?0SCOdmEUHL5qDoDmdlrL;k>LSVqkOq)Q^zS9s_xea% zkkV)$m|9(hx;7+kq{XL-Ry>;-i%-mC*_V$au@5i5di?RWU+sD2XKHI?e&NM$@qOhO z)C1@l(xaYC-ARlEV`aOhzytY=qe!%|zZ;v7BXyh8=J=GI8q1o-WXev*W3hN_V8%`t z@=E8iQ&uWxo-J5kkB^#GF;mDFn{eQi{81#O;Fai?OuFEeJPteN;h@5#mZ7YmkourQUMNZIJYT760c>cIb}kcd?! z>deolU77PLBnSusf`A|(2nYg#!2bk+k!9%v7jFO(dvp|rcb(nS6^wZHLc|AvO;3yt_rb6PCjGu;posF^)#j7Nu@kRh6c|IR9>dA+ofRXf5_=FK|i7kRa#Rp(oD-iAEgpjm}{ zj^B%F=~lH`O=E?lmfj(UHIG{Q1GyNvUz6KM?ib_^k(&oMUdY8#lapC9mNSdR)M+y| zQOKn-d9`BLKXhQow9aJ4&0=h5+{#SaSg!S@@~5XzeWYmms(L<(nbY}{J!P$Fo66-< zR_19_J(V0%edZZ6tNIHz+^a)Q7nB-J4i5Dm?oSRH15XY29PT$tlYOGv(Yh0ePQ`{ zxtoWP&H?xs&Yp1qe#BC9$_lr18v`@OA?~3-Y~I{$q>5SNlx3QfBd(k`&r)o4#iE&? zpuD9f+Z5X%7ERmCpJ^ZI?>)M!v-2^iRmd=MX~Q|4G;#i(;^RNYEsg)0e*W+^Zkebv zNS{aApG-C408(uV;j|EcJR?N~U8lpxbCU^5-G{wCKH=k^^zp+!-t_U@d*SmK@4)kM z?~MC?@SyJX>@=>03g+TaYTQU#Rso0e-o&g-iRL&Nn$gqXa<*Cp{i-RqQWMr^-F`H_ZM7$o*V7~`TNEB^yU;S`g8lc3=!8~Co6*} z`~7+QJ&skWmETq1UPIIwXSX*H$RtmuAB}_7;=gkE?m2{^V}zB5HLFA+e--7dThcA< z70A5ju&@m_l>g~Hhl^+*c;(>D(M3_NbLEzwf~L6%qsl0YN|z5CjB) z4;q1yp3=?4=umHId1tk96TRsvz1CCi`a%d?`N1PBN{f{nG?cq?j@VcFd*zy=IqTHp zy=vCGR?XlGsR4;(Fn^5JvF)qWe=oz*M}+)Z+Y|xc|JW2khK^^S9@o V4g2K9I(X;BAK?7}^?t4e{2Rf%y59f* literal 0 HcmV?d00001 diff --git a/bin/python2 b/bin/python2 new file mode 120000 index 00000000..d8654aa0 --- /dev/null +++ b/bin/python2 @@ -0,0 +1 @@ +python \ No newline at end of file diff --git a/bin/python2.7 b/bin/python2.7 new file mode 120000 index 00000000..d8654aa0 --- /dev/null +++ b/bin/python2.7 @@ -0,0 +1 @@ +python \ No newline at end of file diff --git a/bin/snot-server b/bin/snot-server new file mode 100755 index 00000000..a9dd3ffd --- /dev/null +++ b/bin/snot-server @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'nsot==1.0.1','console_scripts','snot-server' +__requires__ = 'nsot==1.0.1' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('nsot==1.0.1', 'console_scripts', 'snot-server')() + ) diff --git a/bin/static b/bin/static new file mode 100755 index 00000000..f0dcb186 --- /dev/null +++ b/bin/static @@ -0,0 +1,10 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'static3==0.6.1','console_scripts','static' +__requires__ = 'static3==0.6.1' +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.exit( + load_entry_point('static3==0.6.1', 'console_scripts', 'static')() + ) diff --git a/bin/wheel b/bin/wheel new file mode 100755 index 00000000..2278b9fa --- /dev/null +++ b/bin/wheel @@ -0,0 +1,11 @@ +#!/Users/ajaychenampara/vagrant/nsot/bin/python + +# -*- coding: utf-8 -*- +import re +import sys + +from wheel.tool import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/nsot/api/urls.py b/nsot/api/urls.py index 4b06f353..be46bc50 100644 --- a/nsot/api/urls.py +++ b/nsot/api/urls.py @@ -19,8 +19,8 @@ router.register(r'networks', views.NetworkViewSet) router.register(r'users', views.UserViewSet) router.register(r'values', views.ValueViewSet) -router.register(r'iterable', views.IterableViewSet) -router.register(r'itervalue', views.ItervalueViewSet) +router.register(r'iterables', views.IterableViewSet) +router.register(r'itervalues', views.ItervalueViewSet) # Nested router for resources under /sites sites_router = routers.BulkNestedRouter( @@ -34,7 +34,7 @@ sites_router.register(r'interfaces', views.InterfaceViewSet) sites_router.register(r'networks', views.NetworkViewSet) sites_router.register(r'values', views.ValueViewSet) -sites_router.register(r'iterable', views.IterableViewSet) +sites_router.register(r'iterables', views.IterableViewSet) sites_router.register(r'itervalues', views.ItervalueViewSet) # Wire up our API using automatic URL routing. diff --git a/pip-selfcheck.json b/pip-selfcheck.json index 95cf50ec..5eb78a0c 100644 --- a/pip-selfcheck.json +++ b/pip-selfcheck.json @@ -1 +1 @@ -{"last_check":"2016-09-20T17:24:08Z","pypi_version":"8.1.2"} \ No newline at end of file +{"last_check":"2016-10-06T19:17:00Z","pypi_version":"8.1.2"} \ No newline at end of file diff --git a/tests/api_tests/test_iterable.py b/tests/api_tests/test_iterables.py similarity index 100% rename from tests/api_tests/test_iterable.py rename to tests/api_tests/test_iterables.py diff --git a/tests/api_tests/test_itervalues.py b/tests/api_tests/test_itervalues.py index 46a40246..c8b3de57 100644 --- a/tests/api_tests/test_itervalues.py +++ b/tests/api_tests/test_itervalues.py @@ -211,7 +211,7 @@ def test_skey_deletion(client, site): itrval_resp = client.create(itrval_uri, iterable=itr2['id'], value=nval, attributes={'service_key': 'custa01_key2'}) # create the iterval #create the next value nval = client.get(reverse('iterable-next-value', args=(site.id, itr2['id']))).json()[0] #get the next value to assign to the itervalue - itrval_resp = client.create(itrval_uri, iterable=itr2['id'], value=nval, attributes={'service_key': 'custb01_key1'}) # create the iterval + itrval_resp = client.create(itrval_uri, iterable=itr2['id'], value=nval, attributes={'service_key': 'custb01_key1'}) # create the iterval 1 #create the next value nval = client.get(reverse('iterable-next-value', args=(site.id, itr2['id']))).json()[0] #get the next value to assign to the itervalue itrval_resp = client.create(itrval_uri, iterable=itr2['id'], value=nval, attributes={'service_key': 'custb01_key2'}) # create the iterval diff --git a/tests/api_tests/tests/api_tests/cassettes/0475fecbc10de7af4bc5e9337d5f476142994568.json b/tests/api_tests/tests/api_tests/cassettes/0475fecbc10de7af4bc5e9337d5f476142994568.json index 2e7148b7..3a11b0bb 100644 --- a/tests/api_tests/tests/api_tests/cassettes/0475fecbc10de7af4bc5e9337d5f476142994568.json +++ b/tests/api_tests/tests/api_tests/cassettes/0475fecbc10de7af4bc5e9337d5f476142994568.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=9JOFo3zBL5oYq5qEUrBp5guHXsRhAGkm; sessionid=lhjlb73mg7p464m1nbcgc9fvzp5ttq4m"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/itervalues/"}, "response": {"body": {"string": "[{\"attributes\":{\"service_key\":\"custa01_key1\"},\"iterable\":7,\"id\":13,\"value\":10},{\"attributes\":{\"service_key\":\"custa01_key2\"},\"iterable\":7,\"id\":14,\"value\":11},{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":7,\"id\":16,\"value\":13},{\"attributes\":{\"service_key\":\"custa01_key1\"},\"iterable\":8,\"id\":17,\"value\":100},{\"attributes\":{\"service_key\":\"custa01_key2\"},\"iterable\":8,\"id\":18,\"value\":101},{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":8,\"id\":20,\"value\":103}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:20:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/itervalues/"}, "recorded_at": "2016-10-06T13:20:34"}, {"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custb01_key2\"}, \"value\": 103, \"iterable\": 8}", "encoding": "utf-8"}, "headers": {"Content-Length": ["76"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UlL7J2p50Jr77KZp5iAn5OYmIHpUgYTa; sessionid=ncly2disbvl79qmk7jnlfllazf9oeqm3"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":8,\"id\":20,\"value\":103}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/itervalues/20/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/itervalues/"}, "recorded_at": "2016-10-06T13:27:45"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UlL7J2p50Jr77KZp5iAn5OYmIHpUgYTa; sessionid=ncly2disbvl79qmk7jnlfllazf9oeqm3"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/itervalues/?attributes=service_key%3Dcustb01_key1"}, "response": {"body": {"string": "[]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/itervalues/?attributes=service_key%3Dcustb01_key1"}, "recorded_at": "2016-10-06T13:27:45"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UlL7J2p50Jr77KZp5iAn5OYmIHpUgYTa; sessionid=ncly2disbvl79qmk7jnlfllazf9oeqm3"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/itervalues/?attributes=service_key%3Dcustb01_key2"}, "response": {"body": {"string": "[{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":7,\"id\":16,\"value\":13},{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":8,\"id\":20,\"value\":103}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/itervalues/?attributes=service_key%3Dcustb01_key2"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=9JOFo3zBL5oYq5qEUrBp5guHXsRhAGkm; sessionid=lhjlb73mg7p464m1nbcgc9fvzp5ttq4m"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/itervalues/"}, "response": {"body": {"string": "[{\"attributes\":{\"service_key\":\"custa01_key1\"},\"iterable\":7,\"id\":13,\"value\":10},{\"attributes\":{\"service_key\":\"custa01_key2\"},\"iterable\":7,\"id\":14,\"value\":11},{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":7,\"id\":16,\"value\":13},{\"attributes\":{\"service_key\":\"custa01_key1\"},\"iterable\":8,\"id\":17,\"value\":100},{\"attributes\":{\"service_key\":\"custa01_key2\"},\"iterable\":8,\"id\":18,\"value\":101},{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":8,\"id\":20,\"value\":103}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:20:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/itervalues/"}, "recorded_at": "2016-10-06T13:20:34"}, {"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custb01_key2\"}, \"value\": 103, \"iterable\": 8}", "encoding": "utf-8"}, "headers": {"Content-Length": ["76"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=0jL0LvYu5EFws3K1kKTRXJQj6AKAy1AH; sessionid=8gzg7faljbwhb7un2wi458q4zom8bbr9"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":8,\"id\":20,\"value\":103}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/itervalues/20/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/itervalues/"}, "recorded_at": "2016-10-10T19:27:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=0jL0LvYu5EFws3K1kKTRXJQj6AKAy1AH; sessionid=8gzg7faljbwhb7un2wi458q4zom8bbr9"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/itervalues/?attributes=service_key%3Dcustb01_key1"}, "response": {"body": {"string": "[]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/itervalues/?attributes=service_key%3Dcustb01_key1"}, "recorded_at": "2016-10-10T19:27:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=0jL0LvYu5EFws3K1kKTRXJQj6AKAy1AH; sessionid=8gzg7faljbwhb7un2wi458q4zom8bbr9"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/itervalues/?attributes=service_key%3Dcustb01_key2"}, "response": {"body": {"string": "[{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":7,\"id\":16,\"value\":13},{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":8,\"id\":20,\"value\":103}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/itervalues/?attributes=service_key%3Dcustb01_key2"}, "recorded_at": "2016-10-10T19:27:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/0cbfbb5b10e3458f9cb36eb24c2dad5da7febf7e.json b/tests/api_tests/tests/api_tests/cassettes/0cbfbb5b10e3458f9cb36eb24c2dad5da7febf7e.json new file mode 100644 index 00000000..828e9789 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/0cbfbb5b10e3458f9cb36eb24c2dad5da7febf7e.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=0jL0LvYu5EFws3K1kKTRXJQj6AKAy1AH; sessionid=8gzg7faljbwhb7un2wi458q4zom8bbr9"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/iterables/7/next_value/"}, "response": {"body": {"string": "[13]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/iterables/7/next_value/"}, "recorded_at": "2016-10-10T19:27:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/0cdff7f34185571a2f648d36c457ce751f9e71e5.json b/tests/api_tests/tests/api_tests/cassettes/0cdff7f34185571a2f648d36c457ce751f9e71e5.json index 284c39ae..7f261ed9 100644 --- a/tests/api_tests/tests/api_tests/cassettes/0cdff7f34185571a2f648d36c457ce751f9e71e5.json +++ b/tests/api_tests/tests/api_tests/cassettes/0cdff7f34185571a2f648d36c457ce751f9e71e5.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UlL7J2p50Jr77KZp5iAn5OYmIHpUgYTa; sessionid=ncly2disbvl79qmk7jnlfllazf9oeqm3"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/6/itervalues/15/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/6/itervalues/15/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=0jL0LvYu5EFws3K1kKTRXJQj6AKAy1AH; sessionid=8gzg7faljbwhb7un2wi458q4zom8bbr9"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/6/itervalues/15/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/6/itervalues/15/"}, "recorded_at": "2016-10-10T19:27:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/11f97becd90041963d52a7bc2fe0a32eff1b8250.json b/tests/api_tests/tests/api_tests/cassettes/11f97becd90041963d52a7bc2fe0a32eff1b8250.json index b773e761..1998f1db 100644 --- a/tests/api_tests/tests/api_tests/cassettes/11f97becd90041963d52a7bc2fe0a32eff1b8250.json +++ b/tests/api_tests/tests/api_tests/cassettes/11f97becd90041963d52a7bc2fe0a32eff1b8250.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":6,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=XjwUIiPPmFZjlfEieDo2F46uRxZ7rwSO; expires=Thu, 05-Oct-2017 13:27:45 GMT; Max-Age=31449600; Path=/", "sessionid=avv2q45rkjpgt7ujizz0hrt69ku2spzn; expires=Thu, 20-Oct-2016 13:27:45 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/iterable/6/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/iterable/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":7,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=itIrWzqC1k23oDK2Vg3mt6dnXD3X3YMj; expires=Mon, 09-Oct-2017 14:11:03 GMT; Max-Age=31449600; Path=/", "sessionid=jcs0r67cdv1a55oaa0nhqdh9cx5k3fae; expires=Mon, 24-Oct-2016 14:11:03 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/iterable/7/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/iterable/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/1521eac1cdfd49b2ede0aebd55763204f974bdd2.json b/tests/api_tests/tests/api_tests/cassettes/1521eac1cdfd49b2ede0aebd55763204f974bdd2.json index b8c6c013..0452747d 100644 --- a/tests/api_tests/tests/api_tests/cassettes/1521eac1cdfd49b2ede0aebd55763204f974bdd2.json +++ b/tests/api_tests/tests/api_tests/cassettes/1521eac1cdfd49b2ede0aebd55763204f974bdd2.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=XjwUIiPPmFZjlfEieDo2F46uRxZ7rwSO; sessionid=avv2q45rkjpgt7ujizz0hrt69ku2spzn"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/5/iterable/6/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/5/iterable/6/next_value/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=itzuyr27PJqsA9C8Ttwk9kHPJeMOf2zm; sessionid=v8m9rkhq8gx03lf2u6wxgr9liyi6mmy9"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/5/iterable/6/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 19:32:55 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/5/iterable/6/next_value/"}, "recorded_at": "2016-10-06T19:32:55"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json b/tests/api_tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json index 0da74468..1696c383 100644 --- a/tests/api_tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json +++ b/tests/api_tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=1eoglWCHwPOtX9lw8Shi1D2LMcJ6ILfd; sessionid=004l48so04mei6dct18297tznrghglow"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterable/"}, "response": {"body": {"string": "[{\"description\":\"iterable1\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":2,\"name\":\"itr1\"},{\"description\":\"iterable2\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":3,\"name\":\"itr2\"},{\"description\":\"iterable3\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":4,\"name\":\"itr3\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterable/"}, "recorded_at": "2016-10-06T12:41:33"}, {"request": {"body": {"string": "{\"max_val\": 200, \"min_val\": 100, \"name\": \"itr2\", \"increment\": 1, \"description\": \"test-iterable2\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["97"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=iRn6tFq8uliu3wHJ0fsp5GyTQghOGCRS; sessionid=3up6x0aeqyzb6ivufr0lfy0bl9g3tu80"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable2\",\"min_val\":100,\"max_val\":200,\"increment\":1,\"id\":3,\"name\":\"itr2\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/iterable/3/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/iterable/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "[{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"iterable1\"}, {\"max_val\": 20, \"min_val\": 10, \"name\": \"itr2\", \"increment\": 1, \"description\": \"iterable2\"}, {\"max_val\": 20, \"min_val\": 10, \"name\": \"itr3\", \"increment\": 1, \"description\": \"iterable3\"}]", "encoding": "utf-8"}, "headers": {"Content-Length": ["276"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/iterable/"}, "response": {"body": {"string": "[{\"description\":\"iterable1\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":2,\"name\":\"itr1\"},{\"description\":\"iterable2\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":3,\"name\":\"itr2\"},{\"description\":\"iterable3\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":4,\"name\":\"itr3\"}]", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=OlegL2Cc5pLKJqmUW6vxgYvGRHp9Runq; expires=Mon, 09-Oct-2017 14:11:03 GMT; Max-Age=31449600; Path=/", "sessionid=vnwa0hhq01d9cy4qd2jd65h9yqsqr0p1; expires=Mon, 24-Oct-2016 14:11:03 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/iterable/"}, "recorded_at": "2016-10-10T14:11:03"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=OlegL2Cc5pLKJqmUW6vxgYvGRHp9Runq; sessionid=vnwa0hhq01d9cy4qd2jd65h9yqsqr0p1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterable/"}, "response": {"body": {"string": "[{\"description\":\"iterable1\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":2,\"name\":\"itr1\"},{\"description\":\"iterable2\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":3,\"name\":\"itr2\"},{\"description\":\"iterable3\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":4,\"name\":\"itr3\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterable/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/2113d8843e034c7465037088edd7480e9b7eefaa.json b/tests/api_tests/tests/api_tests/cassettes/2113d8843e034c7465037088edd7480e9b7eefaa.json index c50ebb1b..507d6a3d 100644 --- a/tests/api_tests/tests/api_tests/cassettes/2113d8843e034c7465037088edd7480e9b7eefaa.json +++ b/tests/api_tests/tests/api_tests/cassettes/2113d8843e034c7465037088edd7480e9b7eefaa.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UlL7J2p50Jr77KZp5iAn5OYmIHpUgYTa; sessionid=ncly2disbvl79qmk7jnlfllazf9oeqm3"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":6,\"id\":6,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/attributes/6/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/attributes/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=0jL0LvYu5EFws3K1kKTRXJQj6AKAy1AH; sessionid=8gzg7faljbwhb7un2wi458q4zom8bbr9"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":6,\"id\":6,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/attributes/6/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/attributes/"}, "recorded_at": "2016-10-10T19:27:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/2bf3bda6f1cccbb63afa6a53385ad739959e7bdc.json b/tests/api_tests/tests/api_tests/cassettes/2bf3bda6f1cccbb63afa6a53385ad739959e7bdc.json index 0a7a4854..600689b4 100644 --- a/tests/api_tests/tests/api_tests/cassettes/2bf3bda6f1cccbb63afa6a53385ad739959e7bdc.json +++ b/tests/api_tests/tests/api_tests/cassettes/2bf3bda6f1cccbb63afa6a53385ad739959e7bdc.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=XjwUIiPPmFZjlfEieDo2F46uRxZ7rwSO; sessionid=avv2q45rkjpgt7ujizz0hrt69ku2spzn"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":5,\"id\":5,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/attributes/5/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/attributes/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=9aFZO3kDSJYbffJMqYPEvxgy6shOfwTI; sessionid=sqa3b706n76novhkk7kd2xrkic4372jp"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":5,\"id\":5,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/attributes/5/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/attributes/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/2ffc0c2c5dd3fb20222b80d3c9ef6bd8a51f2e66.json b/tests/api_tests/tests/api_tests/cassettes/2ffc0c2c5dd3fb20222b80d3c9ef6bd8a51f2e66.json new file mode 100644 index 00000000..15f8a450 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/2ffc0c2c5dd3fb20222b80d3c9ef6bd8a51f2e66.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/iterables/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":6,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=9aFZO3kDSJYbffJMqYPEvxgy6shOfwTI; expires=Mon, 09-Oct-2017 19:27:32 GMT; Max-Age=31449600; Path=/", "sessionid=sqa3b706n76novhkk7kd2xrkic4372jp; expires=Mon, 24-Oct-2016 19:27:32 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/iterables/6/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/iterables/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/35035c88acbd2e01dca6bb8c688a6b5367141edd.json b/tests/api_tests/tests/api_tests/cassettes/35035c88acbd2e01dca6bb8c688a6b5367141edd.json new file mode 100644 index 00000000..2ade4e5a --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/35035c88acbd2e01dca6bb8c688a6b5367141edd.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YP1gl83MvjL1Jyr6P1EAJhyFAKuLANii; sessionid=svaa9bwf2rfqocu2pk36acb31bhmsqlc"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/6/iterables/8/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/6/iterables/8/"}, "recorded_at": "2016-10-10T14:19:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/3e511b6200d6511d81814c1bd5a8aba8f30ed0da.json b/tests/api_tests/tests/api_tests/cassettes/3e511b6200d6511d81814c1bd5a8aba8f30ed0da.json index 90618725..533d6392 100644 --- a/tests/api_tests/tests/api_tests/cassettes/3e511b6200d6511d81814c1bd5a8aba8f30ed0da.json +++ b/tests/api_tests/tests/api_tests/cassettes/3e511b6200d6511d81814c1bd5a8aba8f30ed0da.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UlL7J2p50Jr77KZp5iAn5OYmIHpUgYTa; sessionid=ncly2disbvl79qmk7jnlfllazf9oeqm3"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/iterable/8/next_value/"}, "response": {"body": {"string": "[103]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/iterable/8/next_value/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=AKmLn3bBq1PzrIBCgVkuYCeqPHWdbuxJ; sessionid=ym0v4bq5j3ej9qdv7421qjqtvbhwest8"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/iterable/8/next_value/"}, "response": {"body": {"string": "[103]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 19:32:55 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/iterable/8/next_value/"}, "recorded_at": "2016-10-06T19:32:55"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/3f16909f2572a95f6f8edf7ce341ecf1edcb79ad.json b/tests/api_tests/tests/api_tests/cassettes/3f16909f2572a95f6f8edf7ce341ecf1edcb79ad.json index d0bf9747..cd12194c 100644 --- a/tests/api_tests/tests/api_tests/cassettes/3f16909f2572a95f6f8edf7ce341ecf1edcb79ad.json +++ b/tests/api_tests/tests/api_tests/cassettes/3f16909f2572a95f6f8edf7ce341ecf1edcb79ad.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=kib9xqehCEGKpnYQ1j8C7slVF09qjKXc; sessionid=yadinva7mdetd55mnoxclkjb0w6b6hy1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/5/iterable/7/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/5/iterable/7/next_value/"}, "recorded_at": "2016-10-06T12:41:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=itIrWzqC1k23oDK2Vg3mt6dnXD3X3YMj; sessionid=jcs0r67cdv1a55oaa0nhqdh9cx5k3fae"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/5/iterable/7/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/5/iterable/7/next_value/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/467b46da621eb397704225646943bca8f7ebaf67.json b/tests/api_tests/tests/api_tests/cassettes/467b46da621eb397704225646943bca8f7ebaf67.json index 06a8c61c..71ba4af2 100644 --- a/tests/api_tests/tests/api_tests/cassettes/467b46da621eb397704225646943bca8f7ebaf67.json +++ b/tests/api_tests/tests/api_tests/cassettes/467b46da621eb397704225646943bca8f7ebaf67.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UlL7J2p50Jr77KZp5iAn5OYmIHpUgYTa; sessionid=ncly2disbvl79qmk7jnlfllazf9oeqm3"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/6/itervalues/19/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/6/itervalues/19/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=0jL0LvYu5EFws3K1kKTRXJQj6AKAy1AH; sessionid=8gzg7faljbwhb7un2wi458q4zom8bbr9"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/6/itervalues/19/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/6/itervalues/19/"}, "recorded_at": "2016-10-10T19:27:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json b/tests/api_tests/tests/api_tests/cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json index 8b27f752..cb409735 100644 --- a/tests/api_tests/tests/api_tests/cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json +++ b/tests/api_tests/tests/api_tests/cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=FBn2TezSJYjue2DD8NCWliyVU6nT8tK2; sessionid=15hnh0mr2peltqvvkqtubvtzu0nar270"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/6/iterable/8/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/6/iterable/8/"}, "recorded_at": "2016-10-06T12:41:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=3aIPlZilZfrjoEYCgORVH28qjrPQ34WJ; sessionid=ayjdxvaipnb28e7lkyfm7yy1eb13rwst"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/6/iterable/8/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/6/iterable/8/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/4693311dc341610e073890dc8ff28a65fd35d815.json b/tests/api_tests/tests/api_tests/cassettes/4693311dc341610e073890dc8ff28a65fd35d815.json index 8936cc96..1262ca5c 100644 --- a/tests/api_tests/tests/api_tests/cassettes/4693311dc341610e073890dc8ff28a65fd35d815.json +++ b/tests/api_tests/tests/api_tests/cassettes/4693311dc341610e073890dc8ff28a65fd35d815.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 6}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=XjwUIiPPmFZjlfEieDo2F46uRxZ7rwSO; sessionid=avv2q45rkjpgt7ujizz0hrt69ku2spzn"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":6,\"id\":12,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/itervalues/12/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/itervalues/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 6}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=9aFZO3kDSJYbffJMqYPEvxgy6shOfwTI; sessionid=sqa3b706n76novhkk7kd2xrkic4372jp"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":6,\"id\":12,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/itervalues/12/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/itervalues/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/4c9d3c033871a72fd2c0264918832f7ee1c2793e.json b/tests/api_tests/tests/api_tests/cassettes/4c9d3c033871a72fd2c0264918832f7ee1c2793e.json new file mode 100644 index 00000000..8c78998d --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/4c9d3c033871a72fd2c0264918832f7ee1c2793e.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=1xZ4UjoJpUayhBIpaQIJBs7C1CR2dwi0; sessionid=qbhgxjsbi3m40d7cdjy9nwja4z2m3v74"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterables/"}, "response": {"body": {"string": "[{\"description\":\"iterable1\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":2,\"name\":\"itr1\"},{\"description\":\"iterable2\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":3,\"name\":\"itr2\"},{\"description\":\"iterable3\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":4,\"name\":\"itr3\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterables/"}, "recorded_at": "2016-10-10T14:19:05"}, {"request": {"body": {"string": "{\"max_val\": 200, \"min_val\": 100, \"name\": \"itr2\", \"increment\": 1, \"description\": \"test-iterable2\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["97"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=uds5hegqoVgou4EOa94ibYMtfnZTA7TL; sessionid=kdxjm82imuic367ti0p2by2d97hugh4d"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/iterables/"}, "response": {"body": {"string": "{\"description\":\"test-iterable2\",\"min_val\":100,\"max_val\":200,\"increment\":1,\"id\":3,\"name\":\"itr2\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/iterables/3/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/iterables/"}, "recorded_at": "2016-10-10T19:27:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json b/tests/api_tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json index 73e164f6..17521d68 100644 --- a/tests/api_tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json +++ b/tests/api_tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":4,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=Hgn6y7kBK9c0uMVXE40cKgx4puZ5gxwS; expires=Thu, 05-Oct-2017 13:27:44 GMT; Max-Age=31449600; Path=/", "sessionid=sgqmo7jmoo53y70zff5wcd5ohir0pyq7; expires=Thu, 20-Oct-2016 13:27:44 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/iterable/4/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/iterable/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":5,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=mXmFqttn2Piolz9o78C9AQEi32cbOgCN; expires=Mon, 09-Oct-2017 14:11:03 GMT; Max-Age=31449600; Path=/", "sessionid=eg167vejrinycbdwv6ek1q8fah361fh4; expires=Mon, 24-Oct-2016 14:11:03 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/iterable/5/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/iterable/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/5c61e78c8eb4ea24b812b2757d34f0425f62c4ce.json b/tests/api_tests/tests/api_tests/cassettes/5c61e78c8eb4ea24b812b2757d34f0425f62c4ce.json index e4ef238c..fe76db1a 100644 --- a/tests/api_tests/tests/api_tests/cassettes/5c61e78c8eb4ea24b812b2757d34f0425f62c4ce.json +++ b/tests/api_tests/tests/api_tests/cassettes/5c61e78c8eb4ea24b812b2757d34f0425f62c4ce.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=OHOOoWTovPwZJv7kRtf5S2XFvpcZfnpf; sessionid=haw2ev08es5n35uatgh8sl6jkvwxs03h"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":4,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/attributes/4/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/attributes/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2u8dFVhUzxkTjS2HpyQDApv6kdhQ64aK; sessionid=8bxts0foa8pj8nsgept3ymk7932db89h"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":4,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/attributes/4/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/attributes/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/5f330cd3c7a6a655286e1ff2e4f18cb6b961d558.json b/tests/api_tests/tests/api_tests/cassettes/5f330cd3c7a6a655286e1ff2e4f18cb6b961d558.json index f3344a13..1e9413f2 100644 --- a/tests/api_tests/tests/api_tests/cassettes/5f330cd3c7a6a655286e1ff2e4f18cb6b961d558.json +++ b/tests/api_tests/tests/api_tests/cassettes/5f330cd3c7a6a655286e1ff2e4f18cb6b961d558.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=dFDn2eTCyL6dOFW8yajm18Axrb2lvCzP; sessionid=qvpsz14igjfnj9l50jvi35eyq7hqfa8m"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/itr1/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/itr1/"}, "recorded_at": "2016-10-06T12:41:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=J0O3IIX37Buf4TCZyzwBTkEYUPyIL7uk; sessionid=05y051o3yvkcz43631iu3uvwrfq7o7ou"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/itr1/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/itr1/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/65e0942f1ad3a714b8e9b5136374de2c77708332.json b/tests/api_tests/tests/api_tests/cassettes/65e0942f1ad3a714b8e9b5136374de2c77708332.json index b10b8b28..e565ccfa 100644 --- a/tests/api_tests/tests/api_tests/cassettes/65e0942f1ad3a714b8e9b5136374de2c77708332.json +++ b/tests/api_tests/tests/api_tests/cassettes/65e0942f1ad3a714b8e9b5136374de2c77708332.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 200, \"min_val\": 100, \"name\": \"itr2\", \"increment\": 1, \"description\": \"test-iterable2\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["97"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UlL7J2p50Jr77KZp5iAn5OYmIHpUgYTa; sessionid=ncly2disbvl79qmk7jnlfllazf9oeqm3"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable2\",\"min_val\":100,\"max_val\":200,\"increment\":1,\"id\":8,\"name\":\"itr2\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/iterable/8/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/iterable/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":8,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=3aIPlZilZfrjoEYCgORVH28qjrPQ34WJ; expires=Mon, 09-Oct-2017 14:11:03 GMT; Max-Age=31449600; Path=/", "sessionid=ayjdxvaipnb28e7lkyfm7yy1eb13rwst; expires=Mon, 24-Oct-2016 14:11:03 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/iterable/8/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/iterable/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/6811d21d4bfdf0a306e2aa7d0d6c892825fd907b.json b/tests/api_tests/tests/api_tests/cassettes/6811d21d4bfdf0a306e2aa7d0d6c892825fd907b.json index 61e694ad..47c91d74 100644 --- a/tests/api_tests/tests/api_tests/cassettes/6811d21d4bfdf0a306e2aa7d0d6c892825fd907b.json +++ b/tests/api_tests/tests/api_tests/cassettes/6811d21d4bfdf0a306e2aa7d0d6c892825fd907b.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Hgn6y7kBK9c0uMVXE40cKgx4puZ5gxwS; sessionid=sgqmo7jmoo53y70zff5wcd5ohir0pyq7"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":3,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/attributes/3/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/attributes/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=8QR2sre63q4pmpZnluYUlM9DQYE9wX0o; sessionid=hi2kyt7ewb853roe7d3elvdwn0m71958"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":3,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/attributes/3/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/attributes/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/6f07d375ab4808960a60920ff3c6c258bbd47463.json b/tests/api_tests/tests/api_tests/cassettes/6f07d375ab4808960a60920ff3c6c258bbd47463.json index e0f569c7..fdae2c8c 100644 --- a/tests/api_tests/tests/api_tests/cassettes/6f07d375ab4808960a60920ff3c6c258bbd47463.json +++ b/tests/api_tests/tests/api_tests/cassettes/6f07d375ab4808960a60920ff3c6c258bbd47463.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=BJ0e5rQ2IVpivqYQkqGqys32qSpVRNdC; sessionid=evkwzr9y3noylyc5rmmjdudzoena2o0e"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/itervalues/1/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":1,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:43 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/itervalues/1/"}, "recorded_at": "2016-10-06T13:27:43"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=mcQ3f7kTH11n7wOaFNTuqohlYbITwNnI; sessionid=1z58yr2fgjkskibg1h6lnd7w7vqb24yr"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/itervalues/1/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":1,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/itervalues/1/"}, "recorded_at": "2016-10-10T19:27:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/6f95e416f64ed29422d3718056c7909240dec283.json b/tests/api_tests/tests/api_tests/cassettes/6f95e416f64ed29422d3718056c7909240dec283.json index fa7594d3..065ab3f5 100644 --- a/tests/api_tests/tests/api_tests/cassettes/6f95e416f64ed29422d3718056c7909240dec283.json +++ b/tests/api_tests/tests/api_tests/cassettes/6f95e416f64ed29422d3718056c7909240dec283.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 1}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=BJ0e5rQ2IVpivqYQkqGqys32qSpVRNdC; sessionid=evkwzr9y3noylyc5rmmjdudzoena2o0e"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":1,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/itervalues/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:43 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/itervalues/"}, "recorded_at": "2016-10-06T13:27:43"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 1}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=mcQ3f7kTH11n7wOaFNTuqohlYbITwNnI; sessionid=1z58yr2fgjkskibg1h6lnd7w7vqb24yr"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":1,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/itervalues/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/itervalues/"}, "recorded_at": "2016-10-10T19:27:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/70142bff64de43747c29a669b078d3011e494ce0.json b/tests/api_tests/tests/api_tests/cassettes/70142bff64de43747c29a669b078d3011e494ce0.json new file mode 100644 index 00000000..2e982c4e --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/70142bff64de43747c29a669b078d3011e494ce0.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=zaQvRO6T21wFucrGcJ0ZMXSqAQedIwu9; sessionid=d6tsdaca5fkqp0yfmsnay5ge4fkdjobs"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/7/iterables/9/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/7/iterables/9/next_value/"}, "recorded_at": "2016-10-10T14:19:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/7dd2fe0784a357d6d3723d8af97fe8ce31e055b1.json b/tests/api_tests/tests/api_tests/cassettes/7dd2fe0784a357d6d3723d8af97fe8ce31e055b1.json new file mode 100644 index 00000000..0ed8c8de --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/7dd2fe0784a357d6d3723d8af97fe8ce31e055b1.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=ayfoK2g6lWw2XmJdI35BSB7R8FN3bThc; sessionid=jpu7re5uxj9e1ig8irz6bd5v8qxd3fsv"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterables/1/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterables/1/"}, "recorded_at": "2016-10-10T14:19:05"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/7f592ec5adcc705efd02698886f997e750efdfd6.json b/tests/api_tests/tests/api_tests/cassettes/7f592ec5adcc705efd02698886f997e750efdfd6.json index 3f1b36ca..880b232b 100644 --- a/tests/api_tests/tests/api_tests/cassettes/7f592ec5adcc705efd02698886f997e750efdfd6.json +++ b/tests/api_tests/tests/api_tests/cassettes/7f592ec5adcc705efd02698886f997e750efdfd6.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"UPDATED\"}}", "encoding": "utf-8"}, "headers": {"Content-Length": ["42"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=OHOOoWTovPwZJv7kRtf5S2XFvpcZfnpf; sessionid=haw2ev08es5n35uatgh8sl6jkvwxs03h"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/4/itervalues/11/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"UPDATED\"},\"iterable\":5,\"id\":11,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/itervalues/11/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"UPDATED\"}}", "encoding": "utf-8"}, "headers": {"Content-Length": ["42"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2u8dFVhUzxkTjS2HpyQDApv6kdhQ64aK; sessionid=8bxts0foa8pj8nsgept3ymk7932db89h"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/4/itervalues/11/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"UPDATED\"},\"iterable\":5,\"id\":11,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/itervalues/11/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/8127bf578e29d120370ac72152d7f85c722827b1.json b/tests/api_tests/tests/api_tests/cassettes/8127bf578e29d120370ac72152d7f85c722827b1.json new file mode 100644 index 00000000..2505af80 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/8127bf578e29d120370ac72152d7f85c722827b1.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2u8dFVhUzxkTjS2HpyQDApv6kdhQ64aK; sessionid=8bxts0foa8pj8nsgept3ymk7932db89h"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/iterables/5/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/iterables/5/next_value/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json b/tests/api_tests/tests/api_tests/cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json index 606549a6..472b7e96 100644 --- a/tests/api_tests/tests/api_tests/cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json +++ b/tests/api_tests/tests/api_tests/cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=m2JaBP0BrhgtPDXBW0wRlpozGpEIiyli; sessionid=1s928o7lvfqwg9z74ah4ogz9k8f4ib51"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/iterable/9/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/iterable/9/"}, "recorded_at": "2016-10-06T12:41:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=kquyraDsSzh0uInfmdwzEJtF2gt2h7sQ; sessionid=e8466o0fc94vmwoohs3nlcbcgevp4c6v"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/iterable/9/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:04 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/iterable/9/"}, "recorded_at": "2016-10-10T14:11:04"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/865d72e9eec58ace6e960c148dad4032e5cbe74c.json b/tests/api_tests/tests/api_tests/cassettes/865d72e9eec58ace6e960c148dad4032e5cbe74c.json index 6db42929..e6825a1c 100644 --- a/tests/api_tests/tests/api_tests/cassettes/865d72e9eec58ace6e960c148dad4032e5cbe74c.json +++ b/tests/api_tests/tests/api_tests/cassettes/865d72e9eec58ace6e960c148dad4032e5cbe74c.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UlL7J2p50Jr77KZp5iAn5OYmIHpUgYTa; sessionid=ncly2disbvl79qmk7jnlfllazf9oeqm3"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/iterable/7/next_value/"}, "response": {"body": {"string": "[13]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/iterable/7/next_value/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=AKmLn3bBq1PzrIBCgVkuYCeqPHWdbuxJ; sessionid=ym0v4bq5j3ej9qdv7421qjqtvbhwest8"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/iterable/7/next_value/"}, "response": {"body": {"string": "[13]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 19:32:55 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/iterable/7/next_value/"}, "recorded_at": "2016-10-06T19:32:55"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json b/tests/api_tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json index 9c20f959..8e9d71b4 100644 --- a/tests/api_tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json +++ b/tests/api_tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=BJ0e5rQ2IVpivqYQkqGqys32qSpVRNdC; sessionid=evkwzr9y3noylyc5rmmjdudzoena2o0e"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/1/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:43 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/1/next_value/"}, "recorded_at": "2016-10-06T13:27:43"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=SJDELwqT5AW5jJgfKbYx1Gn2d1KT43GH; sessionid=zgqg33m50olhaz5qsan17aewcmjh0jym"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/1/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 19:32:54 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/1/next_value/"}, "recorded_at": "2016-10-06T19:32:54"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/8f6a31734a3996d9000e28677df02c7fb6fce82e.json b/tests/api_tests/tests/api_tests/cassettes/8f6a31734a3996d9000e28677df02c7fb6fce82e.json new file mode 100644 index 00000000..05fb4187 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/8f6a31734a3996d9000e28677df02c7fb6fce82e.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=9aFZO3kDSJYbffJMqYPEvxgy6shOfwTI; sessionid=sqa3b706n76novhkk7kd2xrkic4372jp"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/5/iterables/6/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/5/iterables/6/next_value/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/8fa8542c24682f1630f1068f09423a1504d0d054.json b/tests/api_tests/tests/api_tests/cassettes/8fa8542c24682f1630f1068f09423a1504d0d054.json index 564a9f48..b58daebb 100644 --- a/tests/api_tests/tests/api_tests/cassettes/8fa8542c24682f1630f1068f09423a1504d0d054.json +++ b/tests/api_tests/tests/api_tests/cassettes/8fa8542c24682f1630f1068f09423a1504d0d054.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"iterable\": 4, \"id\": 10, \"value\": 10}", "encoding": "utf-8"}, "headers": {"Content-Length": ["85"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Hgn6y7kBK9c0uMVXE40cKgx4puZ5gxwS; sessionid=sgqmo7jmoo53y70zff5wcd5ohir0pyq7"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/3/itervalues/10/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":4,\"id\":10,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/itervalues/10/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"iterable\": 4, \"id\": 10, \"value\": 10}", "encoding": "utf-8"}, "headers": {"Content-Length": ["85"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=8QR2sre63q4pmpZnluYUlM9DQYE9wX0o; sessionid=hi2kyt7ewb853roe7d3elvdwn0m71958"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/3/itervalues/10/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":4,\"id\":10,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/itervalues/10/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/929c5029f7d582d42cc9c979ad541df4c4cabcd9.json b/tests/api_tests/tests/api_tests/cassettes/929c5029f7d582d42cc9c979ad541df4c4cabcd9.json new file mode 100644 index 00000000..fc71d3a5 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/929c5029f7d582d42cc9c979ad541df4c4cabcd9.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/iterables/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":5,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=2u8dFVhUzxkTjS2HpyQDApv6kdhQ64aK; expires=Mon, 09-Oct-2017 19:27:32 GMT; Max-Age=31449600; Path=/", "sessionid=8bxts0foa8pj8nsgept3ymk7932db89h; expires=Mon, 24-Oct-2016 19:27:32 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/iterables/5/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/iterables/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/92ed631c466c9febf8dfbcd1246122265290db14.json b/tests/api_tests/tests/api_tests/cassettes/92ed631c466c9febf8dfbcd1246122265290db14.json new file mode 100644 index 00000000..63546b06 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/92ed631c466c9febf8dfbcd1246122265290db14.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=ayfoK2g6lWw2XmJdI35BSB7R8FN3bThc; sessionid=jpu7re5uxj9e1ig8irz6bd5v8qxd3fsv"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterables/"}, "response": {"body": {"string": "[{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterables/"}, "recorded_at": "2016-10-10T14:19:05"}, {"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/iterables/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=mcQ3f7kTH11n7wOaFNTuqohlYbITwNnI; expires=Mon, 09-Oct-2017 19:27:31 GMT; Max-Age=31449600; Path=/", "sessionid=1z58yr2fgjkskibg1h6lnd7w7vqb24yr; expires=Mon, 24-Oct-2016 19:27:31 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/iterables/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/iterables/"}, "recorded_at": "2016-10-10T19:27:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json b/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json index fd6742c5..37305b90 100644 --- a/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json +++ b/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=qQ62n3SrvDPWsjt1Nn3SrVSMQ1fr62n3ZvrV5Hvzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18yZLbyLbYXl+B5rutkB5UBDGRoKTSewAIzvNM3rhWYEiACWIiRpL39dobr+2NwzuHIxz2wjvvnz/FccOf4UxwKFapSt1S97srKUpFMPPkOSdPnimRJ+vjT7WBPF0NFWITu86nVx/xB+GonnVfAF4BNwDV+PSKID66IFYJfaOGEYjvC0ls3gmFh45NHAd3YJfA9L6wvJuJd7LvBmoMNQcUCN33YuChUS3lHhgWuBnnqS64L6QQZIEfxjegGTTizb0BUqiDu/zLOwJ6MIaqcxfpqgPu6RfIyycUd9NDcEs7BvuYwtP7cJ3FzSQc6G2JTQjM+wLGFb2nqChG/OtFC+gwjD0/hibUUYvvFXXfpXQ1iBEeCrqqBSJKDQIH3MV+om/uIKJ5V2GCfTHwrAIRAue+8EV/EAKEJvAjYBSICB5BdF+oMPsKUyCoB47ysdEGiUZPYgIPLPweLk01zYlrTgKiGADnhs0Yieu+kANSeQP1byMYmua+XTJo0B79/7djivsepjjEFHdlKoaxAz4NEQEiBeGV/kfq1PFkTeODA6INAPH3LageRZTm+3EUh2pwxxbZYrnoQgQTRQXCBQZU0SQc58LbT3d3RHPa6/JEtIEuoXoGMQZR4HtG0Y4I0w+JliIQURJgKyR88wwMHOAi44nyATlWYpeguYGIuLu7IP4zNAknRgiI6l9w26/ME3o6BYEJ97+V/zP7NR9RRfIgMj/cEmbou4Rc65/5QDCRHsIgJqJQ/1ZZ2lHuF3gkmhSxUkHMYFbsqPDpI3VC+0fQCE8Cv6OLXJF5lsLHn/4MPAOafzkL949V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934TyY8HZK3PcyscM2rC++wyPPbDUgzkRd6U8jTqMJbsvAvBfLcyXytk/1aJ/e1Tv5p59urI/meOd1uCk7zuilZeYnUL1/6IOr0twk+Uqc/vfP/Af8Zv1eLRwAA", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=pe7inl3s8j8cj2g55nr2o0r0n5; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC0A6E3C9FCE34C046AB92421DA69EC3725534C42CB695BD59EB2C313B2EEA08C45A0C008CE5DCC69AB74FACDE96E159D6D;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7206"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 13 Sep 2016 18:26:53 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.88.38"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=qQ62n3SrvDPWsjt1Nn3SrVSMQ1fr62n3ZvrV5Hvzsq"}, "recorded_at": "2016-09-13T18:33:48"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18yZLb2LLYXl+B5rutkB5UBRIECVBS6T0ABEBwJgiSIG9cd2A4GEjMI8n7eu2N1/bG4Z3DEQ574Z33z5/iuOHP8AE4FKtUUrfU/e6qFaUCeIbMPDmdPMw89fGH7oSV11MOsVPP/fTqY/lAXNW3HmrAr5UNQDU+vUKQjx5IVUS31TgB6UMtS807qvbYYadpeAeizMkfasrdgr5jAy9UU0dzQQ3RAz8FPpwlcg/AsMDNPF/1wEMtd0ARBnF6M7RwjNR+MEDu6OCu+vAOcXwndVT3LtFVFzw0voCePYG4kw/hLe4U7FOsXN6H6ypuFuE6/g6xY2A+1EpYyXsMS1JIv35vAd2JUz9IHdPRYUvg3+uBh+lqmEI4mOOpFkgwNQxdcJcGmW7fORDnHYmH+/vQt2pIDNyH2mf9YQwgmDBIgFFDEucIkocaie9JvIZgjxRVcxMbskbPUqScWPstVJpqXiHX3AwkKQDuDZkpZNdDrRqIVQ3Yvw1jGg3i2zkDJ+3h/387oojvIYqARBFXolIndcGnKUSA5CC+4v+InTqeyTQ9uCCxAUi/T6B6kmBaEKRJGqvhXfO+ed++9xw4JklqiAcMR4WLcN0LbT/c3SE9eTRsIYnteIjqG4gEkjDwjfttgphBjIgchSRZWFohEpjnwcAFHjSepJpQQUWiDK4NJMjd3QXwnx0TcVMIAOn8pWz7hXU6vo45wHT2v5b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+O4KVbzb8n/KfXeF+G/MJtDSi0P72p/UN1AHh7X4Ueb8zMr4zoDcih53uL/LWSfTnsEtO/vU8Dy3LBm5qpJmnt7YdqRDX8Hupj+ewCU83c9E3V93P1u0J03bB+GdvN0O9F9ySueXt/2navKJHPcT7fwt/ew3gEvDmjhOBKF/rwpzdlFAbhgdiBkeERDvgShNPWDofaQXEB86d7davu3/z1bMOl2b5HLjDVNI3f1E4hV+3tu/MY6KafDznfxroOOTn3M4mXRhDHQQxbL0zeRkpPeoeUf/ViDlUrg7F2NWR0un94YUX1D1pvErjg3g2sN08GfUAwDDltSqp7Hv/zBWOSVcH9I07kTUnQLWTHPLX98FALdrUnOJFyX05PMz7cNH+Fs7cC+uLgZxKoKIbnRBig/PW3YHkehb2A5dXt8+dfpbu/1nLh4Rep/hiFDjfC9KEJm65Md+Cz7HpzYW/J9MfBHx/qsKNcw/0piLpSfuXLDei7h8aHagU/n+zqvso335/uNzue9bkxl8AfSfjwaJIvTDU09/tnV2u71+Du/qZWjYceM05r7x5V/u1Fwk4y1+PAdcu4+OF8sDpL5TMoHjxZ/wog8Lj+ZRhwB3wZhPkG+eEWztPlPlGVcs3Pd+qXmF1NMQI9K8/D96eR90noQm9X+wBnwACcUyH06xy9RPpsAlyQfg8Pr66qgzfYv0NQ7B1Sg5OvTQ/3/1g2PXwA+xAecGEUgaCIDwqkCyOqN6WbXsjsPI3hoiBRKFL7EKqp/YDVrjJEqhi42sBi4Aaq8dRjXylCSqyqcfh8kaUel6Z3jebf3rvAt1L70Y886y7/isfzKVXb48pq18i69q5keXX3BmomdENvalUgVXuL1v6lhp478a91Nr/WSXyts/W88+3Vk3zPmm6PBad13VStfAnVz587Iez05zI+Yqe/BvX/ATWxbjYeSgAA", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=l1qnrihe0g495t4dcu11nhn307; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC01D715DE960D1D66DA142353243330039923BB02E6BE2642E4FA388AA71F7B5B57D81953815B40BF9B076C8E8A3D5133C;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7716"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 13 Sep 2016 20:26:09 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.89.214"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"}, "recorded_at": "2016-09-13T20:11:22"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept": ["*/*"], "Connection": ["keep-alive"], "Accept-Encoding": ["gzip, deflate"], "X-NSoT-Email": ["admin@localhost"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&z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WTfM+abrcFp3XdVK28hOqXL50QcfrzBh+J01/v+f8kC0huzkcAAA==", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.109"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=pdl5ukr6o4pbj0h4hkd4llrvn5; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC01D715DE960D1D66DA142353243330039923BB02E6BE2642E4FA388AA71F7B5B57D81953815B40BF9B076C8E8A3D5133C;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7258"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Wed, 21 Sep 2016 01:17:56 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.89.214"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=D07KSHHSj04SD4RtVSHN6PrQFMN17KSHHt3V3Jnzsq"}, "recorded_at": "2016-09-21T01:02:56"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=other&lang=en_US&zsq=JfSvLWWksTDVVkjjQpW01LTFJQMtSvLWrP1rfsrzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18yZLb2JbYXl+BYr9SSE1lAgRBgpSU6sBEEuA8gCT44lmB4WKeiJl8XWtvvLY3Du8cjnDYC++8b3+K44U/wxfgkMzUVFJVv02XIkWCdzjn3DNf3nP5/id2yqykGYeYied+ePG+fENc2TceasCvlQ1A1j68QJD3HkhkRDXlKAbJQy1N9LtO7bHDTJLwDuxTK3uobe9E6o4JvFBOLMUFNUQN/AT4cBbPPQDNADfzfNkDD7XMAnkYRMnN0NzSEvNBA5mlgrvqwxvE8q3Ekt27WJVd8ND4AnrmBOJudQhvcSegSNByee+uq7hZhGv5DmJGQH+olbDitygaJ5B+9d4AqhUlfpBYuqXClsC/VwMPVeUwgXBQy5MNEKNyGLrgLglS1byzIM47Eg+L+9A3akgE3IfaJ/1hBCCYMIiBVkNi6wjihxqJFyReQ9BHiqq5sQlZo6YJUk6s/RYqdTmrkCtuCuIEAPeGzASy66FWDUSrBvRfhzGNBvH9nIGTCvj/X48o4keIIiBRxJWoxEpc8GEGESAZiK7436OnjmcyTQ4uiE0Akh8TqBrHqBIESZxEcnjXvG/et+89C46J4xriAc2S4SJc90LbT3d3yGA1HrWQ2LQ8RPY1ZAHiMPC1eztG9CBCeK6DxGlYWiES6OfBwAUeNJ64mlBBRfYpXBuIkbu7C+A/WzriJhAA0v1L2faNdVq+ilpAt4pfS/+ZfDaAWCE/kDyIHESPAg9h2MmZDjgmViMrTJA4Ur+Xl3Zc+YUWZE0GSSEhMSUpdlz78B49gf09cEQnht817ol7/LMY3v/0Z+Brlv6XM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0pv/LlBvTdQ+NdtYJfTnZ1Xx3x3p/uxVqe8akxl8AfSXj3aJKfmaop7o/PrtZ2r8CQ/qpWjYceM0pqbx5V/vVFwla8VKPAdctk+OG8mzpL5RMoHtxO/wogcI/+ZRgwAn4ehP4K+ekWztPlPlGVcs3PI/XnmF1N0QI1LTfB96eR93HoQm9XewdnwKybkyH06xy1RPpsAlyQeg93rK6sglfov0Pq6BukBidfmx7u/7FsengHihDuamEWgdQRH+QIC9OoV6WbFlfMMongoiBRdaT2LpQT8wGtXWWIVIlvFcAi4Aay9tRjXylCSqyydvh0kaUel6Z3TeFf37vANxLz0Y886y5//eH5lKrtcWW1azpde1OyvLq6ATUTuqFXtSqRqr2u1/65Vj934l/rbH6tk/haZ+t55+urJ/mRNd3uBU7ruikU+RKqXz51QujpZxbeo6dfEfr/oJVahFZIAAA=", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=r6nok0lbso5irhn53a6a6m3uh0; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC0D65393CC1ECC6691BB689F86B76324B8923BB02E6BE2642E4FA388AA71F7B5B57D81953815B40BF9B076C8E8A3D5133C;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7469"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 04 Oct 2016 13:46:38 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.89.214"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=other&lang=en_US&zsq=JfSvLWWksTDVVkjjQpW01LTFJQMtSvLWrP1rfsrzsq"}, "recorded_at": "2016-10-04T13:31:01"}, {"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8100/api/sites/"}, "response": {"body": {"string": "504 Gateway Timeout\r\n

    Gateway Timeout

    \r\n

    Server error - server 127.0.0.1 is unreachable at this moment.

    Please retry the request or contact your administrator.

    \r\n\r\n", "encoding": "ISO-8859-1"}, "headers": {"Connection": ["close"], "Content-Type": ["text/html"], "Server": ["Zscaler/5.2"]}, "status": {"message": "Gateway Timeout", "code": 504}, "url": "http://localhost:8100/api/sites/"}, "recorded_at": "2016-10-04T19:18:56"}, {"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/"}, "response": {"body": {"string": "{\"id\":6,\"name\":\"Test Site\",\"description\":\"\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=B7dTwu2ekjIsi53GGmzgYRTOXdERq34K; expires=Thu, 05-Oct-2017 13:27:45 GMT; Max-Age=31449600; Path=/", "sessionid=tx12n8jcmajkbq31fpz6uqbk0lbwuuif; expires=Thu, 20-Oct-2016 13:27:45 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/"], "Allow": ["GET, POST, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept": ["*/*"], "Connection": ["keep-alive"], "Accept-Encoding": ["gzip, deflate"], "X-NSoT-Email": ["admin@localhost"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=qQ62n3SrvDPWsjt1Nn3SrVSMQ1fr62n3ZvrV5Hvzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18yZLbyLbYXl+B5rutkB5UBDGRoKTSewAIzvNM3rhWYEiACWIiRpL39dobr+2NwzuHIxz2wjvvnz/FccOf4UxwKFapSt1S97srKUpFMPPkOSdPnimRJ+vjT7WBPF0NFWITu86nVx/xB+GonnVfAF4BNwDV+PSKID66IFYJfaOGEYjvC0ls3gmFh45NHAd3YJfA9L6wvJuJd7LvBmoMNQcUCN33YuChUS3lHhgWuBnnqS64L6QQZIEfxjegGTTizb0BUqiDu/zLOwJ6MIaqcxfpqgPu6RfIyycUd9NDcEs7BvuYwtP7cJ3FzSQc6G2JT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Ao4hSTVOcM/8uFYpTkqf0DTeINZugWMzRPbT/dF/xt4RFNAkfl+DTiw03zVyR7u0AvAj9ZgZxjtEtE6clffw+VpznYM1Re3X7+8pt09zcaLtr5EvnNfx2FwfieRU1XmUP0ibveXKSLZf4A/PG+hDrwFIqnDOrK+FUsN6jv7ukP+QR+OZlVMT9sLp4uk0LX+tKWMfIHFj48WOQzQw3N+f7R+dyKGortbwo5PPKXYVx496Dxby8LDKOJHvqOg5Pi+/Ou6rwoX2Bx0bb6NyBBe/WXcaD49zwK8w3x0y2ex9N9pCl4zk/j9HPCzocYvp7gzXDxBFmMAgc5u8IHNAJl34qKsF/H6JjokwFoQnoR7VwdVQdvqH9HkNQ7ooAGX5vui/+Im+4/gH2AdrcohyBIwgMZUUP51BvspWdTeRKHaFKIKZIofAjUeHNPFa5rSOQZcB6+QuD4qvHYYV85IjBV1Th8OUmsx9jyrqn826IDPCvePLiRJ934TyY8HZK3PcyscM2rC++wyPPbDUgzkRd6U8jTqMJbsvAvBfLcyXytk/1aJ/e1Tv5p59urI/meOd1uCk7zuilZeYnUL1/6IOr0twk+Uqc/vfP/Af8Zv1eLRwAA", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=pe7inl3s8j8cj2g55nr2o0r0n5; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC0A6E3C9FCE34C046AB92421DA69EC3725534C42CB695BD59EB2C313B2EEA08C45A0C008CE5DCC69AB74FACDE96E159D6D;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7206"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 13 Sep 2016 18:26:53 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.88.38"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=qQ62n3SrvDPWsjt1Nn3SrVSMQ1fr62n3ZvrV5Hvzsq"}, "recorded_at": "2016-09-13T18:33:48"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept": ["*/*"], "Connection": ["keep-alive"], "Accept-Encoding": ["gzip, deflate"], "X-NSoT-Email": ["admin@localhost"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18yZLb2LLYXl+B5rutkB5UBRIECVBS6T0ABEBwJgiSIG9cd2A4GEjMI8n7eu2N1/bG4Z3DEQ574Z33z5/iuOHP8AE4FKtUUrfU/e6qFaUCeIbMPDmdPMw89fGH7oSV11MOsVPP/fTqY/lAXNW3HmrAr5UNQDU+vUKQjx5IVUS31TgB6UMtS807qvbYYadpeAeizMkfasrdgr5jAy9UU0dzQQ3RAz8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sDpL5TMoHjxZ/wog8Lj+ZRhwB3wZhPkG+eEWztPlPlGVcs3Pd+qXmF1NMQI9K8/D96eR90noQm9X+wBnwACcUyH06xy9RPpsAlyQfg8Pr66qgzfYv0NQ7B1Sg5OvTQ/3/1g2PXwA+xAecGEUgaCIDwqkCyOqN6WbXsjsPI3hoiBRKFL7EKqp/YDVrjJEqhi42sBi4Aaq8dRjXylCSqyqcfh8kaUel6Z3jebf3rvAt1L70Y886y7/isfzKVXb48pq18i69q5keXX3BmomdENvalUgVXuL1v6lhp478a91Nr/WSXyts/W88+3Vk3zPmm6PBad13VStfAnVz587Iez05zI+Yqe/BvX/ATWxbjYeSgAA", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=l1qnrihe0g495t4dcu11nhn307; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC01D715DE960D1D66DA142353243330039923BB02E6BE2642E4FA388AA71F7B5B57D81953815B40BF9B076C8E8A3D5133C;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7716"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 13 Sep 2016 20:26:09 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.89.214"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"}, "recorded_at": "2016-09-13T20:11:22"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=D07KSHHSj04SD4RtVSHN6PrQFMN17KSHHt3V3Jnzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18y5LbyJbYXl+B5txWSAMVQYIACUoqzYAgQIJvggRJ8Ma1AgQSL+JFIAGQvNNrb7y2Nw7vHI5w2AvvvB9/iuOGP8MJ8FGsUpW6pe65KylKRTAf55w870SerI8/tcfcXJnwmAU999Orj/kH5qq+eV8CfilvAKr+6RWGffQAVDHNUqMYwPtSAo07pvTQYUEY3oFdYqf3pdWdzN5xgReq0N64oIRpgQ+Bj2aJ/D3QTXAzz1c9cF9KbZCFQQRvhma2Dq17HaS2Bu6KL+8w27ehrbp3saa64L76AnruBOJufghvcUOwh0S+vA/XVdwswrX9LWZFwLgv5bDi9wQRQ0S/VjaBZkfQD6Bt2BpqCfyyFniEpoYQwSFsTzVBTKhh6II7GCSadWcjnHcNMtyXQ98sYRFw70tf9IcRQGDCIAZ6CYvtI4jvSw1y3yBLGPFAUTE3thBrtARi+cTS76HSUNMC+cZNQAwBcG/IhIhd96ViIFE0EP82jKlWqW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4CcSKChG+0SUoPz192B5moU9g+XV7ecvv0l3f6vlos0vVvzxAA0FQnhfQ01XptvoM+96c2FvzvSHwR/vK6gjX0P5lERdKb/y5Qb03X31Q7GCX052VS7Om8un+6i2Z35pzDnwBxI+PJjkM1P1jfv9s4u1lTcour8pFeORx4xg6d2Dyr+9SNiOZ1oUuG6eF9+fN1ZnqXwBxUM7698ABG3XX4aBIuDzIIw32E+3cB4v95Gq5Gt+GqmfY3YxRQ+0JN8Pl08jy3HoIm9X+oBmoAScVxH06xwtR/pkAlqQVkabV1fVwBvi32E48Q4rocnXpvvyP+ZN9x/APkQbXJRFYDjmgwxro4zqTe6m5Tk3gxFaFCIKx0ofQhVa90TpKkOsyIGLABYBN1D1xx77ShGWY1X1w5eLzPU4N71rNv+27ALfhNaDH3nSnf/VhadTiraHlZWumXXpXc7y4n4G0kzkht6UikSq9BYv/UsJP3eSX+usfa2T+lon/bTz7dWTfM+abrcFp3XdVK28hOqXL50QcfrzBh+J01/v+f8kC0huzkcAAA==", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.109"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=pdl5ukr6o4pbj0h4hkd4llrvn5; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC01D715DE960D1D66DA142353243330039923BB02E6BE2642E4FA388AA71F7B5B57D81953815B40BF9B076C8E8A3D5133C;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7258"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Wed, 21 Sep 2016 01:17:56 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.89.214"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=D07KSHHSj04SD4RtVSHN6PrQFMN17KSHHt3V3Jnzsq"}, "recorded_at": "2016-09-21T01:02:56"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept": ["*/*"], "Connection": ["keep-alive"], "Accept-Encoding": ["gzip, deflate"], "X-NSoT-Email": ["admin@localhost"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=other&lang=en_US&zsq=JfSvLWWksTDVVkjjQpW01LTFJQMtSvLWrP1rfsrzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18yZLb2JbYXl+BYr9SSE1lAgRBgpSU6sBEEuA8gCT44lmB4WKeiJl8XWtvvLY3Du8cjnDYC++8b3+K44U/wxfgkMzUVFJVv02XIkWCdzjn3DNf3nP5/id2yqykGYeYied+ePG+fENc2TceasCvlQ1A1j68QJD3HkhkRDXlKAbJQy1N9LtO7bHDTJLwDuxTK3uobe9E6o4JvFBOLMUFNUQN/AT4cBbPPQDNADfzfNkDD7XMAnkYRMnN0NzSEvNBA5mlgrvqwxvE8q3Ekt27WJVd8ND4AnrmBOJudQhvcSegSNByee+uq7hZhGv5DmJGQH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nlonBMTvjuBzt2F/T/hPr39+HvJnCv6h0P70qvYPVdb/+r7KN17pqV9ZziuQQXf3GvlrJfty2CWRf32fBIbhglc1XY6T2ut31Yhq+D3Ux/KdBbqcusmrqu+X6rVCdI1S38Z2M/RH0T1JZl7fn2LtFSXyKc7ncfv1PUxCwKszSgiu9JsPf3pVpl4QHogsmA4e4YAvQTjFczjUDPILmD/dy7ZcvPrr2YZLs32LXGDKSRK9qp3yrNrrN+cx0Dc/H3K+xXMdcvLoZxIvjSCKggi2Xphs77eDxRuk/LWEJVStFCbY1ZDx6d7ahRXVP2i9ceCCezcwXj0Z9A5BUeQUiWT3PP6XC8Y4rTL6R5zIq5KgW8iWfmr76aEWOLUnOJEyGCenGe9umr/C2VsBfXHwMwlUFMPNIcxK/vpbsDxPvT6D5cXt+y+/Snd/reXCHS9S/YiBCqNf8tCETVemW/C97Hp1YW/J9MfB7x8w2FGu4f6UOV0pv/LlBvTdQ+NdtYJfTnZ1Xx3x3p/uxVqe8akxl8AfSXj3aJKfmaop7o/PrtZ2r8CQ/qpWjYceM0pqbx5V/vVFwla8VKPAdctk+OG8mzpL5RMoHtxO/wogcI/+ZRgwAn4ehP4K+ekWztPlPlGVcs3PI/XnmF1N0QI1LTfB96eR93HoQm9XewdnwKybkyH06xy1RPpsAlyQeg93rK6sglfov0Pq6BukBidfmx7u/7FsengHihDuamEWgdQRH+QIC9OoV6WbFlfMMongoiBRdaT2LpQT8wGtXWWIVIlvFcAi4Aay9tRjXylCSqyydvh0kaUel6Z3TeFf37vANxLz0Y886y5//eH5lKrtcWW1azpde1OyvLq6ATUTuqFXtSqRqr2u1/65Vj934l/rbH6tk/haZ+t55+urJ/mRNd3uBU7ruikU+RKqXz51QujpZxbeo6dfEfr/oJVahFZIAAA=", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=r6nok0lbso5irhn53a6a6m3uh0; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC0D65393CC1ECC6691BB689F86B76324B8923BB02E6BE2642E4FA388AA71F7B5B57D81953815B40BF9B076C8E8A3D5133C;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7469"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 04 Oct 2016 13:46:38 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.89.214"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=other&lang=en_US&zsq=JfSvLWWksTDVVkjjQpW01LTFJQMtSvLWrP1rfsrzsq"}, "recorded_at": "2016-10-04T13:31:01"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept": ["*/*"], "Connection": ["keep-alive"], "Accept-Encoding": ["gzip, deflate"], "X-NSoT-Email": ["admin@localhost"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "http://localhost:8100/api/sites/"}, "response": {"body": {"string": "504 Gateway Timeout\r\n

    Gateway Timeout

    \r\n

    Server error - server 127.0.0.1 is unreachable at this moment.

    Please retry the request or contact your administrator.

    \r\n\r\n", "encoding": "ISO-8859-1"}, "headers": {"Connection": ["close"], "Content-Type": ["text/html"], "Server": ["Zscaler/5.2"]}, "status": {"message": "Gateway Timeout", "code": 504}, "url": "http://localhost:8100/api/sites/"}, "recorded_at": "2016-10-06T19:16:44"}, {"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8100/api/sites/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Location": ["https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=nbmn4SSFrqkF7sMKW4SrnK6bGPKKmn4SMGV2jkHzsq"], "Server": ["Zscaler/5.2"]}, "status": {"message": "Moved Temporarily", "code": 302}, "url": "http://localhost:8100/api/sites/"}, "recorded_at": "2016-10-06T19:23:06"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept": ["*/*"], "Connection": ["keep-alive"], "Accept-Encoding": ["gzip, deflate"], "X-NSoT-Email": ["admin@localhost"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=nbmn4SSFrqkF7sMKW4SrnK6bGPKKmn4SMGV2jkHzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18ybLbyLLYXl+B5rut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s7PPfVLwq6GGIGelufhxhmyEYcutHa1D3AEDMAFFWK/jdFLos8GwAnpDXh4dVUdvEH/HVJH3yE1OPjWdN/4x7Lp/gPIQ3jAhVEEUkd8kCEdGFG9Kc30Ys7PkghOCjJVR2ofQjWx79HabQ2RKgauHFgE3EA1nlrsG0dISVU1is8nWepxufVu0fzbhgt8K7Ef7Miz7vLPZTwfUrU9zKx2i6xr70qRVxdXoGZCM/SmVgVStbf12r/U6pdO/GudxNc6ya91Us87394syffM6fGx4DyvR1UrXyL18+dGCD3/XYqP6PnPLv1/6w8QhYdJAAA=", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.194.123"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=ierfnsugrnhpufsrvldgbtt524; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC01D715DE960D1D66DA142353243330039923BB02E6BE2642E4FA388AA71F7B5B57D81953815B40BF9B076C8E8A3D5133C;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7595"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Thu, 06 Oct 2016 19:38:49 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.89.214"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=nbmn4SSFrqkF7sMKW4SrnK6bGPKKmn4SMGV2jkHzsq"}, "recorded_at": "2016-10-06T19:23:07"}, {"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/"}, "response": {"body": {"string": "{\"id\":6,\"name\":\"Test Site\",\"description\":\"\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=Q2DtMTAxkMhHORR4LHDLVfnIG2FbToZM; expires=Mon, 09-Oct-2017 19:27:32 GMT; Max-Age=31449600; Path=/", "sessionid=ei6gfwctsgaisisz4qtpopy8bizpyavi; expires=Mon, 24-Oct-2016 19:27:32 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/"], "Allow": ["GET, POST, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json b/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json index 78257afa..9e7360c0 100644 --- a/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json +++ b/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=dFDn2eTCyL6dOFW8yajm18Axrb2lvCzP; sessionid=qvpsz14igjfnj9l50jvi35eyq7hqfa8m"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "[{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-10-06T12:41:33"}, {"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=BJ0e5rQ2IVpivqYQkqGqys32qSpVRNdC; expires=Thu, 05-Oct-2017 13:27:43 GMT; Max-Age=31449600; Path=/", "sessionid=evkwzr9y3noylyc5rmmjdudzoena2o0e; expires=Thu, 20-Oct-2016 13:27:43 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/iterable/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:43 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-10-06T13:27:43"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=J0O3IIX37Buf4TCZyzwBTkEYUPyIL7uk; expires=Mon, 09-Oct-2017 14:11:03 GMT; Max-Age=31449600; Path=/", "sessionid=05y051o3yvkcz43631iu3uvwrfq7o7ou; expires=Mon, 24-Oct-2016 14:11:03 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/iterable/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-10-10T14:11:03"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=J0O3IIX37Buf4TCZyzwBTkEYUPyIL7uk; sessionid=05y051o3yvkcz43631iu3uvwrfq7o7ou"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "[{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/9a1dd628a3eb7e38539910dfe4779c436f26fbcf.json b/tests/api_tests/tests/api_tests/cassettes/9a1dd628a3eb7e38539910dfe4779c436f26fbcf.json index a1dd3b97..0144d1c5 100644 --- a/tests/api_tests/tests/api_tests/cassettes/9a1dd628a3eb7e38539910dfe4779c436f26fbcf.json +++ b/tests/api_tests/tests/api_tests/cassettes/9a1dd628a3eb7e38539910dfe4779c436f26fbcf.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 4}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Hgn6y7kBK9c0uMVXE40cKgx4puZ5gxwS; sessionid=sgqmo7jmoo53y70zff5wcd5ohir0pyq7"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":4,\"id\":10,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/itervalues/10/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/itervalues/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 4}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=8QR2sre63q4pmpZnluYUlM9DQYE9wX0o; sessionid=hi2kyt7ewb853roe7d3elvdwn0m71958"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":4,\"id\":10,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/itervalues/10/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/itervalues/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/9e28a8939946014bbb652453058fd33ef7a8320e.json b/tests/api_tests/tests/api_tests/cassettes/9e28a8939946014bbb652453058fd33ef7a8320e.json index 4f201220..48bf608d 100644 --- a/tests/api_tests/tests/api_tests/cassettes/9e28a8939946014bbb652453058fd33ef7a8320e.json +++ b/tests/api_tests/tests/api_tests/cassettes/9e28a8939946014bbb652453058fd33ef7a8320e.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 5}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=OHOOoWTovPwZJv7kRtf5S2XFvpcZfnpf; sessionid=haw2ev08es5n35uatgh8sl6jkvwxs03h"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":5,\"id\":11,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/itervalues/11/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/itervalues/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 5}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2u8dFVhUzxkTjS2HpyQDApv6kdhQ64aK; sessionid=8bxts0foa8pj8nsgept3ymk7932db89h"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":5,\"id\":11,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/itervalues/11/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/itervalues/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/a219b1813ccf9f5f378c4b0c94bb02765f90d513.json b/tests/api_tests/tests/api_tests/cassettes/a219b1813ccf9f5f378c4b0c94bb02765f90d513.json new file mode 100644 index 00000000..79efa4ce --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/a219b1813ccf9f5f378c4b0c94bb02765f90d513.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=0jL0LvYu5EFws3K1kKTRXJQj6AKAy1AH; sessionid=8gzg7faljbwhb7un2wi458q4zom8bbr9"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/iterables/8/next_value/"}, "response": {"body": {"string": "[103]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/iterables/8/next_value/"}, "recorded_at": "2016-10-10T19:27:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/a2fc16e99e6840d0b9309e5e2f140d779be5bb4d.json b/tests/api_tests/tests/api_tests/cassettes/a2fc16e99e6840d0b9309e5e2f140d779be5bb4d.json new file mode 100644 index 00000000..9aead91b --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/a2fc16e99e6840d0b9309e5e2f140d779be5bb4d.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=ayfoK2g6lWw2XmJdI35BSB7R8FN3bThc; sessionid=jpu7re5uxj9e1ig8irz6bd5v8qxd3fsv"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterables/itr1/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterables/itr1/"}, "recorded_at": "2016-10-10T14:19:05"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/a48495323d11fad28e7e5e2054e5b0a25ec0952f.json b/tests/api_tests/tests/api_tests/cassettes/a48495323d11fad28e7e5e2054e5b0a25ec0952f.json new file mode 100644 index 00000000..52a5c6a3 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/a48495323d11fad28e7e5e2054e5b0a25ec0952f.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=uds5hegqoVgou4EOa94ibYMtfnZTA7TL; sessionid=kdxjm82imuic367ti0p2by2d97hugh4d"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterables/2/next_value/"}, "response": {"body": {"string": "[13]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterables/2/next_value/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/a579564d9cc80ce669ba9d87617147b0fdf9e950.json b/tests/api_tests/tests/api_tests/cassettes/a579564d9cc80ce669ba9d87617147b0fdf9e950.json index 44ff0874..c3f664b2 100644 --- a/tests/api_tests/tests/api_tests/cassettes/a579564d9cc80ce669ba9d87617147b0fdf9e950.json +++ b/tests/api_tests/tests/api_tests/cassettes/a579564d9cc80ce669ba9d87617147b0fdf9e950.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=XjwUIiPPmFZjlfEieDo2F46uRxZ7rwSO; sessionid=avv2q45rkjpgt7ujizz0hrt69ku2spzn"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/5/itervalues/12/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:45 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/5/itervalues/12/"}, "recorded_at": "2016-10-06T13:27:45"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=9aFZO3kDSJYbffJMqYPEvxgy6shOfwTI; sessionid=sqa3b706n76novhkk7kd2xrkic4372jp"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/5/itervalues/12/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/5/itervalues/12/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json b/tests/api_tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json index 0dbec29b..5a42e36f 100644 --- a/tests/api_tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json +++ b/tests/api_tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":5,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=OHOOoWTovPwZJv7kRtf5S2XFvpcZfnpf; expires=Thu, 05-Oct-2017 13:27:44 GMT; Max-Age=31449600; Path=/", "sessionid=haw2ev08es5n35uatgh8sl6jkvwxs03h; expires=Thu, 20-Oct-2016 13:27:44 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/iterable/5/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/iterable/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":6,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=K1BtjPkLTCePuYstFBA80oEKa8RyzyXv; expires=Mon, 09-Oct-2017 14:11:03 GMT; Max-Age=31449600; Path=/", "sessionid=0x3ovagew2o90yoqug24cszacpxaywj4; expires=Mon, 24-Oct-2016 14:11:03 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/iterable/6/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/iterable/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/ac14741009c2752d2974626d95219cb08ed03332.json b/tests/api_tests/tests/api_tests/cassettes/ac14741009c2752d2974626d95219cb08ed03332.json new file mode 100644 index 00000000..dbee3808 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/ac14741009c2752d2974626d95219cb08ed03332.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=P5Az3AtDIfiiaxq3UA4nFAasaLLpsG8j; sessionid=nlraqzw6ylzp3qdezi601643ftl1zqa5"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/5/iterables/7/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/5/iterables/7/next_value/"}, "recorded_at": "2016-10-10T14:19:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/b74958d4a89a7cf79ed11404f4294c471ff25aff.json b/tests/api_tests/tests/api_tests/cassettes/b74958d4a89a7cf79ed11404f4294c471ff25aff.json index 5c8e7011..e4a222a3 100644 --- a/tests/api_tests/tests/api_tests/cassettes/b74958d4a89a7cf79ed11404f4294c471ff25aff.json +++ b/tests/api_tests/tests/api_tests/cassettes/b74958d4a89a7cf79ed11404f4294c471ff25aff.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Hgn6y7kBK9c0uMVXE40cKgx4puZ5gxwS; sessionid=sgqmo7jmoo53y70zff5wcd5ohir0pyq7"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/iterable/4/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/iterable/4/next_value/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=7MlIkLlUMLrbtVuqOs3vUPtnyXfc78fZ; sessionid=zlubc586z0peqsewwvpg0i5y3lapkb5f"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/iterable/4/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 19:32:54 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/iterable/4/next_value/"}, "recorded_at": "2016-10-06T19:32:54"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/b93ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json b/tests/api_tests/tests/api_tests/cassettes/b93ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json index 53a38b4d..7fa841a1 100644 --- a/tests/api_tests/tests/api_tests/cassettes/b93ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json +++ b/tests/api_tests/tests/api_tests/cassettes/b93ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"description\": \"Iterable 1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["29"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YbdDUxQ9ps1aHMZzwmB0wxiyw9p1ngjL; sessionid=5mh36l9r6y35nroza33wd36pphsx063n"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/4/iterable/6/"}, "response": {"body": {"string": "{\"description\":\"Iterable 1\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":6,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/iterable/6/"}, "recorded_at": "2016-10-06T12:41:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"description\": \"Iterable 1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["29"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=K1BtjPkLTCePuYstFBA80oEKa8RyzyXv; sessionid=0x3ovagew2o90yoqug24cszacpxaywj4"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/4/iterable/6/"}, "response": {"body": {"string": "{\"description\":\"Iterable 1\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":6,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/iterable/6/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/baf629ed91285cf74bf94815135d5cc474ee2cdd.json b/tests/api_tests/tests/api_tests/cassettes/baf629ed91285cf74bf94815135d5cc474ee2cdd.json new file mode 100644 index 00000000..098eedb1 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/baf629ed91285cf74bf94815135d5cc474ee2cdd.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"description\": \"test-iterable\", \"min_val\": 10, \"max_val\": 20, \"increment\": 1, \"id\": 5, \"name\": \"itr1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["103"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=PSZBg4J2DR0JzbFdR6aG4WpueqV1piiq; sessionid=u8tnsn2unx7i1flpvxiy9oshicn9y7e2"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/3/iterables/5/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":5,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/iterables/5/"}, "recorded_at": "2016-10-10T14:19:05"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/bde34cd954fc463c1cee7195696c5662b0da623a.json b/tests/api_tests/tests/api_tests/cassettes/bde34cd954fc463c1cee7195696c5662b0da623a.json index cf7ade9a..f79e02c1 100644 --- a/tests/api_tests/tests/api_tests/cassettes/bde34cd954fc463c1cee7195696c5662b0da623a.json +++ b/tests/api_tests/tests/api_tests/cassettes/bde34cd954fc463c1cee7195696c5662b0da623a.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=m2JaBP0BrhgtPDXBW0wRlpozGpEIiyli; sessionid=1s928o7lvfqwg9z74ah4ogz9k8f4ib51"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/itervalues/1/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/itervalues/1/"}, "recorded_at": "2016-10-06T12:41:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=zaQvRO6T21wFucrGcJ0ZMXSqAQedIwu9; sessionid=d6tsdaca5fkqp0yfmsnay5ge4fkdjobs"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/itervalues/1/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/itervalues/1/"}, "recorded_at": "2016-10-10T14:19:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/c0cb95ea14a08d6a6bcfc780eec553cc3f4bded7.json b/tests/api_tests/tests/api_tests/cassettes/c0cb95ea14a08d6a6bcfc780eec553cc3f4bded7.json new file mode 100644 index 00000000..2f69106d --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/c0cb95ea14a08d6a6bcfc780eec553cc3f4bded7.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/iterables/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":9,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=zaQvRO6T21wFucrGcJ0ZMXSqAQedIwu9; expires=Mon, 09-Oct-2017 14:19:06 GMT; Max-Age=31449600; Path=/", "sessionid=d6tsdaca5fkqp0yfmsnay5ge4fkdjobs; expires=Mon, 24-Oct-2016 14:19:06 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/iterables/9/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/iterables/"}, "recorded_at": "2016-10-10T14:19:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/c1ace35610f08937e315c7ca43d88e3d52cae87d.json b/tests/api_tests/tests/api_tests/cassettes/c1ace35610f08937e315c7ca43d88e3d52cae87d.json index 3630d39a..b567ec8b 100644 --- a/tests/api_tests/tests/api_tests/cassettes/c1ace35610f08937e315c7ca43d88e3d52cae87d.json +++ b/tests/api_tests/tests/api_tests/cassettes/c1ace35610f08937e315c7ca43d88e3d52cae87d.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=iRn6tFq8uliu3wHJ0fsp5GyTQghOGCRS; sessionid=3up6x0aeqyzb6ivufr0lfy0bl9g3tu80"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":2,\"id\":2,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/attributes/2/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/attributes/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=uds5hegqoVgou4EOa94ibYMtfnZTA7TL; sessionid=kdxjm82imuic367ti0p2by2d97hugh4d"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":2,\"id\":2,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/attributes/2/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/attributes/"}, "recorded_at": "2016-10-10T19:27:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/c27917cb3dae1fb80ec025a88502d8930abad8ed.json b/tests/api_tests/tests/api_tests/cassettes/c27917cb3dae1fb80ec025a88502d8930abad8ed.json new file mode 100644 index 00000000..8c5b43ab --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/c27917cb3dae1fb80ec025a88502d8930abad8ed.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 200, \"min_val\": 100, \"name\": \"itr2\", \"increment\": 1, \"description\": \"test-iterable2\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["97"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=0jL0LvYu5EFws3K1kKTRXJQj6AKAy1AH; sessionid=8gzg7faljbwhb7un2wi458q4zom8bbr9"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/iterables/"}, "response": {"body": {"string": "{\"description\":\"test-iterable2\",\"min_val\":100,\"max_val\":200,\"increment\":1,\"id\":8,\"name\":\"itr2\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/iterables/8/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/iterables/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/cba0ca9382553634281ae742531723e2b84d8b34.json b/tests/api_tests/tests/api_tests/cassettes/cba0ca9382553634281ae742531723e2b84d8b34.json index 56b07046..aa438363 100644 --- a/tests/api_tests/tests/api_tests/cassettes/cba0ca9382553634281ae742531723e2b84d8b34.json +++ b/tests/api_tests/tests/api_tests/cassettes/cba0ca9382553634281ae742531723e2b84d8b34.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=iRn6tFq8uliu3wHJ0fsp5GyTQghOGCRS; sessionid=3up6x0aeqyzb6ivufr0lfy0bl9g3tu80"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterable/3/next_value/"}, "response": {"body": {"string": "[103]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterable/3/next_value/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sCNySnbrP9l3RUoHrYsEwaPR1kIsRnB4; sessionid=i1ngtls6ihz1p0f9dzp6qkukdl9u6us1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterable/3/next_value/"}, "response": {"body": {"string": "[103]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 19:32:54 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterable/3/next_value/"}, "recorded_at": "2016-10-06T19:32:54"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/cbbe3fb07643a66ab8033584bea01b2a56d2a4a7.json b/tests/api_tests/tests/api_tests/cassettes/cbbe3fb07643a66ab8033584bea01b2a56d2a4a7.json new file mode 100644 index 00000000..668e6736 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/cbbe3fb07643a66ab8033584bea01b2a56d2a4a7.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=mcQ3f7kTH11n7wOaFNTuqohlYbITwNnI; sessionid=1z58yr2fgjkskibg1h6lnd7w7vqb24yr"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterables/1/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterables/1/next_value/"}, "recorded_at": "2016-10-10T19:27:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json b/tests/api_tests/tests/api_tests/cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json index 0718903e..d64b9c6a 100644 --- a/tests/api_tests/tests/api_tests/cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json +++ b/tests/api_tests/tests/api_tests/cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=m2JaBP0BrhgtPDXBW0wRlpozGpEIiyli; sessionid=1s928o7lvfqwg9z74ah4ogz9k8f4ib51"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/7/iterable/9/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/7/iterable/9/next_value/"}, "recorded_at": "2016-10-06T12:41:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=kquyraDsSzh0uInfmdwzEJtF2gt2h7sQ; sessionid=e8466o0fc94vmwoohs3nlcbcgevp4c6v"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/7/iterable/9/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:04 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/7/iterable/9/next_value/"}, "recorded_at": "2016-10-10T14:11:04"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/ced58e2cf97d7a523c5852924a577f5c8b892866.json b/tests/api_tests/tests/api_tests/cassettes/ced58e2cf97d7a523c5852924a577f5c8b892866.json index c68a73bb..23f883fc 100644 --- a/tests/api_tests/tests/api_tests/cassettes/ced58e2cf97d7a523c5852924a577f5c8b892866.json +++ b/tests/api_tests/tests/api_tests/cassettes/ced58e2cf97d7a523c5852924a577f5c8b892866.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=dFDn2eTCyL6dOFW8yajm18Axrb2lvCzP; sessionid=qvpsz14igjfnj9l50jvi35eyq7hqfa8m"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/1/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/1/"}, "recorded_at": "2016-10-06T12:41:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=J0O3IIX37Buf4TCZyzwBTkEYUPyIL7uk; sessionid=05y051o3yvkcz43631iu3uvwrfq7o7ou"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/1/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/1/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/d172f0fadfb95294453118f64f6a030a09446bf9.json b/tests/api_tests/tests/api_tests/cassettes/d172f0fadfb95294453118f64f6a030a09446bf9.json index 5986f80b..704cfe83 100644 --- a/tests/api_tests/tests/api_tests/cassettes/d172f0fadfb95294453118f64f6a030a09446bf9.json +++ b/tests/api_tests/tests/api_tests/cassettes/d172f0fadfb95294453118f64f6a030a09446bf9.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=OHOOoWTovPwZJv7kRtf5S2XFvpcZfnpf; sessionid=haw2ev08es5n35uatgh8sl6jkvwxs03h"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/iterable/5/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/iterable/5/next_value/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=e5t1idCSs7XnQFxTv9Jpbm7pEhtij1rd; sessionid=shxfrvy7jremxj5so2cg5rbje09lcavb"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/iterable/5/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 19:32:55 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/iterable/5/next_value/"}, "recorded_at": "2016-10-06T19:32:55"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json b/tests/api_tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json index 7046784b..c654be9c 100644 --- a/tests/api_tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json +++ b/tests/api_tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=iRn6tFq8uliu3wHJ0fsp5GyTQghOGCRS; sessionid=3up6x0aeqyzb6ivufr0lfy0bl9g3tu80"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterable/2/next_value/"}, "response": {"body": {"string": "[13]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterable/2/next_value/"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sCNySnbrP9l3RUoHrYsEwaPR1kIsRnB4; sessionid=i1ngtls6ihz1p0f9dzp6qkukdl9u6us1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterable/2/next_value/"}, "response": {"body": {"string": "[13]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 19:32:54 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterable/2/next_value/"}, "recorded_at": "2016-10-06T19:32:54"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/d64396a0e9f44951ae8d3dd39b07e3b4ac792cdc.json b/tests/api_tests/tests/api_tests/cassettes/d64396a0e9f44951ae8d3dd39b07e3b4ac792cdc.json index aa5fa766..199ebeee 100644 --- a/tests/api_tests/tests/api_tests/cassettes/d64396a0e9f44951ae8d3dd39b07e3b4ac792cdc.json +++ b/tests/api_tests/tests/api_tests/cassettes/d64396a0e9f44951ae8d3dd39b07e3b4ac792cdc.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"unique_id\": \"uuid_custA_site1\", \"value\": 10, \"iterable\": 9}", "encoding": "utf-8"}, "headers": {"Content-Length": ["61"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=m2JaBP0BrhgtPDXBW0wRlpozGpEIiyli; sessionid=1s928o7lvfqwg9z74ah4ogz9k8f4ib51"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{},\"iterable\":9,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/itervalues/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/itervalues/"}, "recorded_at": "2016-10-06T12:41:34"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"unique_id\": \"uuid_custA_site1\", \"value\": 10, \"iterable\": 9}", "encoding": "utf-8"}, "headers": {"Content-Length": ["61"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=zaQvRO6T21wFucrGcJ0ZMXSqAQedIwu9; sessionid=d6tsdaca5fkqp0yfmsnay5ge4fkdjobs"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{},\"iterable\":9,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/itervalues/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/itervalues/"}, "recorded_at": "2016-10-10T14:19:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/d94de6e6562d496610045848634ac64d824062a5.json b/tests/api_tests/tests/api_tests/cassettes/d94de6e6562d496610045848634ac64d824062a5.json new file mode 100644 index 00000000..98b3719a --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/d94de6e6562d496610045848634ac64d824062a5.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=8QR2sre63q4pmpZnluYUlM9DQYE9wX0o; sessionid=hi2kyt7ewb853roe7d3elvdwn0m71958"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/iterables/4/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/iterables/4/next_value/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/eacb60510140254a7ec730a2383e740cf8048a1d.json b/tests/api_tests/tests/api_tests/cassettes/eacb60510140254a7ec730a2383e740cf8048a1d.json index 7d836d0a..24260dd5 100644 --- a/tests/api_tests/tests/api_tests/cassettes/eacb60510140254a7ec730a2383e740cf8048a1d.json +++ b/tests/api_tests/tests/api_tests/cassettes/eacb60510140254a7ec730a2383e740cf8048a1d.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=BJ0e5rQ2IVpivqYQkqGqys32qSpVRNdC; sessionid=evkwzr9y3noylyc5rmmjdudzoena2o0e"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":1,\"id\":1,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/attributes/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:43 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/attributes/"}, "recorded_at": "2016-10-06T13:27:43"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=mcQ3f7kTH11n7wOaFNTuqohlYbITwNnI; sessionid=1z58yr2fgjkskibg1h6lnd7w7vqb24yr"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":1,\"id\":1,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/attributes/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/attributes/"}, "recorded_at": "2016-10-10T19:27:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/edd5ea30273120cefcc90a7f78227fc9af2c4f25.json b/tests/api_tests/tests/api_tests/cassettes/edd5ea30273120cefcc90a7f78227fc9af2c4f25.json new file mode 100644 index 00000000..09972f42 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/edd5ea30273120cefcc90a7f78227fc9af2c4f25.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=uds5hegqoVgou4EOa94ibYMtfnZTA7TL; sessionid=kdxjm82imuic367ti0p2by2d97hugh4d"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterables/3/next_value/"}, "response": {"body": {"string": "[103]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterables/3/next_value/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/ee0b0d065d59bf08356f8637dc33c6aafed9083a.json b/tests/api_tests/tests/api_tests/cassettes/ee0b0d065d59bf08356f8637dc33c6aafed9083a.json new file mode 100644 index 00000000..85b0e368 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/ee0b0d065d59bf08356f8637dc33c6aafed9083a.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"description\": \"Iterable 1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["29"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=slIAQ6v7rFC4TiIvvMyKBCsCzYhHVQuO; sessionid=rt3ww6nh5nxzosuuwy2pw0nr0mkw5vai"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/4/iterables/6/"}, "response": {"body": {"string": "{\"description\":\"Iterable 1\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":6,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/iterables/6/"}, "recorded_at": "2016-10-10T14:19:05"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/efdfaf06458551f5d928717e1a227e44b1a4b03b.json b/tests/api_tests/tests/api_tests/cassettes/efdfaf06458551f5d928717e1a227e44b1a4b03b.json new file mode 100644 index 00000000..b929aaf2 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/efdfaf06458551f5d928717e1a227e44b1a4b03b.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=zaQvRO6T21wFucrGcJ0ZMXSqAQedIwu9; sessionid=d6tsdaca5fkqp0yfmsnay5ge4fkdjobs"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/iterables/9/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/iterables/9/"}, "recorded_at": "2016-10-10T14:19:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json b/tests/api_tests/tests/api_tests/cassettes/f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json index 1f258e70..09a85d74 100644 --- a/tests/api_tests/tests/api_tests/cassettes/f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json +++ b/tests/api_tests/tests/api_tests/cassettes/f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":9,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=m2JaBP0BrhgtPDXBW0wRlpozGpEIiyli; expires=Thu, 05-Oct-2017 12:41:33 GMT; Max-Age=31449600; Path=/", "sessionid=1s928o7lvfqwg9z74ah4ogz9k8f4ib51; expires=Thu, 20-Oct-2016 12:41:33 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/iterable/9/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/iterable/"}, "recorded_at": "2016-10-06T12:41:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":9,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=kquyraDsSzh0uInfmdwzEJtF2gt2h7sQ; expires=Mon, 09-Oct-2017 14:11:04 GMT; Max-Age=31449600; Path=/", "sessionid=e8466o0fc94vmwoohs3nlcbcgevp4c6v; expires=Mon, 24-Oct-2016 14:11:04 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/iterable/9/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:04 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/iterable/"}, "recorded_at": "2016-10-10T14:11:04"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/f4f454793819b78cee2c3266c61a2ef84dd8e291.json b/tests/api_tests/tests/api_tests/cassettes/f4f454793819b78cee2c3266c61a2ef84dd8e291.json new file mode 100644 index 00000000..b62a5280 --- /dev/null +++ b/tests/api_tests/tests/api_tests/cassettes/f4f454793819b78cee2c3266c61a2ef84dd8e291.json @@ -0,0 +1 @@ +{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/iterables/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":4,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=8QR2sre63q4pmpZnluYUlM9DQYE9wX0o; expires=Mon, 09-Oct-2017 19:27:32 GMT; Max-Age=31449600; Path=/", "sessionid=hi2kyt7ewb853roe7d3elvdwn0m71958; expires=Mon, 24-Oct-2016 19:27:32 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/iterables/4/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/iterables/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/f89563819dcaf8721dcc05b5d25657de7e4a3a8d.json b/tests/api_tests/tests/api_tests/cassettes/f89563819dcaf8721dcc05b5d25657de7e4a3a8d.json index c4d1c36a..0ce60a98 100644 --- a/tests/api_tests/tests/api_tests/cassettes/f89563819dcaf8721dcc05b5d25657de7e4a3a8d.json +++ b/tests/api_tests/tests/api_tests/cassettes/f89563819dcaf8721dcc05b5d25657de7e4a3a8d.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custb01_key2\"}, \"value\": 103, \"iterable\": 3}", "encoding": "utf-8"}, "headers": {"Content-Length": ["76"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=iRn6tFq8uliu3wHJ0fsp5GyTQghOGCRS; sessionid=3up6x0aeqyzb6ivufr0lfy0bl9g3tu80"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":3,\"id\":9,\"value\":103}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/itervalues/9/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/itervalues/"}, "recorded_at": "2016-10-06T13:27:44"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=iRn6tFq8uliu3wHJ0fsp5GyTQghOGCRS; sessionid=3up6x0aeqyzb6ivufr0lfy0bl9g3tu80"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/itervalues/?attributes=service_key%3Dcustb01_key1"}, "response": {"body": {"string": "[{\"attributes\":{\"service_key\":\"custb01_key1\"},\"iterable\":2,\"id\":4,\"value\":12},{\"attributes\":{\"service_key\":\"custb01_key1\"},\"iterable\":3,\"id\":8,\"value\":102}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:27:44 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/itervalues/?attributes=service_key%3Dcustb01_key1"}, "recorded_at": "2016-10-06T13:27:44"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custb01_key2\"}, \"value\": 103, \"iterable\": 3}", "encoding": "utf-8"}, "headers": {"Content-Length": ["76"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=uds5hegqoVgou4EOa94ibYMtfnZTA7TL; sessionid=kdxjm82imuic367ti0p2by2d97hugh4d"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":3,\"id\":9,\"value\":103}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/itervalues/9/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/itervalues/"}, "recorded_at": "2016-10-10T19:27:32"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=uds5hegqoVgou4EOa94ibYMtfnZTA7TL; sessionid=kdxjm82imuic367ti0p2by2d97hugh4d"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/itervalues/?attributes=service_key%3Dcustb01_key1"}, "response": {"body": {"string": "[{\"attributes\":{\"service_key\":\"custb01_key1\"},\"iterable\":2,\"id\":4,\"value\":12},{\"attributes\":{\"service_key\":\"custb01_key1\"},\"iterable\":3,\"id\":8,\"value\":102}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/itervalues/?attributes=service_key%3Dcustb01_key1"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/ffd4529bd2b59140eec7020beac2eb51f67ba602.json b/tests/api_tests/tests/api_tests/cassettes/ffd4529bd2b59140eec7020beac2eb51f67ba602.json index 0422f1d0..99f7a224 100644 --- a/tests/api_tests/tests/api_tests/cassettes/ffd4529bd2b59140eec7020beac2eb51f67ba602.json +++ b/tests/api_tests/tests/api_tests/cassettes/ffd4529bd2b59140eec7020beac2eb51f67ba602.json @@ -1 +1 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"description\": \"test-iterable\", \"min_val\": 10, \"max_val\": 20, \"increment\": 1, \"id\": 5, \"name\": \"itr1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["103"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=6MUAPT23aYlB6zE7fkjN01lHnoEfzVWe; sessionid=sw7ozsq7pjzb8n5nyd1wulo122411f3w"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/3/iterable/5/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":5,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 12:41:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/iterable/5/"}, "recorded_at": "2016-10-06T12:41:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file +{"http_interactions": [{"request": {"body": {"string": "{\"description\": \"test-iterable\", \"min_val\": 10, \"max_val\": 20, \"increment\": 1, \"id\": 5, \"name\": \"itr1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["103"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=mXmFqttn2Piolz9o78C9AQEi32cbOgCN; sessionid=eg167vejrinycbdwv6ek1q8fah361fh4"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/3/iterable/5/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":5,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/iterable/5/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/vagrant/index.html b/vagrant/index.html new file mode 100644 index 00000000..ac5c4a86 --- /dev/null +++ b/vagrant/index.html @@ -0,0 +1,163 @@ + + + + + NSoT + + + + + + + + + + + +
    + + + +
    +
    +
    + +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + diff --git a/vagrant/index.html.1 b/vagrant/index.html.1 new file mode 100644 index 00000000..ac5c4a86 --- /dev/null +++ b/vagrant/index.html.1 @@ -0,0 +1,163 @@ + + + + + NSoT + + + + + + + + + + + +
    + + + +
    +
    +
    + +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + From f30329846ad07e66221383d365af68626d0ad772 Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Sun, 20 Nov 2016 03:27:01 -0500 Subject: [PATCH 22/31] remove bin --- bin/activate | 80 ------------------------------------------- bin/activate.csh | 42 ----------------------- bin/activate.fish | 74 --------------------------------------- bin/activate_this.py | 34 ------------------ bin/django-admin | 10 ------ bin/easy_install | 10 ------ bin/easy_install-2.7 | 11 ------ bin/easy_install-3.4 | 10 ------ bin/gunicorn | 10 ------ bin/gunicorn_django | 10 ------ bin/gunicorn_paster | 10 ------ bin/ipcluster | 10 ------ bin/ipcluster2 | 10 ------ bin/ipcontroller | 10 ------ bin/ipcontroller2 | 10 ------ bin/ipengine | 10 ------ bin/ipengine2 | 10 ------ bin/iptest | 10 ------ bin/iptest2 | 10 ------ bin/ipython | 10 ------ bin/ipython2 | 10 ------ bin/nsot-server | 10 ------ bin/pip | 11 ------ bin/pip2 | 11 ------ bin/pip2.7 | 11 ------ bin/py.test | 11 ------ bin/pytest | 11 ------ bin/python | Bin 25152 -> 0 bytes bin/python2 | 1 - bin/python2.7 | 1 - bin/snot-server | 10 ------ bin/static | 10 ------ bin/wheel | 11 ------ 33 files changed, 499 deletions(-) delete mode 100644 bin/activate delete mode 100644 bin/activate.csh delete mode 100644 bin/activate.fish delete mode 100644 bin/activate_this.py delete mode 100755 bin/django-admin delete mode 100755 bin/easy_install delete mode 100755 bin/easy_install-2.7 delete mode 100755 bin/easy_install-3.4 delete mode 100755 bin/gunicorn delete mode 100755 bin/gunicorn_django delete mode 100755 bin/gunicorn_paster delete mode 100755 bin/ipcluster delete mode 100755 bin/ipcluster2 delete mode 100755 bin/ipcontroller delete mode 100755 bin/ipcontroller2 delete mode 100755 bin/ipengine delete mode 100755 bin/ipengine2 delete mode 100755 bin/iptest delete mode 100755 bin/iptest2 delete mode 100755 bin/ipython delete mode 100755 bin/ipython2 delete mode 100755 bin/nsot-server delete mode 100755 bin/pip delete mode 100755 bin/pip2 delete mode 100755 bin/pip2.7 delete mode 100755 bin/py.test delete mode 100755 bin/pytest delete mode 100755 bin/python delete mode 120000 bin/python2 delete mode 120000 bin/python2.7 delete mode 100755 bin/snot-server delete mode 100755 bin/static delete mode 100755 bin/wheel diff --git a/bin/activate b/bin/activate deleted file mode 100644 index 2786526a..00000000 --- a/bin/activate +++ /dev/null @@ -1,80 +0,0 @@ -# This file must be used with "source bin/activate" *from bash* -# you cannot run it directly - -deactivate () { - unset pydoc - - # reset old environment variables - if [ -n "${_OLD_VIRTUAL_PATH-}" ] ; then - PATH="$_OLD_VIRTUAL_PATH" - export PATH - unset _OLD_VIRTUAL_PATH - fi - if [ -n "${_OLD_VIRTUAL_PYTHONHOME-}" ] ; then - PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME" - export PYTHONHOME - unset _OLD_VIRTUAL_PYTHONHOME - fi - - # This should detect bash and zsh, which have a hash command that must - # be called to get it to forget past commands. Without forgetting - # past commands the $PATH changes we made may not be respected - if [ -n "${BASH-}" -o -n "${ZSH_VERSION-}" ] ; then - hash -r 2>/dev/null - fi - - if [ -n "${_OLD_VIRTUAL_PS1-}" ] ; then - PS1="$_OLD_VIRTUAL_PS1" - export PS1 - unset _OLD_VIRTUAL_PS1 - fi - - unset VIRTUAL_ENV - if [ ! "${1-}" = "nondestructive" ] ; then - # Self destruct! - unset -f deactivate - fi -} - -# unset irrelevant variables -deactivate nondestructive - -VIRTUAL_ENV="/Users/ajaychenampara/vagrant/nsot" -export VIRTUAL_ENV - -_OLD_VIRTUAL_PATH="$PATH" -PATH="$VIRTUAL_ENV/bin:$PATH" -export PATH - -# unset PYTHONHOME if set -# this will fail if PYTHONHOME is set to the empty string (which is bad anyway) -# could use `if (set -u; : $PYTHONHOME) ;` in bash -if [ -n "${PYTHONHOME-}" ] ; then - _OLD_VIRTUAL_PYTHONHOME="$PYTHONHOME" - unset PYTHONHOME -fi - -if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT-}" ] ; then - _OLD_VIRTUAL_PS1="$PS1" - if [ "x" != x ] ; then - PS1="$PS1" - else - if [ "`basename \"$VIRTUAL_ENV\"`" = "__" ] ; then - # special case for Aspen magic directories - # see http://www.zetadev.com/software/aspen/ - PS1="[`basename \`dirname \"$VIRTUAL_ENV\"\``] $PS1" - else - PS1="(`basename \"$VIRTUAL_ENV\"`)$PS1" - fi - fi - export PS1 -fi - -alias pydoc="python -m pydoc" - -# This should detect bash and zsh, which have a hash command that must -# be called to get it to forget past commands. Without forgetting -# past commands the $PATH changes we made may not be respected -if [ -n "${BASH-}" -o -n "${ZSH_VERSION-}" ] ; then - hash -r 2>/dev/null -fi diff --git a/bin/activate.csh b/bin/activate.csh deleted file mode 100644 index 8976c78c..00000000 --- a/bin/activate.csh +++ /dev/null @@ -1,42 +0,0 @@ -# This file must be used with "source bin/activate.csh" *from csh*. -# You cannot run it directly. -# Created by Davide Di Blasi . - -alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc' - -# Unset irrelevant variables. -deactivate nondestructive - -setenv VIRTUAL_ENV "/Users/ajaychenampara/vagrant/nsot" - -set _OLD_VIRTUAL_PATH="$PATH" -setenv PATH "$VIRTUAL_ENV/bin:$PATH" - - - -if ("" != "") then - set env_name = "" -else - if (`basename "$VIRTUAL_ENV"` == "__") then - # special case for Aspen magic directories - # see http://www.zetadev.com/software/aspen/ - set env_name = `basename \`dirname "$VIRTUAL_ENV"\`` - else - set env_name = `basename "$VIRTUAL_ENV"` - endif -endif - -# Could be in a non-interactive environment, -# in which case, $prompt is undefined and we wouldn't -# care about the prompt anyway. -if ( $?prompt ) then - set _OLD_VIRTUAL_PROMPT="$prompt" - set prompt = "[$env_name] $prompt" -endif - -unset env_name - -alias pydoc python -m pydoc - -rehash - diff --git a/bin/activate.fish b/bin/activate.fish deleted file mode 100644 index 5947d713..00000000 --- a/bin/activate.fish +++ /dev/null @@ -1,74 +0,0 @@ -# This file must be used with "source bin/activate.fish" *from fish* (http://fishshell.com) -# you cannot run it directly - -function deactivate -d "Exit virtualenv and return to normal shell environment" - # reset old environment variables - if test -n "$_OLD_VIRTUAL_PATH" - set -gx PATH $_OLD_VIRTUAL_PATH - set -e _OLD_VIRTUAL_PATH - end - if test -n "$_OLD_VIRTUAL_PYTHONHOME" - set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME - set -e _OLD_VIRTUAL_PYTHONHOME - end - - if test -n "$_OLD_FISH_PROMPT_OVERRIDE" - # set an empty local fish_function_path, so fish_prompt doesn't automatically reload - set -l fish_function_path - # erase the virtualenv's fish_prompt function, and restore the original - functions -e fish_prompt - functions -c _old_fish_prompt fish_prompt - functions -e _old_fish_prompt - set -e _OLD_FISH_PROMPT_OVERRIDE - end - - set -e VIRTUAL_ENV - if test "$argv[1]" != "nondestructive" - # Self destruct! - functions -e deactivate - end -end - -# unset irrelevant variables -deactivate nondestructive - -set -gx VIRTUAL_ENV "/Users/ajaychenampara/vagrant/nsot" - -set -gx _OLD_VIRTUAL_PATH $PATH -set -gx PATH "$VIRTUAL_ENV/bin" $PATH - -# unset PYTHONHOME if set -if set -q PYTHONHOME - set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME - set -e PYTHONHOME -end - -if test -z "$VIRTUAL_ENV_DISABLE_PROMPT" - # fish uses a function instead of an env var to generate the prompt. - - # copy the current fish_prompt function as the function _old_fish_prompt - functions -c fish_prompt _old_fish_prompt - - # with the original prompt function copied, we can override with our own. - function fish_prompt - # Prompt override? - if test -n "" - printf "%s%s" "" (set_color normal) - _old_fish_prompt - return - end - # ...Otherwise, prepend env - set -l _checkbase (basename "$VIRTUAL_ENV") - if test $_checkbase = "__" - # special case for Aspen magic directories - # see http://www.zetadev.com/software/aspen/ - printf "%s[%s]%s " (set_color -b blue white) (basename (dirname "$VIRTUAL_ENV")) (set_color normal) - _old_fish_prompt - else - printf "%s(%s)%s" (set_color -b blue white) (basename "$VIRTUAL_ENV") (set_color normal) - _old_fish_prompt - end - end - - set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV" -end diff --git a/bin/activate_this.py b/bin/activate_this.py deleted file mode 100644 index f18193bf..00000000 --- a/bin/activate_this.py +++ /dev/null @@ -1,34 +0,0 @@ -"""By using execfile(this_file, dict(__file__=this_file)) you will -activate this virtualenv environment. - -This can be used when you must use an existing Python interpreter, not -the virtualenv bin/python -""" - -try: - __file__ -except NameError: - raise AssertionError( - "You must run this like execfile('path/to/activate_this.py', dict(__file__='path/to/activate_this.py'))") -import sys -import os - -old_os_path = os.environ.get('PATH', '') -os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + os.pathsep + old_os_path -base = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) -if sys.platform == 'win32': - site_packages = os.path.join(base, 'Lib', 'site-packages') -else: - site_packages = os.path.join(base, 'lib', 'python%s' % sys.version[:3], 'site-packages') -prev_sys_path = list(sys.path) -import site -site.addsitedir(site_packages) -sys.real_prefix = sys.prefix -sys.prefix = base -# Move the added items to the front of the path: -new_sys_path = [] -for item in list(sys.path): - if item not in prev_sys_path: - new_sys_path.append(item) - sys.path.remove(item) -sys.path[:0] = new_sys_path diff --git a/bin/django-admin b/bin/django-admin deleted file mode 100755 index db4026f8..00000000 --- a/bin/django-admin +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'Django==1.8.11','console_scripts','django-admin' -__requires__ = 'Django==1.8.11' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('Django==1.8.11', 'console_scripts', 'django-admin')() - ) diff --git a/bin/easy_install b/bin/easy_install deleted file mode 100755 index dba97f51..00000000 --- a/bin/easy_install +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==18.2','console_scripts','easy_install' -__requires__ = 'setuptools==18.2' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('setuptools==18.2', 'console_scripts', 'easy_install')() - ) diff --git a/bin/easy_install-2.7 b/bin/easy_install-2.7 deleted file mode 100755 index ae9642ea..00000000 --- a/bin/easy_install-2.7 +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from setuptools.command.easy_install import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/easy_install-3.4 b/bin/easy_install-3.4 deleted file mode 100755 index 874b2b33..00000000 --- a/bin/easy_install-3.4 +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==18.2','console_scripts','easy_install-3.4' -__requires__ = 'setuptools==18.2' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('setuptools==18.2', 'console_scripts', 'easy_install-3.4')() - ) diff --git a/bin/gunicorn b/bin/gunicorn deleted file mode 100755 index 14606447..00000000 --- a/bin/gunicorn +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'gunicorn==19.3.0','console_scripts','gunicorn' -__requires__ = 'gunicorn==19.3.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('gunicorn==19.3.0', 'console_scripts', 'gunicorn')() - ) diff --git a/bin/gunicorn_django b/bin/gunicorn_django deleted file mode 100755 index c248ee95..00000000 --- a/bin/gunicorn_django +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'gunicorn==19.3.0','console_scripts','gunicorn_django' -__requires__ = 'gunicorn==19.3.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('gunicorn==19.3.0', 'console_scripts', 'gunicorn_django')() - ) diff --git a/bin/gunicorn_paster b/bin/gunicorn_paster deleted file mode 100755 index 3c557e4e..00000000 --- a/bin/gunicorn_paster +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'gunicorn==19.3.0','console_scripts','gunicorn_paster' -__requires__ = 'gunicorn==19.3.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('gunicorn==19.3.0', 'console_scripts', 'gunicorn_paster')() - ) diff --git a/bin/ipcluster b/bin/ipcluster deleted file mode 100755 index 468558c6..00000000 --- a/bin/ipcluster +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipcluster' -__requires__ = 'ipython==3.1.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('ipython==3.1.0', 'console_scripts', 'ipcluster')() - ) diff --git a/bin/ipcluster2 b/bin/ipcluster2 deleted file mode 100755 index 8c9a0f6e..00000000 --- a/bin/ipcluster2 +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipcluster2' -__requires__ = 'ipython==3.1.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('ipython==3.1.0', 'console_scripts', 'ipcluster2')() - ) diff --git a/bin/ipcontroller b/bin/ipcontroller deleted file mode 100755 index a7a23330..00000000 --- a/bin/ipcontroller +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipcontroller' -__requires__ = 'ipython==3.1.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('ipython==3.1.0', 'console_scripts', 'ipcontroller')() - ) diff --git a/bin/ipcontroller2 b/bin/ipcontroller2 deleted file mode 100755 index 3a50a215..00000000 --- a/bin/ipcontroller2 +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipcontroller2' -__requires__ = 'ipython==3.1.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('ipython==3.1.0', 'console_scripts', 'ipcontroller2')() - ) diff --git a/bin/ipengine b/bin/ipengine deleted file mode 100755 index a91727eb..00000000 --- a/bin/ipengine +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipengine' -__requires__ = 'ipython==3.1.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('ipython==3.1.0', 'console_scripts', 'ipengine')() - ) diff --git a/bin/ipengine2 b/bin/ipengine2 deleted file mode 100755 index 4e39382d..00000000 --- a/bin/ipengine2 +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipengine2' -__requires__ = 'ipython==3.1.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('ipython==3.1.0', 'console_scripts', 'ipengine2')() - ) diff --git a/bin/iptest b/bin/iptest deleted file mode 100755 index 1072172f..00000000 --- a/bin/iptest +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','iptest' -__requires__ = 'ipython==3.1.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('ipython==3.1.0', 'console_scripts', 'iptest')() - ) diff --git a/bin/iptest2 b/bin/iptest2 deleted file mode 100755 index a5e8f2c3..00000000 --- a/bin/iptest2 +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','iptest2' -__requires__ = 'ipython==3.1.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('ipython==3.1.0', 'console_scripts', 'iptest2')() - ) diff --git a/bin/ipython b/bin/ipython deleted file mode 100755 index ba64410c..00000000 --- a/bin/ipython +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipython' -__requires__ = 'ipython==3.1.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('ipython==3.1.0', 'console_scripts', 'ipython')() - ) diff --git a/bin/ipython2 b/bin/ipython2 deleted file mode 100755 index 0239a9dc..00000000 --- a/bin/ipython2 +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==3.1.0','console_scripts','ipython2' -__requires__ = 'ipython==3.1.0' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('ipython==3.1.0', 'console_scripts', 'ipython2')() - ) diff --git a/bin/nsot-server b/bin/nsot-server deleted file mode 100755 index cd977f25..00000000 --- a/bin/nsot-server +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'nsot==1.0.1','console_scripts','nsot-server' -__requires__ = 'nsot==1.0.1' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('nsot==1.0.1', 'console_scripts', 'nsot-server')() - ) diff --git a/bin/pip b/bin/pip deleted file mode 100755 index 2e8bb4e3..00000000 --- a/bin/pip +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from pip import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/pip2 b/bin/pip2 deleted file mode 100755 index 2e8bb4e3..00000000 --- a/bin/pip2 +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from pip import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/pip2.7 b/bin/pip2.7 deleted file mode 100755 index 2e8bb4e3..00000000 --- a/bin/pip2.7 +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from pip import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/py.test b/bin/py.test deleted file mode 100755 index 33a369b7..00000000 --- a/bin/py.test +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from pytest import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/pytest b/bin/pytest deleted file mode 100755 index 33a369b7..00000000 --- a/bin/pytest +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from pytest import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/bin/python b/bin/python deleted file mode 100755 index 947e5658c0ca209d0afe940788365173d22802a8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 25152 zcmeHPZEP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?~3-Y~I{$q>5SNlx3QfBd(k`&r)o4#iE&? zpuD9f+Z5X%7ERmCpJ^ZI?>)M!v-2^iRmd=MX~Q|4G;#i(;^RNYEsg)0e*W+^Zkebv zNS{aApG-C408(uV;j|EcJR?N~U8lpxbCU^5-G{wCKH=k^^zp+!-t_U@d*SmK@4)kM z?~MC?@SyJX>@=>03g+TaYTQU#Rso0e-o&g-iRL&Nn$gqXa<*Cp{i-RqQWMr^-F`H_ZM7$o*V7~`TNEB^yU;S`g8lc3=!8~Co6*} z`~7+QJ&skWmETq1UPIIwXSX*H$RtmuAB}_7;=gkE?m2{^V}zB5HLFA+e--7dThcA< z70A5ju&@m_l>g~Hhl^+*c;(>D(M3_NbLEzwf~L6%qsl0YN|z5CjB) z4;q1yp3=?4=umHId1tk96TRsvz1CCi`a%d?`N1PBN{f{nG?cq?j@VcFd*zy=IqTHp zy=vCGR?XlGsR4;(Fn^5JvF)qWe=oz*M}+)Z+Y|xc|JW2khK^^S9@o V4g2K9I(X;BAK?7}^?t4e{2Rf%y59f* diff --git a/bin/python2 b/bin/python2 deleted file mode 120000 index d8654aa0..00000000 --- a/bin/python2 +++ /dev/null @@ -1 +0,0 @@ -python \ No newline at end of file diff --git a/bin/python2.7 b/bin/python2.7 deleted file mode 120000 index d8654aa0..00000000 --- a/bin/python2.7 +++ /dev/null @@ -1 +0,0 @@ -python \ No newline at end of file diff --git a/bin/snot-server b/bin/snot-server deleted file mode 100755 index a9dd3ffd..00000000 --- a/bin/snot-server +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'nsot==1.0.1','console_scripts','snot-server' -__requires__ = 'nsot==1.0.1' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('nsot==1.0.1', 'console_scripts', 'snot-server')() - ) diff --git a/bin/static b/bin/static deleted file mode 100755 index f0dcb186..00000000 --- a/bin/static +++ /dev/null @@ -1,10 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python -# EASY-INSTALL-ENTRY-SCRIPT: 'static3==0.6.1','console_scripts','static' -__requires__ = 'static3==0.6.1' -import sys -from pkg_resources import load_entry_point - -if __name__ == '__main__': - sys.exit( - load_entry_point('static3==0.6.1', 'console_scripts', 'static')() - ) diff --git a/bin/wheel b/bin/wheel deleted file mode 100755 index 2278b9fa..00000000 --- a/bin/wheel +++ /dev/null @@ -1,11 +0,0 @@ -#!/Users/ajaychenampara/vagrant/nsot/bin/python - -# -*- coding: utf-8 -*- -import re -import sys - -from wheel.tool import main - -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) From 46a1f556a7d86e7ac02227c7df21b477b7b95558 Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Sun, 20 Nov 2016 03:39:32 -0500 Subject: [PATCH 23/31] removed index files --- vagrant/index.html | 163 ------------------------------------------- vagrant/index.html.1 | 163 ------------------------------------------- 2 files changed, 326 deletions(-) delete mode 100644 vagrant/index.html delete mode 100644 vagrant/index.html.1 diff --git a/vagrant/index.html b/vagrant/index.html deleted file mode 100644 index ac5c4a86..00000000 --- a/vagrant/index.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - NSoT - - - - - - - - - - - -
    - - - -
    -
    -
    - -
    -
    -
    -
    - - - - - - - - - - - - - - - - - - - diff --git a/vagrant/index.html.1 b/vagrant/index.html.1 deleted file mode 100644 index ac5c4a86..00000000 --- a/vagrant/index.html.1 +++ /dev/null @@ -1,163 +0,0 @@ - - - - - NSoT - - - - - - - - - - - -
    - - - -
    -
    -
    - -
    -
    -
    -
    - - - - - - - - - - - - - - - - - - - From c46639e51573d6876b2b87fb72f7c6db6d36bbbb Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Sun, 20 Nov 2016 03:50:26 -0500 Subject: [PATCH 24/31] removed api test cassestes --- .../cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json | 1 - .../cassettes/1c3466411abc39bbee145c78f3b17b973a427270.json | 1 - .../cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json | 1 - .../cassettes/49b087b5dcdebe88bdec9374a659582ecef4cf0e.json | 1 - .../cassettes/65e0942f1ad3a714b8e9b5136374de2c77708332.json | 1 - .../cassettes/6b8854ebbe15b5172ad04a37f0f63867087bcbd9.json | 1 - .../cassettes/7667780e6a0f594265f3e902dbe6383a28a733ab.json | 1 - .../cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json | 1 - .../cassettes/8276afde5d85a48fd04e72657f1b47e5bd9ff7a8.json | 1 - .../cassettes/83b0d6704912f1865dd2fb9239a1e7818ab3bdc9.json | 1 - .../cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json | 1 - .../cassettes/8ccf4ef98a12f666c96e427686c429919aab7d91.json | 1 - .../cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json | 1 - .../cassettes/949cc773ac378030532f36a8ab596483f3586d05.json | 1 - .../cassettes/a27acd3c0e649ad8b9a56ad84535460a6405ee2c.json | 1 - .../cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json | 1 - .../cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json | 1 - .../cassettes/d0d6f17fefec299ec55c6c4f06180a57e3705650.json | 1 - .../cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json | 1 - .../cassettes/da427a9a7f5006cf428910abcbcb10322f0c9b6a.json | 1 - .../cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json | 1 - .../cassettes/f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json | 1 - .../cassettes/f3cab6f942c4d7271ee54b89689e2642104c16e1.json | 1 - .../cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json | 1 - 24 files changed, 24 deletions(-) delete mode 100644 tests/tests/api_tests/cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json delete mode 100644 tests/tests/api_tests/cassettes/1c3466411abc39bbee145c78f3b17b973a427270.json delete mode 100644 tests/tests/api_tests/cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json delete mode 100644 tests/tests/api_tests/cassettes/49b087b5dcdebe88bdec9374a659582ecef4cf0e.json delete mode 100644 tests/tests/api_tests/cassettes/65e0942f1ad3a714b8e9b5136374de2c77708332.json delete mode 100644 tests/tests/api_tests/cassettes/6b8854ebbe15b5172ad04a37f0f63867087bcbd9.json delete mode 100644 tests/tests/api_tests/cassettes/7667780e6a0f594265f3e902dbe6383a28a733ab.json delete mode 100644 tests/tests/api_tests/cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json delete mode 100644 tests/tests/api_tests/cassettes/8276afde5d85a48fd04e72657f1b47e5bd9ff7a8.json delete mode 100644 tests/tests/api_tests/cassettes/83b0d6704912f1865dd2fb9239a1e7818ab3bdc9.json delete mode 100644 tests/tests/api_tests/cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json delete mode 100644 tests/tests/api_tests/cassettes/8ccf4ef98a12f666c96e427686c429919aab7d91.json delete mode 100644 tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json delete mode 100644 tests/tests/api_tests/cassettes/949cc773ac378030532f36a8ab596483f3586d05.json delete mode 100644 tests/tests/api_tests/cassettes/a27acd3c0e649ad8b9a56ad84535460a6405ee2c.json delete mode 100644 tests/tests/api_tests/cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json delete mode 100644 tests/tests/api_tests/cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json delete mode 100644 tests/tests/api_tests/cassettes/d0d6f17fefec299ec55c6c4f06180a57e3705650.json delete mode 100644 tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json delete mode 100644 tests/tests/api_tests/cassettes/da427a9a7f5006cf428910abcbcb10322f0c9b6a.json delete mode 100644 tests/tests/api_tests/cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json delete mode 100644 tests/tests/api_tests/cassettes/f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json delete mode 100644 tests/tests/api_tests/cassettes/f3cab6f942c4d7271ee54b89689e2642104c16e1.json delete mode 100644 tests/tests/api_tests/cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json diff --git a/tests/tests/api_tests/cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json b/tests/tests/api_tests/cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json deleted file mode 100644 index 899ea8e2..00000000 --- a/tests/tests/api_tests/cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"u_id\": \"uuid_custA_site1\", \"val\": 10, \"iter_key\": 4}", "encoding": "utf-8"}, "headers": {"Content-Length": ["54"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=y2AvWTGrmhvIneAbIhndfn18Lyectay4; sessionid=2b86gw09ua5rbq236gmsels9bhvasluq"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/itervalue/"}, "response": {"body": {"string": "{\"u_id\":\"uuid_custA_site1\",\"iter_key\":4,\"id\":4,\"val\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/itervalue/4/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/itervalue/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/1c3466411abc39bbee145c78f3b17b973a427270.json b/tests/tests/api_tests/cassettes/1c3466411abc39bbee145c78f3b17b973a427270.json deleted file mode 100644 index 1f88c2e2..00000000 --- a/tests/tests/api_tests/cassettes/1c3466411abc39bbee145c78f3b17b973a427270.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=bunHaDQp1DC0yPpNp2pLwK6dIVy78UiU; sessionid=4qieimfsezec5evpryle2uckel4ylqj0"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/5/networks/1/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Fri, 16 Sep 2016 02:11:21 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/5/networks/1/"}, "recorded_at": "2016-09-16T02:11:21"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json b/tests/tests/api_tests/cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json deleted file mode 100644 index 385f06ea..00000000 --- a/tests/tests/api_tests/cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=NiQoEIkppfTi5USNBFW874hIz3g4gKLC; sessionid=sawon12wcicqr64u4jyri5nmjeg2vr1i"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/6/iterable/8/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:40:56 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/6/iterable/8/"}, "recorded_at": "2016-09-19T08:40:56"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/49b087b5dcdebe88bdec9374a659582ecef4cf0e.json b/tests/tests/api_tests/cassettes/49b087b5dcdebe88bdec9374a659582ecef4cf0e.json deleted file mode 100644 index 945742ed..00000000 --- a/tests/tests/api_tests/cassettes/49b087b5dcdebe88bdec9374a659582ecef4cf0e.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=K3YxsPE38AqJyCrI7lqCPeMLbe0l6jaJ; sessionid=d4r0lciokadcr9kkhrn1k29syrl9m55u"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/itervalue/1/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:40:56 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/itervalue/1/"}, "recorded_at": "2016-09-19T08:40:56"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/65e0942f1ad3a714b8e9b5136374de2c77708332.json b/tests/tests/api_tests/cassettes/65e0942f1ad3a714b8e9b5136374de2c77708332.json deleted file mode 100644 index 58fd0ad8..00000000 --- a/tests/tests/api_tests/cassettes/65e0942f1ad3a714b8e9b5136374de2c77708332.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":8,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=NiQoEIkppfTi5USNBFW874hIz3g4gKLC; expires=Mon, 18-Sep-2017 08:40:56 GMT; Max-Age=31449600; Path=/", "sessionid=sawon12wcicqr64u4jyri5nmjeg2vr1i; expires=Mon, 03-Oct-2016 08:40:56 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/iterable/8/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:40:56 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/iterable/"}, "recorded_at": "2016-09-19T08:40:56"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/6b8854ebbe15b5172ad04a37f0f63867087bcbd9.json b/tests/tests/api_tests/cassettes/6b8854ebbe15b5172ad04a37f0f63867087bcbd9.json deleted file mode 100644 index 42477b74..00000000 --- a/tests/tests/api_tests/cassettes/6b8854ebbe15b5172ad04a37f0f63867087bcbd9.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=y2AvWTGrmhvIneAbIhndfn18Lyectay4; sessionid=2b86gw09ua5rbq236gmsels9bhvasluq"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/iterable/4/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/iterable/4/next_value/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/7667780e6a0f594265f3e902dbe6383a28a733ab.json b/tests/tests/api_tests/cassettes/7667780e6a0f594265f3e902dbe6383a28a733ab.json deleted file mode 100644 index 5b1e42d1..00000000 --- a/tests/tests/api_tests/cassettes/7667780e6a0f594265f3e902dbe6383a28a733ab.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"u_id\": \"new_update\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["22"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=QpNlMHm5gBiROHDiK9dbiVdzR00teQWy; sessionid=o44bjpiav1ough31ld4dj4uke298j8r4"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/3/itervalue/3/"}, "response": {"body": {"string": "{\"u_id\":\"new_update\",\"iter_key\":3,\"id\":3,\"val\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/itervalue/3/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json b/tests/tests/api_tests/cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json deleted file mode 100644 index 3f7234a1..00000000 --- a/tests/tests/api_tests/cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"u_id\": \"uuid_custA_site1\", \"val\": 10, \"iter_key\": 2}", "encoding": "utf-8"}, "headers": {"Content-Length": ["54"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Oq3KD87KIzEsdJR9FKQrQzW1V7l2R9s3; sessionid=cw045o3da8c39sahrvx6wafq3lpxgqwd"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/itervalue/"}, "response": {"body": {"string": "{\"u_id\":\"uuid_custA_site1\",\"iter_key\":2,\"id\":2,\"val\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/itervalue/2/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/itervalue/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/8276afde5d85a48fd04e72657f1b47e5bd9ff7a8.json b/tests/tests/api_tests/cassettes/8276afde5d85a48fd04e72657f1b47e5bd9ff7a8.json deleted file mode 100644 index 515448e7..00000000 --- a/tests/tests/api_tests/cassettes/8276afde5d85a48fd04e72657f1b47e5bd9ff7a8.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=5pOqqM865YSHQyPi7AHLulOajXmBKlDc; sessionid=jt8ejn0svv46cddbbot3dbkv1nwwnzc0"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/attributes/1/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":1,\"id\":1,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"attr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Fri, 16 Sep 2016 02:11:20 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/attributes/1/"}, "recorded_at": "2016-09-16T02:11:20"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/83b0d6704912f1865dd2fb9239a1e7818ab3bdc9.json b/tests/tests/api_tests/cassettes/83b0d6704912f1865dd2fb9239a1e7818ab3bdc9.json deleted file mode 100644 index 03ac777e..00000000 --- a/tests/tests/api_tests/cassettes/83b0d6704912f1865dd2fb9239a1e7818ab3bdc9.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=QpNlMHm5gBiROHDiK9dbiVdzR00teQWy; sessionid=o44bjpiav1ough31ld4dj4uke298j8r4"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/iterable/3/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/iterable/3/next_value/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json b/tests/tests/api_tests/cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json deleted file mode 100644 index 48803c9e..00000000 --- a/tests/tests/api_tests/cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=htfbfaX76FdV7nGXomOl4TGuDTA1WGyC; sessionid=swkvbuemvs3sgbdbirqu6u85xqxms307"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/7/iterable/9/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":9,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Sun, 18 Sep 2016 16:31:14 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/7/iterable/9/"}, "recorded_at": "2016-09-18T16:31:14"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=K3YxsPE38AqJyCrI7lqCPeMLbe0l6jaJ; sessionid=d4r0lciokadcr9kkhrn1k29syrl9m55u"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/iterable/9/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:40:56 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/iterable/9/"}, "recorded_at": "2016-09-19T08:40:56"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/8ccf4ef98a12f666c96e427686c429919aab7d91.json b/tests/tests/api_tests/cassettes/8ccf4ef98a12f666c96e427686c429919aab7d91.json deleted file mode 100644 index a904409f..00000000 --- a/tests/tests/api_tests/cassettes/8ccf4ef98a12f666c96e427686c429919aab7d91.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"u_id\": \"uuid_custA_site1\", \"id\": 2, \"iter_key\": 2, \"val\": 10}", "encoding": "utf-8"}, "headers": {"Content-Length": ["63"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Oq3KD87KIzEsdJR9FKQrQzW1V7l2R9s3; sessionid=cw045o3da8c39sahrvx6wafq3lpxgqwd"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/2/itervalue/2/"}, "response": {"body": {"string": "{\"u_id\":\"uuid_custA_site1\",\"iter_key\":2,\"id\":2,\"val\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/itervalue/2/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json b/tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json deleted file mode 100644 index f4473f91..00000000 --- a/tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=l9pA6HLlN1jb3ZOkA3E2XYlXsa9UttvJ; sessionid=e3wpqc3ksqak8un8z4rdoxfb3ifciu14"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/1/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/1/next_value/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/949cc773ac378030532f36a8ab596483f3586d05.json b/tests/tests/api_tests/cassettes/949cc773ac378030532f36a8ab596483f3586d05.json deleted file mode 100644 index a340d5f5..00000000 --- a/tests/tests/api_tests/cassettes/949cc773ac378030532f36a8ab596483f3586d05.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=y2AvWTGrmhvIneAbIhndfn18Lyectay4; sessionid=2b86gw09ua5rbq236gmsels9bhvasluq"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/4/itervalue/4/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/4/itervalue/4/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/a27acd3c0e649ad8b9a56ad84535460a6405ee2c.json b/tests/tests/api_tests/cassettes/a27acd3c0e649ad8b9a56ad84535460a6405ee2c.json deleted file mode 100644 index 75270f3b..00000000 --- a/tests/tests/api_tests/cassettes/a27acd3c0e649ad8b9a56ad84535460a6405ee2c.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"constraints\": {\"pattern\": \"\", \"valid_values\": [], \"allow_empty\": true}}", "encoding": "utf-8"}, "headers": {"Content-Length": ["73"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=koUMUsYEXkH9GMKNktiRoVWvbf6KrWI4; sessionid=dnqyh6kcva2971gbvlx8c4fuizr0539w"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/4/attributes/6/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"\",\"display\":true,\"required\":false,\"site_id\":4,\"id\":6,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":true},\"name\":\"attr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Fri, 16 Sep 2016 02:11:21 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/attributes/6/"}, "recorded_at": "2016-09-16T02:11:21"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json b/tests/tests/api_tests/cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json deleted file mode 100644 index 567802db..00000000 --- a/tests/tests/api_tests/cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=l9pA6HLlN1jb3ZOkA3E2XYlXsa9UttvJ; sessionid=e3wpqc3ksqak8un8z4rdoxfb3ifciu14"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/itervalue/1/"}, "response": {"body": {"string": "{\"u_id\":\"uuid_custA_site1\",\"iter_key\":1,\"id\":1,\"val\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/itervalue/1/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json b/tests/tests/api_tests/cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json deleted file mode 100644 index b07e85f1..00000000 --- a/tests/tests/api_tests/cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=K3YxsPE38AqJyCrI7lqCPeMLbe0l6jaJ; sessionid=d4r0lciokadcr9kkhrn1k29syrl9m55u"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/7/iterable/9/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:40:56 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/7/iterable/9/next_value/"}, "recorded_at": "2016-09-19T08:40:56"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/d0d6f17fefec299ec55c6c4f06180a57e3705650.json b/tests/tests/api_tests/cassettes/d0d6f17fefec299ec55c6c4f06180a57e3705650.json deleted file mode 100644 index dd0e4d99..00000000 --- a/tests/tests/api_tests/cassettes/d0d6f17fefec299ec55c6c4f06180a57e3705650.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"multi\": false, \"resource_name\": \"Network\", \"description\": \"\", \"required\": false, \"site_id\": 3, \"display\": false, \"constraints\": {\"pattern\": \"\", \"valid_values\": [], \"allow_empty\": false}, \"id\": 5, \"name\": \"attr1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["214"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=yeUHodCyTofe5ynHMiY44RK7TEg8OHbg; sessionid=vc2ytfa6015ke3zo6pzhiuxmk3jsb8hc"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/3/attributes/5/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Network\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":5,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"attr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Fri, 16 Sep 2016 02:11:20 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/attributes/5/"}, "recorded_at": "2016-09-16T02:11:20"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json b/tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json deleted file mode 100644 index bab24fea..00000000 --- a/tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Oq3KD87KIzEsdJR9FKQrQzW1V7l2R9s3; sessionid=cw045o3da8c39sahrvx6wafq3lpxgqwd"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterable/2/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterable/2/next_value/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/da427a9a7f5006cf428910abcbcb10322f0c9b6a.json b/tests/tests/api_tests/cassettes/da427a9a7f5006cf428910abcbcb10322f0c9b6a.json deleted file mode 100644 index 9231e2a1..00000000 --- a/tests/tests/api_tests/cassettes/da427a9a7f5006cf428910abcbcb10322f0c9b6a.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=htfbfaX76FdV7nGXomOl4TGuDTA1WGyC; sessionid=swkvbuemvs3sgbdbirqu6u85xqxms307"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/itervalue/"}, "response": {"body": {"string": "{\"error\":{\"message\":\"Method \\\"DELETE\\\" not allowed.\",\"code\":405}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Sun, 18 Sep 2016 16:33:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "METHOD NOT ALLOWED", "code": 405}, "url": "http://localhost:8081/api/sites/7/itervalue/"}, "recorded_at": "2016-09-18T16:33:34"}, {"request": {"body": {"string": "{\"u_id\": \"uuid_custA_site1\", \"val\": 10, \"iter_key\": 9}", "encoding": "utf-8"}, "headers": {"Content-Length": ["54"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=K3YxsPE38AqJyCrI7lqCPeMLbe0l6jaJ; sessionid=d4r0lciokadcr9kkhrn1k29syrl9m55u"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/itervalue/"}, "response": {"body": {"string": "{\"iter_key\":9,\"id\":1,\"val\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/itervalue/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:40:56 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/itervalue/"}, "recorded_at": "2016-09-19T08:40:56"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json b/tests/tests/api_tests/cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json deleted file mode 100644 index 36f49d6b..00000000 --- a/tests/tests/api_tests/cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=KintAbba6GsM4pQ3ytTpPm2QIEYZ2Bqc; sessionid=9u8hc8hp9h8lews5hrbduu2erfp7agcz"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/itervalue/"}, "response": {"body": {"string": "\n\n\n \n NSoT Error\n\n \n \n \n \n
    \n
    \n
    \n
    \n
    \n Error Loading Application\n
    \n
    \n You've failed to access the NSoT Frontend Application.\n This usually means you've tried to access without an\n authenticating proxy. Please contact your administrator.\n
    \n
    \n 500 - INTERNAL SERVER ERROR\n
    \n
    \n
    \n
    \n
    \n
    \n \n\n\n", "encoding": "utf-8"}, "headers": {"Date": ["Fri, 16 Sep 2016 03:00:43 GMT"], "Content-Type": ["text/html; charset=utf-8"], "X-Frame-Options": ["SAMEORIGIN"], "Vary": ["Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"]}, "status": {"message": "INTERNAL SERVER ERROR", "code": 500}, "url": "http://localhost:8081/api/sites/1/itervalue/"}, "recorded_at": "2016-09-16T03:00:43"}, {"request": {"body": {"string": "{\"u_id\": \"uuid_custA_site1\", \"val\": 10, \"iter_key\": 1}", "encoding": "utf-8"}, "headers": {"Content-Length": ["54"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=l9pA6HLlN1jb3ZOkA3E2XYlXsa9UttvJ; sessionid=e3wpqc3ksqak8un8z4rdoxfb3ifciu14"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/itervalue/"}, "response": {"body": {"string": "{\"u_id\":\"uuid_custA_site1\",\"iter_key\":1,\"id\":1,\"val\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/itervalue/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/itervalue/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json b/tests/tests/api_tests/cassettes/f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json deleted file mode 100644 index d35372a7..00000000 --- a/tests/tests/api_tests/cassettes/f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":9,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=K3YxsPE38AqJyCrI7lqCPeMLbe0l6jaJ; expires=Mon, 18-Sep-2017 08:40:56 GMT; Max-Age=31449600; Path=/", "sessionid=d4r0lciokadcr9kkhrn1k29syrl9m55u; expires=Mon, 03-Oct-2016 08:40:56 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/iterable/9/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:40:56 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/iterable/"}, "recorded_at": "2016-09-19T08:40:56"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/f3cab6f942c4d7271ee54b89689e2642104c16e1.json b/tests/tests/api_tests/cassettes/f3cab6f942c4d7271ee54b89689e2642104c16e1.json deleted file mode 100644 index 403253a6..00000000 --- a/tests/tests/api_tests/cassettes/f3cab6f942c4d7271ee54b89689e2642104c16e1.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=bunHaDQp1DC0yPpNp2pLwK6dIVy78UiU; sessionid=4qieimfsezec5evpryle2uckel4ylqj0"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/5/attributes/7/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Fri, 16 Sep 2016 02:11:21 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/5/attributes/7/"}, "recorded_at": "2016-09-16T02:11:21"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/tests/api_tests/cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json b/tests/tests/api_tests/cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json deleted file mode 100644 index 31220187..00000000 --- a/tests/tests/api_tests/cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"u_id\": \"uuid_custA_site1\", \"val\": 10, \"iter_key\": 3}", "encoding": "utf-8"}, "headers": {"Content-Length": ["54"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=QpNlMHm5gBiROHDiK9dbiVdzR00teQWy; sessionid=o44bjpiav1ough31ld4dj4uke298j8r4"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/itervalue/"}, "response": {"body": {"string": "{\"u_id\":\"uuid_custA_site1\",\"iter_key\":3,\"id\":3,\"val\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/itervalue/3/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 19 Sep 2016 08:50:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/itervalue/"}, "recorded_at": "2016-09-19T08:50:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file From 05bd9cc54b62bca5a14c858a4dd2749b6129d233 Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Sun, 20 Nov 2016 03:55:00 -0500 Subject: [PATCH 25/31] removed more cassettes --- .../cassettes/0082aaeb587bff5968f13d0727be522c4fb7e8a0.json | 1 - .../cassettes/0475fecbc10de7af4bc5e9337d5f476142994568.json | 1 - .../cassettes/0704593b203fc4aa3016ecae33955c88c4cc3087.json | 1 - .../cassettes/0cbfbb5b10e3458f9cb36eb24c2dad5da7febf7e.json | 1 - .../cassettes/0cdff7f34185571a2f648d36c457ce751f9e71e5.json | 1 - .../cassettes/10befd34b141709f88f6899b0eef60f68b0f8c54.json | 1 - .../cassettes/11f97becd90041963d52a7bc2fe0a32eff1b8250.json | 1 - .../cassettes/1521eac1cdfd49b2ede0aebd55763204f974bdd2.json | 1 - .../cassettes/15f1a60d19dfadf71e943dca17d8914a87865d85.json | 1 - .../cassettes/16ced06ae1340e16e7bf98cff4acc8305f7e7d83.json | 1 - .../cassettes/17d639dae48ee11cb31772377b146270935c05e2.json | 1 - .../cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json | 1 - .../cassettes/1dadb4e888302c283d82b63131b5b51b05655b17.json | 1 - .../cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json | 1 - .../cassettes/2113d8843e034c7465037088edd7480e9b7eefaa.json | 1 - .../cassettes/23c90370f99dbada2f22883aba385169e51adcd7.json | 1 - .../cassettes/24dd6a229c5feb28a10f26464631bc91e3ed4120.json | 1 - .../cassettes/26ee767d8bb23a67b0527a8a5b0c218e34fc11f5.json | 1 - .../cassettes/2b3d487a5f35b07499fa3c5cc906a5db77ed816c.json | 1 - .../cassettes/2bf3bda6f1cccbb63afa6a53385ad739959e7bdc.json | 1 - .../cassettes/2ffc0c2c5dd3fb20222b80d3c9ef6bd8a51f2e66.json | 1 - .../cassettes/32e5efafbb79d39ad5e9fc281baaab9caf809ddf.json | 1 - .../cassettes/3366d802a4cc39f6f4c342ae2435bc4068e87895.json | 1 - .../cassettes/34b6b065bd0ce36bf91afe8d8b9da00f07c0f5f8.json | 1 - .../cassettes/35035c88acbd2e01dca6bb8c688a6b5367141edd.json | 1 - .../cassettes/36035975b61f5aa73bbf34bc8bd23c344da7c17d.json | 1 - .../cassettes/392a3d2104215406ba907120a6e9b9f81f64074a.json | 1 - .../cassettes/3af321903bb496093b81aa0a6d6014973e85fc67.json | 1 - .../cassettes/3df52e0562c752284653b0dc256cc24ef88e6587.json | 1 - .../cassettes/3e511b6200d6511d81814c1bd5a8aba8f30ed0da.json | 1 - .../cassettes/3f16909f2572a95f6f8edf7ce341ecf1edcb79ad.json | 1 - .../cassettes/42f180af8d58bc0b7907a76c580089938f93235f.json | 1 - .../cassettes/460bdf3590df980e07baa9dc3ad9360387deb771.json | 1 - .../cassettes/467b46da621eb397704225646943bca8f7ebaf67.json | 1 - .../cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json | 1 - .../cassettes/4693311dc341610e073890dc8ff28a65fd35d815.json | 1 - .../cassettes/49b087b5dcdebe88bdec9374a659582ecef4cf0e.json | 1 - .../cassettes/4bc8b61bdb25c7dca7049a8f66fa3ed1f6c06033.json | 1 - .../cassettes/4c9d3c033871a72fd2c0264918832f7ee1c2793e.json | 1 - .../cassettes/52aa273d56a0d95e1a8e65f1b96a8ea09673ed4e.json | 1 - .../cassettes/5863e2415076faee1762b5a9bd036ffdf687ec9e.json | 1 - .../cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json | 1 - .../cassettes/5c61e78c8eb4ea24b812b2757d34f0425f62c4ce.json | 1 - .../cassettes/5f330cd3c7a6a655286e1ff2e4f18cb6b961d558.json | 1 - .../cassettes/654f6226f909731ce2a16f95ad58333e5d46b358.json | 1 - .../cassettes/65ad1126d5af748c76fa8186a04e9db94caa4266.json | 1 - .../cassettes/65e0942f1ad3a714b8e9b5136374de2c77708332.json | 1 - .../cassettes/66279b39bd62a3954a7525a47266dc24230c10f7.json | 1 - .../cassettes/66e3b4cc645e047a48dd09a18ae80bea4f32d15b.json | 1 - .../cassettes/67a69da5f6e63f009f084ad75653f7e9e9da6fae.json | 1 - .../cassettes/6811d21d4bfdf0a306e2aa7d0d6c892825fd907b.json | 1 - .../cassettes/683afd1f2714721d518b5a7bd1baee83385a73e8.json | 1 - .../cassettes/68a03035213ebcbf62913a52379d1cce83323b1e.json | 1 - .../cassettes/6b8854ebbe15b5172ad04a37f0f63867087bcbd9.json | 1 - .../cassettes/6c9100f15e145f9702cdccaaa2f57bee320e2862.json | 1 - .../cassettes/6d3e004374a49df1de91cdfd9e06a71bc33bc3c4.json | 1 - .../cassettes/6d949a66414ea0a3db44b8afe10e91106575a075.json | 1 - .../cassettes/6f07d375ab4808960a60920ff3c6c258bbd47463.json | 1 - .../cassettes/6f95e416f64ed29422d3718056c7909240dec283.json | 1 - .../cassettes/70142bff64de43747c29a669b078d3011e494ce0.json | 1 - .../cassettes/72143f794779e7b3d20c5caae77398edd54148f0.json | 1 - .../cassettes/743c558b7946fde225ef98eba440b352cf8069f6.json | 1 - .../cassettes/7667780e6a0f594265f3e902dbe6383a28a733ab.json | 1 - .../cassettes/78247dfdf33edca136ad0eb5fe63c7593d3776c1.json | 1 - .../cassettes/7936639e6727e1a0e1c2e2e3a2e36a4b4e20248e.json | 1 - .../cassettes/7998ced5800ae3ab7db96f6c05c3934a374bc978.json | 1 - .../cassettes/79ddc786c623617dca051d63750642214ad39267.json | 1 - .../cassettes/7d2efdd348236797e02a79096908ba2b10eb0169.json | 1 - .../cassettes/7dd2fe0784a357d6d3723d8af97fe8ce31e055b1.json | 1 - .../cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json | 1 - .../cassettes/7f592ec5adcc705efd02698886f997e750efdfd6.json | 1 - .../cassettes/7fc833c187bcb72feab094f6745102406d7501e2.json | 1 - .../cassettes/80d95360c7eea97a7c354ee6ca3c1a8851b53cd9.json | 1 - .../cassettes/8127bf578e29d120370ac72152d7f85c722827b1.json | 1 - .../cassettes/82beec6373c55da4a3001fbcac6b72729f72dbc0.json | 1 - .../cassettes/83b0d6704912f1865dd2fb9239a1e7818ab3bdc9.json | 1 - .../cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json | 1 - .../cassettes/84bb1c96e309feb49d8d2fa0d266b8369a0ec428.json | 1 - .../cassettes/865d72e9eec58ace6e960c148dad4032e5cbe74c.json | 1 - .../cassettes/865ec27a703ec684e7330d283c5cf789add90eeb.json | 1 - .../cassettes/86cf2cdf69f64c8608b1f8f8534bb48e0849469b.json | 1 - .../cassettes/8ccf4ef98a12f666c96e427686c429919aab7d91.json | 1 - .../cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json | 1 - .../cassettes/8f6a31734a3996d9000e28677df02c7fb6fce82e.json | 1 - .../cassettes/8fa8542c24682f1630f1068f09423a1504d0d054.json | 1 - .../cassettes/9071d0ebe6b2a5539393680f86a221d40c324b1a.json | 1 - .../cassettes/90de2c24b7b96754be5274456846c679c7218f66.json | 1 - .../cassettes/929c5029f7d582d42cc9c979ad541df4c4cabcd9.json | 1 - .../cassettes/92ed631c466c9febf8dfbcd1246122265290db14.json | 1 - .../cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json | 1 - .../cassettes/944e446940adf75be72d7ff7a59b5db4918d6e1c.json | 1 - .../cassettes/949cc773ac378030532f36a8ab596483f3586d05.json | 1 - .../cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json | 1 - .../cassettes/9656ecd4fe0150cd6217d09c5d4b1f8d9d19e00b.json | 1 - .../cassettes/9a1dd628a3eb7e38539910dfe4779c436f26fbcf.json | 1 - .../cassettes/9b7df91a15b8467cb4a0d6e28cff72627c05af10.json | 1 - .../cassettes/9c4af53e207bf96a18b2686d4332c7d6387741ff.json | 1 - .../cassettes/9e28a8939946014bbb652453058fd33ef7a8320e.json | 1 - .../cassettes/9e59fc13628275f2a31802bc64c03f049f457bd6.json | 1 - .../cassettes/a19750a6d840f704991808815c7cc500845d850f.json | 1 - .../cassettes/a219b1813ccf9f5f378c4b0c94bb02765f90d513.json | 1 - .../cassettes/a2fc16e99e6840d0b9309e5e2f140d779be5bb4d.json | 1 - .../cassettes/a48495323d11fad28e7e5e2054e5b0a25ec0952f.json | 1 - .../cassettes/a579564d9cc80ce669ba9d87617147b0fdf9e950.json | 1 - .../cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json | 1 - .../cassettes/a956c26cc96805f137aa6e1bf918e945cd2a2dcf.json | 1 - .../cassettes/ac14741009c2752d2974626d95219cb08ed03332.json | 1 - .../cassettes/b3463540377cf86fcf1e58bdc5d19bd5db4460aa.json | 1 - .../cassettes/b74958d4a89a7cf79ed11404f4294c471ff25aff.json | 1 - .../cassettes/b93ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json | 1 - .../cassettes/baf629ed91285cf74bf94815135d5cc474ee2cdd.json | 1 - .../cassettes/bd474da839501043708fa3000d35851e61d996a3.json | 1 - .../cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json | 1 - .../cassettes/bde34cd954fc463c1cee7195696c5662b0da623a.json | 1 - .../cassettes/bed48976a960605bb0cc70cc575506af38968f36.json | 1 - .../cassettes/c0cb95ea14a08d6a6bcfc780eec553cc3f4bded7.json | 1 - .../cassettes/c103a0cc7197d1128ce53feb5373975328c86a95.json | 1 - .../cassettes/c1ace35610f08937e315c7ca43d88e3d52cae87d.json | 1 - .../cassettes/c26809628169f516dea4ef452fe982b3b64faf42.json | 1 - .../cassettes/c27917cb3dae1fb80ec025a88502d8930abad8ed.json | 1 - .../cassettes/c5166aff566078fc644891c3d483a596bc238579.json | 1 - .../cassettes/c77fd2df6127b125a3d4d9d702eb97c7151b84b2.json | 1 - .../cassettes/c87885aa4d31ad8a2b08b03b992f52f9db466615.json | 1 - .../cassettes/cba0ca9382553634281ae742531723e2b84d8b34.json | 1 - .../cassettes/cbbe3fb07643a66ab8033584bea01b2a56d2a4a7.json | 1 - .../cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json | 1 - .../cassettes/ce676537fa146be76efe97393539b87248de1c84.json | 1 - .../cassettes/ced58e2cf97d7a523c5852924a577f5c8b892866.json | 1 - .../cassettes/d06f37f0a1e298db8a44f4f636fb6fb3284127de.json | 1 - .../cassettes/d172f0fadfb95294453118f64f6a030a09446bf9.json | 1 - .../cassettes/d456384a5763e1fb69be4c8a36aabd43efde2aec.json | 1 - .../cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json | 1 - .../cassettes/d5f7009c8ca1699486d9116a6ca0da537b1bb8b7.json | 1 - .../cassettes/d64396a0e9f44951ae8d3dd39b07e3b4ac792cdc.json | 1 - .../cassettes/d94de6e6562d496610045848634ac64d824062a5.json | 1 - .../cassettes/d9993b207736a02db0e341bc1253b5c708697d6e.json | 1 - .../cassettes/da427a9a7f5006cf428910abcbcb10322f0c9b6a.json | 1 - .../cassettes/e0e399e8dbcd4774ee2b95798987a3638ea50836.json | 1 - .../cassettes/eacb60510140254a7ec730a2383e740cf8048a1d.json | 1 - .../cassettes/eb12b0fa792eb79c4d325779b62e416a5f3bd4bd.json | 1 - .../cassettes/eb265a9697212637085b4a3e6ab21689f776d9de.json | 1 - .../cassettes/edd5ea30273120cefcc90a7f78227fc9af2c4f25.json | 1 - .../cassettes/ee0b0d065d59bf08356f8637dc33c6aafed9083a.json | 1 - .../cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json | 1 - .../cassettes/efdfaf06458551f5d928717e1a227e44b1a4b03b.json | 1 - .../cassettes/f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json | 1 - .../cassettes/f3fe397632a874f9bb32ccda0313de2633938b63.json | 1 - .../cassettes/f4f454793819b78cee2c3266c61a2ef84dd8e291.json | 1 - .../cassettes/f4fda071eb8ac67600e3a674f17e31bc2aa298d6.json | 1 - .../cassettes/f5d01c6d7cf05a4278dd5458a09e0b04788a0103.json | 1 - .../cassettes/f88bf65cf0371d4806fae9e1ff953f163ab0d803.json | 1 - .../cassettes/f89563819dcaf8721dcc05b5d25657de7e4a3a8d.json | 1 - .../cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json | 1 - .../cassettes/fd0ebe116d422145e03dbb05c5d21d8f36ffe70f.json | 1 - .../cassettes/fdbaea7fe81fb647256ead8b8076b3fa39ae57ec.json | 1 - .../cassettes/ffd4529bd2b59140eec7020beac2eb51f67ba602.json | 1 - 156 files changed, 156 deletions(-) delete mode 100644 tests/api_tests/tests/api_tests/cassettes/0082aaeb587bff5968f13d0727be522c4fb7e8a0.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/0475fecbc10de7af4bc5e9337d5f476142994568.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/0704593b203fc4aa3016ecae33955c88c4cc3087.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/0cbfbb5b10e3458f9cb36eb24c2dad5da7febf7e.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/0cdff7f34185571a2f648d36c457ce751f9e71e5.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/10befd34b141709f88f6899b0eef60f68b0f8c54.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/11f97becd90041963d52a7bc2fe0a32eff1b8250.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/1521eac1cdfd49b2ede0aebd55763204f974bdd2.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/15f1a60d19dfadf71e943dca17d8914a87865d85.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/16ced06ae1340e16e7bf98cff4acc8305f7e7d83.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/17d639dae48ee11cb31772377b146270935c05e2.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/1dadb4e888302c283d82b63131b5b51b05655b17.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/2113d8843e034c7465037088edd7480e9b7eefaa.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/23c90370f99dbada2f22883aba385169e51adcd7.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/24dd6a229c5feb28a10f26464631bc91e3ed4120.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/26ee767d8bb23a67b0527a8a5b0c218e34fc11f5.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/2b3d487a5f35b07499fa3c5cc906a5db77ed816c.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/2bf3bda6f1cccbb63afa6a53385ad739959e7bdc.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/2ffc0c2c5dd3fb20222b80d3c9ef6bd8a51f2e66.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/32e5efafbb79d39ad5e9fc281baaab9caf809ddf.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/3366d802a4cc39f6f4c342ae2435bc4068e87895.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/34b6b065bd0ce36bf91afe8d8b9da00f07c0f5f8.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/35035c88acbd2e01dca6bb8c688a6b5367141edd.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/36035975b61f5aa73bbf34bc8bd23c344da7c17d.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/392a3d2104215406ba907120a6e9b9f81f64074a.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/3af321903bb496093b81aa0a6d6014973e85fc67.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/3df52e0562c752284653b0dc256cc24ef88e6587.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/3e511b6200d6511d81814c1bd5a8aba8f30ed0da.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/3f16909f2572a95f6f8edf7ce341ecf1edcb79ad.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/42f180af8d58bc0b7907a76c580089938f93235f.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/460bdf3590df980e07baa9dc3ad9360387deb771.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/467b46da621eb397704225646943bca8f7ebaf67.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/4693311dc341610e073890dc8ff28a65fd35d815.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/49b087b5dcdebe88bdec9374a659582ecef4cf0e.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/4bc8b61bdb25c7dca7049a8f66fa3ed1f6c06033.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/4c9d3c033871a72fd2c0264918832f7ee1c2793e.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/52aa273d56a0d95e1a8e65f1b96a8ea09673ed4e.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/5863e2415076faee1762b5a9bd036ffdf687ec9e.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/5c61e78c8eb4ea24b812b2757d34f0425f62c4ce.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/5f330cd3c7a6a655286e1ff2e4f18cb6b961d558.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/654f6226f909731ce2a16f95ad58333e5d46b358.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/65ad1126d5af748c76fa8186a04e9db94caa4266.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/65e0942f1ad3a714b8e9b5136374de2c77708332.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/66279b39bd62a3954a7525a47266dc24230c10f7.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/66e3b4cc645e047a48dd09a18ae80bea4f32d15b.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/67a69da5f6e63f009f084ad75653f7e9e9da6fae.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/6811d21d4bfdf0a306e2aa7d0d6c892825fd907b.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/683afd1f2714721d518b5a7bd1baee83385a73e8.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/68a03035213ebcbf62913a52379d1cce83323b1e.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/6b8854ebbe15b5172ad04a37f0f63867087bcbd9.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/6c9100f15e145f9702cdccaaa2f57bee320e2862.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/6d3e004374a49df1de91cdfd9e06a71bc33bc3c4.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/6d949a66414ea0a3db44b8afe10e91106575a075.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/6f07d375ab4808960a60920ff3c6c258bbd47463.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/6f95e416f64ed29422d3718056c7909240dec283.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/70142bff64de43747c29a669b078d3011e494ce0.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/72143f794779e7b3d20c5caae77398edd54148f0.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/743c558b7946fde225ef98eba440b352cf8069f6.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/7667780e6a0f594265f3e902dbe6383a28a733ab.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/78247dfdf33edca136ad0eb5fe63c7593d3776c1.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/7936639e6727e1a0e1c2e2e3a2e36a4b4e20248e.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/7998ced5800ae3ab7db96f6c05c3934a374bc978.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/79ddc786c623617dca051d63750642214ad39267.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/7d2efdd348236797e02a79096908ba2b10eb0169.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/7dd2fe0784a357d6d3723d8af97fe8ce31e055b1.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/7f592ec5adcc705efd02698886f997e750efdfd6.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/7fc833c187bcb72feab094f6745102406d7501e2.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/80d95360c7eea97a7c354ee6ca3c1a8851b53cd9.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/8127bf578e29d120370ac72152d7f85c722827b1.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/82beec6373c55da4a3001fbcac6b72729f72dbc0.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/83b0d6704912f1865dd2fb9239a1e7818ab3bdc9.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/84bb1c96e309feb49d8d2fa0d266b8369a0ec428.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/865d72e9eec58ace6e960c148dad4032e5cbe74c.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/865ec27a703ec684e7330d283c5cf789add90eeb.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/86cf2cdf69f64c8608b1f8f8534bb48e0849469b.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/8ccf4ef98a12f666c96e427686c429919aab7d91.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/8f6a31734a3996d9000e28677df02c7fb6fce82e.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/8fa8542c24682f1630f1068f09423a1504d0d054.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/9071d0ebe6b2a5539393680f86a221d40c324b1a.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/90de2c24b7b96754be5274456846c679c7218f66.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/929c5029f7d582d42cc9c979ad541df4c4cabcd9.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/92ed631c466c9febf8dfbcd1246122265290db14.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/944e446940adf75be72d7ff7a59b5db4918d6e1c.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/949cc773ac378030532f36a8ab596483f3586d05.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/9656ecd4fe0150cd6217d09c5d4b1f8d9d19e00b.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/9a1dd628a3eb7e38539910dfe4779c436f26fbcf.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/9b7df91a15b8467cb4a0d6e28cff72627c05af10.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/9c4af53e207bf96a18b2686d4332c7d6387741ff.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/9e28a8939946014bbb652453058fd33ef7a8320e.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/9e59fc13628275f2a31802bc64c03f049f457bd6.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/a19750a6d840f704991808815c7cc500845d850f.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/a219b1813ccf9f5f378c4b0c94bb02765f90d513.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/a2fc16e99e6840d0b9309e5e2f140d779be5bb4d.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/a48495323d11fad28e7e5e2054e5b0a25ec0952f.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/a579564d9cc80ce669ba9d87617147b0fdf9e950.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/a956c26cc96805f137aa6e1bf918e945cd2a2dcf.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/ac14741009c2752d2974626d95219cb08ed03332.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/b3463540377cf86fcf1e58bdc5d19bd5db4460aa.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/b74958d4a89a7cf79ed11404f4294c471ff25aff.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/b93ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/baf629ed91285cf74bf94815135d5cc474ee2cdd.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/bd474da839501043708fa3000d35851e61d996a3.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/bde34cd954fc463c1cee7195696c5662b0da623a.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/bed48976a960605bb0cc70cc575506af38968f36.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/c0cb95ea14a08d6a6bcfc780eec553cc3f4bded7.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/c103a0cc7197d1128ce53feb5373975328c86a95.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/c1ace35610f08937e315c7ca43d88e3d52cae87d.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/c26809628169f516dea4ef452fe982b3b64faf42.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/c27917cb3dae1fb80ec025a88502d8930abad8ed.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/c5166aff566078fc644891c3d483a596bc238579.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/c77fd2df6127b125a3d4d9d702eb97c7151b84b2.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/c87885aa4d31ad8a2b08b03b992f52f9db466615.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/cba0ca9382553634281ae742531723e2b84d8b34.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/cbbe3fb07643a66ab8033584bea01b2a56d2a4a7.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/ce676537fa146be76efe97393539b87248de1c84.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/ced58e2cf97d7a523c5852924a577f5c8b892866.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/d06f37f0a1e298db8a44f4f636fb6fb3284127de.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/d172f0fadfb95294453118f64f6a030a09446bf9.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/d456384a5763e1fb69be4c8a36aabd43efde2aec.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/d5f7009c8ca1699486d9116a6ca0da537b1bb8b7.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/d64396a0e9f44951ae8d3dd39b07e3b4ac792cdc.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/d94de6e6562d496610045848634ac64d824062a5.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/d9993b207736a02db0e341bc1253b5c708697d6e.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/da427a9a7f5006cf428910abcbcb10322f0c9b6a.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/e0e399e8dbcd4774ee2b95798987a3638ea50836.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/eacb60510140254a7ec730a2383e740cf8048a1d.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/eb12b0fa792eb79c4d325779b62e416a5f3bd4bd.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/eb265a9697212637085b4a3e6ab21689f776d9de.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/edd5ea30273120cefcc90a7f78227fc9af2c4f25.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/ee0b0d065d59bf08356f8637dc33c6aafed9083a.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/efdfaf06458551f5d928717e1a227e44b1a4b03b.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/f3fe397632a874f9bb32ccda0313de2633938b63.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/f4f454793819b78cee2c3266c61a2ef84dd8e291.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/f4fda071eb8ac67600e3a674f17e31bc2aa298d6.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/f5d01c6d7cf05a4278dd5458a09e0b04788a0103.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/f88bf65cf0371d4806fae9e1ff953f163ab0d803.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/f89563819dcaf8721dcc05b5d25657de7e4a3a8d.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/fd0ebe116d422145e03dbb05c5d21d8f36ffe70f.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/fdbaea7fe81fb647256ead8b8076b3fa39ae57ec.json delete mode 100644 tests/api_tests/tests/api_tests/cassettes/ffd4529bd2b59140eec7020beac2eb51f67ba602.json diff --git a/tests/api_tests/tests/api_tests/cassettes/0082aaeb587bff5968f13d0727be522c4fb7e8a0.json b/tests/api_tests/tests/api_tests/cassettes/0082aaeb587bff5968f13d0727be522c4fb7e8a0.json deleted file mode 100644 index b5ed91b2..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/0082aaeb587bff5968f13d0727be522c4fb7e8a0.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "[\n {\n \"attributes\": {\n \"cluster\": \"\", \n \"foo\": \"bar\", \n \"owner\": \"jathan\"\n }, \n \"hostname\": \"foo-bar1\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"\", \n \"foo\": \"baz\", \n \"owner\": \"gary\"\n }, \n \"hostname\": \"foo-bar2\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"lax\", \n \"foo\": \"baz\", \n \"owner\": \"jathan\"\n }, \n \"hostname\": \"foo-bar3\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"sjc\", \n \"foo\": \"bar\", \n \"owner\": \"gary\"\n }, \n \"hostname\": \"foo-bar4\"\n }\n]\n", "encoding": "utf-8"}, "headers": {"Content-Length": ["668"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=GBNXIH9wIhYIx23dUR1rslHAgSdp5FAr; sessionid=udqy24scis5u09bgda0x0xgd01xcd28p"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/devices/"}, "response": {"body": {"string": "[{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"bar\"},\"hostname\":\"foo-bar1\",\"site_id\":4,\"id\":9},{\"attributes\":{\"owner\":\"gary\",\"cluster\":\"\",\"foo\":\"baz\"},\"hostname\":\"foo-bar2\",\"site_id\":4,\"id\":10},{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"hostname\":\"foo-bar3\",\"site_id\":4,\"id\":11},{\"attributes\":{\"owner\":\"gary\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"hostname\":\"foo-bar4\",\"site_id\":4,\"id\":12}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/devices/"}, "recorded_at": "2016-10-04T20:39:05"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/0475fecbc10de7af4bc5e9337d5f476142994568.json b/tests/api_tests/tests/api_tests/cassettes/0475fecbc10de7af4bc5e9337d5f476142994568.json deleted file mode 100644 index 3a11b0bb..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/0475fecbc10de7af4bc5e9337d5f476142994568.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=9JOFo3zBL5oYq5qEUrBp5guHXsRhAGkm; sessionid=lhjlb73mg7p464m1nbcgc9fvzp5ttq4m"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/itervalues/"}, "response": {"body": {"string": "[{\"attributes\":{\"service_key\":\"custa01_key1\"},\"iterable\":7,\"id\":13,\"value\":10},{\"attributes\":{\"service_key\":\"custa01_key2\"},\"iterable\":7,\"id\":14,\"value\":11},{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":7,\"id\":16,\"value\":13},{\"attributes\":{\"service_key\":\"custa01_key1\"},\"iterable\":8,\"id\":17,\"value\":100},{\"attributes\":{\"service_key\":\"custa01_key2\"},\"iterable\":8,\"id\":18,\"value\":101},{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":8,\"id\":20,\"value\":103}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 13:20:34 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/itervalues/"}, "recorded_at": "2016-10-06T13:20:34"}, {"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custb01_key2\"}, \"value\": 103, \"iterable\": 8}", "encoding": "utf-8"}, "headers": {"Content-Length": ["76"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=0jL0LvYu5EFws3K1kKTRXJQj6AKAy1AH; sessionid=8gzg7faljbwhb7un2wi458q4zom8bbr9"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":8,\"id\":20,\"value\":103}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/itervalues/20/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/itervalues/"}, "recorded_at": "2016-10-10T19:27:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=0jL0LvYu5EFws3K1kKTRXJQj6AKAy1AH; sessionid=8gzg7faljbwhb7un2wi458q4zom8bbr9"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/itervalues/?attributes=service_key%3Dcustb01_key1"}, "response": {"body": {"string": "[]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/itervalues/?attributes=service_key%3Dcustb01_key1"}, "recorded_at": "2016-10-10T19:27:33"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=0jL0LvYu5EFws3K1kKTRXJQj6AKAy1AH; sessionid=8gzg7faljbwhb7un2wi458q4zom8bbr9"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/itervalues/?attributes=service_key%3Dcustb01_key2"}, "response": {"body": {"string": "[{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":7,\"id\":16,\"value\":13},{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":8,\"id\":20,\"value\":103}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/itervalues/?attributes=service_key%3Dcustb01_key2"}, "recorded_at": "2016-10-10T19:27:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/0704593b203fc4aa3016ecae33955c88c4cc3087.json b/tests/api_tests/tests/api_tests/cassettes/0704593b203fc4aa3016ecae33955c88c4cc3087.json deleted file mode 100644 index c00936c6..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/0704593b203fc4aa3016ecae33955c88c4cc3087.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{}", "encoding": "utf-8"}, "headers": {"Content-Length": ["2"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["user@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/6/devices/bar/"}, "response": {"body": {"string": "{\"error\":{\"message\":\"You do not have permission to perform this action.\",\"code\":403}}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=BjWP0wbPyaFQZ4tvxzStjadERf7BN68i; expires=Tue, 03-Oct-2017 20:39:06 GMT; Max-Age=31449600; Path=/", "sessionid=enjvdydzf6k3tynrdh4z872pphor7pff; expires=Tue, 18-Oct-2016 20:39:06 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "FORBIDDEN", "code": 403}, "url": "http://localhost:8081/api/sites/6/devices/bar/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/0cbfbb5b10e3458f9cb36eb24c2dad5da7febf7e.json b/tests/api_tests/tests/api_tests/cassettes/0cbfbb5b10e3458f9cb36eb24c2dad5da7febf7e.json deleted file mode 100644 index 828e9789..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/0cbfbb5b10e3458f9cb36eb24c2dad5da7febf7e.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=0jL0LvYu5EFws3K1kKTRXJQj6AKAy1AH; sessionid=8gzg7faljbwhb7un2wi458q4zom8bbr9"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/iterables/7/next_value/"}, "response": {"body": {"string": "[13]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/iterables/7/next_value/"}, "recorded_at": "2016-10-10T19:27:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/0cdff7f34185571a2f648d36c457ce751f9e71e5.json b/tests/api_tests/tests/api_tests/cassettes/0cdff7f34185571a2f648d36c457ce751f9e71e5.json deleted file mode 100644 index 7f261ed9..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/0cdff7f34185571a2f648d36c457ce751f9e71e5.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=0jL0LvYu5EFws3K1kKTRXJQj6AKAy1AH; sessionid=8gzg7faljbwhb7un2wi458q4zom8bbr9"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/6/itervalues/15/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/6/itervalues/15/"}, "recorded_at": "2016-10-10T19:27:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/10befd34b141709f88f6899b0eef60f68b0f8c54.json b/tests/api_tests/tests/api_tests/cassettes/10befd34b141709f88f6899b0eef60f68b0f8c54.json deleted file mode 100644 index bec9d0b0..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/10befd34b141709f88f6899b0eef60f68b0f8c54.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UFl1W0wjMeWEdWkqIF1Bw6Xj6m44mQQr; sessionid=kaaqgx1er446gahsdi2uww6kg6mjb5m1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/5/itervalue/12/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:35:48 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/5/itervalue/12/"}, "recorded_at": "2016-10-05T14:35:48"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/11f97becd90041963d52a7bc2fe0a32eff1b8250.json b/tests/api_tests/tests/api_tests/cassettes/11f97becd90041963d52a7bc2fe0a32eff1b8250.json deleted file mode 100644 index 1998f1db..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/11f97becd90041963d52a7bc2fe0a32eff1b8250.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":7,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=itIrWzqC1k23oDK2Vg3mt6dnXD3X3YMj; expires=Mon, 09-Oct-2017 14:11:03 GMT; Max-Age=31449600; Path=/", "sessionid=jcs0r67cdv1a55oaa0nhqdh9cx5k3fae; expires=Mon, 24-Oct-2016 14:11:03 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/iterable/7/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/iterable/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/1521eac1cdfd49b2ede0aebd55763204f974bdd2.json b/tests/api_tests/tests/api_tests/cassettes/1521eac1cdfd49b2ede0aebd55763204f974bdd2.json deleted file mode 100644 index 0452747d..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/1521eac1cdfd49b2ede0aebd55763204f974bdd2.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=itzuyr27PJqsA9C8Ttwk9kHPJeMOf2zm; sessionid=v8m9rkhq8gx03lf2u6wxgr9liyi6mmy9"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/5/iterable/6/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 19:32:55 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/5/iterable/6/next_value/"}, "recorded_at": "2016-10-06T19:32:55"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/15f1a60d19dfadf71e943dca17d8914a87865d85.json b/tests/api_tests/tests/api_tests/cassettes/15f1a60d19dfadf71e943dca17d8914a87865d85.json deleted file mode 100644 index 0b0d1b63..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/15f1a60d19dfadf71e943dca17d8914a87865d85.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/30/ancestors/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27},{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28},{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/30/ancestors/"}, "recorded_at": "2016-09-21T01:06:01"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/30/ancestors/?ascending=True"}, "response": {"body": {"string": "[{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29},{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/30/ancestors/?ascending=True"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/16ced06ae1340e16e7bf98cff4acc8305f7e7d83.json b/tests/api_tests/tests/api_tests/cassettes/16ced06ae1340e16e7bf98cff4acc8305f7e7d83.json deleted file mode 100644 index 8b2207aa..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/16ced06ae1340e16e7bf98cff4acc8305f7e7d83.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"hostname\": \"foo-bar1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["24"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/9/devices/"}, "response": {"body": {"string": "{\"attributes\":{},\"hostname\":\"foo-bar1\",\"site_id\":9,\"id\":19}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=VOWIruYGh2cNAJfPR6I6SwE9gboBFVAz; expires=Tue, 03-Oct-2017 20:39:06 GMT; Max-Age=31449600; Path=/", "sessionid=n64m0t4yrcn58gblfe1altpzwzh2bclr; expires=Tue, 18-Oct-2016 20:39:06 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/9/devices/19/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/9/devices/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/17d639dae48ee11cb31772377b146270935c05e2.json b/tests/api_tests/tests/api_tests/cassettes/17d639dae48ee11cb31772377b146270935c05e2.json deleted file mode 100644 index 4125aade..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/17d639dae48ee11cb31772377b146270935c05e2.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=aG6lS80qF5MnewAKm7vYVN6OjxZf5MFG; sessionid=ga13ui6clagtfsarxbrc59cp81qrdz7e"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/devices/?attributes=foo%3Dbaz"}, "response": {"body": {"string": "[{\"attributes\":{\"owner\":\"gary\",\"cluster\":\"\",\"foo\":\"baz\"},\"hostname\":\"foo-bar2\",\"site_id\":3,\"id\":6},{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"hostname\":\"foo-bar3\",\"site_id\":3,\"id\":7}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 19:18:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/devices/?attributes=foo%3Dbaz"}, "recorded_at": "2016-10-04T19:18:03"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=aG6lS80qF5MnewAKm7vYVN6OjxZf5MFG; sessionid=ga13ui6clagtfsarxbrc59cp81qrdz7e"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/devices/?attributes=foo%3Dbaz&attributes=cluster%3Dlax"}, "response": {"body": {"string": "[{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"hostname\":\"foo-bar3\",\"site_id\":3,\"id\":7}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 19:18:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/devices/?attributes=foo%3Dbaz&attributes=cluster%3Dlax"}, "recorded_at": "2016-10-04T19:18:03"}, {"request": {"body": {"string": "[\n {\n \"attributes\": {\n \"cluster\": \"\", \n \"foo\": \"bar\", \n \"owner\": \"jathan\"\n }, \n \"hostname\": \"foo-bar1\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"\", \n \"foo\": \"baz\", \n \"owner\": \"gary\"\n }, \n \"hostname\": \"foo-bar2\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"lax\", \n \"foo\": \"baz\", \n \"owner\": \"jathan\"\n }, \n \"hostname\": \"foo-bar3\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"sjc\", \n \"foo\": \"bar\", \n \"owner\": \"gary\"\n }, \n \"hostname\": \"foo-bar4\"\n }\n]\n", "encoding": "utf-8"}, "headers": {"Content-Length": ["668"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=WljdaNu1c3YNSdyo41LokfsKqAkdDkz8; sessionid=ge4lsq4k5fc78t52vtmmeiua76o3z0h8"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/devices/"}, "response": {"body": {"string": "[{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"bar\"},\"hostname\":\"foo-bar1\",\"site_id\":3,\"id\":5},{\"attributes\":{\"owner\":\"gary\",\"cluster\":\"\",\"foo\":\"baz\"},\"hostname\":\"foo-bar2\",\"site_id\":3,\"id\":6},{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"hostname\":\"foo-bar3\",\"site_id\":3,\"id\":7},{\"attributes\":{\"owner\":\"gary\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"hostname\":\"foo-bar4\",\"site_id\":3,\"id\":8}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:38:16 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/devices/"}, "recorded_at": "2016-10-04T20:38:16"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=WljdaNu1c3YNSdyo41LokfsKqAkdDkz8; sessionid=ge4lsq4k5fc78t52vtmmeiua76o3z0h8"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/devices/?hostname=foo-bar3"}, "response": {"body": {"string": "[{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"hostname\":\"foo-bar3\",\"site_id\":3,\"id\":7}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:38:16 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/devices/?hostname=foo-bar3"}, "recorded_at": "2016-10-04T20:38:16"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json b/tests/api_tests/tests/api_tests/cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json deleted file mode 100644 index 088ce1f7..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/188882f3491f581dee8cafb6e7761f9f1354282a.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 5}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=A3FKpUax8zE3bHg19bCaRidkqg6l60hn; sessionid=v2e3vwnj0nob5r7i1kk6yj132tbuxty6"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/itervalue/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":5,\"id\":11,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/itervalue/11/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:35:48 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/itervalue/"}, "recorded_at": "2016-10-05T14:35:48"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/1dadb4e888302c283d82b63131b5b51b05655b17.json b/tests/api_tests/tests/api_tests/cassettes/1dadb4e888302c283d82b63131b5b51b05655b17.json deleted file mode 100644 index 5bfdf296..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/1dadb4e888302c283d82b63131b5b51b05655b17.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"cidr\": \"10.250.0.0/25\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["25"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=q8GGhuE1Dueo7kgW7Ul4VnDZZp8B5Kjk; sessionid=ugt61lak8mm8mwbgwy0nnokxa3x96h45"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/11/networks/"}, "response": {"body": {"string": "{\"parent_id\":41,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.250.0.0\",\"attributes\":{},\"site_id\":11,\"id\":42}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/11/networks/42/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:08:51 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/11/networks/"}, "recorded_at": "2016-09-21T01:08:51"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json b/tests/api_tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json deleted file mode 100644 index 1696c383..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/1dc29ddf21838a67b257b99cd646b5b632bf0240.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "[{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"iterable1\"}, {\"max_val\": 20, \"min_val\": 10, \"name\": \"itr2\", \"increment\": 1, \"description\": \"iterable2\"}, {\"max_val\": 20, \"min_val\": 10, \"name\": \"itr3\", \"increment\": 1, \"description\": \"iterable3\"}]", "encoding": "utf-8"}, "headers": {"Content-Length": ["276"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/iterable/"}, "response": {"body": {"string": "[{\"description\":\"iterable1\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":2,\"name\":\"itr1\"},{\"description\":\"iterable2\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":3,\"name\":\"itr2\"},{\"description\":\"iterable3\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":4,\"name\":\"itr3\"}]", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=OlegL2Cc5pLKJqmUW6vxgYvGRHp9Runq; expires=Mon, 09-Oct-2017 14:11:03 GMT; Max-Age=31449600; Path=/", "sessionid=vnwa0hhq01d9cy4qd2jd65h9yqsqr0p1; expires=Mon, 24-Oct-2016 14:11:03 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/iterable/"}, "recorded_at": "2016-10-10T14:11:03"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=OlegL2Cc5pLKJqmUW6vxgYvGRHp9Runq; sessionid=vnwa0hhq01d9cy4qd2jd65h9yqsqr0p1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterable/"}, "response": {"body": {"string": "[{\"description\":\"iterable1\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":2,\"name\":\"itr1\"},{\"description\":\"iterable2\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":3,\"name\":\"itr2\"},{\"description\":\"iterable3\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":4,\"name\":\"itr3\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterable/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/2113d8843e034c7465037088edd7480e9b7eefaa.json b/tests/api_tests/tests/api_tests/cassettes/2113d8843e034c7465037088edd7480e9b7eefaa.json deleted file mode 100644 index 507d6a3d..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/2113d8843e034c7465037088edd7480e9b7eefaa.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=0jL0LvYu5EFws3K1kKTRXJQj6AKAy1AH; sessionid=8gzg7faljbwhb7un2wi458q4zom8bbr9"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":6,\"id\":6,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/attributes/6/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/attributes/"}, "recorded_at": "2016-10-10T19:27:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/23c90370f99dbada2f22883aba385169e51adcd7.json b/tests/api_tests/tests/api_tests/cassettes/23c90370f99dbada2f22883aba385169e51adcd7.json deleted file mode 100644 index dbcd34b4..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/23c90370f99dbada2f22883aba385169e51adcd7.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=WXJgGnEJSR9o5vSopq7w00BssjHtGHaa; sessionid=2wn8p8mf8y6vsjb2ulevpodocycj52y9"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/networks/25/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/networks/25/"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/24dd6a229c5feb28a10f26464631bc91e3ed4120.json b/tests/api_tests/tests/api_tests/cassettes/24dd6a229c5feb28a10f26464631bc91e3ed4120.json deleted file mode 100644 index 0ed4acbe..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/24dd6a229c5feb28a10f26464631bc91e3ed4120.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=GBNXIH9wIhYIx23dUR1rslHAgSdp5FAr; sessionid=udqy24scis5u09bgda0x0xgd01xcd28p"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/devices/query/?query=foo%3Dbar"}, "response": {"body": {"string": "[{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"bar\"},\"hostname\":\"foo-bar1\",\"site_id\":4,\"id\":9},{\"attributes\":{\"owner\":\"gary\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"hostname\":\"foo-bar4\",\"site_id\":4,\"id\":12}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/devices/query/?query=foo%3Dbar"}, "recorded_at": "2016-10-04T20:39:05"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=GBNXIH9wIhYIx23dUR1rslHAgSdp5FAr; sessionid=udqy24scis5u09bgda0x0xgd01xcd28p"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/devices/query/?query=foo%3Dbar+owner%3Djathan"}, "response": {"body": {"string": "[{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"bar\"},\"hostname\":\"foo-bar1\",\"site_id\":4,\"id\":9}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/devices/query/?query=foo%3Dbar+owner%3Djathan"}, "recorded_at": "2016-10-04T20:39:05"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=GBNXIH9wIhYIx23dUR1rslHAgSdp5FAr; sessionid=udqy24scis5u09bgda0x0xgd01xcd28p"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/devices/query/?query=-owner%3Dgary"}, "response": {"body": {"string": "[{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"bar\"},\"hostname\":\"foo-bar1\",\"site_id\":4,\"id\":9},{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"hostname\":\"foo-bar3\",\"site_id\":4,\"id\":11}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/devices/query/?query=-owner%3Dgary"}, "recorded_at": "2016-10-04T20:39:05"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=GBNXIH9wIhYIx23dUR1rslHAgSdp5FAr; sessionid=udqy24scis5u09bgda0x0xgd01xcd28p"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/devices/query/?query=cluster+%2Bfoo%3Dbaz"}, "response": {"body": {"string": "[{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"bar\"},\"hostname\":\"foo-bar1\",\"site_id\":4,\"id\":9},{\"attributes\":{\"owner\":\"gary\",\"cluster\":\"\",\"foo\":\"baz\"},\"hostname\":\"foo-bar2\",\"site_id\":4,\"id\":10},{\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"hostname\":\"foo-bar3\",\"site_id\":4,\"id\":11}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/devices/query/?query=cluster+%2Bfoo%3Dbaz"}, "recorded_at": "2016-10-04T20:39:05"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=GBNXIH9wIhYIx23dUR1rslHAgSdp5FAr; sessionid=udqy24scis5u09bgda0x0xgd01xcd28p"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/devices/query/?query=chop%3Dsuey"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"query\":\"Attribute matching query does not exist: 'chop'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/4/devices/query/?query=chop%3Dsuey"}, "recorded_at": "2016-10-04T20:39:05"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/26ee767d8bb23a67b0527a8a5b0c218e34fc11f5.json b/tests/api_tests/tests/api_tests/cassettes/26ee767d8bb23a67b0527a8a5b0c218e34fc11f5.json deleted file mode 100644 index a90c92bc..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/26ee767d8bb23a67b0527a8a5b0c218e34fc11f5.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"hostname\": \"device3\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["23"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=WdHoWv3DqBYwGlJvGbTJ947ZgeSgmnyl; sessionid=zb5hgmz14dupbd90xksy1u635yjsbiiy"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/8/devices/"}, "response": {"body": {"string": "{\"attributes\":{},\"hostname\":\"device3\",\"site_id\":8,\"id\":18}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/8/devices/18/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/8/devices/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/2b3d487a5f35b07499fa3c5cc906a5db77ed816c.json b/tests/api_tests/tests/api_tests/cassettes/2b3d487a5f35b07499fa3c5cc906a5db77ed816c.json deleted file mode 100644 index 2e1e13fe..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/2b3d487a5f35b07499fa3c5cc906a5db77ed816c.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=VOWIruYGh2cNAJfPR6I6SwE9gboBFVAz; sessionid=n64m0t4yrcn58gblfe1altpzwzh2bclr"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/devices/foo-bar1/interfaces/"}, "response": {"body": {"string": "[{\"addresses\":[],\"device\":19,\"speed\":1000,\"networks\":[],\"description\":\"\",\"name\":\"eth0\",\"id\":1,\"parent_id\":null,\"mac_address\":\"00:00:00:00:00:00\",\"attributes\":{},\"type\":6},{\"addresses\":[],\"device\":19,\"speed\":1000,\"networks\":[],\"description\":\"\",\"name\":\"eth1\",\"id\":2,\"parent_id\":null,\"mac_address\":\"00:00:00:00:00:00\",\"attributes\":{},\"type\":6}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/devices/foo-bar1/interfaces/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/2bf3bda6f1cccbb63afa6a53385ad739959e7bdc.json b/tests/api_tests/tests/api_tests/cassettes/2bf3bda6f1cccbb63afa6a53385ad739959e7bdc.json deleted file mode 100644 index 600689b4..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/2bf3bda6f1cccbb63afa6a53385ad739959e7bdc.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=9aFZO3kDSJYbffJMqYPEvxgy6shOfwTI; sessionid=sqa3b706n76novhkk7kd2xrkic4372jp"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":5,\"id\":5,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/attributes/5/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/attributes/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/2ffc0c2c5dd3fb20222b80d3c9ef6bd8a51f2e66.json b/tests/api_tests/tests/api_tests/cassettes/2ffc0c2c5dd3fb20222b80d3c9ef6bd8a51f2e66.json deleted file mode 100644 index 15f8a450..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/2ffc0c2c5dd3fb20222b80d3c9ef6bd8a51f2e66.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/iterables/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":6,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=9aFZO3kDSJYbffJMqYPEvxgy6shOfwTI; expires=Mon, 09-Oct-2017 19:27:32 GMT; Max-Age=31449600; Path=/", "sessionid=sqa3b706n76novhkk7kd2xrkic4372jp; expires=Mon, 24-Oct-2016 19:27:32 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/iterables/6/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/iterables/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/32e5efafbb79d39ad5e9fc281baaab9caf809ddf.json b/tests/api_tests/tests/api_tests/cassettes/32e5efafbb79d39ad5e9fc281baaab9caf809ddf.json deleted file mode 100644 index b36b86a7..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/32e5efafbb79d39ad5e9fc281baaab9caf809ddf.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/siblings/"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/siblings/"}, "recorded_at": "2016-09-21T01:06:02"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/siblings/?include_self=True"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/siblings/?include_self=True"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/3366d802a4cc39f6f4c342ae2435bc4068e87895.json b/tests/api_tests/tests/api_tests/cassettes/3366d802a4cc39f6f4c342ae2435bc4068e87895.json deleted file mode 100644 index 9c791452..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/3366d802a4cc39f6f4c342ae2435bc4068e87895.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {}, \"hostname\": \"foo\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["37"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=N5Iml4tSryasVqnXLZOu3U5MJBvEhYu5; sessionid=k4ysuun793bmqonjhde2vdvwuqdvckbm"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/6/devices/device1/"}, "response": {"body": {"string": "{\"attributes\":{},\"hostname\":\"foo\",\"site_id\":6,\"id\":14}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/devices/device1/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/34b6b065bd0ce36bf91afe8d8b9da00f07c0f5f8.json b/tests/api_tests/tests/api_tests/cassettes/34b6b065bd0ce36bf91afe8d8b9da00f07c0f5f8.json deleted file mode 100644 index 5fa074c8..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/34b6b065bd0ce36bf91afe8d8b9da00f07c0f5f8.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"attr1\": \"foo\"}, \"hostname\": \"bar\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["51"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=N5Iml4tSryasVqnXLZOu3U5MJBvEhYu5; sessionid=k4ysuun793bmqonjhde2vdvwuqdvckbm"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/6/devices/foo/"}, "response": {"body": {"string": "{\"attributes\":{\"attr1\":\"foo\"},\"hostname\":\"bar\",\"site_id\":6,\"id\":14}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/devices/foo/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/35035c88acbd2e01dca6bb8c688a6b5367141edd.json b/tests/api_tests/tests/api_tests/cassettes/35035c88acbd2e01dca6bb8c688a6b5367141edd.json deleted file mode 100644 index 2ade4e5a..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/35035c88acbd2e01dca6bb8c688a6b5367141edd.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=YP1gl83MvjL1Jyr6P1EAJhyFAKuLANii; sessionid=svaa9bwf2rfqocu2pk36acb31bhmsqlc"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/6/iterables/8/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/6/iterables/8/"}, "recorded_at": "2016-10-10T14:19:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/36035975b61f5aa73bbf34bc8bd23c344da7c17d.json b/tests/api_tests/tests/api_tests/cassettes/36035975b61f5aa73bbf34bc8bd23c344da7c17d.json deleted file mode 100644 index a1741204..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/36035975b61f5aa73bbf34bc8bd23c344da7c17d.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=q8GGhuE1Dueo7kgW7Ul4VnDZZp8B5Kjk; sessionid=ugt61lak8mm8mwbgwy0nnokxa3x96h45"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/11/networks/1.0.0.1/32/closest_parent/"}, "response": {"body": {"string": "{\"error\":{\"message\":\"No such Network found at (site_id, id) = (11, 1.0.0.1/32)\",\"code\":404}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:08:51 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "NOT FOUND", "code": 404}, "url": "http://localhost:8081/api/sites/11/networks/1.0.0.1/32/closest_parent/"}, "recorded_at": "2016-09-21T01:08:51"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/392a3d2104215406ba907120a6e9b9f81f64074a.json b/tests/api_tests/tests/api_tests/cassettes/392a3d2104215406ba907120a6e9b9f81f64074a.json deleted file mode 100644 index e3e7bb3b..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/392a3d2104215406ba907120a6e9b9f81f64074a.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=VuMVy029S4A19H2gB204lnf0qwqM5zTy; sessionid=90dcjhooh9cwc8xk6qufzvqfd3d3s0sl"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/networks/10.0.0.0/24/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":1,\"id\":1}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:05:59 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/networks/10.0.0.0/24/"}, "recorded_at": "2016-09-21T01:05:59"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/3af321903bb496093b81aa0a6d6014973e85fc67.json b/tests/api_tests/tests/api_tests/cassettes/3af321903bb496093b81aa0a6d6014973e85fc67.json deleted file mode 100644 index 218c5ab2..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/3af321903bb496093b81aa0a6d6014973e85fc67.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=WdHoWv3DqBYwGlJvGbTJ947ZgeSgmnyl; sessionid=zb5hgmz14dupbd90xksy1u635yjsbiiy"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/8/devices/16/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/8/devices/16/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/3df52e0562c752284653b0dc256cc24ef88e6587.json b/tests/api_tests/tests/api_tests/cassettes/3df52e0562c752284653b0dc256cc24ef88e6587.json deleted file mode 100644 index 6a5238b5..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/3df52e0562c752284653b0dc256cc24ef88e6587.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Ig878iB2FT2tK452bUU9pAr4QHx4b2Jk; sessionid=xkfzerydl2k0dsci3zr4vggxvkps8o4c"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/5/itervalues/4/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:40:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/5/itervalues/4/"}, "recorded_at": "2016-10-05T14:40:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/3e511b6200d6511d81814c1bd5a8aba8f30ed0da.json b/tests/api_tests/tests/api_tests/cassettes/3e511b6200d6511d81814c1bd5a8aba8f30ed0da.json deleted file mode 100644 index 533d6392..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/3e511b6200d6511d81814c1bd5a8aba8f30ed0da.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=AKmLn3bBq1PzrIBCgVkuYCeqPHWdbuxJ; sessionid=ym0v4bq5j3ej9qdv7421qjqtvbhwest8"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/iterable/8/next_value/"}, "response": {"body": {"string": "[103]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 19:32:55 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/iterable/8/next_value/"}, "recorded_at": "2016-10-06T19:32:55"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/3f16909f2572a95f6f8edf7ce341ecf1edcb79ad.json b/tests/api_tests/tests/api_tests/cassettes/3f16909f2572a95f6f8edf7ce341ecf1edcb79ad.json deleted file mode 100644 index cd12194c..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/3f16909f2572a95f6f8edf7ce341ecf1edcb79ad.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=itIrWzqC1k23oDK2Vg3mt6dnXD3X3YMj; sessionid=jcs0r67cdv1a55oaa0nhqdh9cx5k3fae"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/5/iterable/7/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/5/iterable/7/next_value/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/42f180af8d58bc0b7907a76c580089938f93235f.json b/tests/api_tests/tests/api_tests/cassettes/42f180af8d58bc0b7907a76c580089938f93235f.json deleted file mode 100644 index f0cef2b2..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/42f180af8d58bc0b7907a76c580089938f93235f.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"cidr\": \"192.168.3.0/24\", \"state\": \"reserved\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["47"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/10/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.3.0\",\"attributes\":{},\"site_id\":10,\"id\":39}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=WUMy9KRlID4TurmOFFLwAhnALfD1pcO4; expires=Wed, 20-Sep-2017 01:08:51 GMT; Max-Age=31449600; Path=/", "sessionid=9nb3h0l94o1ha991e1gbp9igl9chv25i; expires=Wed, 05-Oct-2016 01:08:51 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/10/networks/39/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:08:51 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/10/networks/"}, "recorded_at": "2016-09-21T01:08:51"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/460bdf3590df980e07baa9dc3ad9360387deb771.json b/tests/api_tests/tests/api_tests/cassettes/460bdf3590df980e07baa9dc3ad9360387deb771.json deleted file mode 100644 index 34615c88..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/460bdf3590df980e07baa9dc3ad9360387deb771.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=WUMy9KRlID4TurmOFFLwAhnALfD1pcO4; sessionid=9nb3h0l94o1ha991e1gbp9igl9chv25i"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/10/networks/reserved/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.3.0\",\"attributes\":{},\"site_id\":10,\"id\":39}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:08:51 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/10/networks/reserved/"}, "recorded_at": "2016-09-21T01:08:51"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/467b46da621eb397704225646943bca8f7ebaf67.json b/tests/api_tests/tests/api_tests/cassettes/467b46da621eb397704225646943bca8f7ebaf67.json deleted file mode 100644 index 71ba4af2..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/467b46da621eb397704225646943bca8f7ebaf67.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=0jL0LvYu5EFws3K1kKTRXJQj6AKAy1AH; sessionid=8gzg7faljbwhb7un2wi458q4zom8bbr9"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/6/itervalues/19/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/6/itervalues/19/"}, "recorded_at": "2016-10-10T19:27:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json b/tests/api_tests/tests/api_tests/cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json deleted file mode 100644 index cb409735..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/468ef3bb33ed168e15d7aea0b4dc510458799bcb.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=3aIPlZilZfrjoEYCgORVH28qjrPQ34WJ; sessionid=ayjdxvaipnb28e7lkyfm7yy1eb13rwst"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/6/iterable/8/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/6/iterable/8/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/4693311dc341610e073890dc8ff28a65fd35d815.json b/tests/api_tests/tests/api_tests/cassettes/4693311dc341610e073890dc8ff28a65fd35d815.json deleted file mode 100644 index 1262ca5c..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/4693311dc341610e073890dc8ff28a65fd35d815.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 6}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=9aFZO3kDSJYbffJMqYPEvxgy6shOfwTI; sessionid=sqa3b706n76novhkk7kd2xrkic4372jp"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":6,\"id\":12,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/itervalues/12/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/itervalues/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/49b087b5dcdebe88bdec9374a659582ecef4cf0e.json b/tests/api_tests/tests/api_tests/cassettes/49b087b5dcdebe88bdec9374a659582ecef4cf0e.json deleted file mode 100644 index b71b1b80..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/49b087b5dcdebe88bdec9374a659582ecef4cf0e.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=TJgS61dEbp0dCpCSeweCmnSbDdIBO9JK; sessionid=j8zi4c4ruijvrnmkqqodvvxml2m18yip"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/itervalue/1/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 19:19:09 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/itervalue/1/"}, "recorded_at": "2016-10-04T19:19:09"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/4bc8b61bdb25c7dca7049a8f66fa3ed1f6c06033.json b/tests/api_tests/tests/api_tests/cassettes/4bc8b61bdb25c7dca7049a8f66fa3ed1f6c06033.json deleted file mode 100644 index 8d273d80..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/4bc8b61bdb25c7dca7049a8f66fa3ed1f6c06033.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/32/descendents/"}, "response": {"body": {"string": "[]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/32/descendents/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/4c9d3c033871a72fd2c0264918832f7ee1c2793e.json b/tests/api_tests/tests/api_tests/cassettes/4c9d3c033871a72fd2c0264918832f7ee1c2793e.json deleted file mode 100644 index 8c78998d..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/4c9d3c033871a72fd2c0264918832f7ee1c2793e.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=1xZ4UjoJpUayhBIpaQIJBs7C1CR2dwi0; sessionid=qbhgxjsbi3m40d7cdjy9nwja4z2m3v74"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterables/"}, "response": {"body": {"string": "[{\"description\":\"iterable1\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":2,\"name\":\"itr1\"},{\"description\":\"iterable2\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":3,\"name\":\"itr2\"},{\"description\":\"iterable3\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":4,\"name\":\"itr3\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterables/"}, "recorded_at": "2016-10-10T14:19:05"}, {"request": {"body": {"string": "{\"max_val\": 200, \"min_val\": 100, \"name\": \"itr2\", \"increment\": 1, \"description\": \"test-iterable2\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["97"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=uds5hegqoVgou4EOa94ibYMtfnZTA7TL; sessionid=kdxjm82imuic367ti0p2by2d97hugh4d"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/iterables/"}, "response": {"body": {"string": "{\"description\":\"test-iterable2\",\"min_val\":100,\"max_val\":200,\"increment\":1,\"id\":3,\"name\":\"itr2\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/iterables/3/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/iterables/"}, "recorded_at": "2016-10-10T19:27:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/52aa273d56a0d95e1a8e65f1b96a8ea09673ed4e.json b/tests/api_tests/tests/api_tests/cassettes/52aa273d56a0d95e1a8e65f1b96a8ea09673ed4e.json deleted file mode 100644 index 2d877534..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/52aa273d56a0d95e1a8e65f1b96a8ea09673ed4e.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=VuMVy029S4A19H2gB204lnf0qwqM5zTy; sessionid=90dcjhooh9cwc8xk6qufzvqfd3d3s0sl"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":1,\"id\":1}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:05:59 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/networks/"}, "recorded_at": "2016-09-21T01:05:59"}, {"request": {"body": {"string": "{\"network_address\": \"10.8.0.0\", \"prefix_length\": 16}", "encoding": "utf-8"}, "headers": {"Content-Length": ["52"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=VuMVy029S4A19H2gB204lnf0qwqM5zTy; sessionid=90dcjhooh9cwc8xk6qufzvqfd3d3s0sl"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.8.0.0\",\"attributes\":{},\"site_id\":1,\"id\":3}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/networks/3/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:05:59 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/networks/"}, "recorded_at": "2016-09-21T01:05:59"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/5863e2415076faee1762b5a9bd036ffdf687ec9e.json b/tests/api_tests/tests/api_tests/cassettes/5863e2415076faee1762b5a9bd036ffdf687ec9e.json deleted file mode 100644 index 70b0d28b..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/5863e2415076faee1762b5a9bd036ffdf687ec9e.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/29/descendents/"}, "response": {"body": {"string": "[{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/29/descendents/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json b/tests/api_tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json deleted file mode 100644 index 17521d68..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/5c4bad7234fd22e555fca4e1e661c06150594764.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":5,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=mXmFqttn2Piolz9o78C9AQEi32cbOgCN; expires=Mon, 09-Oct-2017 14:11:03 GMT; Max-Age=31449600; Path=/", "sessionid=eg167vejrinycbdwv6ek1q8fah361fh4; expires=Mon, 24-Oct-2016 14:11:03 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/iterable/5/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/iterable/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/5c61e78c8eb4ea24b812b2757d34f0425f62c4ce.json b/tests/api_tests/tests/api_tests/cassettes/5c61e78c8eb4ea24b812b2757d34f0425f62c4ce.json deleted file mode 100644 index fe76db1a..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/5c61e78c8eb4ea24b812b2757d34f0425f62c4ce.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2u8dFVhUzxkTjS2HpyQDApv6kdhQ64aK; sessionid=8bxts0foa8pj8nsgept3ymk7932db89h"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":4,\"id\":4,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/attributes/4/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/attributes/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/5f330cd3c7a6a655286e1ff2e4f18cb6b961d558.json b/tests/api_tests/tests/api_tests/cassettes/5f330cd3c7a6a655286e1ff2e4f18cb6b961d558.json deleted file mode 100644 index 1e9413f2..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/5f330cd3c7a6a655286e1ff2e4f18cb6b961d558.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=J0O3IIX37Buf4TCZyzwBTkEYUPyIL7uk; sessionid=05y051o3yvkcz43631iu3uvwrfq7o7ou"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/itr1/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/itr1/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/654f6226f909731ce2a16f95ad58333e5d46b358.json b/tests/api_tests/tests/api_tests/cassettes/654f6226f909731ce2a16f95ad58333e5d46b358.json deleted file mode 100644 index 5847e4a9..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/654f6226f909731ce2a16f95ad58333e5d46b358.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.0/25/ancestors/?ascending=True"}, "response": {"body": {"string": "[{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29},{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.0/25/ancestors/?ascending=True"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/65ad1126d5af748c76fa8186a04e9db94caa4266.json b/tests/api_tests/tests/api_tests/cassettes/65ad1126d5af748c76fa8186a04e9db94caa4266.json deleted file mode 100644 index 62e23ad1..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/65ad1126d5af748c76fa8186a04e9db94caa4266.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/27/descendents/"}, "response": {"body": {"string": "[{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28},{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29},{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/27/descendents/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/65e0942f1ad3a714b8e9b5136374de2c77708332.json b/tests/api_tests/tests/api_tests/cassettes/65e0942f1ad3a714b8e9b5136374de2c77708332.json deleted file mode 100644 index e565ccfa..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/65e0942f1ad3a714b8e9b5136374de2c77708332.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":8,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=3aIPlZilZfrjoEYCgORVH28qjrPQ34WJ; expires=Mon, 09-Oct-2017 14:11:03 GMT; Max-Age=31449600; Path=/", "sessionid=ayjdxvaipnb28e7lkyfm7yy1eb13rwst; expires=Mon, 24-Oct-2016 14:11:03 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/iterable/8/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/iterable/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/66279b39bd62a3954a7525a47266dc24230c10f7.json b/tests/api_tests/tests/api_tests/cassettes/66279b39bd62a3954a7525a47266dc24230c10f7.json deleted file mode 100644 index de4e5b1b..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/66279b39bd62a3954a7525a47266dc24230c10f7.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.2/32/descendents/"}, "response": {"body": {"string": "[]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.2/32/descendents/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/66e3b4cc645e047a48dd09a18ae80bea4f32d15b.json b/tests/api_tests/tests/api_tests/cassettes/66e3b4cc645e047a48dd09a18ae80bea4f32d15b.json deleted file mode 100644 index 18f81a7c..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/66e3b4cc645e047a48dd09a18ae80bea4f32d15b.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"UPDATED\"}}", "encoding": "utf-8"}, "headers": {"Content-Length": ["42"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=A3FKpUax8zE3bHg19bCaRidkqg6l60hn; sessionid=v2e3vwnj0nob5r7i1kk6yj132tbuxty6"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/4/itervalue/11/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"UPDATED\"},\"iterable\":5,\"id\":11,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:35:48 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/itervalue/11/"}, "recorded_at": "2016-10-05T14:35:48"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/67a69da5f6e63f009f084ad75653f7e9e9da6fae.json b/tests/api_tests/tests/api_tests/cassettes/67a69da5f6e63f009f084ad75653f7e9e9da6fae.json deleted file mode 100644 index 115426b0..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/67a69da5f6e63f009f084ad75653f7e9e9da6fae.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/30/children/"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/30/children/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/6811d21d4bfdf0a306e2aa7d0d6c892825fd907b.json b/tests/api_tests/tests/api_tests/cassettes/6811d21d4bfdf0a306e2aa7d0d6c892825fd907b.json deleted file mode 100644 index 47c91d74..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/6811d21d4bfdf0a306e2aa7d0d6c892825fd907b.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=8QR2sre63q4pmpZnluYUlM9DQYE9wX0o; sessionid=hi2kyt7ewb853roe7d3elvdwn0m71958"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":3,\"id\":3,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/attributes/3/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/attributes/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/683afd1f2714721d518b5a7bd1baee83385a73e8.json b/tests/api_tests/tests/api_tests/cassettes/683afd1f2714721d518b5a7bd1baee83385a73e8.json deleted file mode 100644 index f7980196..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/683afd1f2714721d518b5a7bd1baee83385a73e8.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/31/root/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/31/root/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/68a03035213ebcbf62913a52379d1cce83323b1e.json b/tests/api_tests/tests/api_tests/cassettes/68a03035213ebcbf62913a52379d1cce83323b1e.json deleted file mode 100644 index e33cdc23..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/68a03035213ebcbf62913a52379d1cce83323b1e.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{}", "encoding": "utf-8"}, "headers": {"Content-Length": ["2"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["user@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/5/networks/22/"}, "response": {"body": {"string": "{\"error\":{\"message\":\"You do not have permission to perform this action.\",\"code\":403}}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=4J78HLV7Xe5c1YYt7nM4L7ksRciRNnJD; expires=Wed, 20-Sep-2017 01:06:01 GMT; Max-Age=31449600; Path=/", "sessionid=9v9izmw36k0hr9bwm8gf8p1wp2sav1z6; expires=Wed, 05-Oct-2016 01:06:01 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "FORBIDDEN", "code": 403}, "url": "http://localhost:8081/api/sites/5/networks/22/"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/6b8854ebbe15b5172ad04a37f0f63867087bcbd9.json b/tests/api_tests/tests/api_tests/cassettes/6b8854ebbe15b5172ad04a37f0f63867087bcbd9.json deleted file mode 100644 index dbf44e38..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/6b8854ebbe15b5172ad04a37f0f63867087bcbd9.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=HxblsCzqLPh6JjqediS8zSVXUEocehTq; sessionid=ftc9xszptwq2t700aiktz8gh4cbjit59"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/iterable/4/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/iterable/4/next_value/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/6c9100f15e145f9702cdccaaa2f57bee320e2862.json b/tests/api_tests/tests/api_tests/cassettes/6c9100f15e145f9702cdccaaa2f57bee320e2862.json deleted file mode 100644 index 17107529..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/6c9100f15e145f9702cdccaaa2f57bee320e2862.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/root/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.1/32/root/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/6d3e004374a49df1de91cdfd9e06a71bc33bc3c4.json b/tests/api_tests/tests/api_tests/cassettes/6d3e004374a49df1de91cdfd9e06a71bc33bc3c4.json deleted file mode 100644 index 2ccb8fc0..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/6d3e004374a49df1de91cdfd9e06a71bc33bc3c4.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "[{\"cidr\": \"1.1.1.0/24\"}, {\"cidr\": \"2.2.2.0/24\"}, {\"cidr\": \"3.3.3.0/24\"}]", "encoding": "utf-8"}, "headers": {"Content-Length": ["72"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"1.1.1.0\",\"attributes\":{},\"site_id\":2,\"id\":4},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"2.2.2.0\",\"attributes\":{},\"site_id\":2,\"id\":5},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"3.3.3.0\",\"attributes\":{},\"site_id\":2,\"id\":6}]", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=mJkuO2lRmsH3D75Np9LC68G7OPWJKqpg; expires=Wed, 20-Sep-2017 01:05:59 GMT; Max-Age=31449600; Path=/", "sessionid=fg4g5f9pz0ymc7ncf0hx9ijs949oeiin; expires=Wed, 05-Oct-2016 01:05:59 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:05:59 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/networks/"}, "recorded_at": "2016-09-21T01:05:59"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=mJkuO2lRmsH3D75Np9LC68G7OPWJKqpg; sessionid=fg4g5f9pz0ymc7ncf0hx9ijs949oeiin"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"1.1.1.0\",\"attributes\":{},\"site_id\":2,\"id\":4},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"2.2.2.0\",\"attributes\":{},\"site_id\":2,\"id\":5},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"3.3.3.0\",\"attributes\":{},\"site_id\":2,\"id\":6}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:05:59 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/networks/"}, "recorded_at": "2016-09-21T01:05:59"}, {"request": {"body": {"string": "[{\"is_ip\": false, \"network_address\": \"1.1.1.0\", \"site_id\": 2, \"parent_id\": null, \"state\": \"allocated\", \"prefix_length\": 24, \"ip_version\": \"4\", \"attributes\": {\"vlan\": \"300\"}, \"id\": 4}, {\"is_ip\": false, \"network_address\": \"2.2.2.0\", \"site_id\": 2, \"parent_id\": null, \"state\": \"allocated\", \"prefix_length\": 24, \"ip_version\": \"4\", \"attributes\": {\"vlan\": \"300\"}, \"id\": 5}, {\"is_ip\": false, \"network_address\": \"3.3.3.0\", \"site_id\": 2, \"parent_id\": null, \"state\": \"allocated\", \"prefix_length\": 24, \"ip_version\": \"4\", \"attributes\": {\"vlan\": \"300\"}, \"id\": 6}]", "encoding": "utf-8"}, "headers": {"Content-Length": ["549"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=mJkuO2lRmsH3D75Np9LC68G7OPWJKqpg; sessionid=fg4g5f9pz0ymc7ncf0hx9ijs949oeiin"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/2/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"1.1.1.0\",\"attributes\":{\"vlan\":\"300\"},\"site_id\":2,\"id\":4},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"2.2.2.0\",\"attributes\":{\"vlan\":\"300\"},\"site_id\":2,\"id\":5},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"3.3.3.0\",\"attributes\":{\"vlan\":\"300\"},\"site_id\":2,\"id\":6}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:05:59 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/networks/"}, "recorded_at": "2016-09-21T01:05:59"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/6d949a66414ea0a3db44b8afe10e91106575a075.json b/tests/api_tests/tests/api_tests/cassettes/6d949a66414ea0a3db44b8afe10e91106575a075.json deleted file mode 100644 index bdc86713..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/6d949a66414ea0a3db44b8afe10e91106575a075.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"attr1\": \"foo\"}, \"hostname\": \"bar\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["51"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=bdnoRZDYi6P4Hzdd6iaD8y96dzTDTJtU; sessionid=df1cs5ru1itob37m9myu465h69z2an9t"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/5/devices/13/"}, "response": {"body": {"string": "{\"attributes\":{\"attr1\":\"foo\"},\"hostname\":\"bar\",\"site_id\":5,\"id\":13}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/5/devices/13/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/6f07d375ab4808960a60920ff3c6c258bbd47463.json b/tests/api_tests/tests/api_tests/cassettes/6f07d375ab4808960a60920ff3c6c258bbd47463.json deleted file mode 100644 index fdae2c8c..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/6f07d375ab4808960a60920ff3c6c258bbd47463.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=mcQ3f7kTH11n7wOaFNTuqohlYbITwNnI; sessionid=1z58yr2fgjkskibg1h6lnd7w7vqb24yr"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/itervalues/1/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":1,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/itervalues/1/"}, "recorded_at": "2016-10-10T19:27:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/6f95e416f64ed29422d3718056c7909240dec283.json b/tests/api_tests/tests/api_tests/cassettes/6f95e416f64ed29422d3718056c7909240dec283.json deleted file mode 100644 index 065ab3f5..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/6f95e416f64ed29422d3718056c7909240dec283.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 1}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=mcQ3f7kTH11n7wOaFNTuqohlYbITwNnI; sessionid=1z58yr2fgjkskibg1h6lnd7w7vqb24yr"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":1,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/itervalues/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/itervalues/"}, "recorded_at": "2016-10-10T19:27:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/70142bff64de43747c29a669b078d3011e494ce0.json b/tests/api_tests/tests/api_tests/cassettes/70142bff64de43747c29a669b078d3011e494ce0.json deleted file mode 100644 index 2e982c4e..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/70142bff64de43747c29a669b078d3011e494ce0.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=zaQvRO6T21wFucrGcJ0ZMXSqAQedIwu9; sessionid=d6tsdaca5fkqp0yfmsnay5ge4fkdjobs"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/7/iterables/9/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/7/iterables/9/next_value/"}, "recorded_at": "2016-10-10T14:19:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/72143f794779e7b3d20c5caae77398edd54148f0.json b/tests/api_tests/tests/api_tests/cassettes/72143f794779e7b3d20c5caae77398edd54148f0.json deleted file mode 100644 index 6e8653a5..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/72143f794779e7b3d20c5caae77398edd54148f0.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"cidr\": \"10.0.0.0/8\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["22"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=WXJgGnEJSR9o5vSopq7w00BssjHtGHaa; sessionid=2wn8p8mf8y6vsjb2ulevpodocycj52y9"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":7,\"id\":26}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/networks/26/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/networks/"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/743c558b7946fde225ef98eba440b352cf8069f6.json b/tests/api_tests/tests/api_tests/cassettes/743c558b7946fde225ef98eba440b352cf8069f6.json deleted file mode 100644 index c96c5438..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/743c558b7946fde225ef98eba440b352cf8069f6.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=q8GGhuE1Dueo7kgW7Ul4VnDZZp8B5Kjk; sessionid=ugt61lak8mm8mwbgwy0nnokxa3x96h45"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/"}, "response": {"body": {"string": "{\"parent_id\":40,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.250.0.0\",\"attributes\":{},\"site_id\":11,\"id\":41}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:08:51 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/"}, "recorded_at": "2016-09-21T01:08:51"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=q8GGhuE1Dueo7kgW7Ul4VnDZZp8B5Kjk; sessionid=ugt61lak8mm8mwbgwy0nnokxa3x96h45"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/?prefix_length=27"}, "response": {"body": {"string": "{\"error\":{\"message\":\"No such Network found at (site_id, id) = (11, 10.250.0.185/32)\",\"code\":404}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:08:51 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "NOT FOUND", "code": 404}, "url": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/?prefix_length=27"}, "recorded_at": "2016-09-21T01:08:51"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=q8GGhuE1Dueo7kgW7Ul4VnDZZp8B5Kjk; sessionid=ugt61lak8mm8mwbgwy0nnokxa3x96h45"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/?prefix_length=shoe"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"prefix_length\":\"Invalid prefix_length: u'shoe'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:08:51 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/11/networks/10.250.0.185/32/closest_parent/?prefix_length=shoe"}, "recorded_at": "2016-09-21T01:08:51"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/7667780e6a0f594265f3e902dbe6383a28a733ab.json b/tests/api_tests/tests/api_tests/cassettes/7667780e6a0f594265f3e902dbe6383a28a733ab.json deleted file mode 100644 index 4e3aea32..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/7667780e6a0f594265f3e902dbe6383a28a733ab.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"unique_id\": \"new_update\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["27"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fvGoS8xXPMC3ZPVmAw7URgFucdVZiSks; sessionid=c0mvyb8nf0o2z1hrxb6oa9jlpu0h806u"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/3/itervalue/3/"}, "response": {"body": {"string": "{\"unique_id\":\"new_update\",\"iterable\":3,\"id\":3,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/itervalue/3/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/78247dfdf33edca136ad0eb5fe63c7593d3776c1.json b/tests/api_tests/tests/api_tests/cassettes/78247dfdf33edca136ad0eb5fe63c7593d3776c1.json deleted file mode 100644 index 7c29b183..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/78247dfdf33edca136ad0eb5fe63c7593d3776c1.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=VuMVy029S4A19H2gB204lnf0qwqM5zTy; sessionid=90dcjhooh9cwc8xk6qufzvqfd3d3s0sl"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/networks/1/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":1,\"id\":1}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:05:59 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/networks/1/"}, "recorded_at": "2016-09-21T01:05:59"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/7936639e6727e1a0e1c2e2e3a2e36a4b4e20248e.json b/tests/api_tests/tests/api_tests/cassettes/7936639e6727e1a0e1c2e2e3a2e36a4b4e20248e.json deleted file mode 100644 index faa81b54..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/7936639e6727e1a0e1c2e2e3a2e36a4b4e20248e.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"iterable\": 4, \"id\": 2, \"value\": 10}", "encoding": "utf-8"}, "headers": {"Content-Length": ["84"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=kOIZG327CxR9qxeedmfb81EI8vxmHWh8; sessionid=e08q4gyn4vjg4bzw5dzbhraki38nrm9t"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/3/itervalues/2/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":4,\"id\":2,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:40:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/itervalues/2/"}, "recorded_at": "2016-10-05T14:40:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/7998ced5800ae3ab7db96f6c05c3934a374bc978.json b/tests/api_tests/tests/api_tests/cassettes/7998ced5800ae3ab7db96f6c05c3934a374bc978.json deleted file mode 100644 index 60a81b9e..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/7998ced5800ae3ab7db96f6c05c3934a374bc978.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=WXJgGnEJSR9o5vSopq7w00BssjHtGHaa; sessionid=2wn8p8mf8y6vsjb2ulevpodocycj52y9"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/networks/10.0.0.0/8/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/networks/10.0.0.0/8/"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/79ddc786c623617dca051d63750642214ad39267.json b/tests/api_tests/tests/api_tests/cassettes/79ddc786c623617dca051d63750642214ad39267.json deleted file mode 100644 index 83c99474..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/79ddc786c623617dca051d63750642214ad39267.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"attr1\": \"foo\"}, \"hostname\": \"device1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["55"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=CPtIqWHyePHbcGfhZqk9IKyyYhSlML8t; sessionid=ggk4wjqiab7selwzdznchxcz2jgiiioo"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/devices/"}, "response": {"body": {"string": "{\"attributes\":{\"attr1\":\"foo\"},\"hostname\":\"device1\",\"site_id\":7,\"id\":15}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/devices/15/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/devices/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/7d2efdd348236797e02a79096908ba2b10eb0169.json b/tests/api_tests/tests/api_tests/cassettes/7d2efdd348236797e02a79096908ba2b10eb0169.json deleted file mode 100644 index 39d60049..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/7d2efdd348236797e02a79096908ba2b10eb0169.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/27/root/"}, "response": {"body": {"string": "{\"error\":{\"message\":\"No such Network found at (site_id, id) = (8, None)\",\"code\":404}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "NOT FOUND", "code": 404}, "url": "http://localhost:8081/api/sites/8/networks/27/root/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/7dd2fe0784a357d6d3723d8af97fe8ce31e055b1.json b/tests/api_tests/tests/api_tests/cassettes/7dd2fe0784a357d6d3723d8af97fe8ce31e055b1.json deleted file mode 100644 index 0ed8c8de..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/7dd2fe0784a357d6d3723d8af97fe8ce31e055b1.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=ayfoK2g6lWw2XmJdI35BSB7R8FN3bThc; sessionid=jpu7re5uxj9e1ig8irz6bd5v8qxd3fsv"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterables/1/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterables/1/"}, "recorded_at": "2016-10-10T14:19:05"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json b/tests/api_tests/tests/api_tests/cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json deleted file mode 100644 index c30447f4..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/7f47c80bc1093aad4d08f90de4837b9dace269cb.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=NAJj7pbdLNRLFLTxDzv601VWE5EDg1Xf; sessionid=s8rsm15whvimr0096a7wqw848fd64b0d"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/itervalue/?attributes=service_key%3DcustB01_key1"}, "response": {"body": {"string": "[]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:56:36 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/itervalue/?attributes=service_key%3DcustB01_key1"}, "recorded_at": "2016-10-04T20:56:36"}, {"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custb01_key2\"}, \"value\": 103, \"iterable\": 3}", "encoding": "utf-8"}, "headers": {"Content-Length": ["76"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pkphlCLxxRu65ZdYnkmqiT4ojUTOCkAs; sessionid=lhdmda52admpbpisdjrf0nml8687dngj"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/itervalue/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":3,\"id\":9,\"value\":103}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/itervalue/9/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:35:48 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/itervalue/"}, "recorded_at": "2016-10-05T14:35:48"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=pkphlCLxxRu65ZdYnkmqiT4ojUTOCkAs; sessionid=lhdmda52admpbpisdjrf0nml8687dngj"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/itervalue/?attributes=service_key%3Dcustb01_key1"}, "response": {"body": {"string": "[{\"attributes\":{\"service_key\":\"custb01_key1\"},\"iterable\":2,\"id\":4,\"value\":12},{\"attributes\":{\"service_key\":\"custb01_key1\"},\"iterable\":3,\"id\":8,\"value\":102}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:35:48 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/itervalue/?attributes=service_key%3Dcustb01_key1"}, "recorded_at": "2016-10-05T14:35:48"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/7f592ec5adcc705efd02698886f997e750efdfd6.json b/tests/api_tests/tests/api_tests/cassettes/7f592ec5adcc705efd02698886f997e750efdfd6.json deleted file mode 100644 index 880b232b..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/7f592ec5adcc705efd02698886f997e750efdfd6.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"UPDATED\"}}", "encoding": "utf-8"}, "headers": {"Content-Length": ["42"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2u8dFVhUzxkTjS2HpyQDApv6kdhQ64aK; sessionid=8bxts0foa8pj8nsgept3ymk7932db89h"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/4/itervalues/11/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"UPDATED\"},\"iterable\":5,\"id\":11,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/itervalues/11/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/7fc833c187bcb72feab094f6745102406d7501e2.json b/tests/api_tests/tests/api_tests/cassettes/7fc833c187bcb72feab094f6745102406d7501e2.json deleted file mode 100644 index 9dd337c3..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/7fc833c187bcb72feab094f6745102406d7501e2.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"attr1\": \"foo\"}, \"hostname\": \"device1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["55"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=bdnoRZDYi6P4Hzdd6iaD8y96dzTDTJtU; sessionid=df1cs5ru1itob37m9myu465h69z2an9t"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/devices/"}, "response": {"body": {"string": "{\"attributes\":{\"attr1\":\"foo\"},\"hostname\":\"device1\",\"site_id\":5,\"id\":13}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/devices/13/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/devices/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/80d95360c7eea97a7c354ee6ca3c1a8851b53cd9.json b/tests/api_tests/tests/api_tests/cassettes/80d95360c7eea97a7c354ee6ca3c1a8851b53cd9.json deleted file mode 100644 index 0b2442b1..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/80d95360c7eea97a7c354ee6ca3c1a8851b53cd9.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":3,\"id\":7},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":3,\"id\":8},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":3,\"id\":9},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":3,\"id\":10},{\"parent_id\":13,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":3,\"id\":11},{\"parent_id\":7,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":12},{\"parent_id\":12,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":13}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:05:59 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/"}, "recorded_at": "2016-09-21T01:05:59"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?cidr=10.0.0.0%2F8"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":3,\"id\":8}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?cidr=10.0.0.0%2F8"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?attributes=foo%3Dbaz"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":3,\"id\":7},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":3,\"id\":9}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?attributes=foo%3Dbaz"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?attributes=foo%3Dbaz&attributes=cluster%3Dlax"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":3,\"id\":9}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?attributes=foo%3Dbaz&attributes=cluster%3Dlax"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?network_address=169.254.0.0"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":3,\"id\":10}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?network_address=169.254.0.0"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?prefix_length=16"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":3,\"id\":7},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":3,\"id\":10}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?prefix_length=16"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?network_address=10.0.0.0&prefix_length=8"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":3,\"id\":8}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?network_address=10.0.0.0&prefix_length=8"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?include_ips=True&include_networks=False"}, "response": {"body": {"string": "[{\"parent_id\":13,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":3,\"id\":11}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?include_ips=True&include_networks=False"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?include_ips=False&include_networks=True"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":3,\"id\":7},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":3,\"id\":8},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":3,\"id\":9},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":3,\"id\":10},{\"parent_id\":7,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":12},{\"parent_id\":12,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":13}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?include_ips=False&include_networks=True"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?include_ips=True&include_networks=True"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":3,\"id\":7},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":3,\"id\":8},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":3,\"id\":9},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":3,\"id\":10},{\"parent_id\":13,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":3,\"id\":11},{\"parent_id\":7,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":12},{\"parent_id\":12,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":3,\"id\":13}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?include_ips=True&include_networks=True"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?include_ips=False&include_networks=False"}, "response": {"body": {"string": "[]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?include_ips=False&include_networks=False"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "{\"cidr\": \"2401:d:d0e::/64\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["27"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":64,\"is_ip\":false,\"ip_version\":\"6\",\"network_address\":\"2401:d:d0e::\",\"attributes\":{},\"site_id\":3,\"id\":14}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/networks/14/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/networks/"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2f16u4EQIyuZZ6jQoZ3msBQEvhnGedhW; sessionid=2vccaihc6ro9cwupamqzlvcfvafgezux"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/networks/?ip_version=6"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":64,\"is_ip\":false,\"ip_version\":\"6\",\"network_address\":\"2401:d:d0e::\",\"attributes\":{},\"site_id\":3,\"id\":14}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/networks/?ip_version=6"}, "recorded_at": "2016-09-21T01:06:00"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/8127bf578e29d120370ac72152d7f85c722827b1.json b/tests/api_tests/tests/api_tests/cassettes/8127bf578e29d120370ac72152d7f85c722827b1.json deleted file mode 100644 index 2505af80..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/8127bf578e29d120370ac72152d7f85c722827b1.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2u8dFVhUzxkTjS2HpyQDApv6kdhQ64aK; sessionid=8bxts0foa8pj8nsgept3ymk7932db89h"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/iterables/5/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/iterables/5/next_value/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/82beec6373c55da4a3001fbcac6b72729f72dbc0.json b/tests/api_tests/tests/api_tests/cassettes/82beec6373c55da4a3001fbcac6b72729f72dbc0.json deleted file mode 100644 index b68dd83b..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/82beec6373c55da4a3001fbcac6b72729f72dbc0.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=WXJgGnEJSR9o5vSopq7w00BssjHtGHaa; sessionid=2wn8p8mf8y6vsjb2ulevpodocycj52y9"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/networks/24/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/networks/24/"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/83b0d6704912f1865dd2fb9239a1e7818ab3bdc9.json b/tests/api_tests/tests/api_tests/cassettes/83b0d6704912f1865dd2fb9239a1e7818ab3bdc9.json deleted file mode 100644 index 34c906de..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/83b0d6704912f1865dd2fb9239a1e7818ab3bdc9.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=fvGoS8xXPMC3ZPVmAw7URgFucdVZiSks; sessionid=c0mvyb8nf0o2z1hrxb6oa9jlpu0h806u"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/iterable/3/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/iterable/3/next_value/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json b/tests/api_tests/tests/api_tests/cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json deleted file mode 100644 index 472b7e96..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/84691e45dfa16138c772576bc27720f4a236fe23.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=kquyraDsSzh0uInfmdwzEJtF2gt2h7sQ; sessionid=e8466o0fc94vmwoohs3nlcbcgevp4c6v"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/iterable/9/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:04 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/iterable/9/"}, "recorded_at": "2016-10-10T14:11:04"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/84bb1c96e309feb49d8d2fa0d266b8369a0ec428.json b/tests/api_tests/tests/api_tests/cassettes/84bb1c96e309feb49d8d2fa0d266b8369a0ec428.json deleted file mode 100644 index 19ff2511..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/84bb1c96e309feb49d8d2fa0d266b8369a0ec428.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.0/25/children/"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.0/25/children/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/865d72e9eec58ace6e960c148dad4032e5cbe74c.json b/tests/api_tests/tests/api_tests/cassettes/865d72e9eec58ace6e960c148dad4032e5cbe74c.json deleted file mode 100644 index e6825a1c..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/865d72e9eec58ace6e960c148dad4032e5cbe74c.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=AKmLn3bBq1PzrIBCgVkuYCeqPHWdbuxJ; sessionid=ym0v4bq5j3ej9qdv7421qjqtvbhwest8"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/iterable/7/next_value/"}, "response": {"body": {"string": "[13]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 19:32:55 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/iterable/7/next_value/"}, "recorded_at": "2016-10-06T19:32:55"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/865ec27a703ec684e7330d283c5cf789add90eeb.json b/tests/api_tests/tests/api_tests/cassettes/865ec27a703ec684e7330d283c5cf789add90eeb.json deleted file mode 100644 index 6add76c0..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/865ec27a703ec684e7330d283c5cf789add90eeb.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"attr1\": \"foo\"}, \"cidr\": \"10.0.0.0/24\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["55"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=j48jakWNXNSZz6OoIsHT1Fg3gn0NtQyE; sessionid=66tkqx5vrs78lqteshyq3cu4f14wi0pf"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":6,\"id\":23}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/networks/23/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/networks/"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/86cf2cdf69f64c8608b1f8f8534bb48e0849469b.json b/tests/api_tests/tests/api_tests/cassettes/86cf2cdf69f64c8608b1f8f8534bb48e0849469b.json deleted file mode 100644 index c4256117..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/86cf2cdf69f64c8608b1f8f8534bb48e0849469b.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"UPDATED\"}}", "encoding": "utf-8"}, "headers": {"Content-Length": ["42"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=MlYVqOHjGzJmQ3upYCmNLxWLjktdd9mU; sessionid=i2seglxpsln3rcombwwt3z5ve7ne1d26"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/4/itervalues/3/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"UPDATED\"},\"iterable\":5,\"id\":3,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:40:11 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/itervalues/3/"}, "recorded_at": "2016-10-05T14:40:11"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/8ccf4ef98a12f666c96e427686c429919aab7d91.json b/tests/api_tests/tests/api_tests/cassettes/8ccf4ef98a12f666c96e427686c429919aab7d91.json deleted file mode 100644 index cf6e02fd..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/8ccf4ef98a12f666c96e427686c429919aab7d91.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"unique_id\": \"uuid_custA_site1\", \"iterable\": 2, \"value\": 10, \"id\": 2}", "encoding": "utf-8"}, "headers": {"Content-Length": ["70"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=MxGXqptZpS7mCD00eSjBkttffvP0Je2z; sessionid=thp9dtuxt11wx9agijh5aoy3qi5dqjod"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/2/itervalue/2/"}, "response": {"body": {"string": "{\"unique_id\":\"uuid_custA_site1\",\"iterable\":2,\"id\":2,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/itervalue/2/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json b/tests/api_tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json deleted file mode 100644 index 8e9d71b4..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/8cec33f561c67ffebe5bc37b73bd8b62cc8d5b7e.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=SJDELwqT5AW5jJgfKbYx1Gn2d1KT43GH; sessionid=zgqg33m50olhaz5qsan17aewcmjh0jym"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/1/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 19:32:54 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/1/next_value/"}, "recorded_at": "2016-10-06T19:32:54"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/8f6a31734a3996d9000e28677df02c7fb6fce82e.json b/tests/api_tests/tests/api_tests/cassettes/8f6a31734a3996d9000e28677df02c7fb6fce82e.json deleted file mode 100644 index 05fb4187..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/8f6a31734a3996d9000e28677df02c7fb6fce82e.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=9aFZO3kDSJYbffJMqYPEvxgy6shOfwTI; sessionid=sqa3b706n76novhkk7kd2xrkic4372jp"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/5/iterables/6/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/5/iterables/6/next_value/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/8fa8542c24682f1630f1068f09423a1504d0d054.json b/tests/api_tests/tests/api_tests/cassettes/8fa8542c24682f1630f1068f09423a1504d0d054.json deleted file mode 100644 index b58daebb..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/8fa8542c24682f1630f1068f09423a1504d0d054.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"iterable\": 4, \"id\": 10, \"value\": 10}", "encoding": "utf-8"}, "headers": {"Content-Length": ["85"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=8QR2sre63q4pmpZnluYUlM9DQYE9wX0o; sessionid=hi2kyt7ewb853roe7d3elvdwn0m71958"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/3/itervalues/10/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":4,\"id\":10,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/itervalues/10/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/9071d0ebe6b2a5539393680f86a221d40c324b1a.json b/tests/api_tests/tests/api_tests/cassettes/9071d0ebe6b2a5539393680f86a221d40c324b1a.json deleted file mode 100644 index 481e031e..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/9071d0ebe6b2a5539393680f86a221d40c324b1a.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {}}", "encoding": "utf-8"}, "headers": {"Content-Length": ["18"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=CPtIqWHyePHbcGfhZqk9IKyyYhSlML8t; sessionid=ggk4wjqiab7selwzdznchxcz2jgiiioo"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/7/devices/15/"}, "response": {"body": {"string": "{\"attributes\":{},\"hostname\":\"device1\",\"site_id\":7,\"id\":15}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/7/devices/15/"}, "recorded_at": "2016-10-04T20:39:06"}, {"request": {"body": {"string": "{\"attributes\": {}}", "encoding": "utf-8"}, "headers": {"Content-Length": ["18"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=CPtIqWHyePHbcGfhZqk9IKyyYhSlML8t; sessionid=ggk4wjqiab7selwzdznchxcz2jgiiioo"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/7/devices/15/"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"hostname\":[\"This field is required.\"]},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/7/devices/15/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/90de2c24b7b96754be5274456846c679c7218f66.json b/tests/api_tests/tests/api_tests/cassettes/90de2c24b7b96754be5274456846c679c7218f66.json deleted file mode 100644 index c0349d3f..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/90de2c24b7b96754be5274456846c679c7218f66.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.0.0/14/descendents/"}, "response": {"body": {"string": "[{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.0.0/14/descendents/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/929c5029f7d582d42cc9c979ad541df4c4cabcd9.json b/tests/api_tests/tests/api_tests/cassettes/929c5029f7d582d42cc9c979ad541df4c4cabcd9.json deleted file mode 100644 index fc71d3a5..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/929c5029f7d582d42cc9c979ad541df4c4cabcd9.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/iterables/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":5,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=2u8dFVhUzxkTjS2HpyQDApv6kdhQ64aK; expires=Mon, 09-Oct-2017 19:27:32 GMT; Max-Age=31449600; Path=/", "sessionid=8bxts0foa8pj8nsgept3ymk7932db89h; expires=Mon, 24-Oct-2016 19:27:32 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/iterables/5/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/iterables/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/92ed631c466c9febf8dfbcd1246122265290db14.json b/tests/api_tests/tests/api_tests/cassettes/92ed631c466c9febf8dfbcd1246122265290db14.json deleted file mode 100644 index 63546b06..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/92ed631c466c9febf8dfbcd1246122265290db14.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=ayfoK2g6lWw2XmJdI35BSB7R8FN3bThc; sessionid=jpu7re5uxj9e1ig8irz6bd5v8qxd3fsv"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterables/"}, "response": {"body": {"string": "[{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterables/"}, "recorded_at": "2016-10-10T14:19:05"}, {"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/iterables/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=mcQ3f7kTH11n7wOaFNTuqohlYbITwNnI; expires=Mon, 09-Oct-2017 19:27:31 GMT; Max-Age=31449600; Path=/", "sessionid=1z58yr2fgjkskibg1h6lnd7w7vqb24yr; expires=Mon, 24-Oct-2016 19:27:31 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/iterables/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/iterables/"}, "recorded_at": "2016-10-10T19:27:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json b/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json deleted file mode 100644 index 37305b90..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/9361c628b50168e5044a6dc8e3034ef9312f44c6.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept": ["*/*"], "Connection": ["keep-alive"], "Accept-Encoding": ["gzip, deflate"], "X-NSoT-Email": ["admin@localhost"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018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204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=pe7inl3s8j8cj2g55nr2o0r0n5; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC0A6E3C9FCE34C046AB92421DA69EC3725534C42CB695BD59EB2C313B2EEA08C45A0C008CE5DCC69AB74FACDE96E159D6D;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7206"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 13 Sep 2016 18:26:53 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.88.38"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=qQ62n3SrvDPWsjt1Nn3SrVSMQ1fr62n3ZvrV5Hvzsq"}, "recorded_at": "2016-09-13T18:33:48"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept": ["*/*"], "Connection": ["keep-alive"], "Accept-Encoding": ["gzip, deflate"], "X-NSoT-Email": ["admin@localhost"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18yZLb2LLYXl+B5rutkB5UBRIECVBS6T0ABEBwJgiSIG9cd2A4GEjMI8n7eu2N1/bG4Z3DEQ574Z33z5/iuOHP8AE4FKtUUrfU/e6qFaUCeIbMPDmdPMw89fGH7oSV11MOsVPP/fTqY/lAXNW3HmrAr5UNQDU+vUKQjx5IVUS31TgB6UMtS807qvbYYadpeAeizMkfasrdgr5jAy9UU0dzQQ3RAz8FPpwlcg/AsMDNPF/1wEMtd0ARBnF6M7RwjNR+MEDu6OCu+vAOcXwndVT3LtFVFzw0voCePYG4kw/hLe4U7FOsXN6H6ypuFuE6/g6xY2A+1EpYyXsMS1JIv35vAd2JUz9IHdPRYUvg3+uBh+lqmEI4mOOpFkgwNQxdcJcGmW7fORDnHYmH+/vQt2pIDNyH2mf9YQwgmDBIgFFDEucIkocaie9JvIZgjxRVcxMbskbPUqScWPstVJpqXiHX3AwkKQDuDZkpZNdDrRqIVQ3Yvw1jGg3i2zkDJ+3h/387oojvIYqARBFXolIndcGnKUSA5CC+4v+InTqeyTQ9uCCxAUi/T6B6kmBaEKRJGqvhXfO+ed++9xw4JklqiAcMR4WLcN0LbT/c3SE9eTRsIYnteIjqG4gEkjDwjfttgphBjIgchSRZWFohEpjnwcAFHjSepJpQQUWiDK4NJMjd3QXwnx0TcVMIAOn8pWz7hXU6vo45wHT2v5b+M/ndAGKF/ECKIN4hZhx4CNsdn+mAYxI9dsIUSWL9W3m5TSq/0IKsySEpJCSmJGWb1D59xE5gfw8c8Ynhd4174h5/EcPHH/4MfMMx/3Jm7u+rLnDI6ROkoP4So39RbOf5P52tyPF/yhKAGXEQVr/uqllfUsHfdzEVDL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BKF/rwpzdlFAbhgdiBkeERDvgShNPWDofaQXEB86d7davu3/z1bMOl2b5HLjDVNI3f1E4hV+3tu/MY6KafDznfxroOOTn3M4mXRhDHQQxbL0zeRkpPeoeUf/ViDlUrg7F2NWR0un94YUX1D1pvErjg3g2sN08GfUAwDDltSqp7Hv/zBWOSVcH9I07kTUnQLWTHPLX98FALdrUnOJFyX05PMz7cNH+Fs7cC+uLgZxKoKIbnRBig/PW3YHkehb2A5dXt8+dfpbu/1nLh4Rep/hiFDjfC9KEJm65Md+Cz7HpzYW/J9MfBHx/qsKNcw/0piLpSfuXLDei7h8aHagU/n+zqvso335/uNzue9bkxl8AfSfjwaJIvTDU09/tnV2u71+Du/qZWjYceM05r7x5V/u1Fwk4y1+PAdcu4+OF8sDpL5TMoHjxZ/wog8Lj+ZRhwB3wZhPkG+eEWztPlPlGVcs3Pd+qXmF1NMQI9K8/D96eR90noQm9X+wBnwACcUyH06xy9RPpsAlyQfg8Pr66qgzfYv0NQ7B1Sg5OvTQ/3/1g2PXwA+xAecGEUgaCIDwqkCyOqN6WbXsjsPI3hoiBRKFL7EKqp/YDVrjJEqhi42sBi4Aaq8dRjXylCSqyqcfh8kaUel6Z3jebf3rvAt1L70Y886y7/isfzKVXb48pq18i69q5keXX3BmomdENvalUgVXuL1v6lhp478a91Nr/WSXyts/W88+3Vk3zPmm6PBad13VStfAnVz587Iez05zI+Yqe/BvX/ATWxbjYeSgAA", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=l1qnrihe0g495t4dcu11nhn307; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC01D715DE960D1D66DA142353243330039923BB02E6BE2642E4FA388AA71F7B5B57D81953815B40BF9B076C8E8A3D5133C;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7716"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 13 Sep 2016 20:26:09 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.89.214"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=NvQWfSgDjtgVNSq3JfSDqs1NQPw1QWfSg7RfZrjzsq"}, "recorded_at": "2016-09-13T20:11:22"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=D07KSHHSj04SD4RtVSHN6PrQFMN17KSHHt3V3Jnzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18y5LbyJbYXl+B5txWSAMVQYIACUoqzYAgQIJvggRJ8Ma1AgQSL+JFIAGQvNNrb7y2Nw7vHI5w2AvvvB9/i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qvVZ29O/iHQE/uEgPrDETx3C/WPhP/42uXzkJ+prkdC+9Ob0j8UG4C35SL1eGMkfmFEb0CKPN9b7K+F7PNhl5z+bRkGpumCNyVDjWHp7YdiRDG8jPQx/2wDQ01c+Kbo+6X4XSC6Bqxfx3Yz9HvRPcpr3pZPYfeKEvsS59MQ/raM8hHw5owSgctd6P2f3uRZGIIHIhtlhkc04CUIp9COhlpBdgHzp7LqqPs3fz3bcG6277ELTBXC6E3plHKV3r47j0Fu+umQ8+2Z65CTcz+TeGkEURREqPXCZGe36krvsPyvFMyQaiUo1y6GDE/3xS6sKP4h640DF5TdwHzzaNAHjCCwU1BS3fP4Xy4Y46RI7h9wYm9ygm4h28ap7af7UrAtPcKJ5XEZnmZ8uGn+CmdvBfTi4CcSKChG+0SUoPz192B5moU9g+XV7ecvv0l3f6vlos0vVvzxAA0FQnhfQ01XptvoM+96c2FvzvSHwR/vK6gjX0P5lERdKb/y5Qb03X31Q7GCX052VS7Om8un+6i2Z35pzDnwBxI+PJjkM1P1jfv9s4u1lTcour8pFeORx4xg6d2Dyr+9SNiOZ1oUuG6eF9+fN1ZnqXwBxUM7698ABG3XX4aBIuDzIIw32E+3cB4v95Gq5Gt+GqmfY3YxRQ+0JN8Pl08jy3HoIm9X+oBmoAScVxH06xwtR/pkAlqQVkabV1fVwBvi32E48Q4rocnXpvvyP+ZN9x/APkQbXJRFYDjmgwxro4zqTe6m5Tk3gxFaFCIKx0ofQhVa90TpKkOsyIGLABYBN1D1xx77ShGWY1X1w5eLzPU4N71rNv+27ALfhNaDH3nSnf/VhadTiraHlZWumXXpXc7y4n4G0kzkht6UikSq9BYv/UsJP3eSX+usfa2T+lon/bTz7dWTfM+abrcFp3XdVK28hOqXL50QcfrzBh+J01/v+f8kC0huzkcAAA==", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.109"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=pdl5ukr6o4pbj0h4hkd4llrvn5; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC01D715DE960D1D66DA142353243330039923BB02E6BE2642E4FA388AA71F7B5B57D81953815B40BF9B076C8E8A3D5133C;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7258"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Wed, 21 Sep 2016 01:17:56 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.89.214"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=D07KSHHSj04SD4RtVSHN6PrQFMN17KSHHt3V3Jnzsq"}, "recorded_at": "2016-09-21T01:02:56"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept": ["*/*"], "Connection": ["keep-alive"], "Accept-Encoding": ["gzip, deflate"], "X-NSoT-Email": ["admin@localhost"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+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0QI1LTfB96eR93HoQm9XewdnwKybkyH06xy1RPpsAlyQeg93rK6sglfov0Pq6BukBidfmx7u/7FsengHihDuamEWgdQRH+QIC9OoV6WbFlfMMongoiBRdaT2LpQT8wGtXWWIVIlvFcAi4Aay9tRjXylCSqyydvh0kaUel6Z3TeFf37vANxLz0Y886y5//eH5lKrtcWW1azpde1OyvLq6ATUTuqFXtSqRqr2u1/65Vj934l/rbH6tk/haZ+t55+urJ/mRNd3uBU7ruikU+RKqXz51QujpZxbeo6dfEfr/oJVahFZIAAA=", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.204.115"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=r6nok0lbso5irhn53a6a6m3uh0; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC0D65393CC1ECC6691BB689F86B76324B8923BB02E6BE2642E4FA388AA71F7B5B57D81953815B40BF9B076C8E8A3D5133C;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7469"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Tue, 04 Oct 2016 13:46:38 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.89.214"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=other&lang=en_US&zsq=JfSvLWWksTDVVkjjQpW01LTFJQMtSvLWrP1rfsrzsq"}, "recorded_at": "2016-10-04T13:31:01"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept": ["*/*"], "Connection": ["keep-alive"], "Accept-Encoding": ["gzip, deflate"], "X-NSoT-Email": ["admin@localhost"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "http://localhost:8100/api/sites/"}, "response": {"body": {"string": "504 Gateway Timeout\r\n

    Gateway Timeout

    \r\n

    Server error - server 127.0.0.1 is unreachable at this moment.

    Please retry the request or contact your administrator.

    \r\n\r\n", "encoding": "ISO-8859-1"}, "headers": {"Connection": ["close"], "Content-Type": ["text/html"], "Server": ["Zscaler/5.2"]}, "status": {"message": "Gateway Timeout", "code": 504}, "url": "http://localhost:8100/api/sites/"}, "recorded_at": "2016-10-06T19:16:44"}, {"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8100/api/sites/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Location": ["https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=nbmn4SSFrqkF7sMKW4SrnK6bGPKKmn4SMGV2jkHzsq"], "Server": ["Zscaler/5.2"]}, "status": {"message": "Moved Temporarily", "code": 302}, "url": "http://localhost:8100/api/sites/"}, "recorded_at": "2016-10-06T19:23:06"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept": ["*/*"], "Connection": ["keep-alive"], "Accept-Encoding": ["gzip, deflate"], "X-NSoT-Email": ["admin@localhost"], "User-Agent": ["python-requests/2.11.1"]}, "method": "GET", "uri": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=nbmn4SSFrqkF7sMKW4SrnK6bGPKKmn4SMGV2jkHzsq"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+18ybLbyLLYXl+B5rutkB51CGIiQElH7wEgSIATSHDmjesODIWBxEQMBMD7eu2N1/bG4Z3DEQ574Z33z5/iuOHPcAEczqAjdUvd7676hHQAVmVlZmVlZWYxs87HHzoyP99MBMROPPfTq4/lA3FV37qvAb9WNgDV+PQKQT56IFER3VajGCT3tTQx75jaQ4edJOEdOKTO8b62vluwd3zghWriaC6oIXrgJ8CHoyThHhgWeDTOVz1wXzs6IAuDKHkEmjlGYt8b4Ojo4K768A5xfCdxVPcu1lUX3GNfIM+fUdzNi/Ax7QTkCVpO78NtFo8m4Tr+HrEjYN7XSlzxexSNE8i/3rCA7kSJHySO6eiwJfAbeuChuhomEA/qeKoFYlQNQxfcJUGq23cOpHlH42HeCH2rhkTAva991h9GAKIJgxgYNSR2TiC+r9F4TuM1BH3gqBob21A0epog5cDab+HSVI8Vcc1NQZwA4D5iM4Hiuq9VgGjVgP7bCAbDyG+XDByUw///dkyR38MUCZkib0wlTuKCTxNIADmC6Eb/I3rueLamSeGC2AYg+b4F1eMY1YIgiZNIDe+IBtFoNTwHwsRxDfGA4ahwEq575e2HuztEnI+GFBLbjoeovoEoIA4D32jsYsQMIkQSGCROw3IXIoF5AQYu8ODmiasBFVbkkMK5gRi5u7si/rNjIm4CES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e7U/M1fL3u43LbvkStONUmiN7VzyFV7++4CA830c5DLtacbyNm4X1i8NoIoCiLYehXy7rAWlXdI+eclZlC1UhhrVyCj80W/qyiqH7h748AFDTew3jwB+oCgKHJ2Sqp7gf/5SjFOq+D+gSbypmToMWbHPLf9cF8L9rUnNJHSLyfnER8eNX9Fso8X6IvAz1ag4hieE2GA8tffQuV5FPYClVePnz//Kt39tTsXHn6R6q8+6NARJvcEbLoJ3YHPsuvNVbyl0B+AP943YUc5h8Y5iLpxfpPLI9R399iHagY/n/dVo8o3N84XiR3P+nwzl8gfWPjwsCVfGGpo7vePrubW0KB3f1Or4KHFjJLauweVf3tdYSee6VHgumVcfH85WF1W5TMsHjxZ/wok8Lj+ZRzQA76MwnyD/PAYz9PpPlGVcs7PPfVLwq6GGIGelufhxhmyEYcutHa1D3AEDMAFFWK/jdFLos8GwAnpDXh4dVUdvEH/HVJH3yE1OPjWdN/4x7Lp/gPIQ3jAhVEEUkd8kCEdGFG9Kc30Ys7PkghOCjJVR2ofQjWx79HabQ2RKgauHFgE3EA1nlrsG0dISVU1is8nWepxufVu0fzbhgt8K7Ef7Miz7vLPZTwfUrU9zKx2i6xr70qRVxdXoGZCM/SmVgVStbf12r/U6pdO/GudxNc6ya91Us87394syffM6fGx4DyvR1UrXyL18+dGCD3/XYqP6PnPLv1/6w8QhYdJAAA=", "encoding": "UTF-8"}, "headers": {"X-PHP-Client-IP": ["104.129.194.123"], "X-XSS-Protection": ["1; mode=block"], "X-Content-Type-Options": ["nosniff"], "Content-Security-Policy": ["img-src 'self' https://static.gecirtnotification.com data:"], "Content-Encoding": ["gzip"], "Set-Cookie": ["PHPSESSID=ierfnsugrnhpufsrvldgbtt524; path=/", "AWSELB=4BCBEBA50AA702363A6644A7FEA405C46CE85BAFC01D715DE960D1D66DA142353243330039923BB02E6BE2642E4FA388AA71F7B5B57D81953815B40BF9B076C8E8A3D5133C;PATH=/;MAX-AGE=1800"], "Expires": ["Sun, 01 Jan 2014 00:00:00 GMT"], "Vary": ["Accept-Encoding"], "Content-Length": ["7595"], "Server": ["Apache"], "Connection": ["keep-alive"], "Pragma": ["no-cache"], "Cache-Control": ["no-store, no-cache, must-revalidate, max-age=0", "post-check=0, pre-check=0", "no-cache=\"set-cookie\""], "Date": ["Thu, 06 Oct 2016 19:38:49 GMT"], "X-Powered-By": ["PHP/5.6.10"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["text/html; charset=UTF-8"], "X-PHP-Server-IP": ["10.229.89.214"]}, "status": {"message": "OK", "code": 200}, "url": "https://captcha.gecirtnotification.com/pitc/?url=http%3a%2f%2flocalhost%3a8100%2fapi%2fsites%2f&referer=&reason=This+site+is+categorized+as+Miscellaneous+or+Unknown&reasoncode=CATEGORY_CAUTIONED&timebound=1&action=deny&kind=category&rule=52&cat=Miscellaneous+or+Unknown&user=200018779@ge.com&lang=en_US&zsq=nbmn4SSFrqkF7sMKW4SrnK6bGPKKmn4SMGV2jkHzsq"}, "recorded_at": "2016-10-06T19:23:07"}, {"request": {"body": {"string": "{\"name\": \"Test Site\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/"}, "response": {"body": {"string": "{\"id\":6,\"name\":\"Test Site\",\"description\":\"\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=Q2DtMTAxkMhHORR4LHDLVfnIG2FbToZM; expires=Mon, 09-Oct-2017 19:27:32 GMT; Max-Age=31449600; Path=/", "sessionid=ei6gfwctsgaisisz4qtpopy8bizpyavi; expires=Mon, 24-Oct-2016 19:27:32 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/"], "Allow": ["GET, POST, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/944e446940adf75be72d7ff7a59b5db4918d6e1c.json b/tests/api_tests/tests/api_tests/cassettes/944e446940adf75be72d7ff7a59b5db4918d6e1c.json deleted file mode 100644 index 48cac62c..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/944e446940adf75be72d7ff7a59b5db4918d6e1c.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=VuMVy029S4A19H2gB204lnf0qwqM5zTy; sessionid=90dcjhooh9cwc8xk6qufzvqfd3d3s0sl"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/1/networks/2/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:05:59 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/1/networks/2/"}, "recorded_at": "2016-09-21T01:05:59"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/949cc773ac378030532f36a8ab596483f3586d05.json b/tests/api_tests/tests/api_tests/cassettes/949cc773ac378030532f36a8ab596483f3586d05.json deleted file mode 100644 index f87c6abb..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/949cc773ac378030532f36a8ab596483f3586d05.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=HxblsCzqLPh6JjqediS8zSVXUEocehTq; sessionid=ftc9xszptwq2t700aiktz8gh4cbjit59"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/4/itervalue/4/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 20 Sep 2016 16:28:50 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/4/itervalue/4/"}, "recorded_at": "2016-09-20T16:28:50"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json b/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json deleted file mode 100644 index 9e7360c0..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/95e95e49f6f87bba0c41bf27c3beab3efd9da5a9.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=J0O3IIX37Buf4TCZyzwBTkEYUPyIL7uk; expires=Mon, 09-Oct-2017 14:11:03 GMT; Max-Age=31449600; Path=/", "sessionid=05y051o3yvkcz43631iu3uvwrfq7o7ou; expires=Mon, 24-Oct-2016 14:11:03 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/iterable/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-10-10T14:11:03"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=J0O3IIX37Buf4TCZyzwBTkEYUPyIL7uk; sessionid=05y051o3yvkcz43631iu3uvwrfq7o7ou"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/"}, "response": {"body": {"string": "[{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/9656ecd4fe0150cd6217d09c5d4b1f8d9d19e00b.json b/tests/api_tests/tests/api_tests/cassettes/9656ecd4fe0150cd6217d09c5d4b1f8d9d19e00b.json deleted file mode 100644 index e45fbaa1..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/9656ecd4fe0150cd6217d09c5d4b1f8d9d19e00b.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.0.0.0/8/descendents/"}, "response": {"body": {"string": "[{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28},{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29},{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.0.0.0/8/descendents/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/9a1dd628a3eb7e38539910dfe4779c436f26fbcf.json b/tests/api_tests/tests/api_tests/cassettes/9a1dd628a3eb7e38539910dfe4779c436f26fbcf.json deleted file mode 100644 index 0144d1c5..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/9a1dd628a3eb7e38539910dfe4779c436f26fbcf.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 4}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=8QR2sre63q4pmpZnluYUlM9DQYE9wX0o; sessionid=hi2kyt7ewb853roe7d3elvdwn0m71958"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":4,\"id\":10,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/itervalues/10/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/itervalues/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/9b7df91a15b8467cb4a0d6e28cff72627c05af10.json b/tests/api_tests/tests/api_tests/cassettes/9b7df91a15b8467cb4a0d6e28cff72627c05af10.json deleted file mode 100644 index 2ea92582..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/9b7df91a15b8467cb4a0d6e28cff72627c05af10.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=VOWIruYGh2cNAJfPR6I6SwE9gboBFVAz; sessionid=n64m0t4yrcn58gblfe1altpzwzh2bclr"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/devices/19/interfaces/"}, "response": {"body": {"string": "[{\"addresses\":[],\"device\":19,\"speed\":1000,\"networks\":[],\"description\":\"\",\"name\":\"eth0\",\"id\":1,\"parent_id\":null,\"mac_address\":\"00:00:00:00:00:00\",\"attributes\":{},\"type\":6},{\"addresses\":[],\"device\":19,\"speed\":1000,\"networks\":[],\"description\":\"\",\"name\":\"eth1\",\"id\":2,\"parent_id\":null,\"mac_address\":\"00:00:00:00:00:00\",\"attributes\":{},\"type\":6}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/devices/19/interfaces/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/9c4af53e207bf96a18b2686d4332c7d6387741ff.json b/tests/api_tests/tests/api_tests/cassettes/9c4af53e207bf96a18b2686d4332c7d6387741ff.json deleted file mode 100644 index d7e1b427..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/9c4af53e207bf96a18b2686d4332c7d6387741ff.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"attr1\": \"foo\"}, \"hostname\": \"device1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["55"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=N5Iml4tSryasVqnXLZOu3U5MJBvEhYu5; sessionid=k4ysuun793bmqonjhde2vdvwuqdvckbm"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/devices/"}, "response": {"body": {"string": "{\"attributes\":{\"attr1\":\"foo\"},\"hostname\":\"device1\",\"site_id\":6,\"id\":14}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/devices/14/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/devices/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/9e28a8939946014bbb652453058fd33ef7a8320e.json b/tests/api_tests/tests/api_tests/cassettes/9e28a8939946014bbb652453058fd33ef7a8320e.json deleted file mode 100644 index 48bf608d..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/9e28a8939946014bbb652453058fd33ef7a8320e.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 5}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=2u8dFVhUzxkTjS2HpyQDApv6kdhQ64aK; sessionid=8bxts0foa8pj8nsgept3ymk7932db89h"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":5,\"id\":11,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/itervalues/11/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/itervalues/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/9e59fc13628275f2a31802bc64c03f049f457bd6.json b/tests/api_tests/tests/api_tests/cassettes/9e59fc13628275f2a31802bc64c03f049f457bd6.json deleted file mode 100644 index 19b12cb5..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/9e59fc13628275f2a31802bc64c03f049f457bd6.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"cidr\": \"10.16.2.17/32\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["25"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=hDa66i1nmtMI2kUfyAZXjJiTixWEfKQD; sessionid=509nslsvqj13ww93k0nmzpm5yuqyw5uc"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/9/networks/"}, "response": {"body": {"string": "{\"parent_id\":33,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.17\",\"attributes\":{},\"site_id\":9,\"id\":38}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/9/networks/38/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/9/networks/"}, "recorded_at": "2016-09-21T01:06:02"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=hDa66i1nmtMI2kUfyAZXjJiTixWEfKQD; sessionid=509nslsvqj13ww93k0nmzpm5yuqyw5uc"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.0%2F25"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":9,\"id\":33}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.0%2F25"}, "recorded_at": "2016-09-21T01:06:02"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=hDa66i1nmtMI2kUfyAZXjJiTixWEfKQD; sessionid=509nslsvqj13ww93k0nmzpm5yuqyw5uc"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.8%2F29"}, "response": {"body": {"string": "[{\"parent_id\":33,\"state\":\"allocated\",\"prefix_length\":29,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.8\",\"attributes\":{},\"site_id\":9,\"id\":34}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.8%2F29"}, "recorded_at": "2016-09-21T01:06:02"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=hDa66i1nmtMI2kUfyAZXjJiTixWEfKQD; sessionid=509nslsvqj13ww93k0nmzpm5yuqyw5uc"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.1%2F32"}, "response": {"body": {"string": "[{\"parent_id\":33,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":9,\"id\":35}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.1%2F32"}, "recorded_at": "2016-09-21T01:06:02"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=hDa66i1nmtMI2kUfyAZXjJiTixWEfKQD; sessionid=509nslsvqj13ww93k0nmzpm5yuqyw5uc"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.2%2F32"}, "response": {"body": {"string": "[{\"parent_id\":33,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":9,\"id\":36}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/networks/?cidr=10.16.2.2%2F32"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/a19750a6d840f704991808815c7cc500845d850f.json b/tests/api_tests/tests/api_tests/cassettes/a19750a6d840f704991808815c7cc500845d850f.json deleted file mode 100644 index 46601c3c..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/a19750a6d840f704991808815c7cc500845d850f.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.2.2/32/parent/"}, "response": {"body": {"string": "{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.2.2/32/parent/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/a219b1813ccf9f5f378c4b0c94bb02765f90d513.json b/tests/api_tests/tests/api_tests/cassettes/a219b1813ccf9f5f378c4b0c94bb02765f90d513.json deleted file mode 100644 index 79efa4ce..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/a219b1813ccf9f5f378c4b0c94bb02765f90d513.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=0jL0LvYu5EFws3K1kKTRXJQj6AKAy1AH; sessionid=8gzg7faljbwhb7un2wi458q4zom8bbr9"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/6/iterables/8/next_value/"}, "response": {"body": {"string": "[103]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:33 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/iterables/8/next_value/"}, "recorded_at": "2016-10-10T19:27:33"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/a2fc16e99e6840d0b9309e5e2f140d779be5bb4d.json b/tests/api_tests/tests/api_tests/cassettes/a2fc16e99e6840d0b9309e5e2f140d779be5bb4d.json deleted file mode 100644 index 9aead91b..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/a2fc16e99e6840d0b9309e5e2f140d779be5bb4d.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=ayfoK2g6lWw2XmJdI35BSB7R8FN3bThc; sessionid=jpu7re5uxj9e1ig8irz6bd5v8qxd3fsv"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterables/itr1/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterables/itr1/"}, "recorded_at": "2016-10-10T14:19:05"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/a48495323d11fad28e7e5e2054e5b0a25ec0952f.json b/tests/api_tests/tests/api_tests/cassettes/a48495323d11fad28e7e5e2054e5b0a25ec0952f.json deleted file mode 100644 index 52a5c6a3..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/a48495323d11fad28e7e5e2054e5b0a25ec0952f.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=uds5hegqoVgou4EOa94ibYMtfnZTA7TL; sessionid=kdxjm82imuic367ti0p2by2d97hugh4d"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterables/2/next_value/"}, "response": {"body": {"string": "[13]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterables/2/next_value/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/a579564d9cc80ce669ba9d87617147b0fdf9e950.json b/tests/api_tests/tests/api_tests/cassettes/a579564d9cc80ce669ba9d87617147b0fdf9e950.json deleted file mode 100644 index c3f664b2..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/a579564d9cc80ce669ba9d87617147b0fdf9e950.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=9aFZO3kDSJYbffJMqYPEvxgy6shOfwTI; sessionid=sqa3b706n76novhkk7kd2xrkic4372jp"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/5/itervalues/12/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/5/itervalues/12/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json b/tests/api_tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json deleted file mode 100644 index 5a42e36f..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/a7039450914a324dd6fe58d1530c6e7cbc92668d.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":6,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=K1BtjPkLTCePuYstFBA80oEKa8RyzyXv; expires=Mon, 09-Oct-2017 14:11:03 GMT; Max-Age=31449600; Path=/", "sessionid=0x3ovagew2o90yoqug24cszacpxaywj4; expires=Mon, 24-Oct-2016 14:11:03 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/4/iterable/6/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/iterable/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/a956c26cc96805f137aa6e1bf918e945cd2a2dcf.json b/tests/api_tests/tests/api_tests/cassettes/a956c26cc96805f137aa6e1bf918e945cd2a2dcf.json deleted file mode 100644 index c626d35d..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/a956c26cc96805f137aa6e1bf918e945cd2a2dcf.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"attr1\": \"foo\"}, \"hostname\": \"device1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["55"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=qIHIQEHWCtnnLeiCmOFobn6dub8U3UIG; sessionid=bfdrv3kix03ys3fkhkjr246vehgkn4co"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/devices/"}, "response": {"body": {"string": "{\"attributes\":{\"attr1\":\"foo\"},\"hostname\":\"device1\",\"site_id\":1,\"id\":1}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/devices/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:38:16 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/devices/"}, "recorded_at": "2016-10-04T20:38:16"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=qIHIQEHWCtnnLeiCmOFobn6dub8U3UIG; sessionid=bfdrv3kix03ys3fkhkjr246vehgkn4co"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/devices/"}, "response": {"body": {"string": "[{\"attributes\":{\"attr1\":\"foo\"},\"hostname\":\"device1\",\"site_id\":1,\"id\":1}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:38:16 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/devices/"}, "recorded_at": "2016-10-04T20:38:16"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/ac14741009c2752d2974626d95219cb08ed03332.json b/tests/api_tests/tests/api_tests/cassettes/ac14741009c2752d2974626d95219cb08ed03332.json deleted file mode 100644 index dbee3808..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/ac14741009c2752d2974626d95219cb08ed03332.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=P5Az3AtDIfiiaxq3UA4nFAasaLLpsG8j; sessionid=nlraqzw6ylzp3qdezi601643ftl1zqa5"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/5/iterables/7/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/5/iterables/7/next_value/"}, "recorded_at": "2016-10-10T14:19:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/b3463540377cf86fcf1e58bdc5d19bd5db4460aa.json b/tests/api_tests/tests/api_tests/cassettes/b3463540377cf86fcf1e58bdc5d19bd5db4460aa.json deleted file mode 100644 index 38062376..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/b3463540377cf86fcf1e58bdc5d19bd5db4460aa.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Device\", \"name\": \"attr1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["44"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/8/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Device\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":8,\"id\":26,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"attr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=WdHoWv3DqBYwGlJvGbTJ947ZgeSgmnyl; expires=Tue, 03-Oct-2017 20:39:06 GMT; Max-Age=31449600; Path=/", "sessionid=zb5hgmz14dupbd90xksy1u635yjsbiiy; expires=Tue, 18-Oct-2016 20:39:06 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/8/attributes/26/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/8/attributes/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/b74958d4a89a7cf79ed11404f4294c471ff25aff.json b/tests/api_tests/tests/api_tests/cassettes/b74958d4a89a7cf79ed11404f4294c471ff25aff.json deleted file mode 100644 index e4a222a3..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/b74958d4a89a7cf79ed11404f4294c471ff25aff.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=7MlIkLlUMLrbtVuqOs3vUPtnyXfc78fZ; sessionid=zlubc586z0peqsewwvpg0i5y3lapkb5f"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/iterable/4/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 19:32:54 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/iterable/4/next_value/"}, "recorded_at": "2016-10-06T19:32:54"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/b93ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json b/tests/api_tests/tests/api_tests/cassettes/b93ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json deleted file mode 100644 index 7fa841a1..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/b93ea94e63262639ef44b7d8efdc6b6cc8aef3ce.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"description\": \"Iterable 1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["29"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=K1BtjPkLTCePuYstFBA80oEKa8RyzyXv; sessionid=0x3ovagew2o90yoqug24cszacpxaywj4"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/4/iterable/6/"}, "response": {"body": {"string": "{\"description\":\"Iterable 1\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":6,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/iterable/6/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/baf629ed91285cf74bf94815135d5cc474ee2cdd.json b/tests/api_tests/tests/api_tests/cassettes/baf629ed91285cf74bf94815135d5cc474ee2cdd.json deleted file mode 100644 index 098eedb1..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/baf629ed91285cf74bf94815135d5cc474ee2cdd.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"description\": \"test-iterable\", \"min_val\": 10, \"max_val\": 20, \"increment\": 1, \"id\": 5, \"name\": \"itr1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["103"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=PSZBg4J2DR0JzbFdR6aG4WpueqV1piiq; sessionid=u8tnsn2unx7i1flpvxiy9oshicn9y7e2"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/3/iterables/5/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":5,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/iterables/5/"}, "recorded_at": "2016-10-10T14:19:05"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/bd474da839501043708fa3000d35851e61d996a3.json b/tests/api_tests/tests/api_tests/cassettes/bd474da839501043708fa3000d35851e61d996a3.json deleted file mode 100644 index de2c66de..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/bd474da839501043708fa3000d35851e61d996a3.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"state\": \"reserved\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=j48jakWNXNSZz6OoIsHT1Fg3gn0NtQyE; sessionid=66tkqx5vrs78lqteshyq3cu4f14wi0pf"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/6/networks/23/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":6,\"id\":23}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/6/networks/23/"}, "recorded_at": "2016-09-21T01:06:01"}, {"request": {"body": {"string": "{\"state\": \"reserved\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["21"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=j48jakWNXNSZz6OoIsHT1Fg3gn0NtQyE; sessionid=66tkqx5vrs78lqteshyq3cu4f14wi0pf"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/6/networks/23/"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"attributes\":[\"This field is required.\"]},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/6/networks/23/"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json b/tests/api_tests/tests/api_tests/cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json deleted file mode 100644 index ccc779be..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/bd5ef3bd823ef180a70b1fa5ce28f3e98b2215fa.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sD4CcXAXHerBDExnN5GNDHp7Xj5Izbya; sessionid=2gufgzbn3tdlmsgdggk0icfkn6zi1wh3"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/itervalue/1/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":1,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:35:47 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/itervalue/1/"}, "recorded_at": "2016-10-05T14:35:47"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/bde34cd954fc463c1cee7195696c5662b0da623a.json b/tests/api_tests/tests/api_tests/cassettes/bde34cd954fc463c1cee7195696c5662b0da623a.json deleted file mode 100644 index f79e02c1..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/bde34cd954fc463c1cee7195696c5662b0da623a.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=zaQvRO6T21wFucrGcJ0ZMXSqAQedIwu9; sessionid=d6tsdaca5fkqp0yfmsnay5ge4fkdjobs"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/itervalues/1/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/itervalues/1/"}, "recorded_at": "2016-10-10T14:19:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/bed48976a960605bb0cc70cc575506af38968f36.json b/tests/api_tests/tests/api_tests/cassettes/bed48976a960605bb0cc70cc575506af38968f36.json deleted file mode 100644 index a74a2e73..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/bed48976a960605bb0cc70cc575506af38968f36.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=vkXrwAhSaMqK35Ks1em83fhFYB9bLHrw; sessionid=y16ht5zhdbuufj8kp6q9dd8g33wqydxy"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?query=foo%3Dbar"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":4,\"id\":16},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":4,\"id\":18}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/query/?query=foo%3Dbar"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=vkXrwAhSaMqK35Ks1em83fhFYB9bLHrw; sessionid=y16ht5zhdbuufj8kp6q9dd8g33wqydxy"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?query=foo%3Dbar+owner%3Djathan"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":4,\"id\":18}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/query/?query=foo%3Dbar+owner%3Djathan"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=vkXrwAhSaMqK35Ks1em83fhFYB9bLHrw; sessionid=y16ht5zhdbuufj8kp6q9dd8g33wqydxy"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?include_ips=False&query=-owner%3Dgary"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":4,\"id\":15},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":4,\"id\":18},{\"parent_id\":15,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":20},{\"parent_id\":20,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":21}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/query/?include_ips=False&query=-owner%3Dgary"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=vkXrwAhSaMqK35Ks1em83fhFYB9bLHrw; sessionid=y16ht5zhdbuufj8kp6q9dd8g33wqydxy"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?query=cluster+%2Bfoo%3Dbaz"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":4,\"id\":15},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":4,\"id\":17}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/query/?query=cluster+%2Bfoo%3Dbaz"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=vkXrwAhSaMqK35Ks1em83fhFYB9bLHrw; sessionid=y16ht5zhdbuufj8kp6q9dd8g33wqydxy"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?query=vlan%3D300"}, "response": {"body": {"string": "[{\"parent_id\":21,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":4,\"id\":19}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/query/?query=vlan%3D300"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=vkXrwAhSaMqK35Ks1em83fhFYB9bLHrw; sessionid=y16ht5zhdbuufj8kp6q9dd8g33wqydxy"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/query/?query=fake%3Dbad"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"query\":\"Attribute matching query does not exist: 'fake'\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/4/networks/query/?query=fake%3Dbad"}, "recorded_at": "2016-09-21T01:06:00"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/c0cb95ea14a08d6a6bcfc780eec553cc3f4bded7.json b/tests/api_tests/tests/api_tests/cassettes/c0cb95ea14a08d6a6bcfc780eec553cc3f4bded7.json deleted file mode 100644 index 2f69106d..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/c0cb95ea14a08d6a6bcfc780eec553cc3f4bded7.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/iterables/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":9,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=zaQvRO6T21wFucrGcJ0ZMXSqAQedIwu9; expires=Mon, 09-Oct-2017 14:19:06 GMT; Max-Age=31449600; Path=/", "sessionid=d6tsdaca5fkqp0yfmsnay5ge4fkdjobs; expires=Mon, 24-Oct-2016 14:19:06 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/iterables/9/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/iterables/"}, "recorded_at": "2016-10-10T14:19:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/c103a0cc7197d1128ce53feb5373975328c86a95.json b/tests/api_tests/tests/api_tests/cassettes/c103a0cc7197d1128ce53feb5373975328c86a95.json deleted file mode 100644 index 897daade..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/c103a0cc7197d1128ce53feb5373975328c86a95.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=WdHoWv3DqBYwGlJvGbTJ947ZgeSgmnyl; sessionid=zb5hgmz14dupbd90xksy1u635yjsbiiy"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/8/devices/device3/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/8/devices/device3/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/c1ace35610f08937e315c7ca43d88e3d52cae87d.json b/tests/api_tests/tests/api_tests/cassettes/c1ace35610f08937e315c7ca43d88e3d52cae87d.json deleted file mode 100644 index b567ec8b..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/c1ace35610f08937e315c7ca43d88e3d52cae87d.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=uds5hegqoVgou4EOa94ibYMtfnZTA7TL; sessionid=kdxjm82imuic367ti0p2by2d97hugh4d"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":2,\"id\":2,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/attributes/2/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/attributes/"}, "recorded_at": "2016-10-10T19:27:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/c26809628169f516dea4ef452fe982b3b64faf42.json b/tests/api_tests/tests/api_tests/cassettes/c26809628169f516dea4ef452fe982b3b64faf42.json deleted file mode 100644 index 15dddc0c..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/c26809628169f516dea4ef452fe982b3b64faf42.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=qIHIQEHWCtnnLeiCmOFobn6dub8U3UIG; sessionid=bfdrv3kix03ys3fkhkjr246vehgkn4co"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/devices/device1/"}, "response": {"body": {"string": "{\"attributes\":{\"attr1\":\"foo\"},\"hostname\":\"device1\",\"site_id\":1,\"id\":1}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:38:16 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/devices/device1/"}, "recorded_at": "2016-10-04T20:38:16"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/c27917cb3dae1fb80ec025a88502d8930abad8ed.json b/tests/api_tests/tests/api_tests/cassettes/c27917cb3dae1fb80ec025a88502d8930abad8ed.json deleted file mode 100644 index 8c5b43ab..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/c27917cb3dae1fb80ec025a88502d8930abad8ed.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 200, \"min_val\": 100, \"name\": \"itr2\", \"increment\": 1, \"description\": \"test-iterable2\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["97"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=0jL0LvYu5EFws3K1kKTRXJQj6AKAy1AH; sessionid=8gzg7faljbwhb7un2wi458q4zom8bbr9"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/6/iterables/"}, "response": {"body": {"string": "{\"description\":\"test-iterable2\",\"min_val\":100,\"max_val\":200,\"increment\":1,\"id\":8,\"name\":\"itr2\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/6/iterables/8/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/6/iterables/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/c5166aff566078fc644891c3d483a596bc238579.json b/tests/api_tests/tests/api_tests/cassettes/c5166aff566078fc644891c3d483a596bc238579.json deleted file mode 100644 index eddfc8cd..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/c5166aff566078fc644891c3d483a596bc238579.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.16.0.0/12/children/"}, "response": {"body": {"string": "[{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/10.16.0.0/12/children/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/c77fd2df6127b125a3d4d9d702eb97c7151b84b2.json b/tests/api_tests/tests/api_tests/cassettes/c77fd2df6127b125a3d4d9d702eb97c7151b84b2.json deleted file mode 100644 index 3721b1c3..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/c77fd2df6127b125a3d4d9d702eb97c7151b84b2.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "[\n {\n \"attributes\": {\n \"cluster\": \"\", \n \"foo\": \"baz\", \n \"owner\": \"jathan\"\n }, \n \"cidr\": \"192.168.0.0/16\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"lax\", \n \"foo\": \"bar\", \n \"owner\": \"gary\"\n }, \n \"cidr\": \"10.0.0.0/8\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"lax\", \n \"foo\": \"baz\", \n \"owner\": \"gary\"\n }, \n \"cidr\": \"172.16.0.0/12\"\n }, \n {\n \"attributes\": {\n \"cluster\": \"sjc\", \n \"foo\": \"bar\", \n \"owner\": \"jathan\"\n }, \n \"cidr\": \"169.254.0.0/16\"\n }, \n {\n \"attributes\": {\n \"hostname\": \"foo-bar1\", \n \"vlan\": \"300\"\n }, \n \"cidr\": \"192.168.0.1/32\"\n }, \n {\n \"attributes\": {\n \"hostname\": \"foo-bar1\"\n }, \n \"cidr\": \"192.168.0.0/24\"\n }, \n {\n \"attributes\": {\n \"hostname\": \"foo-bar1\"\n }, \n \"cidr\": \"192.168.0.0/25\"\n }\n]\n", "encoding": "utf-8"}, "headers": {"Content-Length": ["1056"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=vkXrwAhSaMqK35Ks1em83fhFYB9bLHrw; sessionid=y16ht5zhdbuufj8kp6q9dd8g33wqydxy"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/4/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":4,\"id\":15},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":4,\"id\":16},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":4,\"id\":17},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":4,\"id\":18},{\"parent_id\":15,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":4,\"id\":19},{\"parent_id\":15,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":20},{\"parent_id\":20,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":21}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/4/networks/"}, "recorded_at": "2016-09-21T01:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=vkXrwAhSaMqK35Ks1em83fhFYB9bLHrw; sessionid=y16ht5zhdbuufj8kp6q9dd8g33wqydxy"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/networks/"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"\",\"foo\":\"baz\"},\"site_id\":4,\"id\":15},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"bar\"},\"site_id\":4,\"id\":16},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"172.16.0.0\",\"attributes\":{\"owner\":\"gary\",\"cluster\":\"lax\",\"foo\":\"baz\"},\"site_id\":4,\"id\":17},{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":16,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"169.254.0.0\",\"attributes\":{\"owner\":\"jathan\",\"cluster\":\"sjc\",\"foo\":\"bar\"},\"site_id\":4,\"id\":18},{\"parent_id\":21,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"192.168.0.1\",\"attributes\":{\"hostname\":\"foo-bar1\",\"vlan\":\"300\"},\"site_id\":4,\"id\":19},{\"parent_id\":15,\"state\":\"allocated\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":20},{\"parent_id\":20,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"192.168.0.0\",\"attributes\":{\"hostname\":\"foo-bar1\"},\"site_id\":4,\"id\":21}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/networks/"}, "recorded_at": "2016-09-21T01:06:00"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/c87885aa4d31ad8a2b08b03b992f52f9db466615.json b/tests/api_tests/tests/api_tests/cassettes/c87885aa4d31ad8a2b08b03b992f52f9db466615.json deleted file mode 100644 index 5d6c40c4..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/c87885aa4d31ad8a2b08b03b992f52f9db466615.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"cidr\": \"10.16.2.2/32\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["24"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/8/networks/"}, "response": {"body": {"string": "{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/8/networks/32/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/8/networks/"}, "recorded_at": "2016-09-21T01:06:01"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.0.0.0%2F8"}, "response": {"body": {"string": "[{\"parent_id\":null,\"state\":\"allocated\",\"prefix_length\":8,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":8,\"id\":27}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.0.0.0%2F8"}, "recorded_at": "2016-09-21T01:06:01"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.0.0%2F12"}, "response": {"body": {"string": "[{\"parent_id\":27,\"state\":\"allocated\",\"prefix_length\":12,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":28}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.0.0%2F12"}, "recorded_at": "2016-09-21T01:06:01"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.0.0%2F14"}, "response": {"body": {"string": "[{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.0.0%2F14"}, "recorded_at": "2016-09-21T01:06:01"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.0%2F25"}, "response": {"body": {"string": "[{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.0%2F25"}, "recorded_at": "2016-09-21T01:06:01"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.1%2F32"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.1%2F32"}, "recorded_at": "2016-09-21T01:06:01"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.2%2F32"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/?cidr=10.16.2.2%2F32"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/cba0ca9382553634281ae742531723e2b84d8b34.json b/tests/api_tests/tests/api_tests/cassettes/cba0ca9382553634281ae742531723e2b84d8b34.json deleted file mode 100644 index aa438363..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/cba0ca9382553634281ae742531723e2b84d8b34.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sCNySnbrP9l3RUoHrYsEwaPR1kIsRnB4; sessionid=i1ngtls6ihz1p0f9dzp6qkukdl9u6us1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterable/3/next_value/"}, "response": {"body": {"string": "[103]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 19:32:54 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterable/3/next_value/"}, "recorded_at": "2016-10-06T19:32:54"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/cbbe3fb07643a66ab8033584bea01b2a56d2a4a7.json b/tests/api_tests/tests/api_tests/cassettes/cbbe3fb07643a66ab8033584bea01b2a56d2a4a7.json deleted file mode 100644 index 668e6736..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/cbbe3fb07643a66ab8033584bea01b2a56d2a4a7.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=mcQ3f7kTH11n7wOaFNTuqohlYbITwNnI; sessionid=1z58yr2fgjkskibg1h6lnd7w7vqb24yr"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterables/1/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterables/1/next_value/"}, "recorded_at": "2016-10-10T19:27:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json b/tests/api_tests/tests/api_tests/cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json deleted file mode 100644 index d64b9c6a..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/cdbfa48163eeae1ce7216449002c354cfbb6159c.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=kquyraDsSzh0uInfmdwzEJtF2gt2h7sQ; sessionid=e8466o0fc94vmwoohs3nlcbcgevp4c6v"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/7/iterable/9/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:04 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/7/iterable/9/next_value/"}, "recorded_at": "2016-10-10T14:11:04"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/ce676537fa146be76efe97393539b87248de1c84.json b/tests/api_tests/tests/api_tests/cassettes/ce676537fa146be76efe97393539b87248de1c84.json deleted file mode 100644 index 7025796c..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/ce676537fa146be76efe97393539b87248de1c84.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "[{\"hostname\": \"device1\"}, {\"hostname\": \"device2\"}, {\"hostname\": \"device3\"}]", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/devices/"}, "response": {"body": {"string": "[{\"attributes\":{},\"hostname\":\"device1\",\"site_id\":2,\"id\":2},{\"attributes\":{},\"hostname\":\"device2\",\"site_id\":2,\"id\":3},{\"attributes\":{},\"hostname\":\"device3\",\"site_id\":2,\"id\":4}]", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=7uXfLwSFGivPepTOwmwYNNyeDfNtDfBl; expires=Tue, 03-Oct-2017 20:38:16 GMT; Max-Age=31449600; Path=/", "sessionid=edrhev3q9jv1jxb8x2ie67dqkb2ue1a6; expires=Tue, 18-Oct-2016 20:38:16 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:38:16 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/devices/"}, "recorded_at": "2016-10-04T20:38:16"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=7uXfLwSFGivPepTOwmwYNNyeDfNtDfBl; sessionid=edrhev3q9jv1jxb8x2ie67dqkb2ue1a6"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/devices/"}, "response": {"body": {"string": "[{\"attributes\":{},\"hostname\":\"device1\",\"site_id\":2,\"id\":2},{\"attributes\":{},\"hostname\":\"device2\",\"site_id\":2,\"id\":3},{\"attributes\":{},\"hostname\":\"device3\",\"site_id\":2,\"id\":4}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:38:16 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/devices/"}, "recorded_at": "2016-10-04T20:38:16"}, {"request": {"body": {"string": "[{\"attributes\": {\"owner\": \"jathan\"}, \"hostname\": \"device1\", \"site_id\": 2, \"id\": 2}, {\"attributes\": {\"owner\": \"jathan\"}, \"hostname\": \"device2\", \"site_id\": 2, \"id\": 3}, {\"attributes\": {\"owner\": \"jathan\"}, \"hostname\": \"device3\", \"site_id\": 2, \"id\": 4}]", "encoding": "utf-8"}, "headers": {"Content-Length": ["249"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=7uXfLwSFGivPepTOwmwYNNyeDfNtDfBl; sessionid=edrhev3q9jv1jxb8x2ie67dqkb2ue1a6"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/2/devices/"}, "response": {"body": {"string": "[{\"attributes\":{\"owner\":\"jathan\"},\"hostname\":\"device1\",\"site_id\":2,\"id\":2},{\"attributes\":{\"owner\":\"jathan\"},\"hostname\":\"device2\",\"site_id\":2,\"id\":3},{\"attributes\":{\"owner\":\"jathan\"},\"hostname\":\"device3\",\"site_id\":2,\"id\":4}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:38:16 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/devices/"}, "recorded_at": "2016-10-04T20:38:16"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/ced58e2cf97d7a523c5852924a577f5c8b892866.json b/tests/api_tests/tests/api_tests/cassettes/ced58e2cf97d7a523c5852924a577f5c8b892866.json deleted file mode 100644 index 23f883fc..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/ced58e2cf97d7a523c5852924a577f5c8b892866.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=J0O3IIX37Buf4TCZyzwBTkEYUPyIL7uk; sessionid=05y051o3yvkcz43631iu3uvwrfq7o7ou"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/iterable/1/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":1,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/iterable/1/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/d06f37f0a1e298db8a44f4f636fb6fb3284127de.json b/tests/api_tests/tests/api_tests/cassettes/d06f37f0a1e298db8a44f4f636fb6fb3284127de.json deleted file mode 100644 index 9d7875c8..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/d06f37f0a1e298db8a44f4f636fb6fb3284127de.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Device\", \"name\": \"attr1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["44"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Device\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":7,\"id\":25,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"attr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=CPtIqWHyePHbcGfhZqk9IKyyYhSlML8t; expires=Tue, 03-Oct-2017 20:39:06 GMT; Max-Age=31449600; Path=/", "sessionid=ggk4wjqiab7selwzdznchxcz2jgiiioo; expires=Tue, 18-Oct-2016 20:39:06 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/attributes/25/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/attributes/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/d172f0fadfb95294453118f64f6a030a09446bf9.json b/tests/api_tests/tests/api_tests/cassettes/d172f0fadfb95294453118f64f6a030a09446bf9.json deleted file mode 100644 index 704cfe83..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/d172f0fadfb95294453118f64f6a030a09446bf9.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=e5t1idCSs7XnQFxTv9Jpbm7pEhtij1rd; sessionid=shxfrvy7jremxj5so2cg5rbje09lcavb"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/4/iterable/5/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 19:32:55 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/iterable/5/next_value/"}, "recorded_at": "2016-10-06T19:32:55"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/d456384a5763e1fb69be4c8a36aabd43efde2aec.json b/tests/api_tests/tests/api_tests/cassettes/d456384a5763e1fb69be4c8a36aabd43efde2aec.json deleted file mode 100644 index 2d3fcd1c..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/d456384a5763e1fb69be4c8a36aabd43efde2aec.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"device\": 19, \"name\": \"eth1\", \"parent\": 1}", "encoding": "utf-8"}, "headers": {"Content-Length": ["43"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=VOWIruYGh2cNAJfPR6I6SwE9gboBFVAz; sessionid=n64m0t4yrcn58gblfe1altpzwzh2bclr"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/9/interfaces/"}, "response": {"body": {"string": "{\"addresses\":[],\"device\":19,\"speed\":1000,\"networks\":[],\"description\":\"\",\"name\":\"eth1\",\"id\":2,\"parent_id\":null,\"mac_address\":\"00:00:00:00:00:00\",\"attributes\":{},\"type\":6}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/9/interfaces/2/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/9/interfaces/"}, "recorded_at": "2016-10-04T20:39:06"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=VOWIruYGh2cNAJfPR6I6SwE9gboBFVAz; sessionid=n64m0t4yrcn58gblfe1altpzwzh2bclr"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/9/interfaces/"}, "response": {"body": {"string": "[{\"addresses\":[],\"device\":19,\"speed\":1000,\"networks\":[],\"description\":\"\",\"name\":\"eth0\",\"id\":1,\"parent_id\":null,\"mac_address\":\"00:00:00:00:00:00\",\"attributes\":{},\"type\":6},{\"addresses\":[],\"device\":19,\"speed\":1000,\"networks\":[],\"description\":\"\",\"name\":\"eth1\",\"id\":2,\"parent_id\":null,\"mac_address\":\"00:00:00:00:00:00\",\"attributes\":{},\"type\":6}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:39:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/9/interfaces/"}, "recorded_at": "2016-10-04T20:39:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json b/tests/api_tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json deleted file mode 100644 index c654be9c..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/d459fab30966b59910a1ea5aa837e1e1c9c1c7ff.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sCNySnbrP9l3RUoHrYsEwaPR1kIsRnB4; sessionid=i1ngtls6ihz1p0f9dzp6qkukdl9u6us1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterable/2/next_value/"}, "response": {"body": {"string": "[13]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Thu, 06 Oct 2016 19:32:54 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterable/2/next_value/"}, "recorded_at": "2016-10-06T19:32:54"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/d5f7009c8ca1699486d9116a6ca0da537b1bb8b7.json b/tests/api_tests/tests/api_tests/cassettes/d5f7009c8ca1699486d9116a6ca0da537b1bb8b7.json deleted file mode 100644 index 47407260..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/d5f7009c8ca1699486d9116a6ca0da537b1bb8b7.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"attr1\": \"foo\"}, \"cidr\": \"10.0.0.0/24\", \"state\": \"reserved\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["76"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=FdJmKwmbb8BJzw09wi7k0FuCbLc8gwhF; sessionid=lxqchn5x2ttbr51rldzgm50ua9qmzbcn"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/networks/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"reserved\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{\"attr1\":\"foo\"},\"site_id\":5,\"id\":22}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/networks/22/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:00 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/networks/"}, "recorded_at": "2016-09-21T01:06:00"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/d64396a0e9f44951ae8d3dd39b07e3b4ac792cdc.json b/tests/api_tests/tests/api_tests/cassettes/d64396a0e9f44951ae8d3dd39b07e3b4ac792cdc.json deleted file mode 100644 index 199ebeee..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/d64396a0e9f44951ae8d3dd39b07e3b4ac792cdc.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"unique_id\": \"uuid_custA_site1\", \"value\": 10, \"iterable\": 9}", "encoding": "utf-8"}, "headers": {"Content-Length": ["61"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=zaQvRO6T21wFucrGcJ0ZMXSqAQedIwu9; sessionid=d6tsdaca5fkqp0yfmsnay5ge4fkdjobs"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{},\"iterable\":9,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/itervalues/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/itervalues/"}, "recorded_at": "2016-10-10T14:19:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/d94de6e6562d496610045848634ac64d824062a5.json b/tests/api_tests/tests/api_tests/cassettes/d94de6e6562d496610045848634ac64d824062a5.json deleted file mode 100644 index 98b3719a..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/d94de6e6562d496610045848634ac64d824062a5.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=8QR2sre63q4pmpZnluYUlM9DQYE9wX0o; sessionid=hi2kyt7ewb853roe7d3elvdwn0m71958"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/3/iterables/4/next_value/"}, "response": {"body": {"string": "[10]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/iterables/4/next_value/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/d9993b207736a02db0e341bc1253b5c708697d6e.json b/tests/api_tests/tests/api_tests/cassettes/d9993b207736a02db0e341bc1253b5c708697d6e.json deleted file mode 100644 index 59067d51..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/d9993b207736a02db0e341bc1253b5c708697d6e.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=qIHIQEHWCtnnLeiCmOFobn6dub8U3UIG; sessionid=bfdrv3kix03ys3fkhkjr246vehgkn4co"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/1/devices/1/"}, "response": {"body": {"string": "{\"attributes\":{\"attr1\":\"foo\"},\"hostname\":\"device1\",\"site_id\":1,\"id\":1}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 20:38:16 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/1/devices/1/"}, "recorded_at": "2016-10-04T20:38:16"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/da427a9a7f5006cf428910abcbcb10322f0c9b6a.json b/tests/api_tests/tests/api_tests/cassettes/da427a9a7f5006cf428910abcbcb10322f0c9b6a.json deleted file mode 100644 index 96558bec..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/da427a9a7f5006cf428910abcbcb10322f0c9b6a.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"unique_id\": \"uuid_custA_site1\", \"value\": 10, \"iterable\": 9}", "encoding": "utf-8"}, "headers": {"Content-Length": ["61"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=TJgS61dEbp0dCpCSeweCmnSbDdIBO9JK; sessionid=j8zi4c4ruijvrnmkqqodvvxml2m18yip"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/itervalue/"}, "response": {"body": {"string": "{\"attributes\":{},\"iterable\":9,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/itervalue/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Tue, 04 Oct 2016 19:19:09 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/itervalue/"}, "recorded_at": "2016-10-04T19:19:09"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/e0e399e8dbcd4774ee2b95798987a3638ea50836.json b/tests/api_tests/tests/api_tests/cassettes/e0e399e8dbcd4774ee2b95798987a3638ea50836.json deleted file mode 100644 index c285501a..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/e0e399e8dbcd4774ee2b95798987a3638ea50836.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/28/children/"}, "response": {"body": {"string": "[{\"parent_id\":28,\"state\":\"allocated\",\"prefix_length\":14,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.0.0\",\"attributes\":{},\"site_id\":8,\"id\":29}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/28/children/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/eacb60510140254a7ec730a2383e740cf8048a1d.json b/tests/api_tests/tests/api_tests/cassettes/eacb60510140254a7ec730a2383e740cf8048a1d.json deleted file mode 100644 index 24260dd5..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/eacb60510140254a7ec730a2383e740cf8048a1d.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"resource_name\": \"Itervalue\", \"name\": \"service_key\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["53"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=mcQ3f7kTH11n7wOaFNTuqohlYbITwNnI; sessionid=1z58yr2fgjkskibg1h6lnd7w7vqb24yr"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/attributes/"}, "response": {"body": {"string": "{\"multi\":false,\"resource_name\":\"Itervalue\",\"description\":\"\",\"display\":false,\"required\":false,\"site_id\":1,\"id\":1,\"constraints\":{\"pattern\":\"\",\"valid_values\":[],\"allow_empty\":false},\"name\":\"service_key\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/attributes/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:31 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/attributes/"}, "recorded_at": "2016-10-10T19:27:31"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/eb12b0fa792eb79c4d325779b62e416a5f3bd4bd.json b/tests/api_tests/tests/api_tests/cassettes/eb12b0fa792eb79c4d325779b62e416a5f3bd4bd.json deleted file mode 100644 index e81466e2..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/eb12b0fa792eb79c4d325779b62e416a5f3bd4bd.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"iterable\": 4, \"id\": 10, \"value\": 10}", "encoding": "utf-8"}, "headers": {"Content-Length": ["85"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Lv6SSGQMhjVBqUW85JFqwtnYZ4qUvwta; sessionid=sjp0x9th99km65jjz7lxz60vrh2e9jsw"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/3/itervalue/10/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":4,\"id\":10,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:35:48 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/itervalue/10/"}, "recorded_at": "2016-10-05T14:35:48"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/eb265a9697212637085b4a3e6ab21689f776d9de.json b/tests/api_tests/tests/api_tests/cassettes/eb265a9697212637085b4a3e6ab21689f776d9de.json deleted file mode 100644 index 942553d9..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/eb265a9697212637085b4a3e6ab21689f776d9de.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {}, \"state\": \"orphaned\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["39"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=FdJmKwmbb8BJzw09wi7k0FuCbLc8gwhF; sessionid=lxqchn5x2ttbr51rldzgm50ua9qmzbcn"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/5/networks/10.0.0.0/24/"}, "response": {"body": {"string": "{\"parent_id\":null,\"state\":\"orphaned\",\"prefix_length\":24,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.0.0.0\",\"attributes\":{},\"site_id\":5,\"id\":22}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:01 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/5/networks/10.0.0.0/24/"}, "recorded_at": "2016-09-21T01:06:01"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/edd5ea30273120cefcc90a7f78227fc9af2c4f25.json b/tests/api_tests/tests/api_tests/cassettes/edd5ea30273120cefcc90a7f78227fc9af2c4f25.json deleted file mode 100644 index 09972f42..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/edd5ea30273120cefcc90a7f78227fc9af2c4f25.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=uds5hegqoVgou4EOa94ibYMtfnZTA7TL; sessionid=kdxjm82imuic367ti0p2by2d97hugh4d"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/iterables/3/next_value/"}, "response": {"body": {"string": "[103]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/iterables/3/next_value/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/ee0b0d065d59bf08356f8637dc33c6aafed9083a.json b/tests/api_tests/tests/api_tests/cassettes/ee0b0d065d59bf08356f8637dc33c6aafed9083a.json deleted file mode 100644 index 85b0e368..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/ee0b0d065d59bf08356f8637dc33c6aafed9083a.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"description\": \"Iterable 1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["29"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=slIAQ6v7rFC4TiIvvMyKBCsCzYhHVQuO; sessionid=rt3ww6nh5nxzosuuwy2pw0nr0mkw5vai"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PATCH", "uri": "http://localhost:8081/api/sites/4/iterables/6/"}, "response": {"body": {"string": "{\"description\":\"Iterable 1\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":6,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:05 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/4/iterables/6/"}, "recorded_at": "2016-10-10T14:19:05"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json b/tests/api_tests/tests/api_tests/cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json deleted file mode 100644 index 4b86c798..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/ee6229400749457eca20861a7205b03d1e2525a9.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 1}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=sD4CcXAXHerBDExnN5GNDHp7Xj5Izbya; sessionid=2gufgzbn3tdlmsgdggk0icfkn6zi1wh3"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/1/itervalue/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":1,\"id\":1,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/1/itervalue/1/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:35:47 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/1/itervalue/"}, "recorded_at": "2016-10-05T14:35:47"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/efdfaf06458551f5d928717e1a227e44b1a4b03b.json b/tests/api_tests/tests/api_tests/cassettes/efdfaf06458551f5d928717e1a227e44b1a4b03b.json deleted file mode 100644 index b929aaf2..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/efdfaf06458551f5d928717e1a227e44b1a4b03b.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Content-Length": ["0"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=zaQvRO6T21wFucrGcJ0ZMXSqAQedIwu9; sessionid=d6tsdaca5fkqp0yfmsnay5ge4fkdjobs"], "X-NSoT-Email": ["admin@localhost"]}, "method": "DELETE", "uri": "http://localhost:8081/api/sites/7/iterables/9/"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"Content-Length": ["0"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:19:06 GMT"], "X-Frame-Options": ["SAMEORIGIN"]}, "status": {"message": "NO CONTENT", "code": 204}, "url": "http://localhost:8081/api/sites/7/iterables/9/"}, "recorded_at": "2016-10-10T14:19:06"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json b/tests/api_tests/tests/api_tests/cassettes/f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json deleted file mode 100644 index 09a85d74..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/f04c00a093f6ab6d3e7524b3c0b5ec4ca6b88dbb.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/7/iterable/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":9,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=kquyraDsSzh0uInfmdwzEJtF2gt2h7sQ; expires=Mon, 09-Oct-2017 14:11:04 GMT; Max-Age=31449600; Path=/", "sessionid=e8466o0fc94vmwoohs3nlcbcgevp4c6v; expires=Mon, 24-Oct-2016 14:11:04 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/7/iterable/9/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:04 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/7/iterable/"}, "recorded_at": "2016-10-10T14:11:04"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/f3fe397632a874f9bb32ccda0313de2633938b63.json b/tests/api_tests/tests/api_tests/cassettes/f3fe397632a874f9bb32ccda0313de2633938b63.json deleted file mode 100644 index 2ceb1a14..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/f3fe397632a874f9bb32ccda0313de2633938b63.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/32/parent/"}, "response": {"body": {"string": "{\"parent_id\":29,\"state\":\"allocated\",\"prefix_length\":25,\"is_ip\":false,\"ip_version\":\"4\",\"network_address\":\"10.16.2.0\",\"attributes\":{},\"site_id\":8,\"id\":30}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/32/parent/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/f4f454793819b78cee2c3266c61a2ef84dd8e291.json b/tests/api_tests/tests/api_tests/cassettes/f4f454793819b78cee2c3266c61a2ef84dd8e291.json deleted file mode 100644 index b62a5280..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/f4f454793819b78cee2c3266c61a2ef84dd8e291.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"max_val\": 20, \"min_val\": 10, \"name\": \"itr1\", \"increment\": 1, \"description\": \"test-iterable\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["94"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/iterables/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":4,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Set-Cookie": ["_xsrf=8QR2sre63q4pmpZnluYUlM9DQYE9wX0o; expires=Mon, 09-Oct-2017 19:27:32 GMT; Max-Age=31449600; Path=/", "sessionid=hi2kyt7ewb853roe7d3elvdwn0m71958; expires=Mon, 24-Oct-2016 19:27:32 GMT; httponly; Max-Age=1209600; Path=/"], "Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/iterables/4/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/iterables/"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/f4fda071eb8ac67600e3a674f17e31bc2aa298d6.json b/tests/api_tests/tests/api_tests/cassettes/f4fda071eb8ac67600e3a674f17e31bc2aa298d6.json deleted file mode 100644 index f21982f1..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/f4fda071eb8ac67600e3a674f17e31bc2aa298d6.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 6}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=UFl1W0wjMeWEdWkqIF1Bw6Xj6m44mQQr; sessionid=kaaqgx1er446gahsdi2uww6kg6mjb5m1"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/5/itervalue/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":6,\"id\":12,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/5/itervalue/12/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:35:48 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/5/itervalue/"}, "recorded_at": "2016-10-05T14:35:48"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/f5d01c6d7cf05a4278dd5458a09e0b04788a0103.json b/tests/api_tests/tests/api_tests/cassettes/f5d01c6d7cf05a4278dd5458a09e0b04788a0103.json deleted file mode 100644 index cb3711cd..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/f5d01c6d7cf05a4278dd5458a09e0b04788a0103.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/31/siblings/"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/31/siblings/"}, "recorded_at": "2016-09-21T01:06:02"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/31/siblings/?include_self=True"}, "response": {"body": {"string": "[{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.1\",\"attributes\":{},\"site_id\":8,\"id\":31},{\"parent_id\":30,\"state\":\"allocated\",\"prefix_length\":32,\"is_ip\":true,\"ip_version\":\"4\",\"network_address\":\"10.16.2.2\",\"attributes\":{},\"site_id\":8,\"id\":32}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/8/networks/31/siblings/?include_self=True"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/f88bf65cf0371d4806fae9e1ff953f163ab0d803.json b/tests/api_tests/tests/api_tests/cassettes/f88bf65cf0371d4806fae9e1ff953f163ab0d803.json deleted file mode 100644 index d16871c1..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/f88bf65cf0371d4806fae9e1ff953f163ab0d803.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=q8GGhuE1Dueo7kgW7Ul4VnDZZp8B5Kjk; sessionid=ugt61lak8mm8mwbgwy0nnokxa3x96h45"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/11/networks/1/closest_parent/"}, "response": {"body": {"string": "{\"error\":{\"message\":{\"cidr\":\"u'1' does not appear to be an IPv4 or IPv6 network\"},\"code\":400}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:08:51 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "BAD REQUEST", "code": 400}, "url": "http://localhost:8081/api/sites/11/networks/1/closest_parent/"}, "recorded_at": "2016-09-21T01:08:51"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/f89563819dcaf8721dcc05b5d25657de7e4a3a8d.json b/tests/api_tests/tests/api_tests/cassettes/f89563819dcaf8721dcc05b5d25657de7e4a3a8d.json deleted file mode 100644 index 0ce60a98..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/f89563819dcaf8721dcc05b5d25657de7e4a3a8d.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custb01_key2\"}, \"value\": 103, \"iterable\": 3}", "encoding": "utf-8"}, "headers": {"Content-Length": ["76"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=uds5hegqoVgou4EOa94ibYMtfnZTA7TL; sessionid=kdxjm82imuic367ti0p2by2d97hugh4d"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/2/itervalues/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custb01_key2\"},\"iterable\":3,\"id\":9,\"value\":103}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/2/itervalues/9/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/2/itervalues/"}, "recorded_at": "2016-10-10T19:27:32"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=uds5hegqoVgou4EOa94ibYMtfnZTA7TL; sessionid=kdxjm82imuic367ti0p2by2d97hugh4d"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/2/itervalues/?attributes=service_key%3Dcustb01_key1"}, "response": {"body": {"string": "[{\"attributes\":{\"service_key\":\"custb01_key1\"},\"iterable\":2,\"id\":4,\"value\":12},{\"attributes\":{\"service_key\":\"custb01_key1\"},\"iterable\":3,\"id\":8,\"value\":102}]", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 19:27:32 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/2/itervalues/?attributes=service_key%3Dcustb01_key1"}, "recorded_at": "2016-10-10T19:27:32"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json b/tests/api_tests/tests/api_tests/cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json deleted file mode 100644 index ef748a1a..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/f899b2450520c8fdff8600aef51dc6deda0b9549.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"attributes\": {\"service_key\": \"custA01_key1\"}, \"value\": 10, \"iterable\": 4}", "encoding": "utf-8"}, "headers": {"Content-Length": ["75"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=Lv6SSGQMhjVBqUW85JFqwtnYZ4qUvwta; sessionid=sjp0x9th99km65jjz7lxz60vrh2e9jsw"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "POST", "uri": "http://localhost:8081/api/sites/3/itervalue/"}, "response": {"body": {"string": "{\"attributes\":{\"service_key\":\"custA01_key1\"},\"iterable\":4,\"id\":10,\"value\":10}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Location": ["http://localhost:8081/api/sites/3/itervalue/10/"], "Allow": ["GET, POST, PUT, PATCH, HEAD, OPTIONS"], "Date": ["Wed, 05 Oct 2016 14:35:48 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "CREATED", "code": 201}, "url": "http://localhost:8081/api/sites/3/itervalue/"}, "recorded_at": "2016-10-05T14:35:48"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/fd0ebe116d422145e03dbb05c5d21d8f36ffe70f.json b/tests/api_tests/tests/api_tests/cassettes/fd0ebe116d422145e03dbb05c5d21d8f36ffe70f.json deleted file mode 100644 index 159ddbdf..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/fd0ebe116d422145e03dbb05c5d21d8f36ffe70f.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=q8GGhuE1Dueo7kgW7Ul4VnDZZp8B5Kjk; sessionid=ugt61lak8mm8mwbgwy0nnokxa3x96h45"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/networks/11/closest_parent.bogus"}, "response": {"body": {"string": "{\"error\":{\"message\":\"Endpoint not found.\",\"code\":404}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:08:51 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "NOT FOUND", "code": 404}, "url": "http://localhost:8081/api/networks/11/closest_parent.bogus"}, "recorded_at": "2016-09-21T01:08:51"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/fdbaea7fe81fb647256ead8b8076b3fa39ae57ec.json b/tests/api_tests/tests/api_tests/cassettes/fdbaea7fe81fb647256ead8b8076b3fa39ae57ec.json deleted file mode 100644 index d253cbf8..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/fdbaea7fe81fb647256ead8b8076b3fa39ae57ec.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=x7Ofs8pD1W8loBkEKsFvUrriqzJqPye5; sessionid=dg8tmru15g26vkffwbtkpgiqbf0llla1"], "X-NSoT-Email": ["admin@localhost"]}, "method": "GET", "uri": "http://localhost:8081/api/sites/8/networks/10.0.0.0/8/root/"}, "response": {"body": {"string": "{\"error\":{\"message\":\"No such Network found at (site_id, id) = (8, None)\",\"code\":404}}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, HEAD, OPTIONS"], "Date": ["Wed, 21 Sep 2016 01:06:02 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "NOT FOUND", "code": 404}, "url": "http://localhost:8081/api/sites/8/networks/10.0.0.0/8/root/"}, "recorded_at": "2016-09-21T01:06:02"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file diff --git a/tests/api_tests/tests/api_tests/cassettes/ffd4529bd2b59140eec7020beac2eb51f67ba602.json b/tests/api_tests/tests/api_tests/cassettes/ffd4529bd2b59140eec7020beac2eb51f67ba602.json deleted file mode 100644 index 99f7a224..00000000 --- a/tests/api_tests/tests/api_tests/cassettes/ffd4529bd2b59140eec7020beac2eb51f67ba602.json +++ /dev/null @@ -1 +0,0 @@ -{"http_interactions": [{"request": {"body": {"string": "{\"description\": \"test-iterable\", \"min_val\": 10, \"max_val\": 20, \"increment\": 1, \"id\": 5, \"name\": \"itr1\"}", "encoding": "utf-8"}, "headers": {"Content-Length": ["103"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "User-Agent": ["python-requests/2.11.1"], "Connection": ["keep-alive"], "Cookie": ["_xsrf=mXmFqttn2Piolz9o78C9AQEi32cbOgCN; sessionid=eg167vejrinycbdwv6ek1q8fah361fh4"], "X-NSoT-Email": ["admin@localhost"], "Content-type": ["application/json"]}, "method": "PUT", "uri": "http://localhost:8081/api/sites/3/iterable/5/"}, "response": {"body": {"string": "{\"description\":\"test-iterable\",\"min_val\":10,\"max_val\":20,\"increment\":1,\"id\":5,\"name\":\"itr1\"}", "encoding": null}, "headers": {"Vary": ["Accept, Cookie"], "Server": ["WSGIServer/0.1 Python/2.7.10"], "Allow": ["GET, PUT, PATCH, DELETE, HEAD, OPTIONS"], "Date": ["Mon, 10 Oct 2016 14:11:03 GMT"], "X-Frame-Options": ["SAMEORIGIN"], "Content-Type": ["application/json"]}, "status": {"message": "OK", "code": 200}, "url": "http://localhost:8081/api/sites/3/iterable/5/"}, "recorded_at": "2016-10-10T14:11:03"}], "recorded_with": "betamax/0.4.2"} \ No newline at end of file From 0b54f60e1079d8fbb03f56b965c2199190357bcc Mon Sep 17 00:00:00 2001 From: Ajay Chenampara Date: Sun, 20 Nov 2016 04:02:25 -0500 Subject: [PATCH 26/31] line break clean up --- nsot/api/serializers.py | 1 - nsot/models.py | 8 +------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/nsot/api/serializers.py b/nsot/api/serializers.py index 4f04408b..30f1aa32 100644 --- a/nsot/api/serializers.py +++ b/nsot/api/serializers.py @@ -216,7 +216,6 @@ class Meta: 'resource_id') - ########### # Resources ########### diff --git a/nsot/models.py b/nsot/models.py index 105b23a6..fe7183de 100644 --- a/nsot/models.py +++ b/nsot/models.py @@ -327,6 +327,7 @@ def by_attribute(self, name, value, site_id=None): name=name, value=value, resource_name=resource_name ).values_list('resource_id', flat=True) ) + if site_id is not None: query = query.filter(site=site_id) @@ -1576,7 +1577,6 @@ class Attribute(models.Model): help_text='The name of the Resource to which this Attribute is bound.' ) - def __unicode__(self): return u'%s %s (site_id: %s)' % ( self.resource_name, self.name, self.site_id @@ -2080,9 +2080,3 @@ def change_api_updated_at(sender=None, instance=None, *args, **kwargs): change_api_updated_at, sender=Interface, dispatch_uid='invalidate_cache_post_delete_interface' ) - - - - - - From 68335f13923405046ed94bc83c536114c2fb0dc3 Mon Sep 17 00:00:00 2001 From: "ajay.chenampara" Date: Wed, 1 Feb 2017 05:22:41 -0500 Subject: [PATCH 27/31] merge migrations --- nsot/migrations/0032_merge.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 nsot/migrations/0032_merge.py diff --git a/nsot/migrations/0032_merge.py b/nsot/migrations/0032_merge.py new file mode 100644 index 00000000..a42f6918 --- /dev/null +++ b/nsot/migrations/0032_merge.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('nsot', '0031_populate_circuit_name_slug'), + ('nsot', '0030_auto_20161006_0416'), + ] + + operations = [ + ] From e7c3404d30b4e21f79cd2063b0fde47021dcc784 Mon Sep 17 00:00:00 2001 From: "ajay.chenampara" Date: Thu, 2 Feb 2017 17:16:07 -0500 Subject: [PATCH 28/31] swagger fix --- nsot/api/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsot/api/serializers.py b/nsot/api/serializers.py index be2ef537..854ae896 100644 --- a/nsot/api/serializers.py +++ b/nsot/api/serializers.py @@ -497,7 +497,7 @@ class IterableSerializer(NsotSerializer): """Used for GET, DELETE on Iterables.""" class Meta: model = models.Iterable - + fields = '__all__' class IterableCreateSerializer(IterableSerializer): """Used for POST on Iterables.""" From fadb44b39c0924d54fa48f9ecc33a291d82928f1 Mon Sep 17 00:00:00 2001 From: "ajay.chenampara" Date: Thu, 2 Feb 2017 17:20:57 -0500 Subject: [PATCH 29/31] swagger fix --- nsot/api/serializers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nsot/api/serializers.py b/nsot/api/serializers.py index 854ae896..556a6ebe 100644 --- a/nsot/api/serializers.py +++ b/nsot/api/serializers.py @@ -536,6 +536,7 @@ class ItervalueSerializer(ResourceSerializer): """Used for GET, DELETE on Itervalues.""" class Meta: model = models.Itervalue + fields = '__all__' class ItervalueCreateSerializer(ItervalueSerializer): From 1cb932d44127c0d0ab7649e0c59b9ea0a2d9a789 Mon Sep 17 00:00:00 2001 From: "ajay.chenampara" Date: Wed, 15 Feb 2017 02:33:37 -0500 Subject: [PATCH 30/31] linting for models.py --- nsot/models.py | 47 ++++++++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 19 deletions(-) diff --git a/nsot/models.py b/nsot/models.py index c4af5951..2add555a 100644 --- a/nsot/models.py +++ b/nsot/models.py @@ -2118,9 +2118,8 @@ class Iterable(models.Model): name = models.CharField( max_length=255, unique=True, help_text='The name of the Iterable.' ) - description = models.TextField( - default='', blank=True, help_text='A helpful description for the Iterable.' - ) + description = models.TextField(default='', blank=True, \ + help_text='A helpful description for the Iterable') min_val = models.PositiveIntegerField( default=1, help_text='The minimum value of the Iterable.' ) @@ -2137,13 +2136,19 @@ class Iterable(models.Model): ) def __unicode__(self): - return u'name=%s, min=%s, max=%s, increment=%s' % (self.name, self.min_val, self.max_val, self.increment ) + return u'name=%s, min=%s, max=%s, increment=%s' % (self.name, + self.min_val, + self.max_val, + self.increment + ) def get_next_value(self): "Get the next value of the iterable" try: - " First try to generate the next value based on the current allocation" - curr_val = Itervalue.objects.filter(iterable=self.id).order_by('-value').values_list('value', flat=True)[0] + "First try to generate the next value based on the current \ + allocation" + curr_val = Itervalue.objects.filter(iterable=self.id). \ + order_by('-value').values_list('value', flat=True)[0] incr = self.increment next_val = curr_val + incr try: @@ -2160,14 +2165,14 @@ def get_next_value(self): 'next_val': 'Out of range' }) except IndexError: - "Index Error implies that the table has not been intialized - so assign the first value" + "Index Error implies that the table has not been \ + intialized - so assign the first value" return [self.min_val] def clean_fields(self, exclude=None): if not self.increment <= self.max_val: - raise exc.ValidationError({ - 'increment': 'Increment should be less than the max value for it to be useable' - }) + raise exc.ValidationError({ 'increment': 'Increment should \ + be less than the max value for it to be useable' }) def save(self, *args, **kwargs): self.full_clean() @@ -2187,16 +2192,20 @@ def to_dict(self): class Itervalue(Resource): """Value table for the generic iterable defined above""" + '''value = contains the value getnext = returns the next iterated + value for this particular Iterable This table uses the attribute: + The intention of attribute here is to associate a "service key" + that will keep track of the (potentially multiple iterable) values + associated with a particular automation instance (e.g an ansible + playbook that needs next available vlan numbers, portchannel + numbers etc). We can then use this service key to perform CRUD + operations on those values (in other words on the invocation + instance of the automation service/playbook) iterable = Foreign + key that ties the Iterable with the value + ''' - value = contains the value - getnext = returns the next iterated value for this particular Iterable - This table uses the attribute: - The intention of attribute here is to associate a "service key" that will keep track of the (potentially multiple iterable) values associated with - a particular automation instance (e.g an ansible playbook that needs next available vlan numbers, portchannel numbers etc). We can then use this service key - to perform CRUD operations on those values (in other words on the invocation instance of the automation service/playbook) - iterable = Foreign key that ties the Iterable with the value - ''' - iterable = models.ForeignKey(Iterable, on_delete=models.PROTECT, related_name='itervalue') + iterable = models.ForeignKey(Iterable, on_delete=models.PROTECT, + related_name='itervalue') value = models.IntegerField( default=1, help_text='The value of the iterable.' From c7999b93c2e500ea646e63ce8474f7c65f5c2632 Mon Sep 17 00:00:00 2001 From: "ajay.chenampara" Date: Thu, 16 Feb 2017 09:30:07 -0500 Subject: [PATCH 31/31] Prevent duplicate itervalues in the model --- nsot/models.py | 35 +++++++++++----- tests/model_tests/test_itervalues.py | 63 +++++++++++++++++++++------- 2 files changed, 73 insertions(+), 25 deletions(-) diff --git a/nsot/models.py b/nsot/models.py index 2add555a..84153b9a 100644 --- a/nsot/models.py +++ b/nsot/models.py @@ -40,7 +40,7 @@ VALID_CHANGE_RESOURCES = set(RESOURCE_BY_IDX) VALID_ATTRIBUTE_RESOURCES = set([ - 'Network', 'Device', 'Interface', 'Circuit', 'Itervalue' + 'Network', 'Device', 'Interface', 'Circuit', 'Itervalue' ]) # Lists of 2-tuples of (value, option) for displaying choices in certain model @@ -2086,7 +2086,7 @@ def clean_fields(self, exclude=None): serializer_class = self.get_serializer_for_resource(self.resource_name) serializer = serializer_class(obj) self._resource = serializer.data - + def save(self, *args, **kwargs): self.full_clean() # First validate fields are correct super(Change, self).save(*args, **kwargs) @@ -2140,8 +2140,8 @@ def __unicode__(self): self.min_val, self.max_val, self.increment - ) - + ) + def get_next_value(self): "Get the next value of the iterable" try: @@ -2192,9 +2192,13 @@ def to_dict(self): class Itervalue(Resource): """Value table for the generic iterable defined above""" - '''value = contains the value getnext = returns the next iterated - value for this particular Iterable This table uses the attribute: - The intention of attribute here is to associate a "service key" + ''' + value = contains the value + getnext = returns the next iterated value for this particular + Iterable. + This table uses the attribute. + The intention of attribute here is to potentially associate a + "service key" (or any other KV pairs), that will keep track of the (potentially multiple iterable) values associated with a particular automation instance (e.g an ansible playbook that needs next available vlan numbers, portchannel @@ -2202,7 +2206,6 @@ class Itervalue(Resource): operations on those values (in other words on the invocation instance of the automation service/playbook) iterable = Foreign key that ties the Iterable with the value - ''' iterable = models.ForeignKey(Iterable, on_delete=models.PROTECT, related_name='itervalue') @@ -2221,10 +2224,22 @@ class Itervalue(Resource): ) class Meta: + """Itervalue Meta class""" verbose_name = "itervalue" - + def __unicode__(self): - return u'value=%s, iterable=%s' % (self.value, self.iterable.name) + return u'value=%s, iterable=%s' % (self.value, self.iterable.name) + + def clean_fields(self, exclude=None): + query = Itervalue.objects.all() + dupe = query.filter(iterable=self.iterable, + value = self.value) + if len(dupe) > 1: #dupe will have more than 1 element if + #duplicate exists + raise exc.ValidationError({'duplicate': 'Itervalue already exists'}) + def save(self, *args, **kwargs): + self.full_clean() + super(Itervalue, self).save(*args, **kwargs) def to_dict(self): return { diff --git a/tests/model_tests/test_itervalues.py b/tests/model_tests/test_itervalues.py index 2283a4ec..5df572fe 100644 --- a/tests/model_tests/test_itervalues.py +++ b/tests/model_tests/test_itervalues.py @@ -57,14 +57,11 @@ def test_creation(site): with pytest.raises(exc.ValidationError): itrv1.set_attributes({'made_up': 'value'}) - - - def test_getnext(site): itr = models.Iterable.objects.create( name='test-vlan', description='test vlan for testing', - min_val = 50, + min_val = 5, max_val = 70, increment = 2, site = site @@ -107,16 +104,16 @@ def test_getnext(site): site=site ) - assert itr.get_next_value()[0] == 54 - assert itrv2.value == 52 + assert itr.get_next_value()[0] == 9 + assert itrv2.value == 7 assert itrv4.value == 1300 def test_retrive(site): itr = models.Iterable.objects.create( name='test-vlan', description='test vlan for testing', - min_val = 50, - max_val = 70, + min_val = 150, + max_val = 170, increment = 2, site = site ) @@ -170,8 +167,8 @@ def test_save(site): itr = models.Iterable.objects.create( name='test-vlan', description='test vlan for testing', - min_val = 50, - max_val = 70, + min_val = 22, + max_val = 99, increment = 2, site = site ) @@ -181,13 +178,13 @@ def test_save(site): resource_name='Itervalue', name='service_key' ) - itrv1 = models.Itervalue.objects.create( + itrvX = models.Itervalue.objects.create( value = itr.get_next_value()[0], - attributes={'service_key': 'skey_custB_02'}, + attributes={'service_key': 'skey_custX_01'}, iterable=itr, site=site ) - itrv1.save() + itrvX.save() def test_delete(site): "Delete all rows in Itervalues given the service identifier criteria" @@ -213,6 +210,43 @@ def test_delete(site): ) site.itervalue.by_attribute('service_key', 'skey_custB_02').delete() +def test_duplicate_values(site): + "Test that duplicate itervalues cannot exist" + itr = models.Iterable.objects.create( + name='test-vlan', + description='test vlan for testing', + min_val = 500, + max_val = 700, + increment = 2, + site = site + ) + #Create the Attribute + models.Attribute.objects.create( + site=site, + resource_name='Itervalue', name='service_key' + ) + + itrv1 = models.Itervalue.objects.create( + value = itr.get_next_value()[0], #This should assign the value 50 + attributes={'service_key': 'skey_custA_01'}, + iterable=itr, + site=site + + ) + itrv1.save() + + itrv2 = models.Itervalue.objects.create( + value = 500, #Try to manually assign duplicate value + attributes={'service_key': 'skey_custA_02'}, + iterable=itr, + site=site + ) + with pytest.raises(exc.ValidationError): + itrv2.save() #The model should catch the dupe and raise an E + + site.itervalue.by_attribute('service_key', 'skey_custA_01').delete() + + def test_protected_delete(site): "Delete all rows in Itervalues given the service identifier criteria" @@ -232,7 +266,7 @@ def test_protected_delete(site): increment = 100, site = site ) - + #Create the Attribute models.Attribute.objects.create( site=site, @@ -270,4 +304,3 @@ def test_protected_delete(site): ) with pytest.raises(exc.ProtectedError): models.Iterable.objects.all().delete() -