Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enterprise blobber allocation tests. (#1094)
* go mod tidy * Restricted blobber tests * Changed repo snapshots * Skipped authorizer tests * add owner api calls (#1047) * add owner api calls * fix referral tests * fix fcm, wallet tests * fix shareinfo * fix referral leaderboard, response messages * fix lint * fix lint * Added feature blobber auth tests * Fix API tests create allocation * Updated gosdk * Updated gosdk * Fix * Fix * Fix blobber config update test = * Fix blobber config update cleanup * Fix * Hotfix/0box (#1049) * update headers * remove phone header dependent tests * fix lint * Updated gosdk * fix commit err message (#1052) * fix commit err message * change err msg * Fix * Fix * Fix * Fix * Fix * Fix * Fix lint * Fix * tests to list stakable providers (#1036) * tests to list stakable providers * fix list miner and sharder * apply gofmt * fix getblobbers function parameter * update gosdk version * Update lint version to v1.57.1 ci.yml * Update go version in lint job * Updated gosdk --------- Co-authored-by: shahnawaz-creator <[email protected]> Co-authored-by: Jayash Satolia <[email protected]> * Fix 0box tests with create allocation * fix 0box tests * Empty commit * Fix restricted blobber tests * Update gosdk * Fix sharder config update * fix delete wallet (#1057) * Fixed file format and restricted blobbers test * Fix resume upload * Fix restricted blobbers * fix resume download test (#1058) * Fix restricted blobbers * Fix restricted blobbers * Fix restricted blobbers * added repair allocation with diff file size (#1034) * added repair allocation for diff file size * added repair allocation for diff file size * added repair allocation for diff file size * added repair allocation for diff file size * added repair allocation for diff file size * added repair allocation for diff file size * added repair allocation for diff file size * added repair allocation for diff file size * added TC * added TC * added TC * added TC * added TC * updated timeout to 60 mins * updated timeout to 60 mins * updated pricing plan fetch for non-rzp org IDs * added TC with nested folder * added TC with nested folder * added TC with nested folder * added TC with nested folder * added TC with nested folder * added TC with nested folder * added TC with nested folder * fixed to current sprint branch in tokenomics_ci.yml * Fix current branch for challenge nightly tests workflow * Fix current branch for tokenomics nightly tests workflow * Fix current branch for tokenomics nightly tests workflow --------- Co-authored-by: Jayash Satolia <[email protected]> Co-authored-by: shahnawaz-creator <[email protected]> Co-authored-by: Jayash Satolia <[email protected]> * added test suite for dropbox * test suite for gdrive * updated for workflow * lint fix * changes for dropbox tests * Fix: Issue previous test cases * Added lib * disable lint * Test for mc and zs3server * * Test cases for mc commands and warp benchmarking tool * Test Cases Formatted * updated comment * Added changes * updated readme * Added binary for mc * re * updated for mc * Warp * Added minio * Updated for mc_wrap_test_cases * updated dir config * lint fix * updated cli * Fix failing testcases for PR #1043 (#1077) * Initial TC suite #987 * go mod tidy * Restricted blobber tests * Changed repo snapshots * duplicate file name tc rollback allocation * Skipped authorizer tests * Multiple update and delete * updated multi-file upload tests * Interruped file upload * add owner api calls (#1047) * add owner api calls * fix referral tests * fix fcm, wallet tests * fix shareinfo * fix referral leaderboard, response messages * fix lint * fix lint * Added feature blobber auth tests * Fix API tests create allocation * Updated gosdk * Updated gosdk * Fix * Fix * Fix blobber config update test = * Fix blobber config update cleanup * Fix * Hotfix/0box (#1049) * update headers * remove phone header dependent tests * fix lint * Updated gosdk * fix commit err message (#1052) * fix commit err message * change err msg * Fix * Fix * Fix * Fix * Fix * Fix * Fix lint * Fix * tests to list stakable providers (#1036) * tests to list stakable providers * fix list miner and sharder * apply gofmt * fix getblobbers function parameter * update gosdk version * Update lint version to v1.57.1 ci.yml * Update go version in lint job * Updated gosdk --------- Co-authored-by: shahnawaz-creator <[email protected]> Co-authored-by: Jayash Satolia <[email protected]> * Fix 0box tests with create allocation * fix 0box tests * Empty commit * Fix restricted blobber tests * Update gosdk * Fix sharder config update * fix delete wallet (#1057) * Fixed file format and restricted blobbers test * Fix resume upload * Fix restricted blobbers * fix resume download test (#1058) * Fix restricted blobbers * Fix restricted blobbers * Fix restricted blobbers * added repair allocation with diff file size (#1034) * added repair allocation for diff file size * added repair allocation for diff file size * added repair allocation for diff file size * added repair allocation for diff file size * added repair allocation for diff file size * added repair allocation for diff file size * added repair allocation for diff file size * added repair allocation for diff file size * added TC * added TC * added TC * added TC * added TC * updated timeout to 60 mins * updated timeout to 60 mins * updated pricing plan fetch for non-rzp org IDs * added TC with nested folder * added TC with nested folder * added TC with nested folder * added TC with nested folder * added TC with nested folder * added TC with nested folder * added TC with nested folder * fixed to current sprint branch in tokenomics_ci.yml * Fix current branch for challenge nightly tests workflow * Fix current branch for tokenomics nightly tests workflow * Fix current branch for tokenomics nightly tests workflow --------- Co-authored-by: Jayash Satolia <[email protected]> Co-authored-by: shahnawaz-creator <[email protected]> Co-authored-by: Jayash Satolia <[email protected]> * added test suite for dropbox * test suite for gdrive * updated for workflow * lint fix * changes for dropbox tests * Fix: Issue previous test cases * Added lib * disable lint * add TestRepairSize * add cli tests * update gosdk version * apply gofmt * add remotepath in the file upload for rollback_allocation_after_multiple_files_upload_and_single_file_delete_should_work_wallet test case * nit fix for remotepath in the prev test case fix. * fix remotepath for rollback allocation after multiple files upload and single file update * refactor: assertion in rollback allocation test case. * nit fixes. * nit fixes. * saving file names as they are generated at random from generateFileAndUpload in rollback allocation after multiple files upload and single file delete should work. * added wait groups for file uploads. double allocation rollback as we do 2 file updates in the allocation. * downloading the file after uploading and then getting the checksum. * fix waitgroup for uploading multiple files and delete single file test case. * fix nil map error. * fix test for multiple files upload and single file delete in rollback allocation. * fix test multiple files upload and single file update (updating a file single time now as rollback only restores to the previous state). * remove wait group for updating a large file test. * add test for updating file multiple times and then rolling back. * refactor: updating single files multiple times test case. * refactor: rollback while updating a large file should work. * refactor: rollback while updating a large file should work. * nit fixes. * add some logs * add new testcase involving large file rollback with a small file upload. * removed file removal as this is created on the /tmp dir. * removed file removal as this is created on the /tmp dir. * refactor: assertion for large file test case. * removed unnecessary delay for large files. * refactor: add update small file for large files rollback test. * update gosdk to latest staging. * file uploads are very fast on ci so increased the filesize and decreased wait time for large file uploads. * fix lint errors. * fix lint errors. * nit fixes. * test run --------- Co-authored-by: CristalWilsonLobo <[email protected]> Co-authored-by: Jayash Satolia <[email protected]> Co-authored-by: Sanchit Sharma <[email protected]> Co-authored-by: Hitenjain14 <[email protected]> Co-authored-by: Yury <[email protected]> Co-authored-by: Arun Ramanathan <[email protected]> Co-authored-by: shahnawaz-creator <[email protected]> Co-authored-by: sanchit <[email protected]> Co-authored-by: Jayash Satolia <[email protected]> Co-authored-by: Gaurang Patel <[email protected]> Co-authored-by: pewssh <[email protected]> * main_test.go * Reset location for cli * Common server * Revert "Mc warp test cases" * enterprise create allocation test. * running rollback allocation tests parallel. (#1096) * running rollback allocation tests parallel. * nit fixes. * create tests for cancel and update allocation for enterprise blobbers. * move create allocation enterprise from cli_tests to tokenometrics_tests package * fixes for package migration for create allocation tests. * file rename. * fix package migration errors for update and cancel allocation. * nit fixes. * nit fixes. * expose setupAllocation in allocation.go fix errors for create, update & cancel allocation. add new general methods in general.go * add enterprise allocation flags. * Deploy enterprise blobbers * add new method for create enterprise allocation in allocation.go add utility auth ticket method via 0box. add zboxTeamWallet in tokenomics_tests. * add test setup for listing blobbers in create allocation. add zboxTeamWallet for getting auth tickets. * created a specialized utility method for directly getting all the blobber auth urls appended. add zboxTeamWallet for tokenometrics. * auth ticket fixes for enterprise create allocation tests * temp commit. * Review * added utility methods for setting enterprise allocation with wallet. debug create, cancel, finalize and update allocation tests for green run. * add new method for getting wallet by name in econometrics utils. * add test case for enterprise allocation fail without auth tickets. * add new cost check related cases for cancel allocation. * cancel allocation cost calculation updates. * fix update allocation tests. * fix: cancel allocation first two tests. * refactor: cancel allocation tests. * refactor: cancel allocation tests. * uncomment time.Sleep from test cases in cancel allocation. * refactor: cancel allocaiton tests. * refactor: update allocation tests move failing tests at the bottom. * refactor: add test setup for time change unit. * refactor: replace blobber tests. * update blobber updates. * cost calculations for update allocation tests. * fix syntax error in update blobber test. refactor: replace blobber tests. * Added basic cost related tests * Remove skip * create new utility method for getting blobber details. refactor: replace blobber allocaiton tests. feat: add new tests for replacing blobber with same price, 2x price and 0.5x price. remove sdk client and api client from main_test in tokenomics. * Added rewards check * Fix duration replace blobber * Debug * Fix * Fix * replace blobber add cleanup method to restore blobber write prices. * move failing test cases to bottom in create allocation tests. * fix: wallet creation error for finalize allocation. refactor: add rollback methods for blobber write prices in replace blobber tests. * refactor: add cli config path field to blobber auth ticket utilty methods refactor: caching zbox team wallet while fetching blobber auth tickets. * feat: add cost calculations to all tests in cancel allocation. * feat: add cost calculation check for finalize allocation. * removed wait time for cancel allocation test cases where we are updating the allocation. * debug finalize allocation. * refactor: finalize allocation after duration test case. * price change tests. * change lock price in finalize allocation tests to be exact 2e9. * fix allocation writee pool and blobber reward calculations. * add bloober rewards calculations from stake pool in update allocation tests * refactor: fix cost allocation calculations, change data and parity shards to 2,2 along with allocation size as 2GB update allocation tests. refactor: fix cost calculations for finalize allocation tests. * refactor: update allocation add cleanup methods. * refactor: move blobber price change tests to bottom to run sequentially. * refactor: add compare allocation to update allocation price tests. * nit fix cost calculation blobber price change update allocaiton test. * refactor: update allocation blobber price change extend unused allocation test. * remove cleanup update allocation for non existing allocation test. * refactor: matching expected write pool tokens in epsilon after updating allocation for blobber write price change tests. * refactor: fix blobber reward cost calculations in update allocation. * refactor: fix blobber reward cost calculations in update allocation. * refactor: finalize allocation test case for updating allocation. * refactor: update allocation blobber price test for upgrading size. * refactor: update allocation blobber price test for extending duration. * refactor: add logs to update allocation blobber price test extend duration. * nit fix update allocation tests. * nit fix update allocation tests for blobber price chagne * using 4 min waits instead of 5 and also using exact values for locking the write pool instead of calculating via timestamps in update allocation tests. * refactor: update blobber price test. * refactor: update blobber price test. * nit cost fixes update allocation blobber price tests. * nit fix. * adding time consumed after first update for update allocation blobber price tests * debug: green run update allocation blobber price change tests. * debug: tests are not passing for first update expected rewards blobber price tests. * refactor: replace blobber tests include cost calculations. * Fix system tests * Revert "Fix system tests" This reverts commit fb506c9. * refactor: setup allocation method for replace blobber. * refactor: update allocation extend duration cost calculation test. * refactor: replace blobber tests. * debug replace blobber 0.5x price. * remove duplicate test. * refactor: replace blobber allocation tests * refactor: change deploy action to master branch in ci/cd * refactor: replace blobber tests green run. * refactor: test setup method for update and replace allocation tests. * fix: green run for finalize allocation. * lint fixes. * lint fixes. * use new enterprise blobber 0chain deployment action. * refactor: chnage name for enterprise blobber replace allocation tests. * feat: add enterprise blobber tests in tokenomics nightly run. * refactor: tokenomics_ci move enterprise blobber tests to top. * refactor: tokenomics_ci.yml fix network deployment. * refactor: tokenomics_ci.yml fix network deployment. * refactor: tokenomics_ci.yml fix test run branch. * fix: actions test run branch. * debug: disable notifications for slack on tokenomics workflow run * debug: pass enterprise blobber tests branch. * debug: set n/w to static. * Revert "debug: set n/w to static." This reverts commit ea1a7fb. * debug: blobber list method. * Revert "debug: blobber list method." This reverts commit 80c22ac. * debug: network deployment tokenomics ci. * nit fixes. * debug tokenomics_ci.yml * upgrade gosdk to latest sprint-1.17 * debug change deployment action. * update gosdk to latest. * green run fixes for create allocation tests. * reduced facuet tokens in create allocation tests. * fix kubeconfig param passing tokenomics_ci.yml * refactor: update error message. * refactor: add blobber reset prices at test startup. * refactor: run update allocation run tests in parallel for non price change blobber tests refactor: update error messages for transactions. * deploying clean n/w for every enterprise blobber test suite. * refactor: green run cancel allocation. * nit fixes. * Revert "deploying clean n/w for every enterprise blobber test suite." This reverts commit 34f64ae. * refactor: moving enterprise blobber tests at bottom to monitor other test runs. * fix: add tenderly account testnet creation and deletion steps. refactor: move enterprise blobber tests to top. * update gosdk with latest fix. * revert command error outputs for enterprise blobbers tokenomics tests. * go mod tidy. * upgrade gosdk to v1.17.3 go mod tidy. * refactor: error message for create enterprise allocation test. * cleanup test setups. * more cleanup. * refactor: revert test output enterprise create allocation. * refactor: move blobber price change tests to top to run them sequentially as these changes afftect the allocation creation with non-price change test cases in update allocation. * enable slack notifications for tokenomics_ci.yml * add nolint on error message mispells from 0chain. lint fixes. * revert api model to remove Enterprise param. * revert ci-dev-st.yml deploy 0chain to master branch. * more cleanup. * reset configs to orignal dev n/w. * lint formatting for repair_allocation_test.go * remove review comments. * run goimports to fix lint. * update gosdk to v1.17.5 go mod tidy --------- Co-authored-by: Jayash Satolia <[email protected]> Co-authored-by: Sanchit Sharma <[email protected]> Co-authored-by: Hitenjain14 <[email protected]> Co-authored-by: Yury <[email protected]> Co-authored-by: Arun Ramanathan <[email protected]> Co-authored-by: shahnawaz-creator <[email protected]> Co-authored-by: sanchit <[email protected]> Co-authored-by: Jayash Satolia <[email protected]> Co-authored-by: Gaurang Patel <[email protected]> Co-authored-by: pewssh <[email protected]> Co-authored-by: CristalWilsonLobo <[email protected]> Co-authored-by: pewssh <[email protected]>
- Loading branch information