Skip to content
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

refactor(provider/init): simplify provider info test #247

Merged

Conversation

andy108369
Copy link
Collaborator

@andy108369 andy108369 commented Feb 19, 2024

tested

++ provider-services keys show akash1nxq8gmsw2vlz3m68qvyvcf3kh6q269ajvqw6y0 -a
+ PROVIDER_ADDRESS=akash1nxq8gmsw2vlz3m68qvyvcf3kh6q269ajvqw6y0
+ [[ -z akash1nxq8gmsw2vlz3m68qvyvcf3kh6q269ajvqw6y0 ]]
+ provider-services query provider get akash1nxq8gmsw2vlz3m68qvyvcf3kh6q269ajvqw6y0 -o json
{"owner":"akash1nxq8gmsw2vlz3m68qvyvcf3kh6q269ajvqw6y0","host_uri":"https://provider.akash.pro:8443","attributes":[{"key":"region","value":"europe"},{"key":"host","value":"akash"},{"key":"tier","value":"community"},{"key":"capabilities/storage/1/class","value":"default"},{"key":"capabilities/storage/1/persistent","value":"true"},{"key":"capabilities/storage/2/class","value":"beta3"},{"key":"capabilities/storage/2/persistent","value":"true"},{"key":"ip-lease","value":"false"}],"info":{"email":"","website":""}}
+ [[ 0 -ne 0 ]]
+ echo 'Checking whether provider.yaml needs to be updated on the chain ...'
Checking whether provider.yaml needs to be updated on the chain ...
+ diff --color -Nur /dev/fd/63 /dev/fd/62
++ provider-services query provider get akash1nxq8gmsw2vlz3m68qvyvcf3kh6q269ajvqw6y0 -o text
++ cat provider.yaml
++ awk '/attributes:/{print;flag=1;next}/^  - key:/{if(flag)sub("  ","");print;next}flag&&/^    /{sub("    ","  ");print;next}{flag=0;print}'
++ sed -e 's/"//g' -e s/host_uri:/host:/g
++ sort
++ sort
+ rc=0
+ [[ 0 -ne 0 ]]

image

@andy108369 andy108369 merged commit caff836 into akash-network:main Feb 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant