-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fix E2E: Update region before sending the /secrets resource request #280
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.
If the region request is taking longer than 2 seconds, do you think it would be better to move/copy the hardcoded list to the frontend?
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.
If the region request is taking longer than 2 seconds, do you think it would be better to move/copy the hardcoded list to the frontend?
Is the issue that the regions list isn't populating yet or is the issue that we need to wait for an update to be made select a region?
It sounds like we can just type any region into the input field, so I wouldn't think we'd need to wait to populate the list.
If the issue is we need to wait for an update to the region, I wonder if we can take anything filled out in progress and use that for the secrets request? That said if we want to revisit why this is slow in another pr and just fix the build here, I think that's an ok call to make.
Hmm I think I didn't explain it well, sorry! My theory theory is that when we select/write the region, it isn't updated in the datasource, so when we request the managedSecret resource (in the test, it's pretty quick), it's still empty. @iwysiu that's a good suggestion, but I'd rather merge this to fix the build, then see if we need to do that when we migrate to plugin-e2e, if that sounds good? |
We were getting "Missing region" error on /secrets resource request. It looks like the delay between selecting a region and sending a the /secrets request in the test (by clicking on the
![Screenshot 2024-05-29 at 19 00 52](https://private-user-images.githubusercontent.com/16140639/334897894-331f437b-c87f-4be6-8bb1-5e57bc1bf48a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NTAzNjcsIm5iZiI6MTczOTQ1MDA2NywicGF0aCI6Ii8xNjE0MDYzOS8zMzQ4OTc4OTQtMzMxZjQzN2ItYzg3Zi00YmU2LThiYjEtNWU1N2JjMWJmNDhhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDEyMzQyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZkMGJlZThiZmJhNzU4NWE3NTQyOWNiOWU2OGE2NzYwZWE2NTAxODBiNzY1MzNkN2VmNzIwMjQwNDc4ZGQ1YmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.P6cNtdxRAeMfRrg8TT1cEL2q9yLvJ_6yCL8x_sqo_nQ)
Managed secret
input) is too short. Adding acy.wait(5000)
seems to fix it.Tried decreasing it to 2000 ms but looks like that's still too short.
It's probably not the best or foolproof solution, but we will be migrating eventually to plugin-e2e