Skip to content

fix: dfx ping uses the anonymous identity and does not require dfx.json#2263

Merged
mergify[bot] merged 3 commits intomasterfrom
ericswanson/sdk-505-ping-with-anonymous-identity
Jun 15, 2022
Merged

fix: dfx ping uses the anonymous identity and does not require dfx.json#2263
mergify[bot] merged 3 commits intomasterfrom
ericswanson/sdk-505-ping-with-anonymous-identity

Conversation

@ghost
Copy link

@ghost ghost commented Jun 14, 2022

Description

The ping command uses the default identity, which means it has side effects: it creates the default identity if it does not exist.

To work around this, the e2e tests run ping with a throw-away config root, in order to discard the newly created identity. However, with the upcoming system-wide dfx changes, dfx will sometimes use configuration within the config root to find the local server.

We can avoid this altogether by making ping use the anonymous identity.

Fixes https://dfinity.atlassian.net/browse/SDK-505

How Has This Been Tested?

Updated e2e tests.

Checklist:

  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

@ghost ghost self-requested a review as a code owner June 14, 2022 21:08
@ghost ghost added the automerge-squash label Jun 15, 2022
@mergify mergify bot merged commit 0bf55c0 into master Jun 15, 2022
@mergify mergify bot deleted the ericswanson/sdk-505-ping-with-anonymous-identity branch June 15, 2022 17:25
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