Skip to content

Commit b95f4ca

Browse files
ezilber-akamaiyec-akamaiykim-akamaiAniJ98dependabot[bot]
authored
Merge main into proj/linodego_v2.0 (#774)
* Support missing domain-related endpoints for API parity (#620) * update domains * nit * test: Update default test image to reflect the deprecation of Debian 9 support (#623) * update tests since debian9 support ended * update tests since debian9 support ended * Added support for updated Reserved IP behavior to existing resources (instance, network_ips) (#610) * added reserved field to InstanceIP struct for IP Reservation response * Reserved IP resource for handling IP reservation API's * Added integration test covering multiple scenarios of reserving IP addresses * The fixture files for different scenarios of IP Reservation - EndToEnd, InsuffecientPermission, ReserveIP, GetReservedIP, getReservedIPs, DeleteReservedIPs * Updated the fixture files with responses after the user has permissions to reserve IP * Changed the error message to relay invalid token for insufficient permission tests * Updated the error message for Insufficient Permission tests to display appropriate error message along with code * Made changes to Delete, List, Get, Reserve, EndtoEnd fixtures to record user with adequate permissions * changed variable name from id to address to keep it consistent with other functions * Made changes to variable names, achanged logf statements to errorf and fatalf wherever necessary * changed fixture file names to improve consistency, re-recorded fixtures with latest error messages * removed debugging fmt statement * Made changes to reserve IP addresses before listing them using fitler feature. Removed for loop to reserve IPs till limit is reached. * uncommenting unaffected tests * Made changes to error messages, added mandatory checks and re-recorded fixtures to reflect new error messages * Added new middleware system (#571) * build(deps): bump golang.org/x/oauth2 from 0.22.0 to 0.23.0 (#574) * build(deps): bump golang.org/x/oauth2 from 0.22.0 to 0.23.0 Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.22.0 to 0.23.0. - [Commits](golang/oauth2@v0.22.0...v0.23.0) --- updated-dependencies: - dependency-name: golang.org/x/oauth2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Ran make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: ezilber-akamai <[email protected]> * build(deps): bump golang.org/x/text from 0.17.0 to 0.18.0 (#575) * build(deps): bump golang.org/x/text from 0.17.0 to 0.18.0 Bumps [golang.org/x/text](https://github.com/golang/text) from 0.17.0 to 0.18.0. - [Release notes](https://github.com/golang/text/releases) - [Commits](golang/text@v0.17.0...v0.18.0) --- updated-dependencies: - dependency-name: golang.org/x/text dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ye Chen <[email protected]> * new: Add support LKE, Volume, NodeBalancer, and network transfer pricing endpoints (#573) * Add LKE types endpoints * Support base struct; add NB types endpoints * Add volume types * Add network transfer prices * Add price and region price structs * Revert IPv6 fixtures * Add missing fixtures * Add test case for ip limit exceed * add cleanup for TestReservedIPAddresses_ExceedLimit * added interactions to fixture and changed the ecpected error message * Added note indicating feature is currently not available to all users * added support for creating a linode with reserved IP address along with associated tests * Added support for adding additional reserved IP to linodes along with the corresponding tests and fixtures * added ipv4 field in the InstanceCreateOptions struct * moved InstanceReservedIPOptions and the method to AddReservedIPToInsatance to instance_ips.go * Split the variants tests of createInstanceWithReservedIP into individual test funcitons and removed debugging log statements * Re-recorded fixtures after splitting variants test into individual test functions, made changes to error messages * added teardown funcitnality to handle accidental instance creations * removed unnecessary defer keyword from test functions * moved tests related to creating a linode with reserved IP and adding additonal reserved IPs to a linode to a separate file * Removing the sensitive token from the previous commit * made changes to maintain consistency and improve readability * added tests for deletion of linode created with reserved IP address * added test for verifying the status of the reserved field when listing addresses of a linode * Added support for existing resources to support reserved IP feature and corresponding tests * Updated fixtures with required interactions for reserved IP feature and recorded new ones for allocating and assigning reserved IPs * changed the name of the test function to keeop it more succinct * setting reserved as an optional field * Made change to make reserved a part of the update IP address functionality * Removed test for exceeding IP MAX and changed the type of the reserved field in the IPAddressUpdateOptions struct * Changed struct name from LinodeReserveIPOptions to AllocateReserveIPOptions --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Erik Zilber <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ye Chen <[email protected]> Co-authored-by: Lena Garber <[email protected]> Co-authored-by: ykim-1 <[email protected]> Co-authored-by: Zhiwei Liang <[email protected]> * build(deps): bump github.com/go-resty/resty/v2 from 2.16.1 to 2.16.2 (#629) * build(deps): bump github.com/go-resty/resty/v2 from 2.16.1 to 2.16.2 Bumps [github.com/go-resty/resty/v2](https://github.com/go-resty/resty) from 2.16.1 to 2.16.2. - [Release notes](https://github.com/go-resty/resty/releases) - [Commits](go-resty/resty@v2.16.1...v2.16.2) --- updated-dependencies: - dependency-name: github.com/go-resty/resty/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zhiwei Liang <[email protected]> Co-authored-by: Zhiwei Liang <[email protected]> Co-authored-by: Jacob Riddle <[email protected]> * build(deps): bump slackapi/slack-github-action from 1.27.0 to 2.0.0 (#619) * build(deps): bump slackapi/slack-github-action from 1.27.0 to 2.0.0 Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 1.27.0 to 2.0.0. - [Release notes](https://github.com/slackapi/slack-github-action/releases) - [Commits](slackapi/slack-github-action@v1.27.0...v2.0.0) --- updated-dependencies: - dependency-name: slackapi/slack-github-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * fix payloads * fix smoke test --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jacob Riddle <[email protected]> Co-authored-by: ykim-1 <[email protected]> Co-authored-by: Youjung Kim <[email protected]> * doc: Remove Image Services Gen2 LA notice (#628) * remove la * oops * build(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 (#631) * build(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.9.0 to 1.10.0. - [Release notes](https://github.com/stretchr/testify/releases) - [Commits](stretchr/testify@v1.9.0...v1.10.0) --- updated-dependencies: - dependency-name: github.com/stretchr/testify dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zhiwei Liang <[email protected]> Co-authored-by: Zhiwei Liang <[email protected]> * build(deps): bump golang.org/x/oauth2 from 0.23.0 to 0.24.0 (#608) * build(deps): bump golang.org/x/oauth2 from 0.23.0 to 0.24.0 Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.23.0 to 0.24.0. - [Commits](golang/oauth2@v0.23.0...v0.24.0) --- updated-dependencies: - dependency-name: golang.org/x/oauth2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zhiwei Liang <[email protected]> * build(deps): bump golang.org/x/net from 0.30.0 to 0.31.0 (#614) * build(deps): bump golang.org/x/net from 0.30.0 to 0.31.0 Bumps [golang.org/x/net](https://github.com/golang/net) from 0.30.0 to 0.31.0. - [Commits](golang/net@v0.30.0...v0.31.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zhiwei Liang <[email protected]> * doc: add info for kubeconfig as base64 (#607) Co-authored-by: Zhiwei Liang <[email protected]> * Added support for missing User-related fields (#622) * Added support for missing user fields * Reran GetMonthlyTransfer fixture * Add hardware type and linode label fields to volume struct (#604) * Add hardware type and linode label fields to volume struct * Update tests * build(deps): bump golang.org/x/text from 0.20.0 to 0.21.0 (#638) * build(deps): bump golang.org/x/text from 0.20.0 to 0.21.0 Bumps [golang.org/x/text](https://github.com/golang/text) from 0.20.0 to 0.21.0. - [Release notes](https://github.com/golang/text/releases) - [Commits](golang/text@v0.20.0...v0.21.0) --- updated-dependencies: - dependency-name: golang.org/x/text dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ye Chen <[email protected]> * build(deps): bump golang.org/x/net from 0.31.0 to 0.32.0 (#637) * build(deps): bump golang.org/x/net from 0.31.0 to 0.32.0 Bumps [golang.org/x/net](https://github.com/golang/net) from 0.31.0 to 0.32.0. - [Commits](golang/net@v0.31.0...v0.32.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zhiwei Liang <[email protected]> * Updated migrations field to be pointer (#639) * Added support for missing Service Transfer related endpoints (#632) * Added support for service transfers * Fix lint * Reran GetMonthlyTransfer fixture * Added support for missing Obj-related endpoints (#634) * Added missing obj related endpoints * Fix lint * Added unit test * Fixed time format to match API response * Reran GetMonthlyTransfer fixture * Addressed PR comments * Ran make tidy * add account test coverage (#636) * new: Introduce UpdateIPAddressV2; deprecate UpdateIPAddress (#641) * Introduce UpdateIPAddressV2; deprecate UpdateIPAddress * Update fixtures * Add advanced CodeQL and dependencies review workflows (#640) * NewClient panics if http.client is nil and LINODE_CA is set (#635) I tried a new linodego with a custom CA and a nil HTTP client and encountered a panic. Co-authored-by: Zhiwei Liang <[email protected]> * build(deps): bump golang.org/x/net from 0.32.0 to 0.33.0 (#646) * build(deps): bump golang.org/x/net from 0.32.0 to 0.33.0 Bumps [golang.org/x/net](https://github.com/golang/net) from 0.32.0 to 0.33.0. - [Commits](golang/net@v0.32.0...v0.33.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zhiwei Liang <[email protected]> Co-authored-by: Erik Zilber <[email protected]> * Support DBaaS V2.0 (#633) * Implemented changes for DBaaS v2.0 and added deprecation notices * Added fork field to ManagedDB struct * Addressed PR comments * Addressed more PR comments * build(deps): bump golang.org/x/net from 0.33.0 to 0.34.0 (#650) * build(deps): bump golang.org/x/net from 0.33.0 to 0.34.0 Bumps [golang.org/x/net](https://github.com/golang/net) from 0.33.0 to 0.34.0. - [Commits](golang/net@v0.33.0...v0.34.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy * Update the fixture --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lena Garber <[email protected]> Co-authored-by: Zhiwei Liang <[email protected]> * build(deps): bump golang.org/x/oauth2 from 0.24.0 to 0.25.0 (#648) * build(deps): bump golang.org/x/oauth2 from 0.24.0 to 0.25.0 Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.24.0 to 0.25.0. - [Commits](golang/oauth2@v0.24.0...v0.25.0) --- updated-dependencies: - dependency-name: golang.org/x/oauth2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zhiwei Liang <[email protected]> * Remove unnecessary permissions (#643) * Add unit test coverage for Type, Vlan and Tag related methods/functions (#647) * types_unit_tests * vlan_tests * unit_test_tag * address_PR_comments * fix * fix lint * VPU Support (#645) ## 📝 Description **What does this PR do and why is this change necessary?** Adds `AcceleratedDevices` to `Instnace.Stats` and `GET linode/types` Also adds `NETINT Quadra T1U` Capability enum. ## ✔️ How to Test **How do I run the relevant unit/integration tests?** ``` make fixtures ARGS="-run TestInstance_withVPU" ``` * Support `tier` field for LKE-E (#651) * Support tier field for LKE-E * Reran fixture for failing test * build(deps): bump github.com/go-resty/resty/v2 from 2.16.2 to 2.16.3 (#653) * build(deps): bump github.com/go-resty/resty/v2 from 2.16.2 to 2.16.3 Bumps [github.com/go-resty/resty/v2](https://github.com/go-resty/resty) from 2.16.2 to 2.16.3. - [Release notes](https://github.com/go-resty/resty/releases) - [Commits](go-resty/resty@v2.16.2...v2.16.3) --- updated-dependencies: - dependency-name: github.com/go-resty/resty/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ye Chen <[email protected]> * Add support for object storage services gen2 (#649) * rfc: doPOSTRequestNoResponseBody (#654) Co-authored-by: Ye Chen <[email protected]> * Add unit test coverage for Stackscripts, Database and Region related methods/functions (#652) * unit_tests * add_test * database_tests * test/workflow: Update make test commands and related workflows (#657) * update make test commands and workflows * add TEST_ARGS to unit and integration test commands * roll back boto3 version for test report upload * Added missign db-related fields (#659) * remove unnecessary TEST_ARGS (#664) * build(deps): bump github.com/go-resty/resty/v2 from 2.16.3 to 2.16.5 (#662) * build(deps): bump github.com/go-resty/resty/v2 from 2.16.3 to 2.16.5 Bumps [github.com/go-resty/resty/v2](https://github.com/go-resty/resty) from 2.16.3 to 2.16.5. - [Release notes](https://github.com/go-resty/resty/releases) - [Commits](go-resty/resty@v2.16.3...v2.16.5) --- updated-dependencies: - dependency-name: github.com/go-resty/resty/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zhiwei Liang <[email protected]> Co-authored-by: Zhiwei Liang <[email protected]> * Checking for DefaultTransport in NewClient (#663) * new tests * do not compare against defaulttransport * Add unit test coverage for Volume,Volume types and Longview related methods/functions (#661) * unit_tests * add_test * database_tests * volume_unittests * fix * fix * longview_tests * fix int_test * Reformatted endpoint functions to simplify them (#668) * add domain and domain record unit test coverage (#656) * build(deps): bump crazy-max/ghaction-github-labeler from 5.1.0 to 5.2.0 (#667) Bumps [crazy-max/ghaction-github-labeler](https://github.com/crazy-max/ghaction-github-labeler) from 5.1.0 to 5.2.0. - [Release notes](https://github.com/crazy-max/ghaction-github-labeler/releases) - [Commits](crazy-max/ghaction-github-labeler@b54af0c...31674a3) --- updated-dependencies: - dependency-name: crazy-max/ghaction-github-labeler dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lena Garber <[email protected]> Co-authored-by: Jacob Riddle <[email protected]> * build(deps): bump golang.org/x/oauth2 from 0.25.0 to 0.26.0 (#672) * build(deps): bump golang.org/x/oauth2 from 0.25.0 to 0.26.0 Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.25.0 to 0.26.0. - [Commits](golang/oauth2@v0.25.0...v0.26.0) --- updated-dependencies: - dependency-name: golang.org/x/oauth2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lena Garber <[email protected]> Co-authored-by: Zhiwei Liang <[email protected]> * remove deprecated Cluster variable in tests (#666) * Allow to enable LKE APL (#665) * apl enable * lint * nit * Enforce code format for tests (#660) * Enforce code format including tests * Format existing tests * gofumpt * gofumpt * build(deps): bump golang.org/x/text from 0.21.0 to 0.22.0 (#671) * build(deps): bump golang.org/x/text from 0.21.0 to 0.22.0 Bumps [golang.org/x/text](https://github.com/golang/text) from 0.21.0 to 0.22.0. - [Release notes](https://github.com/golang/text/releases) - [Commits](golang/text@v0.21.0...v0.22.0) --- updated-dependencies: - dependency-name: golang.org/x/text dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ye Chen <[email protected]> Co-authored-by: Ye Chen <[email protected]> Co-authored-by: Zhiwei Liang <[email protected]> * build(deps): bump golang.org/x/net from 0.34.0 to 0.35.0 (#677) * build(deps): bump golang.org/x/net from 0.34.0 to 0.35.0 Bumps [golang.org/x/net](https://github.com/golang/net) from 0.34.0 to 0.35.0. - [Commits](golang/net@v0.34.0...v0.35.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ye Chen <[email protected]> * Add firewall, firewall rule, and firewall device unit tests (#679) * add firewall, firewall rule, firewall device unit tests * fixing git diff * lint * Add unit test coverage for VPC related methods/functions (#673) * vpc_tests * update_testname * fix * fix_format * Add unit test coverage for Network related methods/functions (#670) * network tests * modified_names * fix_format * Add unit test coverage for Nodebalancers related methods/functions (#682) * node_test * node_tests * Support LKE tier version (#676) * support tier * nit * nit * fmt * Remove LKE ACL LA notices (#684) * Nodebalancer VPC support (#678) * Adding the funcs for the List VPC and Get VPC for Nodebalancers endpoints * Adding test cases - they don't work until we update some nodebalancer funcs to allow creation of nb with vpc options * IPv6 can sometime be empty so adding omiempty here * add vpcs config during nodebalancer create * update node config as well * add nb vpc test * Adding records for fixtures * add generated fixtures * fix cleanup failures * Update the fixture for nb vpc list and get * fix formatting * Update nodebalancer_config_vpc.go Co-authored-by: Lena Garber <[email protected]> * Fix naming * Adding disclaimer for letting users know this might not be available to everyone * Remove use of pointers with VPC options --------- Co-authored-by: Rahul Sharma <[email protected]> Co-authored-by: Lena Garber <[email protected]> Co-authored-by: Zhiwei Liang <[email protected]> * build(deps): bump github.com/google/go-cmp from 0.6.0 to 0.7.0 (#685) * build(deps): bump github.com/google/go-cmp from 0.6.0 to 0.7.0 Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp) from 0.6.0 to 0.7.0. - [Release notes](https://github.com/google/go-cmp/releases) - [Commits](google/go-cmp@v0.6.0...v0.7.0) --- updated-dependencies: - dependency-name: github.com/google/go-cmp dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Ran make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: ezilber-akamai <[email protected]> Co-authored-by: Jacob Riddle <[email protected]> * Add unit test coverage for Object Storage and LKE related methods/functions (#683) * obj_test * obj_tests * Add images unit test coverage (#687) * add unit tests on images * add delete unit test * lint * add support for the type field when creating nodebalancers (#669) * Added support for DBaaS suspend/resume (#680) * Added support for DBaaS suspend/resume * Added unit tests * Add comments * Nodebalancer Config Changes for VPC integration (#689) * Adding the funcs for the List VPC and Get VPC for Nodebalancers endpoints * Adding test cases - they don't work until we update some nodebalancer funcs to allow creation of nb with vpc options * IPv6 can sometime be empty so adding omiempty here * add vpcs config during nodebalancer create * update node config as well * add nb vpc test * Adding records for fixtures * add generated fixtures * fix cleanup failures * Update the fixture for nb vpc list and get * fix formatting * Update nodebalancer_config_vpc.go Co-authored-by: Lena Garber <[email protected]> * Fix naming * Nodebalancer VPC config support * Add a integration test for testing the rebuild nodebalancer config endpoint * Fixing how region was selected for the new test * Adding disclaimer for letting users know this might not be available to everyone * Remove use of pointers with VPC options * Add some more integration test cases for nodebalancer node config methods * Lint fix * removing omitempty for VPCConfigID --------- Co-authored-by: Rahul Sharma <[email protected]> Co-authored-by: Lena Garber <[email protected]> * build(deps): bump golang.org/x/oauth2 from 0.26.0 to 0.27.0 (#688) * build(deps): bump golang.org/x/oauth2 from 0.26.0 to 0.27.0 Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.26.0 to 0.27.0. - [Commits](golang/oauth2@v0.26.0...v0.27.0) --- updated-dependencies: - dependency-name: golang.org/x/oauth2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Ran make tidy * Ran go work use --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: ezilber-akamai <[email protected]> Co-authored-by: Zhiwei Liang <[email protected]> * instance_tests (#690) * fix tier version url (#691) * build(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#694) * build(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 Bumps [golang.org/x/text](https://github.com/golang/text) from 0.22.0 to 0.23.0. - [Release notes](https://github.com/golang/text/releases) - [Commits](golang/text@v0.22.0...v0.23.0) --- updated-dependencies: - dependency-name: golang.org/x/text dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Ran make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: ezilber-akamai <[email protected]> * build(deps): bump golang.org/x/net from 0.35.0 to 0.36.0 (#692) * build(deps): bump golang.org/x/net from 0.35.0 to 0.36.0 Bumps [golang.org/x/net](https://github.com/golang/net) from 0.35.0 to 0.36.0. - [Commits](golang/net@v0.35.0...v0.36.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ye Chen <[email protected]> Co-authored-by: Youjung Kim <[email protected]> * build(deps): bump golang.org/x/oauth2 from 0.27.0 to 0.28.0 (#693) * build(deps): bump golang.org/x/oauth2 from 0.27.0 to 0.28.0 Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.27.0 to 0.28.0. - [Commits](golang/oauth2@v0.27.0...v0.28.0) --- updated-dependencies: - dependency-name: golang.org/x/oauth2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ye Chen <[email protected]> Co-authored-by: Youjung Kim <[email protected]> * build(deps): bump golang.org/x/net from 0.36.0 to 0.37.0 (#695) * build(deps): bump golang.org/x/net from 0.36.0 to 0.37.0 Bumps [golang.org/x/net](https://github.com/golang/net) from 0.36.0 to 0.37.0. - [Commits](golang/net@v0.36.0...v0.37.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Ran make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: ezilber-akamai <[email protected]> * profile_tests (#698) * build(deps): bump crazy-max/ghaction-github-labeler from 5.2.0 to 5.3.0 (#704) Bumps [crazy-max/ghaction-github-labeler](https://github.com/crazy-max/ghaction-github-labeler) from 5.2.0 to 5.3.0. - [Release notes](https://github.com/crazy-max/ghaction-github-labeler/releases) - [Commits](crazy-max/ghaction-github-labeler@31674a3...24d110a) --- updated-dependencies: - dependency-name: crazy-max/ghaction-github-labeler dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Support new fields for LKE-E node pool (#701) * lke-e node pool * lint * build(deps): bump golangci/golangci-lint-action from 6 to 7 (#705) * build(deps): bump golangci/golangci-lint-action from 6 to 7 Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6 to 7. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](golangci/golangci-lint-action@v6...v7) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * golangci-lint migrate --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zhiwei Liang <[email protected]> Co-authored-by: Zhiwei Liang <[email protected]> * Added DB Resize event (#708) * update k8sversion for LKE-E test (#707) Co-authored-by: Ye Chen <[email protected]> * build(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 (#703) * build(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 Bumps [golang.org/x/net](https://github.com/golang/net) from 0.37.0 to 0.38.0. - [Commits](golang/net@v0.37.0...v0.38.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ye Chen <[email protected]> Co-authored-by: Zhiwei Liang <[email protected]> * Add option to disable cloud firewall when running integration tests (#712) * add environment variable option to disable cfw * update backup disk size * update backup disk size * build(deps): bump github.com/jarcoal/httpmock from 1.3.1 to 1.4.0 (#710) * build(deps): bump github.com/jarcoal/httpmock from 1.3.1 to 1.4.0 Bumps [github.com/jarcoal/httpmock](https://github.com/jarcoal/httpmock) from 1.3.1 to 1.4.0. - [Release notes](https://github.com/jarcoal/httpmock/releases) - [Commits](jarcoal/httpmock@v1.3.1...v1.4.0) --- updated-dependencies: - dependency-name: github.com/jarcoal/httpmock dependency-version: 1.4.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Ran make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: ezilber-akamai <[email protected]> * Update LDE capability name and tests (#718) * update lde capability name and tests * Fix failing fixture * Fix failing fixture * Fix failing fixture * Fix lint (#719) * build(deps): bump golang.org/x/net from 0.38.0 to 0.39.0 (#716) * build(deps): bump golang.org/x/net from 0.38.0 to 0.39.0 Bumps [golang.org/x/net](https://github.com/golang/net) from 0.38.0 to 0.39.0. - [Commits](golang/net@v0.38.0...v0.39.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-version: 0.39.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Ran make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: ezilber-akamai <[email protected]> Co-authored-by: Zhiwei Liang <[email protected]> * build(deps): bump golang.org/x/oauth2 from 0.28.0 to 0.29.0 (#709) * build(deps): bump golang.org/x/oauth2 from 0.28.0 to 0.29.0 Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.28.0 to 0.29.0. - [Commits](golang/oauth2@v0.28.0...v0.29.0) --- updated-dependencies: - dependency-name: golang.org/x/oauth2 dependency-version: 0.29.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zhiwei Liang <[email protected]> * Create v2 monthly transfer struct and function with 64 bits variables (#713) * Create v2 monthly transfer struct and function with 64 bits variables * Add test * Clean up * Fix test * Add LA Disk Encryption Capability (#730) * Adding ACLP monitor APIs (#722) * Adding ACLP monitor APIs * updating variables names to avoid potential conflicting names * updating variables names to avoid potential conflicting names * updating variables names to avoid potential conflicting names * Update monitor_dashboards.go Co-authored-by: Ye Chen <[email protected]> * Update monitor_dashboards.go Co-authored-by: Lena Garber <[email protected]> * updated names for metric-definitions unit types * updating variables names to avoid potential conflicting names * updating variables names to avoid potential conflicting names --------- Co-authored-by: Ye Chen <[email protected]> Co-authored-by: Lena Garber <[email protected]> * Skip monthly transfer v1 test on 32 bits systems (#725) * Update monthly transfer test fixture (#739) * build(deps): bump golangci/golangci-lint-action from 7 to 8 (#737) Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 7 to 8. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](golangci/golangci-lint-action@v7...v8) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zhiwei Liang <[email protected]> * Project: Limits Visibility M1 (#738) * Support Object Storage quota limits visibility (#717) * obj quota * fmt * address comment * Add obj storage quotas integration tests (#732) * add obj storage quotas tests * format --------- Co-authored-by: Ye Chen <[email protected]> --------- Co-authored-by: Youjung Kim <[email protected]> * build(deps): bump golang.org/x/net from 0.39.0 to 0.40.0 (#743) * build(deps): bump golang.org/x/net from 0.39.0 to 0.40.0 Bumps [golang.org/x/net](https://github.com/golang/net) from 0.39.0 to 0.40.0. - [Commits](golang/net@v0.39.0...v0.40.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-version: 0.40.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zhiwei Liang <[email protected]> Co-authored-by: Zhiwei Liang <[email protected]> * build(deps): bump golang.org/x/oauth2 from 0.29.0 to 0.30.0 (#745) * build(deps): bump golang.org/x/oauth2 from 0.29.0 to 0.30.0 Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.29.0 to 0.30.0. - [Commits](golang/oauth2@v0.29.0...v0.30.0) --- updated-dependencies: - dependency-name: golang.org/x/oauth2 dependency-version: 0.30.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zhiwei Liang <[email protected]> * build(deps): bump slackapi/slack-github-action from 2.0.0 to 2.1.0 (#747) Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 2.0.0 to 2.1.0. - [Release notes](https://github.com/slackapi/slack-github-action/releases) - [Commits](slackapi/slack-github-action@v2.0.0...v2.1.0) --- updated-dependencies: - dependency-name: slackapi/slack-github-action dependency-version: 2.1.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add lke versions helper and update tests (#748) * add test helper and update tests * increase timeout for smoke and int tests * update fixtures * Fix setupInstanceFirewall for accounts with default firewall (#741) * Fix tag for LKE control plane ACL revision ID field (#749) * Fix attribute name for LKE control plane ACL revision ID * Remove unnecessary omitempty * Fix unit test fixtures * Regenerate the fixture for TestLKECluster_withACL * fix: update MigratingTo field to accept int or null (#736) * fix: MigratingTo field to accept int or null The Linode API returns either an Integer or `null` for this field. * Bump test image version * Update the test fixture for MigrateTo * Update the test fixture for InstanceGet test case * Update the test fixture for list instances test * Remove unnecessary override as the availability has been expanded * fix unit test fixtures * Fix unit test --------- Co-authored-by: Zhiwei Liang <[email protected]> Co-authored-by: Zhiwei Liang <[email protected]> * Drop v4beta and LA notice for Limits Visibility (#752) * ACLP: updating variable type for entity_ids for different service_types (#746) * updating variable type for entity_ids for different service_types * update tests and comments * revert go.work.sum * Updated comment for lint issues --------- Co-authored-by: Ye Chen <[email protected]> * Project: Configurable DB Params (#755) * Added support for Configurable DB Params (#714) * Added support and unit tests for new config endpoints * Added support and unit tests for changes to DB get, create, and update endpoints * Fix lint * Added missing omitempty * Removed invalid fields from Configurable DB changes (#729) * Removed stale fields * Fix lint * Add integration tests for Configurable DB Params (#728) * Add database engine config test cases * remove prints * lint * removing invalid fields * add negative test case * address assertion failures * add fixtures * remove invalid fields in assertions * Allow nullable DB Engine Config fields to be set to explicit null values (#742) * Allow nullable fields to be set to explicit null value * Fix int tests * adding test cases * update password_encryption pointer * update test fixtures and order * update test fixtures and order * rename test * add fixture --------- Co-authored-by: Youjung Kim <[email protected]> * Updated type for modified fields (#750) * Updated type for changed fields * remove pg13 negative test case --------- Co-authored-by: Youjung Kim <[email protected]> --------- Co-authored-by: Youjung Kim <[email protected]> Co-authored-by: Youjung Kim <[email protected]> * Add support to auto-allocate ipv4 addrs from range specified (#756) * add support to auto-allocate ipv4 addrs from range specified * Update fixtures * Remove stale fixture --------- Co-authored-by: Lena Garber <[email protected]> * project: UDP NodeBalancers (#751) * Add support for NodeBalancers UDP (#630) * WIP * Finish up * Add integration tests * Add NB unit test * Add config unit test * Replace TODO * Render fixtures * Re-render unrelated fixture * Merge main into proj/nb-udp * Updated GetCreateOptions to handle 0 udpCheckPort * Added LA notices * Fix lint * Reran fixtures --------- Co-authored-by: Lena Garber <[email protected]> Co-authored-by: Lena Garber <[email protected]> * Deprecate MarkEventRead function (#753) * Deprecate MarkEventRead API * Update fixtures * Fix in-line doc for `UpdateInstance` function (#761) Co-authored-by: Zhiwei Liang <[email protected]> * UseURL should require host and scheme (#758) ## 📝 Description **What does this PR do and why is this change necessary?** Calling `UseURL` with `foo.bar.com` results in the client being configured with `api.linode.com` silently, because `foo.bar.com` (without a scheme) gets parsed into a URL object, where `foo.bar.com` **is the path** (and [everything else is empty](https://go.dev/play/p/olSNQ3JLVuO)), which is then **ignored** by our implementation: https://github.com/linode/linodego/blob/0bb8fc2ae35f2c4a60ff7a549db141335d30c1af/client.go#L535-L539 Since we're leveraging just the Host and Scheme portions of the URL object, I introduced a check for these values. Also added tests to cover various scenarios. (Note that I not only converted existing UseURL tests to a single table test, but I also changed the logic where I now test against `c.resty.BaseURL`, which is the URL actually used for making requests - it originally tested against `c.baseURL`, which can be misleading.) ## ✔️ How to Test **What are the steps to reproduce the issue or verify the changes?** Run the following before checking out the changes from this PR: ```go package main import ( "context" "log" "github.com/linode/linodego" ) func main() { client := linodego.NewClient(nil) // This is intentionally set to an invalid URL if _, err := client.UseURL("api.test1.linode.com/v4beta"); err != nil { log.Fatal(err) } if _, err := client.ListInstances(context.Background(), nil); err != nil { log.Fatal(err) } } ``` You'd be greeted with a `[401] Invalid Token`, even though you think you're accessing a non-existent endpoint. It's actually contacting production. Check out the PR and try again, you'll be met with `need both scheme and host in API URL, got "api.test1.linode.com/v4beta"` **How do I run the relevant unit/integration tests?** As usual, I just added a few unit tests. * Add `DoublePointer` helper function (#764) * build(deps): bump golang.org/x/net from 0.40.0 to 0.41.0 (#766) * build(deps): bump golang.org/x/net from 0.40.0 to 0.41.0 Bumps [golang.org/x/net](https://github.com/golang/net) from 0.40.0 to 0.41.0. - [Commits](golang/net@v0.40.0...v0.41.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-version: 0.41.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ye Chen <[email protected]> * build(deps): bump golang.org/x/text from 0.25.0 to 0.26.0 (#767) * build(deps): bump golang.org/x/text from 0.25.0 to 0.26.0 Bumps [golang.org/x/text](https://github.com/golang/text) from 0.25.0 to 0.26.0. - [Release notes](https://github.com/golang/text/releases) - [Commits](golang/text@v0.25.0...v0.26.0) --- updated-dependencies: - dependency-name: golang.org/x/text dependency-version: 0.26.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * make tidy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ye Chen <[email protected]> Co-authored-by: Jacob Riddle <[email protected]> * Fix unit tests * Fix int tests and lint * Fix funcorder --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Ye Chen <[email protected]> Co-authored-by: Youjung Kim <[email protected]> Co-authored-by: AniJ98 <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ye Chen <[email protected]> Co-authored-by: Lena Garber <[email protected]> Co-authored-by: ykim-1 <[email protected]> Co-authored-by: Zhiwei Liang <[email protected]> Co-authored-by: Zhiwei Liang <[email protected]> Co-authored-by: Jacob Riddle <[email protected]> Co-authored-by: Guilhem Lettron <[email protected]> Co-authored-by: Ondrej Kokes <[email protected]> Co-authored-by: Lena Garber <[email protected]> Co-authored-by: Vinay <[email protected]> Co-authored-by: Khaja Omer <[email protected]> Co-authored-by: Rahul Sharma <[email protected]> Co-authored-by: Evan <[email protected]> Co-authored-by: rbajoria26 <[email protected]> Co-authored-by: Cody Kaczynski <[email protected]> Co-authored-by: Rahul Sharma <[email protected]> Co-authored-by: rammanoj <[email protected]>
1 parent de32ba0 commit b95f4ca

File tree

402 files changed

+66388
-13427
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

402 files changed

+66388
-13427
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,18 @@ jobs:
1717
go-version: stable
1818

1919
- name: golangci-lint
20-
uses: golangci/golangci-lint-action@v6
20+
uses: golangci/golangci-lint-action@v8
2121
with:
2222
version: latest
2323

2424
- name: Run tidy
2525
run: make tidy
2626

27+
- name: Run formatter
28+
run: |
29+
go install mvdan.cc/gofumpt@86bffd62437a3c437c0b84d5d5ab244824e762fc
30+
gofumpt -l -w .
31+
2732
- name: Fail if changes
2833
run: git diff-index --exit-code HEAD
2934

@@ -85,7 +90,7 @@ jobs:
8590

8691
steps:
8792
- name: Notify Slack
88-
uses: slackapi/slack-github-action@v2.0.0
93+
uses: slackapi/slack-github-action@v2.1.0
8994
with:
9095
method: chat.postMessage
9196
token: ${{ secrets.SLACK_BOT_TOKEN }}

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/checkout@v4
2222
-
2323
name: Run Labeler
24-
uses: crazy-max/ghaction-github-labeler@31674a3852a9074f2086abcf1c53839d466a47e7
24+
uses: crazy-max/ghaction-github-labeler@24d110aa46a59976b8a7f35518cb7f14f434c916
2525
with:
2626
github-token: ${{ secrets.GITHUB_TOKEN }}
2727
yaml-file: .github/labels.yml

.github/workflows/nightly_smoke_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
- name: Notify Slack
4040
if: (success() || failure()) && github.repository == 'linode/linodego'
41-
uses: slackapi/slack-github-action@v2.0.0
41+
uses: slackapi/slack-github-action@v2.1.0
4242
with:
4343
method: chat.postMessage
4444
token: ${{ secrets.SLACK_BOT_TOKEN }}

.github/workflows/release-notify-slack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Notify Slack - Main Message
13-
uses: slackapi/slack-github-action@v2.0.0
13+
uses: slackapi/slack-github-action@v2.1.0
1414
with:
1515
method: chat.postMessage
1616
token: ${{ secrets.SLACK_BOT_TOKEN }}

.golangci.yml

Lines changed: 71 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,85 @@
1+
version: "2"
12
run:
23
tests: false
3-
4-
linters-settings:
5-
errcheck:
6-
check-type-assertions: true
7-
check-blank: true
8-
9-
govet:
10-
enable:
11-
- atomicalign
12-
- shadow
13-
enable-all: false
14-
disable-all: false
15-
gocyclo:
16-
min-complexity: 30
17-
gocognit:
18-
min-complexity: 30
19-
dupl:
20-
threshold: 100
21-
224
linters:
23-
enable-all: true
5+
default: all
246
disable:
25-
# deprecated linters
26-
- exportloopref
27-
####################
28-
29-
# conflicted with go fmt
30-
- nolintlint
31-
32-
# workaround to avoid linter failures of getting malformed json
33-
- musttag
34-
35-
- err113
36-
377
- bodyclose
388
- contextcheck
39-
- nilerr
40-
- noctx
41-
- rowserrcheck
42-
- sqlclosecheck
43-
- tparallel
9+
- cyclop
10+
- depguard
11+
- dupl
12+
- durationcheck
13+
- err113
14+
- errcheck
4415
- errname
16+
- errorlint
17+
- exhaustive
18+
- exhaustruct
4519
- forcetypeassert
20+
- gochecknoglobals
21+
- gochecknoinits
4622
- gocyclo
47-
- unparam
48-
- nakedret
49-
- lll
50-
- dupl
23+
- godot
5124
- gosec
52-
- gochecknoinits
53-
- gochecknoglobals
54-
- exhaustruct
25+
- inamedparam
26+
- lll
27+
- musttag
28+
- nakedret
29+
- nilerr
30+
- nlreturn
31+
- noctx
32+
- nolintlint
5533
- nonamedreturns
56-
- errcheck
34+
- perfsprint
35+
- recvcheck
36+
- rowserrcheck
37+
- sqlclosecheck
5738
- staticcheck
58-
- stylecheck
59-
- wsl
60-
- varnamelen
39+
- tagalign
6140
- tagliatelle
62-
- nlreturn
63-
- wrapcheck
41+
- tparallel
42+
- unparam
43+
- varnamelen
6444
- wastedassign
65-
- durationcheck
66-
- errorlint
67-
- cyclop
68-
- godot
69-
- exhaustive
70-
- depguard
71-
- tagalign
72-
- inamedparam
73-
- perfsprint
74-
- recvcheck
75-
fast: false
45+
- wrapcheck
46+
- wsl
47+
settings:
48+
dupl:
49+
threshold: 100
50+
errcheck:
51+
check-type-assertions: true
52+
check-blank: true
53+
gocognit:
54+
min-complexity: 30
55+
gocyclo:
56+
min-complexity: 30
57+
govet:
58+
enable:
59+
- atomicalign
60+
- shadow
61+
enable-all: false
62+
disable-all: false
63+
exclusions:
64+
generated: lax
65+
presets:
66+
- comments
67+
- common-false-positives
68+
- legacy
69+
- std-error-handling
70+
paths:
71+
- third_party$
72+
- builtin$
73+
- examples$
74+
formatters:
75+
enable:
76+
- gci
77+
- gofmt
78+
- gofumpt
79+
- goimports
80+
exclusions:
81+
generated: lax
82+
paths:
83+
- third_party$
84+
- builtin$
85+
- examples$

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ BIN_DIR := $(GOPATH)/bin
44
INTEGRATION_DIR := ./test/integration
55
FIXTURES_DIR := $(INTEGRATION_DIR)/fixtures
66

7+
TEST_TAGS := integration
78
TEST_TIMEOUT := 5h
89

910
SKIP_DOCKER ?= 0
@@ -28,7 +29,7 @@ test-unit:
2829
cd test && make test-unit
2930

3031
test-int:
31-
cd test && make test-int
32+
cd test && make test-int TEST_TIMEOUT=$(TEST_TIMEOUT)
3233

3334
testcov-func:
3435
@go test -v -coverprofile="coverage.txt" . > /dev/null 2>&1
@@ -40,7 +41,7 @@ testcov-html:
4041
@go tool cover -html coverage.txt
4142

4243
test-smoke:
43-
cd test && make test-smoke
44+
cd test && make test-smoke TEST_TIMEOUT=$(TEST_TIMEOUT)
4445

4546
build: vet lint
4647
go build ./...
@@ -77,7 +78,7 @@ run_fixtures:
7778
LINODE_API_VERSION="v4beta" \
7879
LINODE_URL="$(LINODE_URL)" \
7980
GO111MODULE="on" \
80-
go test --tags $(TEST_TAGS) -timeout=$(TEST_TIMEOUT) -v $(TEST_ARGS)
81+
go test -timeout=$(TEST_TIMEOUT) -v $(TEST_ARGS)
8182

8283
sanitize:
8384
@echo "* Sanitizing fixtures"

account_events.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ const (
7272
ActionDatabaseDelete EventAction = "database_delete"
7373
ActionDatabaseFailed EventAction = "database_failed"
7474
ActionDatabaseUpdate EventAction = "database_update"
75+
ActionDatabaseResize EventAction = "database_resize"
7576
ActionDatabaseCreateFailed EventAction = "database_create_failed"
7677
ActionDatabaseUpdateFailed EventAction = "database_update_failed"
7778
ActionDatabaseBackupCreate EventAction = "database_backup_create"
@@ -302,6 +303,9 @@ func (c *Client) GetEvent(ctx context.Context, eventID int) (*Event, error) {
302303
}
303304

304305
// MarkEventRead marks a single Event as read.
306+
// Deprecated: `MarkEventRead` is a deprecated API, please consider using `MarkEventsSeen` instead.
307+
// Please note that the `MarkEventsSeen` API functions differently and will mark all events up to and
308+
// including the referenced event-id as "seen" rather than individual events.
305309
func (c *Client) MarkEventRead(ctx context.Context, event *Event) error {
306310
e := formatAPIPath("account/events/%d/read", event.ID)
307311
return doPOSTRequestNoRequestResponseBody(ctx, c, e)

0 commit comments

Comments
 (0)