Skip to content

refactor: Add e2e for principal identifier used#520

Closed
eftychis wants to merge 1 commit intomasterfrom
eftychis-identity-profile-test
Closed

refactor: Add e2e for principal identifier used#520
eftychis wants to merge 1 commit intomasterfrom
eftychis-identity-profile-test

Conversation

@eftychis
Copy link
Contributor

(not sure what the right keyword is. Do we have a testing one?)

Copy link
Contributor

@chenyan-dfinity chenyan-dfinity left a comment

Choose a reason for hiding this comment

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

I don't think we are ready for e2e. Need something like #393 to support principal in dfx. Haven't got time around to finish the PR though.

@@ -0,0 +1,5 @@
actor PrincipalId {
public shared(ctx) func get_principal_id() : async [Word32] {
Copy link
Contributor

Choose a reason for hiding this comment

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

The return type is async Principal

@eftychis
Copy link
Contributor Author

We already do (not exposed to user yet). The replica doesn't fully yet. Or maybe I am misunderstanding what you are saying?

@chenyan-dfinity
Copy link
Contributor

The Motoko code you write for test won't be decoded properly by dfx. It is returning Principal, not [Word32], and dfx doesn't know that opcode yet. Only the JS userlib can decode the principal type for now.

@hansl
Copy link
Contributor

hansl commented Jun 4, 2020

@eftychis Is this still being worked on?

@eftychis
Copy link
Contributor Author

eftychis commented Jun 9, 2020

I can/shall rebase it. @hansl
(thought we paused merging identity stuff.)

@hansl
Copy link
Contributor

hansl commented Jun 9, 2020

This PR is months ago. Last comment was 2 months ago (and not adressed). I'll close and we can reopen later. I'm just doing a cleanup.

@hansl hansl closed this Jun 9, 2020
dfinity-bot added a commit that referenced this pull request Dec 8, 2020
## Changelog for advisory-db:
Branch: master
Commits: [rustsec/advisory-db@a24932e2...bd3cb8dd](rustsec/advisory-db@a24932e...bd3cb8d)

* [`61d315ae`](rustsec/advisory-db@61d315a) Renamed crates ([RustSec/advisory-db⁠#518](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/518))
* [`ed9dba32`](rustsec/advisory-db@ed9dba3) Assigned RUSTSEC-2020-0083 to safe_app, RUSTSEC-2020-0084 to safe_authenticator, RUSTSEC-2020-0085 to safe_vault, RUSTSEC-2020-0086 to safe_core ([RustSec/advisory-db⁠#520](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/520))
* [`639d1b1b`](rustsec/advisory-db@639d1b1) Report 0047-try-mutex to RustSec ([RustSec/advisory-db⁠#517](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/517))
* [`f17cd12f`](rustsec/advisory-db@f17cd12) Assigned RUSTSEC-2020-0087 to try-mutex ([RustSec/advisory-db⁠#521](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/521))
* [`bd3cb8dd`](rustsec/advisory-db@bd3cb8d) Report 0050-magnetic to RustSec ([RustSec/advisory-db⁠#519](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/519))
mergify bot pushed a commit that referenced this pull request Dec 8, 2020
## Changelog for advisory-db:
Branch: master
Commits: [rustsec/advisory-db@a24932e2...bd3cb8dd](rustsec/advisory-db@a24932e...bd3cb8d)

* [`61d315ae`](rustsec/advisory-db@61d315a) Renamed crates ([RustSec/advisory-db⁠#518](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/518))
* [`ed9dba32`](rustsec/advisory-db@ed9dba3) Assigned RUSTSEC-2020-0083 to safe_app, RUSTSEC-2020-0084 to safe_authenticator, RUSTSEC-2020-0085 to safe_vault, RUSTSEC-2020-0086 to safe_core ([RustSec/advisory-db⁠#520](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/520))
* [`639d1b1b`](rustsec/advisory-db@639d1b1) Report 0047-try-mutex to RustSec ([RustSec/advisory-db⁠#517](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/517))
* [`f17cd12f`](rustsec/advisory-db@f17cd12) Assigned RUSTSEC-2020-0087 to try-mutex ([RustSec/advisory-db⁠#521](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/521))
* [`bd3cb8dd`](rustsec/advisory-db@bd3cb8d) Report 0050-magnetic to RustSec ([RustSec/advisory-db⁠#519](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/519))
@lwshang lwshang deleted the eftychis-identity-profile-test branch July 29, 2022 18:59
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.

3 participants