Commit Graph

9596 Commits

Author SHA1 Message Date
Mike Salvatore b2d32697e3 Common: Use suppress (not pass) in DIContainer.resolve() 2022-08-08 07:00:49 -04:00
Mike Salvatore 345633b1e3 Common: Document exceptions for DIContainer 2022-08-05 11:43:15 -04:00
Mike Salvatore d8b37553e3 Common: Rename UnregisteredTypeError to UnresolvableDependencyError
When calling `resolve()`, dependencies may be resolved as conventions,
instances, or types. `UnregisteredTypeError` is overly specific and, in
some cases, inaccurate. It makes more sense for `resolve()` to raise an
`UnresolvableDependencyError` if it is unable to resolve a dependency.
2022-08-05 11:40:10 -04:00
Mike Salvatore 34ed72da6b
Merge pull request #2173 from guardicore/2154-refactor-pba-file-upload
2154 refactor pba file upload
2022-08-05 10:43:46 -04:00
Mike Salvatore 16d5a74df6 BB: Use put_json() to reset the Island's mode 2022-08-05 09:35:14 -04:00
Mike Salvatore 3362959c73 BB: Use put_json() to reset credentials 2022-08-05 09:34:57 -04:00
Mike Salvatore 1568cf8f0a BB: Use put_json() to import configured credentials 2022-08-05 09:21:43 -04:00
Mike Salvatore ea369a5a74 BB: Use put_json() to import config 2022-08-05 09:21:28 -04:00
Mike Salvatore 4cb6bdd9cf BB: Add put_json() 2022-08-05 09:20:52 -04:00
Ilija Lazoroski 1991669402 Island: Export {LINUX, WINDOWS}_PBA_TYPE from __init__ 2022-08-05 11:04:58 +02:00
Ilija Lazoroski 51318f7189 Island: Export PBAFileDownload from __init__ 2022-08-05 10:52:06 +02:00
Ilija Lazoroski b874b6a736 Island: Export PBAFileUpload from __init__ 2022-08-05 10:52:06 +02:00
Ilija Lazoroski e4a284b172 Changelog: Add entry for renaming of `api/file-upload` 2022-08-05 10:51:31 +02:00
Ilija Lazoroski 9acc2d8df5 Island: Rename 'api/file-upload' to 'api/pba/upload' 2022-08-05 10:51:31 +02:00
Ilija Lazoroski 0a6fa1e7d7 Island: Rename FileUpload resource to PBAFileUpload 2022-08-05 10:51:31 +02:00
ilija-lazoroski d30c2df0c8
Merge pull request #2172 from guardicore/2153-refactor-agent-config-resource
Island: Export AgentConfiguration resource from __init__
2022-08-05 10:49:32 +02:00
ilija-lazoroski 816b677f77
Merge pull request #2171 from guardicore/2152-refactor-auth-resource
2152 refactor auth resource
2022-08-05 10:43:03 +02:00
Ilija Lazoroski aaebd74181 Island: Export AgentConfiguration resource from __init__ 2022-08-05 10:41:26 +02:00
Shreya Malviya 89b194d0ae
Merge pull request #2167 from guardicore/2109-refactor-ip-addresses-resource
Refactor IPAddresses resource
2022-08-05 13:54:33 +05:30
Shreya Malviya 2be0e088e0 Island: Fix all references to 'local' IPs which may not always be local 2022-08-05 13:52:41 +05:30
Shreya Malviya 4095e130f9 Island: Don't return IP addresses from Root resource's GET 2022-08-05 13:52:41 +05:30
Shreya Malviya 3f14b96b71 UI: Get IP addresses from /api/island/ip-addresses instead of /api in AWSRunOptions.js 2022-08-05 13:52:41 +05:30
Mike Salvatore 2e05987e7e Revert "UT: Hacky workaround in StubDIContainer to get the tests passing for now"
This reverts commit eb4f704597. This was
resolved by 5f91e39 instead.
2022-08-05 13:52:12 +05:30
Ilija Lazoroski 2e6b3092e8 Island: Shorten imports for authenticaiton resources 2022-08-05 08:43:27 +02:00
Ilija Lazoroski 509716338c UT: Shorten import for authentication resources 2022-08-05 08:42:54 +02:00
Ilija Lazoroski b5afbe7218 Island: Export authentication resources from __init__ 2022-08-05 08:42:06 +02:00
Mike Salvatore 44c73db2af
Merge pull request #2164 from guardicore/2109-compare-versions-ui
2109 compare versions UI
2022-08-04 13:58:35 -04:00
Mike Salvatore 5f91e39b39 Common: Handle classes without __name__ in DIContainer 2022-08-04 10:50:53 -04:00
ilija-lazoroski 212d638af1
Merge pull request #2168 from guardicore/2109-auth-island-version
2109 auth island version
2022-08-04 16:12:40 +02:00
Ilija Lazoroski 85af7f0f39 UI: Remove leftovers in VersionComponent 2022-08-04 13:41:40 +02:00
Shreya Malviya 407bf892e5 Island: Fix import order in cc/services/initialize.py 2022-08-04 16:55:59 +05:30
Ilija Lazoroski efffde6321 Changelog: Added entry for authentication of `api/island/version` 2022-08-04 11:59:07 +02:00
Ilija Lazoroski aa8e020df6 UI: Use AuthComponent in VersionComponent 2022-08-04 11:57:09 +02:00
Ilija Lazoroski bfd0eb6fa5 Island: Authenticate `api/island/version` 2022-08-04 11:56:01 +02:00
Ilija Lazoroski 4500d57edd Island: Fix typo in Version object 2022-08-04 11:48:17 +02:00
Ilija Lazoroski ae468f9832 UI: Compare version numbers in VersionComponent 2022-08-04 11:48:17 +02:00
Ilija Lazoroski f13d55d89a UI: Install semver
Used for comparing version numbers
2022-08-04 11:48:17 +02:00
Ilija Lazoroski 805964d0e3 Island: Add Version to cc/__init__ 2022-08-04 11:48:17 +02:00
vakarisz 484773b782 Island: Fix import sequence in main.py
Gevent setup needs to go first, because it hooks other imports.
2022-08-04 12:43:13 +03:00
Shreya Malviya eb4f704597 UT: Hacky workaround in StubDIContainer to get the tests passing for now 2022-08-04 13:41:55 +05:30
Shreya Malviya 144268187f Island: Add IPAddresses to cc/resources/__init__.py and shorten imports 2022-08-04 13:06:08 +05:30
Shreya Malviya 4ee1450001 Island: Inject local_ip_addresses into Root resource's constructor 2022-08-04 13:03:04 +05:30
Shreya Malviya 80c6ee8805 Island: Inject local_ip_addresses into LocalMonkeyRunService's constructor 2022-08-04 12:59:18 +05:30
Shreya Malviya e4d7f36985 Island: Rename IpAddresses -> IPAddresses 2022-08-04 12:53:36 +05:30
Shreya Malviya 6b89f38f87 Island: Fix docstrings in IpAddresses resource 2022-08-04 12:52:25 +05:30
Shreya Malviya e2702ffacb UI: Modify RunOptions page to correctly display IPs in manual run option 2022-08-04 12:49:47 +05:30
Shreya Malviya 860eb1b65c Island: Simply return IPs list instead of mapping in IpAddresses resource 2022-08-04 12:47:32 +05:30
Shreya Malviya 637c466822 Island: Pass local_ip_addresses in IpAddresses resource constructor 2022-08-04 12:47:32 +05:30
Shreya Malviya 1466fccc5f Island: Register convention 'local_ip_addresses' 2022-08-04 12:47:29 +05:30
Shreya Malviya d189a94e9c Island: Rename local_ip_addresses() -> get_local_ip_addresses() 2022-08-04 12:31:21 +05:30