-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PMM-9377: Upgrade to grpc-gateway to version 2 #822
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please revert api.descriptor, we need it to validate backward compatibility of your changes.
Also in swagger.json I see that all fields were changed from snake_case to camelCase, please fix it.
Thanks
I don't really expect it to be fully compatible since v2 renames some options (e.g
I've modified the prototool config to preserve snake_case, saw that grpc-gateway now defaults to camelCase and was wondering if that affects us. |
fe73ec2
to
0ceb89e
Compare
Looks OK, please fix the CI |
Yeah, not sure how to do this yet without updating |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not able to figure out why break check (even though it passes locally) fails in the CI, other people have also faced this error uber/prototool#550 but there seems to be no solution. If we are not able to fix this prototool error i suggest that we simply migrate to buf in this PR, there is no point in using prototool anymore it has been unmaintained for 2 years and will keep causing us trouble.
i also think there is some codegen missing in your PR, for e.g. i don't see any modifications to *.pb.gw.go
files in this diff, i pulled this branch and ran make gen
and there were more changes that are absent from this PR #827 , please fix that @idoqo
0ceb89e
to
681d590
Compare
99bc11b
to
743fbc9
Compare
743fbc9
to
efea475
Compare
I think this actually breaks compatibility with existing PMM clients (pmm-agent and pmm-managed) and we may have to pend this till v3 when we are ready to break compatibility between different PMM server and client versions. Here's the part of the output from running
The error happens because grpc-gateway v2 changes the signature of Also,
|
I'm not sure that we want it then. One of key concepts that we trying to follow is backward compatibility. |
0a9ed3e
to
70e6ebb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, please check if error responses works the same way. pmm-admin shows correct error messages
looks like failing tests in FB are related to dissapeared |
Right, percona/pmm-admin#186 updates pmm-admin to use the |
9ca4026
to
c4facf0
Compare
ddf5a84
to
9cdb1f2
Compare
9cdb1f2
to
5fa6b2d
Compare
* PMM-8673 Database structure * PMM-8673 Handle progress job message * PMM-8673 Last chunk * PMM-8673 Find jobs * PMM-8673 Get logs * PMM-8673 Error to client * PMM-8673 Test get logs * PMM-8673 Updated API * PMM-8673 Don't send last marker chunk * PMM-8673 Removed old test * PMM-8673 Unusued variable * PMM-8673 Message -> Data * PMM-8673 Removed time * PMM-8673 Newline * PMM-8673 Log errors * PMM-8673 Fix broken tests * PMM-8673 Update pmm dependency Co-authored-by: Artem Gavrilov <[email protected]>
* PMM-8172 DBaaS: Check for operator update (#774) * wip * check for empty pmm version and split by dash to get base version * add test for GetLatestOperatorVersion * make test work * make fake server generic * refactor fake version server * tests not working, wip * add another operator update check test - update not available; don't run it in parallel * add test for update available but not compatible with installed PMM * add test - user's operator version is ahead of version service * remove debug * remove unused pkg * make gen * make internal error unexported * name receiver consistently * DRY tests * use constant for 2.18.0 * make versionServiceClient tests pass and first component service test * add test: update is available * add test: user's version is ahead, update not available * add comment * fix deps * update deps * regenerate mocks * update deps * change implementation to match api changes * update deps * change implementation to suit api changes again * use only one loop * test no versions returned, change the url to be invalid * address review comments * gofmt -s * update deps * update deps * PMM-8155 backup scheduling (#778) * PMM-8191 Scheduling service * PMM-8191 Fixed retries * PMM-8191 Dummy jobs deps * PMM-8191 Add simple test for add job * PMM-8191 Check context channel during sleep interval * PMM-8191 Renamed ScheduleJob to ScheduledTask * PMM-8191 Constructor for tasks * PMM-8191 Add mutex to scheduler service * PMM-8191 Rename schedule job to scheduled task * PMM-8191 Filter for types * PMM-8155 RPC endpoints - extract backup logic * PMM-8155 Create mysql backup task * PMM-8155 Change scheduled backup in DB * PMM-8191 Add reload * PMM-8155 Reload task after change * PMM-8191 running field * PMM-8155 Add service name, location name, vendor, data model * PMM-8155 Mongo scheduled task * PMM-8191 Add ID to Task * PMM-8155 add schedule id to artifact * PMM-8155 Add time to name * PMM-8155 Fix start at if it's empty * PMM-8191 Commented some exported methods * PMM-8191 Fix reload * PMM-8155 enabled flag * PMM-8191 Fix reload * PMM-8155 removed workaround * PMM-8155 Fix remove * PMM-8155 Backups service schedule tests * PMM-8155 Move restore from backup service to backups logic * PMM-81901 Don't start task immediately * PMM-8191 Don't add task to scheduled if it's disabled * PMM-8191 Remove scheduler service from server deps * PMM-8191 Extract parameters for adding task * PMM-8155 Moved retry data from scheduler to backup * PMM-8155 Fix creating backup tasks * PMM-8155 Don't send last run if it's empty * PMM-8191 Lint warnings * PMM-8191 License headers * PMM-8191 Removed retries * PMM-8191 Don't fail if scheduled task was not found isn scheduler * PMM-8191 Fix checking error * PMM-8191 Store error in scheduler * PMM-8155 Removed retries * PMM-8155 Snake cases * PMM-8155 extract backup logic service to own pcakage * PMM-8191 Format * PMM-8191 Thread safe * PMM-8191 Allow to find scheduled tasks by service or location id * PMM-8191 Fix map * PMM-8155 Remove scheduled task when location or service is removed * PMM-8155 Fixed mongodb backup db reference * PMM-8191 reviews * PMM-8191 reviews * PMM-8191 Removed counters * PMM-8191 Replace reload with update * PMM-8155 rename backupsLogic to backup * PMM-8191 Wrong name of variable * PMM-8191 Helpers test * PMM-8191 Check if task is disabled at beginning * PMM-8191 Unused param * PMM-8155 Add test for filter scheduled tasks * PMM-8191 lint errors * PMM-8155 format * PMM-8155 License headers * PMM-8155 Lint errors * PMM-8155 Return interface instead of unexported type * PMM-8155 Fix adding disabled task * PMM-8155 Add type to artifact * PMM-8155 Fix lint * PMM-8155 Add to remove test, if there is no artifact with schedule id * PMM-8155 Use local time for scheduler * PMM-8155 Removed print task * PMM-8155 lint * PMM-8155 Scheduler uses UTC time * PMM-8155 fix not related test * PMM-8273 download templates from SaaS (#786) * Revert "PMM-8273 download templates from SaaS (#786)" (#801) This reverts commit c72f80c536f69f62a8381e08da41e71557192a75. * PMM-8322: Delete artifact from storage (#793) * PMM-8322: Delete artifact from storage * Update services/minio/service.go Co-authored-by: Dávid Mikuš <[email protected]> * review fixes * review fixes * remove ctx * fix test, review fixes * delete statuses * review fixes * fmt * fix test after grafana upgrade * fix lll * review fixes * reduce complexity * vendoring * remove pointer * reviews * review fixes * fix merge * merge fixes * small fix * update pmm dependency * proper version of api Co-authored-by: Dávid Mikuš <[email protected]> Co-authored-by: Artem Gavrilov <[email protected]> * PMM-8219 Blank PMM version in offline mode. (#797) * PMM-8219 Piing solution. * PMM-8219 Fix. * PMM-8219 Mod tidy. * PMM-1317 Refactor. * PMM-8219 Refactor, required changes. * PMM-8219 Tidy. * PMM-8219 Error message. * PMM-8219 Small fix in logic. * PMM-8219 Required changes. * PMM-8219 Fix. * PMM-8219 Tidy. * PMM-8219 Rerun. * Revert "PMM-8219 Rerun." This reverts commit f2d90c5191f80f804826fb0a0233eb5db584bf83. * PMM-8219 Mod. * PMM-8219 Fix test. * PMM-8219 PMM branch back to PMM-2.0 * PMM-8219 Mod tidy. * PMM-8214 Kubernetes monitoring. (#799) * PMM-8214 Kubernetes monitoring. * PMM-8214 More logs. * PMM-8214 Fix scheme. * PMM-8214 Fix tests. * PMM-8214 Fix conflicts. * PMM-7888 TLS for PostgreSQL (#781) * PMM-7888 Added TLS for PostgreSQL * After go generate * Updated TLS params for agents * Updated agents adding support for postgresql/tls * Updated Agent and tests * Fixed DSN for Postgre/SSL files * Removed cert from PG DSN * Revert "Removed cert from PG DSN" This reverts commit d257c5e59b3dcdedf9b4f6c5ad11bb223acb9b7b. * Updated mod files * Removed commented out code * PMM-7888 Fix PMM dep. * PMM-7888 Update pmm module * PMM-7888 Fix whitespaces * PMM-7888 Fix passing files. Co-authored-by: Andrii Skomorokhov <[email protected]> Co-authored-by: Tiago Mota Santos <[email protected]> Co-authored-by: Tiago Mota Santos <[email protected]> * PMM-2168 Remove rds node on rds service removal (#767) * PMM-2168 Remove rds node on rds service removal * PMM-2168 Remove empry file * PMM-2168 Refactor tests * PMM-2168 Add rds remove invetnory test * PMM-2168 Add more tests * PMM-2168 Refactoring * PMM-2168 Fix transaction * PMM-2168 Cleanup deps * PMM-2168 Do not remove rds node if it's used by more that one pmm-agent Co-authored-by: Andrii Skomorokhov <[email protected]> Co-authored-by: Maksym <[email protected]> * PMM-5016 Enforce relationships between agents and services/nodes (#800) * PMM-5016 enforce relationships between agents and services/nodes * PMM-5016 Refactor from switch to map * PMM-5016 uncessary newline * PMM-5016 unknown agents/nodes returns false * PMM-5016 Add proxy sql exporter * PMM-5016 azure and rds Co-authored-by: Maksym <[email protected]> * PMM-7570 Custom password for /metrics. (#803) * PMM-7570 Add agent password. * PMM-7570 Refactor. * PMM-7570 Rerun. * Revert "PMM-7570 Rerun." This reverts commit 2018fb1e674b66a6e0d1d25396e6009c51d89508. * PMM-7570 Mod. * PMM-7570 Mod. * PMM-7570 Mod. * PMM-7570 Add tests. * PMM-7570 Mod. * PMM-7570 Add missing inventory part. * PMM-7570 Mod. * PMM-7570 Mod, gen. * PMM-7570 Mod. * PMM-7570 Expose agent-password in inventory. * Revert "PMM-7570 Expose agent-password in inventory." This reverts commit b191c19d3c66898be5a2dc851f5507ffebebdb56. * PMM-7570 Mod. * PMM-7570 Mod. * PMM-8430 Backup retention (#802) * PMM-8430 Store retention * PMM-8430 Find artifacts to delete * PMM-8430 Retention service * PMM-8430 Extract delete artifact * PMM-8430 Retention only for success artifacts * PMM-8430 License headers * PMM-8430 Tests for retention service * PMM-8430 Lint errors * PMM-8430 Run EnforceRetention in new goroutine * PMM-8430 Remove transaction * PMM-8430 awsS3 -> s3 * PMM-8430 enforce retention outside of transaction * PMM-4932 split registry (#805) * PMM-7278 Add authentication mechanism for MongoDB (#798) * PMM-7278 Add authentication mechanism for MongoDB * Added auth db field for mongodb * PMM-7278 Fix authDB. * PMM-7278 Mod. * PMM-7278 Fix mod. * PMM-7278 Fix. * Fixed test Co-authored-by: Andrii Skomorokhov <[email protected]> Co-authored-by: Jiri Ctvrtka <[email protected]> * PMM-8091-Collect-from-runtime_mysql_servers (#760) * PMM-8091-Collect-from-runtime_mysql_servers * PMM-8091 fix test * PMM-8091 fix test * PMM-8091 Add an alert * PMM-8091 fix test * PMM-8091 Add version checks * PMM-8091 Add version checks * PMM-8091 Add version checks * PMM-8091 add tests * PMM-8091 Collect from runtime_mysql_servers * PMM-8091 Fix version Co-authored-by: Andrii Skomorokhov <[email protected]> Co-authored-by: Denys Kondratenko <[email protected]> * Initialize tickers immediately (#813) * PMM-8543 Fix artifacts migration (#814) * PMM-8573 Fix migration. (#815) Co-authored-by: Tiago Mota Santos <[email protected]> * PMM-8309: Migrate pmm-server:dev-latest to ECR for PMM managed (#809) * PMM-8460: software versions cache (#807) * PMM-8460: software versions cache * review fixes * delete on cascade * review fixes * review fixes * linter * improvements * fmt * sync versions on service addition, channel communication fixes * missed to commit main.go * fix tests * fix sync on service addition * PMM-8543 Fix artifacts migration (#814) * PMM-8573 Fix migration. (#815) * add service type field * add tests * review * config variables * reviews * Update models/software_version_helpers.go Co-authored-by: Nurlan Moldomurov <[email protected]> * remove sync, add version cache entry on service insertion * review * short check interval for error cases * add migration, review fixes * review fixes * wrong rename * final fixes * fix test * update api Co-authored-by: Dávid Mikuš <[email protected]> Co-authored-by: Nurlan Moldomurov <[email protected]> * Move pmm-api-tests (#772) * PMM-3786 Update API. * PMM-3632 Fix wrong tests. (#10) * Update deps. * Update Swagger client settings. (#11) * Handle nginx responses when pmm-managed is down. * Fail if username is given. * Fix TLS certificate check. * Allow to disable TLS certificate check. * PMM-3856 Tests for service remove endpoint. * Update API. * PMM-3977 Fix ticket number. * PMM-3974 Tests for Management API. (#14) * Update deps. * PMM-4005 Remove endpoints and expected failures. * PMM-4005 Expected failures and tests for removal. * PMM-4005 tests for removal. * PMM-4005 Refactoring. * PMM-4005 Separate smaller tests and refactoring. * Add CODEOWNERS. * PMM-3866 Required username and default agents. (#16) * Minor simplification. * PMM-4007 Tests for force removal. * Fix test for node register. * PMM-4137 Fix API tests. (#19) * Enable version test. (#20) * Update API. * PMM-4169 API tests for ProxySQL. (#21) * PMM-4197 Fix tests. (#22) * PMM-4179 API tests for QAN for PostgreSQL. (#23) * PMM-4246 Add tests for settings. (#25) * PMM-4246 Check gRPC code too. * PMM-4246 Add tests for settings. * PMM-4246 Skip gRPC code check for now. * PMM-4246 Test gRPC codes. (#26) * Update API. * PMM-3977 Enable HTTP basic auth. * PMM-4313 Fix tests. (#29) * Update version test. * Add envvar to help output. * PMM-4379 New and changed tests for updates. (#30) * PMM-4443 Return times and nice versions. (#31) * PMM-4425 Auth errors. (#32) * PMM-4471 Tests for new APIs. (#33) * PMM-3294 Set TLS config. * Do not check updates in parallel. * Update API. * PMM-4012 Add Remote Node. (#35) * Added tests output converter to jUnit format for Jenkins. (#38) * PMM-4448 Tests for updates. (#36) * PMM-4448 Run tests with race detector by default. * Fix default target. * Update deps. * Debug PMM Server update test. * PMM-4249 Add test data retention settings (#37) * PMM-4289 Update tests. (#41) * PMM-3670 Temporary fix for updates test. * PMM-3670 More hacks. * PMM-4544 Remove old test. (#45) * Use Go 1.12 to fix tests. * Remove old tests. * Fix tests. * Update API. * Update API. * Update API. * Fix test. * PMM-4594 Update API. (#48) * PMM-3989 Remove passwords from API responses. (#49) * PMM-3786 Cleanup APIs. (#50) * Update API. * Update API. * PMM-4033 Remove `oneof` from requests. (#51) * Be less paranoid. * Relax timing test. * Fix tests for version numbers. * PMM-4444 Add test. * PMM-4736 Extract logging for the last line. (#53) * PMM-4010 Make it work with Go 1.13. * PMM-4010 Use Go 1.13 for Docker. * PMM-4736 Check last update output line. * PMM-4836 Make test less aggressive. * PMM-4853 Harden tests. (#58) * PMM-4853 Update API. * PMM-4853 Do not test packages in parallel. * PMM-4853 Remove old comment. * PMM-4853 Do not crash test on unexpected response. * PMM-4895 Check that both pmm-update and pmm-managed are updated. (#60) * Update deps. * Tweak timings to fix tests. * Split Agents tests into several files. * PMM-4809 Make tablestat group configurable. (#62) * Update API. * PMM-4950 Add AWS partitions to settings. (#65) * PMM-4950 Added test for AWS partitions in settings * PMM-4950 Restore partitions after test. * PMM-4950 Add one more test. * PMM-4475 Added test for RDS discovery. (#64) * PMM-4949 RDS Management API. (#67) * PMM-4949 RDS Management API. * PMM-4949 Add RDS test * Pmm-4949 Updated vendores pkgs * PMM-5026 Added test for tables count (#66) * PMM-5026 Added test for tables count Updated the MySQLService Add method to update the tables count after the connection checker is being called. * PMM-5026 Skip MySQL Add test if no agents If there are no connected agents, let's skip the test instead of making it fail. This is because not in all testing environments we will have connected pmm agents. * PMM-5026 cosmetic change * PMM-5026 Skipping test Made test to skip until we have the new environment were we can trust there will be connected agents to run all tests. * Update API branch. * PMM-4317 API tests for upload SSH key. (#68) * PMM-4767 AWS instance check API. (#69) * PMM-4474 Added RDS exporter agent tests (#71) This branch replaces PMM-4474_Add_rds_exporter_agent-B which had merge conflicts. It was easier to implement the new test on top of an up-to-date branch than fixing all the conflicts * PMM-4010 Updated travis.yml - Added go_import_path - Made it skip non-trunk PMM-XXXX branch builds, but still build pull requests. * PMM-5008 Tests for node type validation. (#72) * PMM-5200 Fix API tests. (#75) * PMM-5216 Update last line. * PMM-5137 Test Swagger permissions. (#74) * PMM-5137 Extract method. * PMM-5137 Add tests for Swagger URLs. * PMM-5137 Open Swagger for everyone. * PMM-5064 Added tests for alert manager settings (#76) * PMM-5192 Remove go1.12 from .travis.yml, update README.md (#79) * PMM-5182 Added test for logs.zip (#78) * PMM-5182 PMM-5467 Update deps, fix test. (#80) * PMM-5467 Update deps. * PMM-5467 Fix broken test. * PMM-5467 Update test. * PMM-5448 Tests for new resolutions (#81) * PMM-4931 Revert settings on teardown. (#83) * PMM-5112 Tests for filtering by type. (#82) * PMM-4919 Re-register force allows new hostname. (#70) * PMM-4019 Reregistier node Added test for node re-registering when the node name has changed. * PMM-4919 Added test for re-register no force Added a test to ensure register with a different node name and NO re-register fails * PMM-4919 cosmetic change * PMM-4019 Added new testing method Added a new test helper that matches an error code and the error text CONTAINS a specific string * PMM-4919 Test for re-registering a node - Removed AssertAPIErrorContains function from helper - Using assert.EqualError as requested in PR * PMM-4919 Added tests for node re-register Current tests: - Trying to register a node with the same name/region/address than an existing on - no re-register - Trying to register a node with the same name/region/address than an existing on - re-register - Trying to register a node with different same name than an existing one - no re-register - Trying to register a node with the same name than an existing one re-register Co-authored-by: Alexey Palazhchenko <[email protected]> Co-authored-by: Nurlan Moldomurov <[email protected]> * PMM-5042 Add service address and socket test. (#86) * PMM-5042 Add service address and socket test. * PMM-5042 Up deps. * PMM-5042 Add test. * PMM-5042 Up deps. * PMM-4192 Added test for MongoDB Explain (#85) * PMM-4192 Added test for MongoDB Explain Tested manually with dev-container * PMM-4192 Imporved tests * PMM-4192 Updated pmm dep & mongo explain test * PMM-4192 Remove logging with fmt. * PMM-4912 Update pmm repo branch. Co-authored-by: Alexey Palazhchenko <[email protected]> Co-authored-by: Nurlan Moldomurov <[email protected]> * PMM-4145 Add simple test disable RDS metrics collection. (#84) * PMM-4145 Add simple test disable RDS metrics collection. * PMM-4145 Improve tests. * PMM-5559 Add annotation tests. (#87) * PMM-5559 Add annotation tests. * PMM-5559 Ignore response on no errors * PMM-5559 Improve test. * PMM-5559 Update API branch. Co-authored-by: Alexey Palazhchenko <[email protected]> * Fix logs test. (#88) * PMM-5695 Tests for fixed error messages. (#89) * PMM-5776 Add external service test. (#90) * PMM-5776 Add external service test. * PMM-5776 Up deps. * PMM-5776 Up deps. * PMM-5819 added STT tests (#91) * PMM-5777 Inventory add external exporter. (#93) * PMM-5777 Inventory add external exporter. * PMM-5777 Update tests. * PMM-5777 Update Gopkg.lock. * PMM-5777 Rename MetricPath to MetricsPath. * PMM-5777 Update pmm repo. * PMM-5728 Tests for management API for external services. (#95) * PMM-5728 Tests for management API for external services. * PMM-5728 Updated deps * PMM-5728 Rename MetricPath to MetricsPath. * PMM-5728 fix conflicts. * PMM-5728 fix build. * PMM-5728 update pmm repo. Co-authored-by: Carlos Salguero <[email protected]> * PMM-5728 Fix tests for removing external services. (#98) * PMM-5257 Cover ProxySQL socket with tests. (#92) * PMM-5257 Cover ProxySQL socket with tests. * PMM-5257 Update API dep. * PMM-5257 Update deps. Update default port and socket in tests. * PMM-5524 Fix API tests. * SAAS-119 Alertmanager test for checking failed checks. (#94) * PMM-5243 Test PostgreSQL socket connection. (#96) * PMM-5257 Cover ProxySQL socket with tests. * PMM-5257 Update API dep. * PMM-5257 Update deps. Update default port and socket in tests. * PMM-5243 Test PostgreSQL socket connection. * PMM-5243 Add more test. * PMM-5243 Fix typo. * PMM-5243 Update dep. * PMM-5243 Up deps. * PMM-5243 Up dep. * PMM-5723 Reviewdog checks. (#101) * PMM-5723 Reviewdog checks. * PMM-5723 Add golangci config. * PMM-5723 Reverted back .golangci.yml * PMM-5723 Update travis config. * PMM-5723 Revert travis config. * PMM-5723 Reviewdog required rules. Co-authored-by: Andrii Skomorokhov <[email protected]> * PMM-5723 Github token for reviewdog. (#104) * PMM-5256 Test MongoDB socket. (#97) * PMM-5256 Test MongoDB socket. * PMM-5256 Add test mongo with socket. * PMM-5256 Update deps. Co-authored-by: Alexey Palazhchenko <[email protected]> * SAAS-142 API tests for triggering checks execution (#99) * PMM-5968 Avoid removing PMM Server. (#105) * PMM-5968 Avoid removing PMM Server. * PMM-5968 Reword error messages. Co-authored-by: Artem Gavrilov <[email protected]> Co-authored-by: Alexey Palazhchenko <[email protected]> * SAAS-136 Add STT permissions tests (#103) * Disable lll linter (#109) * SAAS-104 Add API tests (#108) * SAAS-104 Add API tests * SAAS-104: Add check for metric values * SAAS-104: Remove unnecessary linebreaks * SAAS-104: Remove len field from test cases * Skip test * Update comment * Remove TODO * Fix spelling * remove todo * Add todo * SAAS-104 Add ticket number and flag (#112) * PMM-5106 Add Docker Compose config. (#113) * PMM-5645 Update API and open api to use go 1.14 (#110) * PMM-5645 Update API and open api to use go 1.14 * PMM-5645 Add go v1.14.x to .travis.yml * PMM-5645 Update dep. * PMM-5563 Annotation, service node, (#111) * PMM-5563 Add API tests. * PMM-5563 Required changes. * PMM-5563 Remove unnecessary check. * PMM-5563 Deps. * PMM-5563 Deps. * SAAS-125: Add API tests (#114) * SAAS-125: Add API tests * lint fix * fix stupid commit * Minor changes * fix time issue * remove comments * udpate * udpate * remove unnecessary checks * make changes * SAAS-125 Use the same names as code Co-authored-by: Alexey Palazhchenko <[email protected]> * PMM-6213 Remove go 1.13 from travis. (#115) * PMM-6213 Remove go 1.13 from travis. * PMM-6213 Add go tip. * PMM-6251 update deps (#117) * PMM-6251 Update pmm * PMM-6251 Update deps. * PMM-6251 Change pmm api branch back to PMM-2.0 * SAAS-175 Add tests for auth API (#116) * SAAS-175 Add permission tests for auth API * SAAS-175 Add auth API tests * SAAS-175 Fix test * SAAS-175 Mute linter * SAAS-175 Set dev auth host * SAAS-175 Update pmm dependency, fix tests * SAAS-175 Generate passwords in tests * SAAS-175 Add coment * SAAS-175 Fix typo * SAAS-175 Add context to request * SAAS-175 Move seeding into a single place * SAAS-174 SAAS-175 Update pmm dependecny * SAAS-174 SAAS-175 More detailed platform API tests * SAAS-174 Update pmm dependency * SAAS-174 Remove password reset tests * SAAS-175 Update pmm dependency * SAAS-175 Remove password reset permission test * SAAS-175 Update API branch Co-authored-by: Alexey Palazhchenko <[email protected]> * SAAS-237 Add API tests (#119) * SAAS-237-Check-Results-API Add API tests * SAAS-237-Check-Results-API Update tests * SAAS-237-Check-Results-API Remove comments * SAAS-237-Check-Results-API Update deps * SAAS-237-Check-Results-API Minor change * SAAS-266 Add platform sign out test (#120) * SAAS-266 Add platform sign out test * SAAS-266 Update dependencies * SAAS-266 Add tests * SAAS-266 Update API branch * SAAS-266 Update pmm dependency Co-authored-by: Alexey Palazhchenko <[email protected]> * PMM-6038 PT summary. (#122) * PMM-6038 Add test. * PMM-6038 Deps. * PMM-6038 Deps. * PMM-6038 Deps. * PMM-6038 Fix. * PMM-6038 Format. * PMM-6038 Deps. * PMM-6038 Deps. * PMM-6038 Format. * PMM-6038 Required changes. * PMM-6038 Required changes. * PMM-6038 PMM changes. * PMM-6038 Deps. * PMM-6038 Required changes. * PMM-6038 Modify test. * PMM-6038 Lint. * PMM-6038 Remove optional param. * PMM-6038 Remove skip for test, add timeout. * PMM-6038 Lint. * PMM-6038 Update management/action/ptsummary_test.go Co-authored-by: Nurlan Moldomurov <[email protected]> * PMM-6038 Import pmmapitests. * PMM-6038 Change PMM branch. * Revert "PMM-6038 Change PMM branch." This reverts commit 66ea510c9e195de1329ac7734dbb639da80f9fd0. * PMM-6038 Deps. * PMM-6038 Change branch for pmm. Co-authored-by: Nurlan Moldomurov <[email protected]> * PMM-6130 PMM-managed API for kubernetes clusters. (#121) * PMM-6130 PMM-managed API for kubernetes clusters. * PMM-6130 Tests for PMM-managed API for kubernetes clusters. * PMM-6130 Fix Gopkg.lock. * PMM-6130 gofumpt. * PMM-6130 Update pmm repo. * PMM-6130 Update tests. * PMM-6130 Update API tests. * PMM-6130 Remove unused method. * PMM-6130 Cleanup. * PMM-6130 update deps. * PMM-6130 revert pmm branch. * PMM-6130 REVIEWDOG_GITHUB_API_TOKEN. * SAAS-276 Generate fake emails in auth tests (#123) * PMM-4597 Fix API tests. (#127) * PMM 2.11 changes (#126) * PMM-6567 pg_stat_monitor. (#124) * PMM-6567 Modify one of tests. * PMM-6567 Deps. * PMM-6567 Order. * PMM-6567 Fix. * PMM-6567 Deps. * PMM-6567 Add tests for monitor agent type. * PMM-6567 Deps. * Update inventory/agents_test.go Co-authored-by: Nurlan Moldomurov <[email protected]> Co-authored-by: Jiří Čtvrtka <[email protected]> * PMM-6457 Add API test for DBaaS (#125) * PMM-6457 Add API test for DBaaS * PMM-6457 Clean up. * PMM-6457 Fix lint * PMM-6457 Small improvements. * PMM-6457 Fix comment. * PMM-6457 Add check http code. * PMM-6457 Fix dep. * PMM-6457 Update api dep. * PMM-6433 Skip kubernetes tests if kubeconfig is not provided. (#128) Co-authored-by: Andrii Skomorokhov <[email protected]> * PMM-6629 protobuf 1.4 (#129) * PMM-6629 protobuf 1.4 * PMM-6629 Update dep. * [PMM-6756] Added go 1.15.x. (#131) * SAAS-377 Disable checks by name (#130) * SAAS-377 Update pmm dependenncy * SAAS-377 Add API tests * SAAS-377 Update pmm dependency * SAAS-377 Update pmm dependency, refactor tests * SAAS-377 Refactoring * SAAS-377 Update pmm dependnency, renaming * SAAS-377 Update pmm dependency * SAAS-377 Update pmm dependency * SAAS-377 Update pmm dependency, renaming * SAAS-377 Update pmm dependency * SAAS-377 Update API * SAAS-377 Update pmm dependency Co-authored-by: Alexey Palazhchenko <[email protected]> * PMM-6716 Test Show endpoint. (#132) * PMM-6716 Test Show endpoint. * PMM-6716 Update dep. * PMM-6716 Fix tests * PMM-6716 Update dep. * PMM-6716 Update deps. * Update dependencies. * PMM-6401 fixes tests after replacing prometheus with victoriametrics (#134) * PMM-6401 fixes tests after replacing prometheus with victoriametrics * PMM-6401 Revert test updates (#138) * PMM-6746 Tests for PSMDB API. (#135) * [PMM-6756] Added go 1.15.x. (#131) * SAAS-377 Disable checks by name (#130) * SAAS-377 Update pmm dependenncy * SAAS-377 Add API tests * SAAS-377 Update pmm dependency * SAAS-377 Update pmm dependency, refactor tests * SAAS-377 Refactoring * SAAS-377 Update pmm dependnency, renaming * SAAS-377 Update pmm dependency * SAAS-377 Update pmm dependency * SAAS-377 Update pmm dependency, renaming * SAAS-377 Update pmm dependency * SAAS-377 Update API * SAAS-377 Update pmm dependency Co-authored-by: Alexey Palazhchenko <[email protected]> * PMM-6746 Tests for PSMDB API. * PMM-6746 Tests for PSMDB API. * PMM-6746 Remove all mentions of pxc. * PMM-6746 Update dependencies. * Fix merge conflicts. * PMM-6746 Add replicaset to response. * PMM-6401 Update dependencies Co-authored-by: Jaroslav Musil <[email protected]> Co-authored-by: Artem Gavrilov <[email protected]> Co-authored-by: Alexey Palazhchenko <[email protected]> * Revert "PMM-6401 Revert test updates (#138)" (#139) This reverts commit 1667b901aa32b12bdb849819728c93f15cacf228. Co-authored-by: Alexey Palazhchenko <[email protected]> * PMM-6050 Add external group (#137) * PMM-6050 Add external group * PMM-6050 Update dep and test. * PMM-6050 Improve tests. * PMM-6050 Update dep. * PMM-6395 VMagent integration (#140) * [PMM-6756] Added go 1.15.x. (#131) * SAAS-377 Disable checks by name (#130) * SAAS-377 Update pmm dependenncy * SAAS-377 Add API tests * SAAS-377 Update pmm dependency * SAAS-377 Update pmm dependency, refactor tests * SAAS-377 Refactoring * SAAS-377 Update pmm dependnency, renaming * SAAS-377 Update pmm dependency * SAAS-377 Update pmm dependency * SAAS-377 Update pmm dependency, renaming * SAAS-377 Update pmm dependency * SAAS-377 Update API * SAAS-377 Update pmm dependency Co-authored-by: Alexey Palazhchenko <[email protected]> * PMM-6716 Test Show endpoint. (#132) * PMM-6716 Test Show endpoint. * PMM-6716 Update dep. * PMM-6716 Fix tests * PMM-6716 Update dep. * PMM-6716 Update deps. * Revert "PMM-6401 Revert test updates (#138)" This reverts commit 1667b901aa32b12bdb849819728c93f15cacf228. * PMM-6395 changes api tests with new metrics flow model * updates tests, adds mongodb inventory test * updates docker image for tests * fixes api tests * changes error message * updates tests for rds and proxysql agents reverts docker-compose changes * updates tests * applies gofumt * updates tests for external exporter * PMM-6395 Update PMM * PMM-6395 Fix linter Co-authored-by: Jaroslav Musil <[email protected]> Co-authored-by: Artem Gavrilov <[email protected]> Co-authored-by: Alexey Palazhchenko <[email protected]> Co-authored-by: Andrii Skomorokhov <[email protected]> Co-authored-by: Nurlan Moldomurov <[email protected]> * SAAS-413 Check for existance of check description (#141) * SAAS-413 Add tests to check for check fields * SAAS-413 dep update * SAAS-413 Update API Co-authored-by: Alexey Palazhchenko <[email protected]> * PMM-6824 DBaaS restart (#143) * PMM-6824 DBaaS restart * PMM-6824 DBaaS restart * PMM-6824 Update deps. * Remove old environment variable * Fix api tests (#144) * Fix api tests * More fixes. * Add AssertAPIErrorf * Check if present dbaas-controller.log only when dbaas enabled. * PMM-6968 Notification channels API (#145) * PMM-6968 Update pmm dependency * PMM-6968 Add notificaion channels API tests * PMM-6968 Fix deps * PMM-6968 Fix error message * PMM-6968 Add flag to make IA tests optional * PMM-6968 Add test cases * PMM-6968 Update pmm dependency, update tests * PMM-6968 Remove debug stuff, format * PMM-6968 Update tests * PMM-6968 Improve tests * PMM-6968 Update API Co-authored-by: Alexey Palazhchenko <[email protected]> * PMM-6968 Improve channels tests (#146) * Add travis-ci.com badge (#148) * PMM-6983 Add force for unregister k8s (#150) * Add travis-ci.com badge (#148) * PMM-6983 Deps. * PMM-6983 Test for unregister with force param. * PMM-6983 Deps. * PMM-6983 Deps. * PMM-6983 Test required changes, partialy done. * PMM-6983 Remove comment. * PMM-6983 Modify test. * PMM-6983 Lint. * PMM-6983 Lint. * PMM-6983 Fix readme changes. * PMM-6983 Deps. * PMM-6983 Deps. Co-authored-by: Alexey Palazhchenko <[email protected]> * PMM-6909 Rule template API tests (#147) * PMM-6909 Add templates API tests * PMM-6909 Refactoring * Hit CI * PMM-6909 Fix deps * PMM-6909 Fix linters * PMM-6909 Improve logs * PMM-6909 Update API branch * PMM-6909 Add environment variable * PMM-6909 Actually handle PMM_RUN_IA_TESTS * PMM-6909 Fix templates * PMM-6909 Enable IA tests, check createdAt field * Revert "PMM-6909 Actually handle PMM_RUN_IA_TESTS" This reverts commit 989916c1c84be4e76d397d5294715a0245534930. * Revert "PMM-6909 Add environment variable" This reverts commit 0a0811deeccd9ad6106027c1d7d86de0c092abd8. * PMM-7095 Check yaml field content form change template method response * PMM-7095 Check yaml field content for list templates response Co-authored-by: Alexey Palazhchenko <[email protected]> * Update pmm repo * Update pmm repo * PMM-5980 Add suspend/resume PXC (#152) * PMM-6983 Add force for unregister k8s (#150) * Add travis-ci.com badge (#148) * PMM-6983 Deps. * PMM-6983 Test for unregister with force param. * PMM-6983 Deps. * PMM-6983 Deps. * PMM-6983 Test required changes, partialy done. * PMM-6983 Remove comment. * PMM-6983 Modify test. * PMM-6983 Lint. * PMM-6983 Lint. * PMM-6983 Fix readme changes. * PMM-6983 Deps. * PMM-6983 Deps. Co-authored-by: Alexey Palazhchenko <[email protected]> * PMM-5980 Add suspend/resume pxc * PMM-6909 Rule template API tests (#147) * PMM-6909 Add templates API tests * PMM-6909 Refactoring * Hit CI * PMM-6909 Fix deps * PMM-6909 Fix linters * PMM-6909 Improve logs * PMM-6909 Update API branch * PMM-6909 Add environment variable * PMM-6909 Actually handle PMM_RUN_IA_TESTS * PMM-6909 Fix templates * PMM-6909 Enable IA tests, check createdAt field * Revert "PMM-6909 Actually handle PMM_RUN_IA_TESTS" This reverts commit 989916c1c84be4e76d397d5294715a0245534930. * Revert "PMM-6909 Add environment variable" This reverts commit 0a0811deeccd9ad6106027c1d7d86de0c092abd8. * PMM-7095 Check yaml field content form change template method response * PMM-7095 Check yaml field content for list templates response Co-authored-by: Alexey Palazhchenko <[email protected]> * PMM-5980 Change error msg. * PMM-5980 Update dep. Co-authored-by: JiriCtvrtka <[email protected]> Co-authored-by: Alexey Palazhchenko <[email protected]> Co-authored-by: Artem Gavrilov <[email protected]> Co-authored-by: Alexey Palazhchenko <[email protected]> * PMM-6897 Add suspend/resume PSMDB (#153) * PMM-6983 Add force for unregister k8s (#150) * Add travis-ci.com badge (#148) * PMM-6983 Deps. * PMM-6983 Test for unregister with force param. * PMM-6983 Deps. * PMM-6983 Deps. * PMM-6983 Test required changes, partialy done. * PMM-6983 Remove comment. * PMM-6983 Modify test. * PMM-6983 Lint. * PMM-6983 Lint. * PMM-6983 Fix readme changes. * PMM-6983 Deps. * PMM-6983 Deps. Co-authored-by: Alexey Palazhchenko <[email protected]> * PMM-6909 Rule template API tests (#147) * PMM-6909 Add templates API tests * PMM-6909 Refactoring * Hit CI * PMM-6909 Fix deps * PMM-6909 Fix linters * PMM-6909 Improve logs * PMM-6909 Update API branch * PMM-6909 Add environment variable * PMM-6909 Actually handle PMM_RUN_IA_TESTS * PMM-6909 Fix templates * PMM-6909 Enable IA tests, check createdAt field * Revert "PMM-6909 Actually handle PMM_RUN_IA_TESTS" This reverts commit 989916c1c84be4e76d397d5294715a0245534930. * Revert "PMM-6909 Add environment variable" This reverts commit 0a0811deeccd9ad6106027c1d7d86de0c092abd8. * PMM-7095 Check yaml field content form change template method response * PMM-7095 Check yaml field content for list templates response Co-authored-by: Alexey Palazhchenko <[email protected]> * PMM-6897 Add/Improve tests. * PMM-6897 Update dep. Co-authored-by: JiriCtvrtka <[email protected]> Co-authored-by: Alexey Palazhchenko <[email protected]> Co-authored-by: Artem Gavrilov <[email protected]> Co-authored-by: Alexey Palazhchenko <[email protected]> * PMM-6969 Rules API tests (#151) * PMM-6983 Add force for unregister k8s (#150) * Add travis-ci.com badge (#148) * PMM-6983 Deps. * PMM-6983 Test for unregister with force param. * PMM-6983 Deps. * PMM-6983 Deps. * PMM-6983 Test required changes, partialy done. * PMM-6983 Remove comment. * PMM-6983 Modify test. * PMM-6983 Lint. * PMM-6983 Lint. * PMM-6983 Fix readme changes. * PMM-6983 Deps. * PMM-6983 Deps. Co-authored-by: Alexey Palazhchenko <[email protected]> * PMM-6969 Add rules API tests * PMM-6969 Fix deps * PMM-6969 Format * PMM-6969 Format * PMM-6909 Rule template API tests (#147) * PMM-6909 Add templates API tests * PMM-6909 Refactoring * Hit CI * PMM-6909 Fix deps * PMM-6909 Fix linters * PMM-6909 Improve logs * PMM-6909 Update API branch * PMM-6909 Add environment variable * PMM-6909 Actually handle PMM_RUN_IA_TESTS * PMM-6909 Fix templates * PMM-6909 Enable IA tests, check createdAt field * Revert "PMM-6909 Actually handle PMM_RUN_IA_TESTS" This reverts commit 989916c1c84be4e76d397d5294715a0245534930. * Revert "PMM-6909 Add environment variable" This reverts commit 0a0811deeccd9ad6106027c1d7d86de0c092abd8. * PMM-7095 Check yaml field content form change template method response * PMM-7095 Check yaml field content for list templates response Co-authored-by: Alexey Palazhchenko <[email protected]> * PMM-6969 Update pmm dependency * PMM-6969 Cleanup after IA APIs tests, add missing test case * PMM-6969 Fix test Co-authored-by: JiriCtvrtka <[email protected]> Co-authored-by: Alexey Palazhchenko <[email protected]> Co-authored-by: Alexey Palazhchenko <[email protected]> * PMM-6982 Update settings and IA tests (#154) * PMM-6983 Add force for unregister k8s (#150) * Add travis-ci.com badge (#148) * PMM-6983 Deps. * PMM-6983 Test for unregister with force param. * PMM-6983 Deps. * PMM-6983 Deps. * PMM-6983 Test required changes, partialy done. * PMM-6983 Remove comment. * PMM-6983 Modify test. * PMM-6983 Lint. * PMM-6983 Lint. * PMM-6983 Fix readme changes. * PMM-6983 Deps. * PMM-6983 Deps. Co-authored-by: Alexey Palazhchenko <[email protected]> * PMM-6909 Rule template API tests (#147) * PMM-6909 Add templates API tests * PMM-6909 Refactoring * Hit CI * PMM-6909 Fix deps * PMM-6909 Fix linters * PMM-6909 Improve logs * PMM-6909 Update API branch * PMM-6909 Add environment variable * PMM-6909 Actually handle PMM_RUN_IA_TESTS * PMM-6909 Fix templates * PMM-6909 Enable IA tests, check createdAt field * Revert "PMM-6909 Actually handle PMM_RUN_IA_TESTS" This reverts commit 989916c1c84be4e76d397d5294715a0245534930. * Revert "PMM-6909 Add environment variable" This reverts commit 0a0811deeccd9ad6106027c1d7d86de0c092abd8. * PMM-7095 Check yaml field content form change template method response * PMM-7095 Check yaml field content for list templates response Co-authored-by: Alexey Palazhchenko <[email protected]> * PMM-6982 Update settings and IA tests * small fix * PMM-6982 update dependency * PMM-6982 cosmetic * PMM-6982 fix typo * PMM-6982 Add valid test case for alerting * PMM-6982 remove unreachable test cases * PMM-6982 Remove unnecessary settings change * PMM-6982 cosmetic * PMM-6982 add commment * PMM-6982 remove unnecessary changes * PMM-6982 remove newlines * PMM-6982 remove newlines * PMM-6982 remove log * PMM-6982 fix build Co-authored-by: JiriCtvrtka <[email protected]> Co-authored-by: Alexey Palazhchenko <[email protected]> Co-authored-by: Artem Gavrilov <[email protected]> Co-authored-by: Alexey Palazhchenko <[email protected]> * Toggle Rule API test (#157) * PMM-7135 Add seconds and summary (#158) * PMM-7135 Update pmm dependency * PMM-7135 Improve IA tests, check param types, channels summaried and other * PMM-7212 Add test for creating rule from built-in template (#159) * PMM-6891 Fix restore settings defaults (#160) * PMM-6944 API for k8s config. (#156) * PMM-6944 Deps. * PMM-6944 Add test for GetKubernetesCluster. * PMM-6944 Small fix. * PMM-6944 Required changes. * PMM-6944 Typo. * PMM-6944 Update dep Co-authored-by: Andrii Skomorokhov <[email protected]> Co-authored-by: Carlos Salguero <[email protected]> * PMM-7135 Update deps (#161) * PMM-7135 Fix test (#162) * PMM-7214 Fix API tests (#164) * PMM-7220 API test for deleting an in-use template (#163) * PMM-7220 API test for deleting an in-use template * PMM-7220 make linter happy * PMM-7220 remove break Co-authored-by: Alexey Palazhchenko <[email protected]> * PMM-7228 Fix tests (#165) * PMM-6941 Update tests (#171) * PMM-5137 Allow to follow redirects in auth tests (#172) * PMM-5137 Allow to follow redirects in auth tests * PMM-5137 Fix tests * PMM-7182 add test case to create rule with channel and filters (#166) * PMM-7182 add test case to create rule with channel and filters * PMM-7182 dont use true/false values * PMM-7182 dont use globals * PMM-7128 minor tweak Co-authored-by: Artem Gavrilov <[email protected]> * PMM-7182 fix tests Co-authored-by: Artem Gavrilov <[email protected]> * PMM-5765 Add External service on remote node. (#168) * PMM-5765 Add External service on remote node. * PMM-5765 Test for empty address. * PMM-7015 Fix test. (#169) * PMM-7015 Fix test. * PMM-7015 Check pwd not empty. * Fix tests for Go 1.15 (#173) * PMM-7226 Add tests for rule parameters (#167) * PMM-7226 Add tests for rule parameters * PMM-7226 Fix test * PMM-7226 Update tests * PMM-7226 Refactoring * PMM-7145 Set PushMetricsEnabled flag (#174) * PMM-7145 Set PushMetricsEnabled flag (#174) (#176) * PMM-7279 param units (#170) * PMM-7279 Update saas dependency * PMM-7279 Update test cases * PMM-7279 Add newline * PMM-7279 Fix tests * PMM-7279 Update pmm dependency * PMM_7279 Update tests * PMM-7279 Fix tests * PMM-7306 disable collectors (#177) * PMM-7145 Set PushMetricsEnabled flag (#174) * PMM-7306 Add disable collectors * PMM-7306 Remove redundant comment. * PMM-7306 Fix test. * PMM-7306 Update dep. * PMM-7306 Update dep. Co-authored-by: Artem Gavrilov <[email protected]> * PMM-6711 Add test filter by external group. (#179) * PMM-7145 Set PushMetricsEnabled flag (#174) * PMM-6711 Add test filter by external group. * PMM-6711 Fix test * PMM-6711 Up dep. Co-authored-by: Artem Gavrilov <[email protected]> * PMM-6640 API for HAProxy. (#183) * PMM-6640 Deps. * PMM-6640 Add tests. * PMM-6640 Deps. * PMM-6640 Deps. * PMM-6640 Deps. * PMM-6640 Deps. * PMM-6640 Deps. * PMM-6640 Fix haproxy test after merges. * PMM-6640 HAProxy test with remote node. (#185) * PMM-7467 Test IA rule expression (#182) * PMM-7250 Update tests to reflect renaming of Get to GetCredentials (#178) * PMM-7250 Update tests to reflect renaming of Get to GetCredentials * Update dependency * PMM-7380 backup location list add (#181) * PMM-7145 Set PushMetricsEnabled flag (#174) * PMM-7380 Add BackupLocation test * PMM-7380 List BackupLocation test * PMM-7380 Dep ensure * PMM-7380 Fix add location test error * PMM-7380 Lint * PMM-7380 Add double config test * PMM-7380 Move t.paralell() to begin of test * PMM-7380 Add ticket link to todo comment * PMM-7380 Fix tests assertion * PMM-7380 Fix tests after splitted FS config * PMM-7380 pmm release/2.15 Co-authored-by: Artem Gavrilov <[email protected]> * update deps * Update deps. * Changes from 2.15 (#187) * PMM-7145 Set PushMetricsEnabled flag (#174) (#176) * PMM-7279 param units (#170) * PMM-7279 Update saas dependency * PMM-7279 Update test cases * PMM-7279 Add newline * PMM-7279 Fix tests * PMM-7279 Update pmm dependency * PMM_7279 Update tests * PMM-7279 Fix tests * PMM-7306 disable collectors (#177) * PMM-7145 Set PushMetricsEnabled flag (#174) * PMM-7306 Add disable collectors * PMM-7306 Remove redundant comment. * PMM-7306 Fix test. * PMM-7306 Update dep. * PMM-7306 Update dep. Co-authored-by: Artem Gavrilov <[email protected]> * PMM-6711 Add test filter by external group. (#179) * PMM-7145 Set PushMetricsEnabled flag (#174) * PMM-6711 Add test filter by external group. * PMM-6711 Fix test * PMM-6711 Up dep. Co-authored-by: Artem Gavrilov <[email protected]> * PMM-6640 API for HAProxy. (#183) * PMM-6640 Deps. * PMM-6640 Add tests. * PMM-6640 Deps. * PMM-6640 Deps. * PMM-6640 Deps. * PMM-6640 Deps. * PMM-6640 Deps. * PMM-6640 Fix haproxy test after merges. * PMM-6640 HAProxy test with remote node. (#185) * PMM-7467 Test IA rule expression (#182) * PMM-7250 Update tests to reflect renaming of Get to GetCredentials (#178) * PMM-7250 Update tests to reflect renaming of Get to GetCredentials * Update dependency * PMM-7380 backup location list add (#181) * PMM-7145 Set PushMetricsEnabled flag (#174) * PMM-7380 Add BackupLocation test * PMM-7380 List BackupLocation test * PMM-7380 Dep ensure * PMM-7380 Fix add location test error * PMM-7380 Lint * PMM-7380 Add double config test * PMM-7380 Move t.paralell() to begin of test * PMM-7380 Add ticket link to todo comment * PMM-7380 Fix tests assertion * PMM-7380 Fix tests after splitted FS config * PMM-7380 pmm release/2.15 Co-authored-by: Artem Gavrilov <[email protected]> * update deps * Update deps. Co-authored-by: Artem Gavrilov <[email protected]> Co-authored-by: Andrii Skomorokhov <[email protected]> Co-authored-by: JiriCtvrtka <[email protected]> Co-authored-by: Jan Prukner <[email protected]> Co-authored-by: Dávid Mikuš <[email protected]> * Revert "Changes from 2.15 (#187)" (#188) This reverts commit 1e1f396f1df3a31487bb939ca34870a9621f72a2. * PMM-6693 Tests for API Key support. (#184) * PMM-6693 Tests for API Key support. * PMM-6693 Fix delete API Key. * PMM-6693 Fix golangci lint complains. * PMM-6766: Remove QAN (#195) * PMM-7487 HAProxy connection check. (#193) * PMM-7487 Fix HAProxy API tests. * PMM-7487 Deps before merge. * PMM-7487 Fix remove test. * PMM-7405 Fix tests. (#194) * PMM-7405 Fix tests. * PMM-7405 Up dep. * PMM-7405 Change back. * PMM-7296: Add ListAlertRules pagination tests (#180) * PMM-7296: Add ListAlertRules pagination tests * update test * fix test * vendoring * vendoring * vendoring * vendoring * remove extra new line * PMM-7366 Add tests for deletion channel that used by some rule (#186) * PMM-7382 Update backup location tests (#190) * PMM-7382 Update backup location tests * PMM-7382 Missing files * PMM-7382 Format * PMM-7382 remove redundant printf * PMM-7382 Updated error message * PMM-7382 More assertions * PMM-7382 Add test for not changing config type * PMM-7382 Update branch back to PMM-2.0 * update deps * Add license scan report and status (#196) Signed off by: fossabot <[email protected]> Co-authored-by: fossabot <[email protected]> * PMM-7383 Remove backup location (#192) * PMM-7383 Remove backup location * PMM-7383 Update API * PMM-7383 Simplify assertNotFound * PMM-7557: Add backup bucket field (#197) * PMM-7557: Add backup bucket field * fmt * vendoring * PMM-7337 STT check intervals (#198) * Add license scan report and status (#196) Signed off by: fossabot <[email protected]> Co-authored-by: fossabot <[email protected]> * PMM-7337 update PMM branch * PMM-7337 add tests for STT check intervals * PMM-7337 update depencencies * PMM-7337 fix test name * PMM-7337 update dependencies * PMM-7337 update vendor code * PMM-7337 update dependencies * PMM-7337 fix name for standard interval * PMM-7337 update dependencies * PMM-7337 change test name * PMM-7337 update dependencies * PMM-7337 Update pmm dependency * PMM-7337 Update pmm dependency Co-authored-by: Alexander Tymchuk <[email protected]> Co-authored-by: fossabot <[email protected]> Co-authored-by: Artem Gavrilov <[email protected]> * PMM-7119 UpdateTemplate mismatch names (#175) * PMM-7119 UpdateTemplate mismatch names * PMM-7119 Update pmm * PMM-7313 RDS-PostgreSQL (#201) * Add license scan report and status (#196) Signed off by: fossabot <[email protected]> Co-authored-by: fossabot <[email protected]> * Added RDS Postgres tests * PMM-7313 RDS-Postgres tests * PMM-7313 Updated deps Co-authored-by: Alexander Tymchuk <[email protected]> Co-authored-by: fossabot <[email protected]> * PMM-7508 Add tests for get cluster resources * PMM-7503 DBaaS: Add GetResources RPC (#202) * PMM-7503 DBaaS: Add tests for GetResources RPC * PMM-7521 Alert Templates pagination (#199) * PMM-7521 Alert Templates pagination * PMM-7521 Refactor - compare func for alert rule template * PMM-7521 removed useless explicit arguments * PMM-7522 channels pagination (#200) * PMM-7522 channels pagination * PMM-7522 newline * PMM-7508 Fix dep check * PMM-7508 Fix dep * PMM-7448: Add tests (#206) * PMM-7448: Add tests * gofmt * vendoring * PMM-7626 go modules (#203) * PMM-7626 Migrate to go modules * PMM-7626 Removed Gopkg and vendor * PMM-7626 Remove vendor check * PMM-7626 go-junit install not from vendor * PMM-7626 Go mod for tools * PMM-7626 Build tools to local folder * PMM-7626 removed vendor from merge * PMM-7626 Mutex to RNG * PMM-7626 Removed deprecated flag in go test * PMM-7626 Removed go test from build * Trigger build * PMM-7626 Travis skip install * PMM-7626 Comments * PMM-7626 New go build tags * PMM-7626 Makefile: full path to binaries * PMM-7626 Removed vendor after merge * update deps * SAAS-487 Update API tests for new registration flow (#205) * PMM-7652 DBaaS: Resource calculator - add stograge test (#207) * PMM-7595 DBaaS: Resource calculator - add stograge test * PMM-7676 API test for azure_database_exporter. (#210) * PMM-7676 API test for azure_database_exporter. * PMM-7676 GO modules. * PMM-7676 Delete deps. * PMM-7676 Update dep. Fix test. * PMM-7676 Up. Co-authored-by: Andrii Skomorokhov <[email protected]> * PMM-7338 API test for change check interval (#211) * Fix tests (#213) * Update README.md (#214) * PMM-7819 modify TestXtraDBClusterServer to use HAProxy (#212) * PMM-7819 modify TestXtraDBClusterServer to use HAProxy * update deps * PMM-7832 skip test for s3 config (#215) * PMM-7832 skip test for s3 config * PMM-7832 Add text for skippign test * PMM-8121 bettter error message (#218) * PMM-8121 bettter error message * PMM-8121 rotate integration keys Co-authored-by: Alex Tymchuk <[email protected]> * PMM-6295 add unknown status (#219) * PMM-8013: Fix test (#220) * PMM-7627 manage server logs using supervisor (#217) * PMM-7627 remove fossa's badge * PMM-7627 remove deprecated logs * PMM-7627 sort out keys in json * PMM-7627 put clickhouse-server.err.log back * PMM-7627 update 3rd party integration tokens * PMM-7627 rotate integration token * PMM-7627 update travis.yml to match upstream * PMM-7627 remove ch server error log * PMM-7627 Manage server logs using supervisor (#222) * PMM-7627 remove fossa's badge * PMM-7627 remove deprecated logs * PMM-7627 sort out keys in json * PMM-7627 put clickhouse-server.err.log back * PMM-7627 update 3rd party integration tokens * PMM-7627 rotate integration token * PMM-7627 update travis.yml to match upstream * PMM-7627 remove ch server error log * PMM-7627 update the README * PMM-8337 fix tests (#223) * PMM-8155 Backup scheduling (#221) * PMM-8155 schedule backup CRUD test * PMM-8155 Check if scheduled backup is deleted * PMM-8155 error message for removal service * bump pmm * PMM-8155 Adjust error message Co-authored-by: Alex Tymchuk <[email protected]> * Fix external service tests (#225) * Fix external service tests * Better naming Co-authored-by: Alex Tymchuk <[email protected]> * PMM-2168 disable rds exporter (#227) * PMM-2168 Check that node and agent are removed once RDS service deleted * PMM-2168 Fix tests * PMM-2168 Fix settings restore * PMM-2168 Cleanup deps * PMM-5016 Don't expect error (#226) * Removed newline * license header * Merge gitignore and .github * Update docker go path * Renamed go module for api tests * PMM-8309: Migrate pmm-server:dev-latest to ECR for PMM API Tests Co-authored-by: Alexey Palazhchenko <[email protected]> Co-authored-by: Nurlan Moldomurov <[email protected]> Co-authored-by: Nurlan Moldomurov <[email protected]> Co-authored-by: Alexey Palazhchenko <[email protected]> Co-authored-by: Anton Kucherov <[email protected]> Co-authored-by: Andrii Skomorokhov <[email protected]> Co-authored-by: Carlos Salguero <[email protected]> Co-authored-by: Artem Gavrilov <[email protected]> Co-authored-by: Vasyl Yurkovych <[email protected]> Co-authored-by: Andrii Skomorokhov <[email protected]> Co-authored-by: Artem Gavrilov <[email protected]> Co-authored-by: Palash Nigam <[email protected]> Co-authored-by: JiriCtvrtka <[email protected]> Co-authored-by: Palash Nigam <[email protected]> Co-authored-by: Jiří Čtvrtka <[email protected]> Co-authored-by: Jaroslav Musil <[email protected]> Co-authored-by: Nikolay <[email protected]> Co-authored-by: Jan Prukner <[email protected]> Co-authored-by: Maksym <[email protected]> Co-authored-by: Alexander Tymchuk <[email protected]> Co-authored-by: fossabot <[email protected]> Co-authored-by: Nicola Lamacchia <[email protected]> Co-authored-by: Tiago Mota Santos <[email protected]> Co-authored-by: Jan Prukner <[email protected]> Co-authored-by: Tiago Mota Santos <[email protected]> Co-authored-by: Nikita Beletskii <[email protected]> * PMM-8343 jobs retries (#810) * PMM-84343 Refactor JobResult -> Jobs * PMM-8343 Move handleJobResult from agents handler to jobs service * PMM-8343 Restart job if error occurs * PMM-8343 Removed retries remaining * PMM-8343 Add retries to backup * PMM-8343 Add retries to job creation * PMM-8343 Fix migration * PMM-8343 Fix tests * PMM-8343 Replaced sleep with timer * PMM-8343 Comments * PMM-8343 Add retries to scheduled backup response * PMM-8343 Change retries * PMM-8343 Fixed change scheduled task * PMM-8343 Fix retention for mysql backup * PMM-8343 Some cleanup * Removed echojob * PMM-8343 Add max retry interval * PMM-8343 Add retries to test * Fixed unreachable code * PMM-8343 restore jobs are not retryable * PMM-8343 Transaction Co-authored-by: Maksym <[email protected]> * PMM-8343 Removed unused methods * PMM-8343 Removed Jobs API * PMM-8343 Update pmm dependency Co-authored-by: Maksym <[email protected]> Co-authored-by: Artem Gavrilov <[email protected]> * PMM-8459 Ability to disable updates. (#808) * PMM-8459 Update changes. * PMM-8459 Fix test. * PMM-8459 Fix. * PMM-8459 Fix test. * PMM-8459 Add another case. * PMM-8459 Required changes. * PMM-8459 Required changes. * PMM-8459 Changes. * PMM-8459 Change. * PMM-8459 Changes. * PMM-8459 Fix test. * PMM-8459 Mod. * PMM-8459 Mod. * PMM-8459 Mod. * PMM-8459 Move api tests to managed. * PMM-8459 Mod. * PMM-8459 Fix test. * PMM-8459 Mod. * PMM-8174 Update operators (#787) * update deps * install operator rpc implemented * add stub for k.versionService.IsOperatorVersionSupported; install latest operator on k8s register * correct args order; make gen * DRYing; unset the default version if it's unsupported after update * add install test * test supported/unsupported default db version after update * make gen * go fmt -s * add&remove comments * fix * fix nil pointer dereference * prepare for merge with PMM-2.0 * cleanup * fix tests * fix fake version service; clean up tests * fix misspelling * Base on operator status on version only * insert new lines to separate logical blocks * Error when default db version is unsuppoerted by updated operator * fix error message * use constants * Use constant for 1.9.0, too * rename operator -> operatorVersions, it makes sense * Return non-empty response on CheckForOperatorUpdate when Kubernetes cluster is not available * Default may not be set, dont check it's supported in that case * add mock for version service * use next version instead of latest version of operator * Fix - upgrade to n+1 version * don't check compatibility as we may update to incompatible operator on our way to compatible one * fix version service and component service tests * don't ignore errors * go mod tidy * fix misspelling * optimise getNext * remove get from method and function names * return no response on error; invalid if operator type is not recognized * change error msg; getOperatorStatus -> convertToOperatorStatus * fix tests, create type * return nil, instead of invalid Co-authored-by: Nurlan Moldomurov <[email protected]> * simplify return of next version of the operator * update deps Co-authored-by: Nurlan Moldomurov <[email protected]> * PMM-8171 Add version to Kubernetes cluster listing response (#795) * PMM-8171 Add version to Kubernetes cluster listing response * update deps * PMM-8709 Configurable version service URL. (#818) * Revert "Revert "PMM-8273 download templates from SaaS (#786)" (#801)" PMM-8710 (#816) * Revert "Revert "PMM-8273 download templates from SaaS (#786)" (#801)" PMM-8273 was mistakenly merged and later reverted. Since IA template is now available on SaaS we can re-introduce the feature. This reverts commit 3c660c3375bbe1e2ffaac798f01804da7b546cbb. * PMM-8421 Fix external listen port when pmm was upgraded. (#820) * PMM-8421 Fix external listen port when pmm was upgraded. * PMM-8421 Fix unhandled nil pointer. * PMM-8421 Fix external listen port when pmm was upgraded. (#820) (#823) * PMM-8421 Fix external listen port when pmm was upgraded. * Restart dbaas-controller on startup (#821) * PMM-8160: Version compatibility (#785) * PMM-8160: Version compatibility * allow empty db version * fmt * remove remote MySQL * PMM-8160: update * PMM-8460: software versions cache * review fixes * delete on cascade * review fixes * review fixes * linter * improvements * fmt * sync versions on service addition, channel communication fixes * missed to commit main.go * fix tests * fix sync on service addition * PMM-8543 Fix artifacts migration (#814) * PMM-8573 Fix migration. (#815) Co-authored-by: Tiago Mota Santos <[email protected]> * add service type field * apply stashed changes * fixes and simplifications * return back aws sdk version * small refactoring, add mysql-xtrabackup versions check * fix tests * PMM-8160 Cleanup * add compatibility matrix test, review, add a support of xtrabackup 8.0.26 * modify tests * remove debug logs * vendoring Co-authored-by: Dávid Mikuš <[email protected]> Co-authored-by: Nurlan Moldomurov <[email protected]> Co-authored-by: Tiago Mota Santos <[email protected]> Co-authored-by: Dasio <[email protected]> * PMM-5106 Remove reference to PMM-5106 (#833) * PMM-5669 Change hardcoded paths to params. (#812) * PMM-7559 Improve error message during deletion channel/template (#826) * PMM-7559 Improve error message during deletion channel/template if it is used by rule * PMM-7559 grammar Co-authored-by: Artem Gavrilov <[email protected]> * PMM-6013 rename pmm-managed default branch (#835) * PMM-8884 PMM doesn't get MySQL and PostgreSQL metrics after upgrade. (#838) * PMM-8884 Fix paths_base for older versions. * PMM-8884 Fix tests, modify comment. * PMM-8884 Add test for paths base func. * PMM-8884 Fix for dev, rc versions. * PMM-8673 MongoDB logs (#822) * PMM-8673 Database structure * PMM-8673 Handle progress job message * PMM-8673 Last chunk * PMM-8673 Find jobs * PMM-8673 Get logs * PMM-8673 Error to client * PMM-8673 Test get logs * PMM-8673 Updated API * PMM-8673 Don't send last marker chunk * PMM-8673 Removed old test * PMM-8673 Unusued variable * PMM-8673 Message -> Data * PMM-8673 Removed time * PMM-8673 Newline * PMM-8673 Log errors * PMM-8673 Fix broken tests * PMM-8673 Update pmm dependency Co-authored-by: Artem Gavrilov <[email protected]> * PMM-8269 MongoDB Point-in-Time backups (#811) * PMM-8269 Update pmm dependency * PMM-8269 Add pbm-switch-pitr action support * PMM-8269 Add backup mode to artifact model * Add PITR scheduled backups support * PMM-8269 Fix artifact name * PMM-8268 Fix disabling of PITR * PMM-8269 Format * PMM-8269 Drop default constraint * PMM-8269 Update pmm dependency * PMM-8269 Remove debug code * PMM-8269 Update gocron lib * PMM-8269 Add backup mode field to scheduled backups * PMM-8269 Add validations * PMM-8269 Fix merge * PMM-8269 Update pmm dependency * PMM-8269 Fix multiple things * PMM-8269 Update mocks * PMM-8269 Remove redundant check * PMM-8269 Add validation * PMM-8269 Refactoring * PMM-8269 Fix tests * PMM-8269 Remove debug code * PMM-8269 Add transaction * PMM-8269 Refactoring * PMM-8269 Add validation * PMM-8269 Fix linter * PMM-8269 Add distict type for PITR backup mode * Revert "PMM-8269 Remove redundant check" This reverts commit 65a57f275d5b4ce4ffb6f66a1ab6012a5ecec1b8. * PMM-8269 Fix PITR backups precondiotions checks * PMM-8269 Fix tests * PMM-8269 Fix migrations order after merge * PMM-8269 Fix bug with wrong backup mode * PMM-8269 Fix gRPC error * PMM-8269 Fix PITR disabling * PMM-8269 Update API tests * PMM-8269 Review fixes * PMM-8269 Add json migrations * PMM-8269 Fix migration * PMM-8269 Refactoring and tests * PMM-8269 Refactoring * PMM-8269 Improve error messages * PMM-8269 Refactoring * PMM-8269 Add API tests * PMM-8269 Fix snapshot backups * PMM-8269 Update pmm dependency Co-authored-by: Maksym <[email protected]> * PMM-7914 Upgrade Database Version (#804) * draft * Add available for upgrade and currently installed version of db cluster * pass image in update cluster rpcs, pass version service URL when creating cluster * update deps * update deps * pass image to dbaas-controller * fix bug in listing psmdb clusters * return only scheme and host for version service URL -> that's what operators demand only in their CRs * Return upgrading status * fix * generate mocs * Make tests work * Reuse func next for getting next database version * Fix linter's complains * use image for available and installed * fix typo * generate mocks * fix tests * group parallel tests * remove parallel from the top test * update deps * PMM-8851 Updated Postgres DSN to use only CA validation (#836) * PMM-7152 Fixed MongoDB DSN string (#828) The MongoDB DSN was including connectTimeoutMS but to make it work it should be used in conjunction of serverSelectionTimeoutMS. Added that parameter to the connection string. * PMM-8058 Make vmalert fail if it's unable to restore state from VM (#843) * PMM-8058 Make vmalert fail if it's unable to restore state from victoriametrics * PMM-8058 Fix tests * PMM-8627 Reorganize api tests module, include api-test package to CI jobs (#837) * Merge API test module into managed module * Refactoring …
PMM-9377
Build: SUBMODULES-2355
This upgrades the grpc-gateway package to v2 based on the migration guide.