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

🤗 [Question]: I going to create new storage, but i have one question about tests #2235

Closed
3 tasks done
0xdeface opened this issue Nov 24, 2022 · 3 comments
Closed
3 tasks done

Comments

@0xdeface
Copy link
Contributor

Question Description

I want to create nats jetstream storage. In my project we are using nats as bus and as kv. nats is modern cloud opensource software. I studied another storage and i saw than they use some unclear hosts and ports without testcontainers or same software. Can i use testcontainers in my test or what host and port i should use?

Code Snippet (optional)

// for example 
// ConfigDefault is the default config for redis
var ConfigDefault = Config{
	Host:      "127.0.0.1",
	Port:      6379,

Checklist:

  • I agree to follow Fiber's Code of Conduct.
  • I have checked for existing issues that describe my questions prior to opening this one.
  • I understand that improperly formatted questions may be closed without explanation.
@welcome
Copy link

welcome bot commented Nov 24, 2022

Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord

@li-jin-gou
Copy link
Contributor

li-jin-gou commented Nov 24, 2022

Yes and you can refer to https://github.com/gofiber/storage/tree/main/.github/workflows and unit tests.

@0xdeface 0xdeface changed the title 🤗 [Question]: I want to create new storage, but i have one question about tests 🤗 [Question]: I going to create new storage, but i have one question about tests Nov 29, 2022
@mdelapenya
Copy link

Sorry to comment on a closed ticket, but I found this randomly today. Yes, you can use testcontainers-go in the storage layers, please see gofiber/storage#1507

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants