grossmj
43ca53a089
Fix tests
3 years ago
grossmj
a324459152
Merge branch '2.2' into 3.0
...
# Conflicts:
# gns3server/compute/qemu/qemu_vm.py
# gns3server/handlers/api/compute/server_handler.py
# gns3server/utils/path.py
# gns3server/version.py
# requirements.txt
# tests/compute/qemu/test_qemu_vm.py
# tests/compute/test_manager.py
3 years ago
grossmj
611570a863
Fix qemu-img rebase code to support Qemu 6.1. Ref https://github.com/GNS3/gns3-server/pull/1962
3 years ago
grossmj
ed336da304
Qemu 6.1 support
...
Handle the deprecated use of backing file without explicit backing format issue.
3 years ago
grossmj
4eb8491cfa
Fix tests. Fixes #1950
3 years ago
grossmj
d606553e20
Allow images to be stored in subdirs and used by templates.
3 years ago
grossmj
75bb06563a
Fix tests
3 years ago
grossmj
332fa47b50
Option to prune images when deleting template.
3 years ago
grossmj
bf9a3aee20
Associate images when creating or updating a template.
3 years ago
grossmj
4d9e4e1059
Add prune images endpoint.
...
Use many-to-many relationship between images and templates.
3 years ago
grossmj
07d4892faf
Check if user has the right to add a permission
3 years ago
grossmj
4c6135fe88
Add /permissions/prune to delete orphaned permissions
3 years ago
grossmj
9df586d5d5
Check a permission matches an existing route before it is allowed to be created.
3 years ago
grossmj
cfaafedb09
Merge branch '3.0' into busybox-docker
3 years ago
Jeremy Grossmann
f13b4e89b7
Merge branch '3.0' into image-management-refactoring
3 years ago
grossmj
36b9f8bdfd
Fix tests
3 years ago
grossmj
6dd0f4d4d3
Allow logged in user to change some of its data. Administrators can lock users using the `is_active` field.
3 years ago
grossmj
6ec028ea4e
Merge branch '2.2' into 3.0
...
# Conflicts:
# gns3server/compute/builtin/nodes/cloud.py
# gns3server/compute/vmware/vmware_vm.py
# gns3server/controller/link.py
# gns3server/controller/snapshot.py
# gns3server/handlers/api/compute/dynamips_vm_handler.py
# gns3server/handlers/api/compute/iou_handler.py
# gns3server/handlers/api/compute/qemu_handler.py
# gns3server/handlers/api/controller/link_handler.py
# gns3server/schemas/link.py
# gns3server/utils/path.py
# gns3server/version.py
# requirements.txt
3 years ago
grossmj
d556c08def
Revert "Skip test"
...
This reverts commit 8acb2fe3
3 years ago
grossmj
8acb2fe37e
Skip test
3 years ago
grossmj
095a022033
Fix tests. Ref https://github.com/GNS3/gns3-gui/issues/2461
3 years ago
grossmj
515bd50261
Start refactoring for images management
3 years ago
grossmj
dc914eb0f9
Fix tests.
3 years ago
grossmj
4e33d29af8
Change RBAC field names from builtin to is_builtin
3 years ago
grossmj
d65b49acaa
Add user permissions + RBAC tests.
3 years ago
grossmj
fbc47598d9
Basic functional RBAC support.
3 years ago
grossmj
6d4da98b8e
Base API and tables for RBAC support.
3 years ago
grossmj
2bf16f1e5f
Change method to prevent forbidden directory traversal. Ref #1894
3 years ago
grossmj
f3d81fa450
Clean files and catch file path escape. Ref #1894
3 years ago
grossmj
09ac7fd7fb
Merge branch '2.2' into 3.0
...
# Conflicts:
# gns3server/compute/base_manager.py
# gns3server/handlers/api/compute/dynamips_vm_handler.py
# gns3server/handlers/api/compute/iou_handler.py
# gns3server/handlers/api/compute/project_handler.py
# gns3server/handlers/api/compute/qemu_handler.py
# gns3server/handlers/api/controller/node_handler.py
# gns3server/handlers/api/controller/project_handler.py
# gns3server/handlers/index_handler.py
# tests/handlers/api/compute/test_project.py
# tests/handlers/api/compute/test_qemu.py
# tests/handlers/api/controller/test_node.py
# tests/handlers/api/controller/test_project.py
3 years ago
grossmj
9a6978902d
Fix tests.
3 years ago
grossmj
8810249d36
Add user groups support.
3 years ago
grossmj
956b9056c1
Fix issues with latest version of sqlalchemy
3 years ago
grossmj
10164e262d
Enable SQL foreign key support for SQLite
3 years ago
grossmj
ad7d8e2e7d
Fix tests.
3 years ago
grossmj
a02aede1b0
Use uuid5 to create new compute_id. Fixes #1641 #1887
3 years ago
grossmj
0465cb87f6
Protect the API and add alternative authentication endpoint.
3 years ago
grossmj
e28452f09a
Secure users API and handle manual password recovery.
3 years ago
grossmj
c03226e368
Add default super admin account in controller db.
3 years ago
grossmj
cefab8d362
Rename __json__() to asdict()
3 years ago
grossmj
6b8ce8219c
Fix tests.
3 years ago
grossmj
9c850e0f2b
Move schemas between compute and controller subpackages
3 years ago
grossmj
c59fc375f2
Remove traceng code.
3 years ago
grossmj
71725aade6
Rename ssl and auth configuration file settings.
...
Add enable SSL config validator.
Strict configuration file validation: any error will prevent the server to start.
Core server logic moved to a Server class.
3 years ago
grossmj
1b5a5de4bc
Generate new config for each test. Fixes tests.
3 years ago
grossmj
30ebae207f
Use Pydantic to validate the server config file.
3 years ago
grossmj
478119b40d
Comment out problematic test
3 years ago
grossmj
802959f9ab
Merge branch 'master' into 3.0
...
# Conflicts:
# dev-requirements.txt
# gns3server/controller/__init__.py
# gns3server/controller/appliance_manager.py
# gns3server/controller/compute.py
# gns3server/controller/topology.py
# gns3server/handlers/api/compute/ethernet_switch_handler.py
# gns3server/handlers/api/controller/link_handler.py
# gns3server/handlers/api/controller/symbol_handler.py
# gns3server/version.py
# requirements.txt
# tests/controller/test_export_project.py
# tests/handlers/api/compute/test_qemu.py
# tests/web/test_response.py
# win-requirements.txt
3 years ago
grossmj
87a26d5da0
Fix tests and comment problematic ones that rely on AsyncioMagicMock
3 years ago
grossmj
170e83e589
Fix tests and update requirements
4 years ago
grossmj
5217dbf3a3
Fix tests
4 years ago
grossmj
566e326b57
Save computes to database
4 years ago
grossmj
91920e5a5b
Fix issue with tests + some cleaning.
4 years ago
grossmj
0fea3f969e
Use aiosqlite and add service for templates
4 years ago
grossmj
d730c591b3
Refactor template management to use database.
4 years ago
grossmj
7542b28793
Revert "Fix tests"
...
This reverts commit 4d0cb32b
4 years ago
grossmj
4d0cb32bd0
Fix tests
4 years ago
grossmj
58c1b01439
Add default JWT secret key and fix tests.
4 years ago
grossmj
bde706d19a
Generate JWT secret key if none is configured in the config file.
...
Change location of the database.
4 years ago
grossmj
509e762cda
Fix slow tests.
4 years ago
grossmj
d47dcb0d6f
User authentication with tests.
4 years ago
grossmj
bf7cf862af
Refactor tests and start work on database integration.
4 years ago
grossmj
c043830e3f
Move endpoints to routes & preparations to use a database.
4 years ago
grossmj
d58407c735
Fix tests.
4 years ago
grossmj
7837081eba
Fix running tests with Python 3.9
4 years ago
grossmj
acc5c7ebfa
Update package versions.
...
Do not use Path in schemas (causes issues with empty paths).
Change how notifications are handled.
Run tests with Python 3.9
4 years ago
grossmj
7314b41d8f
Fix tests.
4 years ago
grossmj
30d6f1fa2a
Make Swagger Ui the default for API documentation
4 years ago
grossmj
359f9a7384
Move to version 3 of the REST API.
...
Rename packet capture endpoints.
4 years ago
grossmj
81439c750a
Use pydantic for data validation (instead of jsonschema)
...
Fix/improve various pydantic shema models.
4 years ago
grossmj
13da8aa8f5
Do not automatically connect to local compute.
4 years ago
grossmj
a92c47b310
Add HTTP client to reuse the aiohttp session where needed.
...
Remove unnecessary aiohttp exceptions.
4 years ago
grossmj
554404e6e7
Try to run tests for Windows and macOS.
4 years ago
grossmj
0500b28aea
Fix changing to ProactorEventLoop in tests.
4 years ago
grossmj
bd4bf53084
Use ProactorEventLoop with pytest-asyncio
4 years ago
grossmj
25494ca098
Fix project import to work with FastAPI.
4 years ago
grossmj
596ee9b66d
Test compute notifications and run tests on macOS and Windows.
4 years ago
grossmj
6af8c8933e
Fix tests.
4 years ago
grossmj
58c5965905
Fix tests.
4 years ago
grossmj
eb3cb8a41f
Migration to FastAPI
4 years ago
Jeremy Grossmann
fa26555d00
Merge pull request #1801 from GNS3/qemu-config-disk
...
QEMU config disk - enable QEMU config import/export
4 years ago
grossmj
f2ddef855f
Fix tests.
...
(cherry picked from commit 620d93634e
)
4 years ago
grossmj
620d93634e
Fix tests.
4 years ago
grossmj
9d3f7c79a2
Fix more tests
...
(cherry picked from commit 546982d1ea
)
4 years ago
grossmj
546982d1ea
Fix more tests
4 years ago
grossmj
c684c554bf
Fix tests
...
(cherry picked from commit 2ba6eac113
)
4 years ago
grossmj
2ba6eac113
Fix tests
4 years ago
grossmj
9890126453
Merge branch '2.2' into 2.3
...
# Conflicts:
# gns3server/notification_queue.py
# gns3server/version.py
4 years ago
grossmj
855a95de49
Fix tests. Fixes #1796
4 years ago
grossmj
3c1a1eb4ef
Fix tests.
4 years ago
grossmj
7043d48f1a
Auxiliary console support for Qemu. Ref #2873
...
Improvements for auxiliary console support for Docker and Dynamips.
4 years ago
grossmj
831ee5f468
Support to reset all console connections. Ref https://github.com/GNS3/gns3-server/issues/1619
4 years ago
grossmj
f97d346c34
Support to reset links. Fixes https://github.com/GNS3/gns3-server/issues/1620
4 years ago
grossmj
cbcdaabcce
Fix tests. Ref #1674
4 years ago
grossmj
3dc4ea46d6
Add total RAM, CPUs and disk size to servers summary as well as disk usage in percent. Fixes https://github.com/GNS3/gns3-server/issues/1532
4 years ago
grossmj
d1c29c8bb7
Resource constraints for Docker VMs.
4 years ago
grossmj
dff035d957
Support for "usage" for "Cloud" nodes. Fixes https://github.com/GNS3/gns3-gui/issues/2887
...
Allow "usage" for all builtin nodes (not exposed in Ui).
4 years ago
grossmj
99128e7713
Fix Key Error "vendor_id" is missing when configuring GNS3 VM with VirtualBox. Fixes https://github.com/GNS3/gns3-gui/issues/3018
4 years ago
grossmj
850c30f958
Merge branch 'master' into 2.2
...
# Conflicts:
# tests/handlers/api/compute/test_dynamips.py
# tests/handlers/api/compute/test_qemu.py
4 years ago
grossmj
27da8458e8
Allow tests to be run by root. Fixes #1784
4 years ago
grossmj
7fd8fde020
Some fixes for tests. Ref #1784
4 years ago
grossmj
9d141baf22
Comment capsys tests
4 years ago
grossmj
7fb554135f
Try to fix capsys issue with Python 3.8 (second try)
4 years ago
grossmj
241caa1ec7
Try to fix capsys issue with Python 3.8
4 years ago
grossmj
d33584a2e4
More specific fix for Windows
4 years ago
grossmj
438b1c056c
Remove '\n' from for version strings for test_parse_arguments test.
4 years ago
grossmj
ef23e74e9c
Another fix for test_gns3vm.py
4 years ago
grossmj
9ab8599e1e
Fix other issues with tests.
4 years ago
grossmj
d9ab29a9e0
Another fix for test_gns3vm.py
4 years ago
grossmj
09e9382df1
Do not try to use ProactorEventLoop() on non Windows platforms.
4 years ago
grossmj
8976384a56
Fix test_gns3vm.py
4 years ago
grossmj
e4b7e46444
Fix tests for Windows
4 years ago
grossmj
1d4c3a164d
Use the ProactorEventLoop on Windows.
4 years ago
grossmj
d3ea67da24
Refactor tests
...
* Use pytest-aiohttp
* Use the async def / await syntax.
* Fix tests to run with Python 3.8
4 years ago
grossmj
a4bc696a5f
Fix tests
4 years ago
grossmj
45d135911f
Fix tests.
4 years ago
grossmj
6c322bbdde
Fix tests.
4 years ago
grossmj
dd11d38338
Fix tests.
4 years ago
grossmj
e014d36ad2
Skip tests not working on Windows.
4 years ago
grossmj
bf4550bf78
Fix tests. Ref https://github.com/GNS3/gns3-gui/issues/3047
4 years ago
grossmj
3df348ac2a
Server statistics implementation
5 years ago
grossmj
c5412bf970
Allocate application IDs for IOU nodes on the controller.
...
An application ID is used by IOU to generate its interface Mac addresses. They must be unique across all opened projects sharing the same computes to avoid Mac address collisions.
5 years ago
grossmj
114da9764b
Fix tests.
5 years ago
grossmj
0a87ee573c
Accept a node name when creating a node from a template using the API. Fixes #1708
5 years ago
grossmj
688b1ac0e4
Fix tests.
5 years ago
grossmj
500b5b0b65
Fix tests.
5 years ago
grossmj
26efdaf7b7
Fix tests
5 years ago
grossmj
992c60e3e0
Return HTTP status code 204 in API when project successfully closed. Fixes #1689
5 years ago
grossmj
907207a140
Fix tests
5 years ago
grossmj
9d47050dff
Use 0.0.0.0 by default for server host. Fixes https://github.com/GNS3/gns3-server/issues/1663
5 years ago
grossmj
56a4d3f8fd
Fix tests.
5 years ago
grossmj
09d05accc1
Fix tests. Ref #1659
5 years ago
David Kreitschmann
077432ff2f
Add qemu drive id to tests
5 years ago
grossmj
647dde1bb4
Make x,y optional for creating links via API. Fixes #1630
5 years ago
grossmj
55a9abfcea
Allow "none" for compute_id in templates.
5 years ago
grossmj
b0700b8787
Merge remote-tracking branch 'origin/2.2' into 2.2
5 years ago
grossmj
06ce0868ec
Fix template migration issues from GUI to controller. Fixes https://github.com/GNS3/gns3-gui/issues/2803
5 years ago
Karim
af78031322
Resolve conflicts in docker volumes instead of error. Fixes https://github.com/GNS3/gns3-server/issues/1595
5 years ago
grossmj
9cce4de190
%guest-cid% variable implementation for Qemu VMs. Fixes https://github.com/GNS3/gns3-gui/issues/2804
5 years ago
grossmj
6229fadace
Fix topology test
5 years ago
grossmj
44a142e91d
Fix tests
5 years ago
Jeremy Grossmann
cdae1f9e00
Merge pull request #1584 from kazkansouh/2.2-docker-volumes
...
Custom persistent docker volumes
5 years ago
grossmj
c41c01b95f
Fix tests.
5 years ago
Karim
81ddb0cfe6
Impoved docker volumes user input validation
5 years ago
Karim
0c19bc8d43
Support for additional persistent docker volumes to be specified within appliance configuration
5 years ago
grossmj
2af9c9c8ec
Prevent locked nodes to be deleted. Fixes https://github.com/GNS3/gns3-gui/issues/2764
6 years ago
Karim
6df93d4db0
Updated tests for setting docker user
6 years ago
grossmj
a17119187b
Fix remote packet capture for Dynamips.
6 years ago
grossmj
4cc5dbc228
Fix remote packet capture and make sure packet capture is stopped when deleting an NIO. Fixes https://github.com/GNS3/gns3-gui/issues/2753
6 years ago
ziajka
cbb6eccad8
Merge branch '2.2' of github.com:GNS3/gns3-server into 2.2
6 years ago