Skip to content

Conversation

@tolikzinovyev
Copy link
Contributor

@tolikzinovyev tolikzinovyev commented Feb 16, 2022

New cucumber tests for unlimited assets.

@CLAassistant
Copy link

CLAassistant commented Feb 16, 2022

CLA assistant check
All committers have signed the CLA.

@tolikzinovyev
Copy link
Contributor Author

@algonautshant @nicholasguoalgorand FYI: I started making changes to cucumber tests.


@unit.indexer
Scenario Outline: LookupAssetBalances path
When we make a Lookup Asset Balances call against asset index <index> with limit <limit> afterAddress "<afterAddress>" round <round> currencyGreaterThan <currencyGreaterThan> currencyLessThan <currencyLessThan>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was round removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this parameter was removed from indexer since it was never implemented

Copy link
Contributor

@winder winder Mar 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would break an existing test, make sure to update it instead of generating a new step in the SDKs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update which test?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you run them locally, your test fails. If you cannot see this, then either the sdk is not implementing this test, or you will see it fail once this job gets merge.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Search for "we make a Lookup Asset Balances call against asset index" in the sdk, and you'll find the test.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test in the sdk, got it. I changed it in go sdk.

* fixes, file renames

* error response data

* add newline at the end of the files

* fix names _as_ to _aa_

* replace filenames in the feature file

* fix

* indexer paths use real address
@tolikzinovyev tolikzinovyev marked this pull request as ready for review March 3, 2022 22:27
@tolikzinovyev tolikzinovyev requested a review from winder March 3, 2022 22:28
Copy link
Contributor

@winder winder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of these seem to be copies of the same schema, is that an existing bug or a regression from the recent changes?

| path | exclude |
| /v2/accounts?exclude=assets | assets |
| /v2/accounts?exclude=assets%2Ccreated-assets | assets,created-assets |
| /v2/accounts?exclude=assets%2Ccreated-assets%2Capps-local-state%2Ccreated-apps | assets,created-assets,apps-local-state,created-apps |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, looks like you already have multiple excludes for some endpoints 👍

Comment on lines +114 to +119
| algod_unlimited_aa_Account_0.json | generated_responses_unlimited_assets | 200 | algod | AccountInformation |
| algod_unlimited_aa_Account_2.json | generated_responses_unlimited_assets | 200 | algod | AccountInformation |
| algod_unlimited_aa_AccountApplicationResponse_0.json | generated_responses_unlimited_assets | 200 | algod | AccountApplicationInformation |
| algod_unlimited_aa_AccountApplicationResponse_2.json | generated_responses_unlimited_assets | 200 | algod | AccountApplicationInformation |
| algod_unlimited_aa_AccountAssetResponse_0.json | generated_responses_unlimited_assets | 200 | algod | AccountAssetInformation |
| algod_unlimited_aa_AccountAssetResponse_2.json | generated_responses_unlimited_assets | 200 | algod | AccountAssetInformation |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@algonautshant do you know why we have 0 and 2 for these?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of algorand/generator#25. Please approve and merge.

Copy link
Contributor

@algonautshant algonautshant Mar 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope. algorand/generator#25 did not fix it. Looking into it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I read toliks message as #25 explains the behavior.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a fix. It is in the logic of accounting for num. It just looks strange, but can be fix later, since this is internal test.

@winder winder merged commit 6bcf846 into master Mar 10, 2022
@tolikzinovyev tolikzinovyev deleted the tolik/unlimited-assets branch March 10, 2022 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants