- Jan 25, 2019
-
-
Benjamin Bertrand authored
JIRA INFRA-763
-
- Dec 10, 2018
-
-
Benjamin Bertrand authored
Not sure why a tuple instead of network was returned... There must have been a comma at the end of the line due to copy/pasting and black converted that to a tuple. Added a test for the create_interface function. JIRA INFRA-697 #action In Progress
-
- Nov 30, 2018
-
-
Benjamin Bertrand authored
- create_host doesn't return 403 for user_lab but 200 because the form validation fails (the network_id is not part of the form choices) - caching disabled during tests the current_user could sometimes return a different username because of caching: the database is cleaned between each test, so different users can have the same id and an old user could be returned instead of the new one due to caching JIRA INFRA-578
-
Benjamin Bertrand authored
- add fqdn to host - add gateway to network - add netmask to interface - allow to pass recursive via the API (to expand interfaces in host) - add is_main property to interface (True if the interface is the main interface of the host) JIRA INFRA-640
-
- Nov 27, 2018
-
-
Benjamin Bertrand authored
JIRA INFRA-578 #action In Progress
-
- Nov 06, 2018
-
-
Benjamin Bertrand authored
- Host names are unique (no 2 hosts with same name) - A host name shall not conflict with a cname or interface (if not main interface) - Interface names are unique (no 2 interfaces with same name) - An interface shall not conflict with a cname or host (if not assigned host) - cnames are only unique by domain (2 cnames can have the same name if different domains) - A cname shall not conflict with a host or interface - An interface has to be linked to a host Validation is implemented at the model level. Some is also implemented at the form level as it gives nicer feedback, but not all as it's a bit more complex when it requires check on several fields. JIRA INFRA-245
-
Benjamin Bertrand authored
- mac is now a column in the interface table (no link to the mac table) - mac column is unique (can't have 2 interfaces with the same mac) - the mac table is kept for the items JIRA INFRA-639
-
- Oct 18, 2018
-
-
Benjamin Bertrand authored
JIRA INFRA-618 #action In Progress
-
- Oct 11, 2018
-
-
Benjamin Bertrand authored
- switch to server side processing to retrieve network hosts (the table started to be bigger and takes time to load) - add full text search using elasticsearch Note that only the first IP is displayed in the host table (all interfaces were displayed before). Search can be performed on any interfaces. JIRA INFRA-595 #action In Progress
-
- Oct 05, 2018
-
-
Benjamin Bertrand authored
JIRA INFRA-575 #action In Progress
-
- Aug 08, 2018
-
-
Benjamin Bertrand authored
New get_json method on test client response. See http://flask.pocoo.org/docs/1.0/testing/#testing-json-apis
-
- Jul 06, 2018
-
-
- Feb 09, 2018
-
-
Benjamin Bertrand authored
Fixes INFRA-197
-
- Jan 18, 2018
-
-
Benjamin Bertrand authored
Allow to keep track of batches of small parts.
-
- Jan 05, 2018
-
-
Benjamin Bertrand authored
-
- Jan 02, 2018
-
-
Benjamin Bertrand authored
Column not visible but searchable. Allow to search comments and TAG number for items imported from JIRA.
-
- Dec 21, 2017
-
-
Benjamin Bertrand authored
Required to create users when importing items from JIRA. Renamed blueprint from "users" to "user" to be consistent with other blueprints (inventory and network).
-
Benjamin Bertrand authored
+ fix tests
-
Benjamin Bertrand authored
-
- Nov 26, 2017
-
-
Benjamin Bertrand authored
-
- Nov 21, 2017
-
-
Benjamin Bertrand authored
-
- Nov 03, 2017
-
-
Benjamin Bertrand authored
-
- Sep 08, 2017
-
-
Benjamin Bertrand authored
-
- Sep 06, 2017
-
-
Benjamin Bertrand authored
-
Benjamin Bertrand authored
-
- Aug 28, 2017
-
-
Benjamin Bertrand authored
Put under the functional directory all tests that require access to the database. There is a "session" fixture in that directory that is automatically invoked for each tests. It rollbacks any transaction after the test to leave the database clean. Other tests should go under the unit directory. Inspired from: - https://stackoverflow.com/a/38626139 - http://alexmic.net/flask-sqlalchemy-pytest/
-
- Aug 22, 2017
-
-
Benjamin Bertrand authored
-