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

Mock PFI Servers #1223

Merged
merged 5 commits into from
Feb 10, 2024
Merged

Mock PFI Servers #1223

merged 5 commits into from
Feb 10, 2024

Conversation

angiejones
Copy link
Member

@angiejones angiejones commented Feb 9, 2024

What type of PR is this? (check all applicable)

  • πŸ“ Documentation Update
  • πŸ§‘β€πŸ’» Code Snippet
  • πŸ§ͺ Tests

Description

This PR:

  • added mock server for PFI (Kotlin and JS)
  • added TestData class for Kotlin
  • updated "Wallet: Get Offerings" guide to use code snippets (JS and Kotlin)
  • added tests for "Wallet: Get Offerings" guide (JS and Kotlin)

Direct link to deploy preview

https://deploy-preview-1223--tbd-website-developer.netlify.app/docs/tbdex/wallet/get-offerings

Added code snippets?

  • πŸ‘ yes
  • πŸ™… no, because they aren't needed

Added tests?

  • πŸ‘ yes
  • πŸ™… no, because they aren't needed
  • πŸ™‹ no, because I need help

Added to documentation?

  • πŸ“œ readme
  • πŸ“œ contributing.md
  • πŸ““ general documentation
  • πŸ™… no documentation needed

What gif best describes this PR or how it makes you feel?


Copy link

netlify bot commented Feb 9, 2024

βœ… Deploy Preview for tbd-website-developer ready!

Name Link
πŸ”¨ Latest commit 2bec4a6
πŸ” Latest deploy log https://app.netlify.com/sites/tbd-website-developer/deploys/65c6bd8a3da1c0000804d124
😎 Deploy Preview https://deploy-preview-1223--tbd-website-developer.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@angiejones angiejones marked this pull request as draft February 9, 2024 17:55
Copy link
Member Author

Choose a reason for hiding this comment

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

lot of extra stuff in this file. I just got it working for my 2 tests. we can add/remove stuff as we're building out the other tests

@angiejones angiejones marked this pull request as ready for review February 10, 2024 00:04
@angiejones angiejones changed the title Wallet: Get Offerings - js/kt Mock PFI Servers Feb 10, 2024
@angiejones angiejones merged commit 02c99f8 into main Feb 10, 2024
8 of 10 checks passed
@angiejones angiejones deleted the wallet-offerings-kt branch February 10, 2024 03:49
acekyd pushed a commit that referenced this pull request Feb 12, 2024
* Wallet: Get Offerings - js/kt

* added mock server and tests for Kotlin

* test data

* JS mock PFI server and tests
acekyd added a commit that referenced this pull request Feb 20, 2024
* Add DidJwk and update other DID methods

* Issue #1197 - Add tbdex-kt dependencies (PR #1198)

* Issue #1197 - Add tbdex-kt dependencies to Kotlin TestSuite

With a WHOLE LOT of Dark Arts Evil Nonsense to make it work:

* SNAPSHOT dependency
* Addition of a SNAPSHOTs repo
* dependencyManagement to force version resolution

This may unblock us temporarily but will not work sustainably. The SNAPSHOT dependency will go away and due to version changes from upstream projects the dependencyManagement guards will need to be updated with them.

