tests: site factory

Signed-off-by: Sergei Ianovich <s@asutp.io>
update tests invocation

Signed-off-by: Sergei Ianovich <s@asutp.io>
tests: routes: load site from parameter

Signed-off-by: Sergey Gaichuk <sergey.gaychuk@gmail.com>
Signed-off-by: Sergei Ianovich <s@asutp.io>
tests: routes: return 404 if site was not found

Signed-off-by: Sergey Gaichuk <sergey.gaychuk@gmail.com>
tests: routes: deprecate access unauthorized users for site

Signed-off-by: Sergey Gaichuk <sergey.gaychuk@gmail.com>
Signed-off-by: Sergei Ianovich <s@asutp.io>
tests: routes: show returns 404 if no site

Signed-off-by: Sergey Gaichuk <sergey.gaychuk@gmail.com>
Signed-off-by: Sergei Ianovich <s@asutp.io>
tests: routes: limit site fields visibility

Signed-off-by: Sergey Gaichuk <sergey.gaychuk@gmail.com>
Signed-off-by: Sergei Ianovich <s@asutp.io>
tests: routes: site update authentication

Signed-off-by: Sergey Gaichuk <sergey.gaychuk@gmail.com>
Signed-off-by: Sergei Ianovich <s@asutp.io>
routes: extract auth.requireAdmin

Signed-off-by: Sergei Ianovich <s@asutp.io>
routes: site update authorization

Signed-off-by: Sergei Ianovich <s@asutp.io>
stub site.update route

Signed-off-by: Sergei Ianovich <s@asutp.io>
tests: routes: site index authentication

Signed-off-by: Sergey Gaichuk <sergey.gaychuk@gmail.com>
Signed-off-by: Sergei Ianovich <s@asutp.io>
tests: fix device and site factories

Signed-off-by: Sergei Ianovich <s@asutp.io>
tests: routes: index first 25 sites

Signed-off-by: Sergey Gaichuk <sergey.gaychuk@gmail.com>
Signed-off-by: Sergei Ianovich <s@asutp.io>
tests: routes: site index sorted by name

Signed-off-by: Sergey Gaichuk <sergey.gaychuk@gmail.com>
Signed-off-by: Sergei Ianovich <s@asutp.io>
tests: routes: site index pagination

Signed-off-by: Sergey Gaichuk <sergey.gaychuk@gmail.com>
Signed-off-by: Sergei Ianovich <s@asutp.io>
tests: routes: site index page too small

Signed-off-by: Sergey Gaichuk <sergey.gaychuk@gmail.com>
Signed-off-by: Sergei Ianovich <s@asutp.io>
tests: routes: site index page too big

Signed-off-by: Sergey Gaichuk <sergey.gaychuk@gmail.com>
Signed-off-by: Sergei Ianovich <s@asutp.io>
tests: routes: create site authentication

Signed-off-by: Sergey Gaichuk <sergey.gaychuk@gmail.com>
Signed-off-by: Sergei Ianovich <s@asutp.io>
tests: routes: create site authorization

Signed-off-by: Sergey Gaichuk <sergey.gaychuk@gmail.com>
Signed-off-by: Sergei Ianovich <s@asutp.io>