* nuxt transpile error doc (#1200)

* Kotlin: PFI Allowlist (#1208)

* Kotlin: PFI Allowlist

* dont publish test dids

* ocd

* Added Kotlin Shnips for PEX (#1199)

* kotlin shnips

* adding new line

* kotlin shnip wasnt generating

* removing extra code snippet

* enabling switch content

* adding clarity for presentation submission with Kotlin

* showing language switcher at the top

* adding back title

* adding back title

* hardcode imports

* make verifiable presentation more obvious

* put language switcher at the top

* remove unnnecessary import

* possible note for missing method

* PR #1199 - Fix jackson.core to a more compatible version

* handle all imports with model.*

* add in as snippet

---------

Co-authored-by: Andrew Lee Rubinger <alr@alrubinger.com>

* Removing sidebar link to JS API Guide (#1211)

* Issue #1197 - Update to locked tbdex-kt:0.9.0-beta off former SNAPSHOT

* add replyTo option for RFQs (#1207)

* add replyTo option for RFQs

* Update site/docs/tbdex/wallet/send-rfq.mdx

Co-authored-by: Angie Jones <jones.angie@gmail.com>

---------

Co-authored-by: Angie Jones <jones.angie@gmail.com>

* Fan Club VC with Kotlin snippets (#1212)

* Fan Club VC with Kotlin snippets

* wrapping in a try catch

* OSS Project Dashboard: Avoid orange, yellow for badges that don't indicate failure (#1210)

tweak a few badges to avoid yellow, orange colors

this will make failures/warnings more obvious

* Presentation Definition kotlin updates (#1213)

* Presentation Definition kotlin updates

* Fix tests

* removed submission requirements

* aligned validation snippets

---------

Co-authored-by: angiejones <jones.angie@gmail.com>

* Removing console logs (#1217)

* update docs with references for KMS (#1216)

* Add Kotlin Snippets to PFI/Structuring a PFI App  (#1181)

* Use shnip system, still need code snippets for some parts of exchanges and offerings apis pending convo with Jiyoon

* add all snippets

* Update snippet names and use Shnip system

* fixing code

* add Kotlin code snippets

* update js server name

* update tests to run out of new testsuites directories

* renaming kotlin test file

* Update Kotlin code

* Use shnip system, still need code snippets for some parts of exchanges and offerings apis pending convo with Jiyoon

* add all snippets

* Update snippet names and use Shnip system

* fixing code

* add Kotlin code snippets

* update js server name

* update tests to run out of new testsuites directories

* renaming kotlin test file

* Update Kotlin code

* Make io.ktor.server available on the classpath

* Try to fix Kotlin compilation errors

* try to fix build

* conforming title to the rest of the guides on the site

* pushing up some changes, still addressing comments

* separate out Kotlin classes

* fix build issue with package names

* fix build

* update PFI did creation, sync names of sever var

* Apply suggestions from code review

Apply suggestions

Co-authored-by: Angie Jones <jones.angie@gmail.com>

* add imports

* removing dup imports

---------

Co-authored-by: Angie Jones <jones.angie@gmail.com>
Co-authored-by: Andrew Lee Rubinger <alr@alrubinger.com>

* switching to use Shnip in JWT to VC (#1218)

* switching to Shnips in JWT to VC

* add headers

* fix path

* Adding padding on Shnip content (#1219)

* Upgrade to xyz.block:tbdex:0.10.0-beta

* update merge

* PFI/Orders Kotlin Code Snippets (#1220)

* first push for orders page to write snippets

* fix kotlin snippet and imports

* update markdown

* Adding Close Message snippets

* fixed js Close snippet

* address comments to resolve them, still need to test after wiping out most of them

* missing js ordermessage rename

* add language links

---------

Co-authored-by: Rizel Scarlett <rizel@tbd.email>
Co-authored-by: angiejones <jones.angie@gmail.com>

* Mock PFI Servers (#1223)

* Wallet: Get Offerings - js/kt

* added mock server and tests for Kotlin

* test data

* JS mock PFI server and tests

* Publish PFI DIDs used for tbDEX

* Changed PFI example service endpoints (#1224)

* Update DID variable names

* Updating tests and snippets

* added options to DID create

* removing pfi-structure.test.js file, doesnt compile

* tbdex version update

* fixing tests

* remove console.log

* formatting

* removing DidKey example from Create a DID guide

* removing DidKey test

* Update import snippets

* renaming variables for better readability

* update tests

---------

Co-authored-by: Andrew Lee Rubinger <alr@alrubinger.com>
Co-authored-by: Angie Jones <jones.angie@gmail.com>
Co-authored-by: Rizel Scarlett <rizel@tbd.email>
Co-authored-by: Finn <139806439+finn-tbd@users.noreply.github.com>
Co-authored-by: chris-tbd <129119076+chris-tbd@users.noreply.github.com>
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.

None yet

1 participant