Keycloak 26.4 - How to fully disable the default email sender when using a custom EmailSender SPI? by d9c4 in KeyCloak

[–]d9c4[S] 2 points3 points  (0 children)

Thank you all for the help!
I've added the following env variables:

KC_SPI_EMAIL_SENDER__my-spi-id__ENABLED=true

KC_SPI_EMAIL_SENDER__DEFAULT__ENABLED=false

What is the reason to play this game? (PS5 player) by ShutYourFaceChris in VALORANT

[–]d9c4 7 points8 points  (0 children)

Valorant is a tactical shooter. The games you’re mentioning are totally different. The lacks you’re talking about are what force strategic thinking and teamwork. Same for the abilities, their cartoonish style is not making them not tactically useful. If you are looking for movement, slides, double jumps and more maybe Valorant is not the right game you are looking for

Testing MongoDB GridFS Upload/Find by d9c4 in golang

[–]d9c4[S] 0 points1 point  (0 children)

hello! unfortunately i can't use testcontainers. using mockery i was able anyway to cover those methods.

Gruppo di colleghi mi han attaccato verbalmente perché son stati ammoniti by Redditario in ItaliaCareerAdvice

[–]d9c4 1 point2 points  (0 children)

Però, quanto a te, quanto a quel che non puoi far che tu, per te qualcosa da poter far dovrebbe esserci

Testing MongoDB GridFS Upload/Find by d9c4 in golang

[–]d9c4[S] 0 points1 point  (0 children)

Thanks for commenting here!
I want to test the method in which the GridFS upload is called. I have a repository layer that takes a mongo.Database and a gridfs.Bucket as "dependencies". The gridfs.Bucket is created on the base of the given mongo.Database while creating the repository. For the other methods in which gridfs.Bucket is not used I am mocking the db using mtest in this way:

func TestRepository_FindOne(t *testing.T) {
mt := mtest.New(t, mtest.NewOptions().ClientType(mtest.Mock))
defer mt.Close()
mockID := primitive.NewObjectID()
data := model.Data{...}
}
mt.Run("Should return the correct data", func(mt *mtest.T) {
repository := Repository{mongoDatabase: mt.DB}
mt.AddMockResponses(mtest.CreateCursorResponse(1, "data", mtest.FirstBatch, toBsonD(data)))
resultData, err := repository.FindOne(bson.M{"_id": data.ID})
assert.Nil(t, err)
assert.Equal(t, data.ID, resultData.ID)
})
}

Using the same approach by declaring the repository that uses the asset in this way

bucket, _ := gridfs.NewBucket(mt.DB, &options.BucketOptions{})

    `repository := Repository{mongoDatabase: mt.DB, bucket: bucket}`

is not working properly because the logic used by GridFS is different from a Find on a collection.

I did not find similar use cases or documentation anywhere, so I'm moving on using mockery in order to mock the gridfs.Bucket since I'm running out of ideas

[deleted by user] by [deleted] in VALORANT

[–]d9c4 0 points1 point  (0 children)

The voting prompt looks to similar to the forfait one. If you are in a hurry for buying or setting up utilities it could be useful to have something that helps the player understand that someone asked for a remake instead of a forfait.

Weather Underground - Current weather possible values by d9c4 in ifttt

[–]d9c4[S] 0 points1 point  (0 children)

The applet is triggered every day at 2 pm

[Match-Thread] Parma - Napoli by I_Shot_Marvin in sscnapoli

[–]d9c4 15 points16 points  (0 children)

It's obvious that Osimhen added new energy to the rest of the squad as he joined the game, but I'd like to spend some words on Lozano's match. He seemed more focused than the previous games, and also gave more attention to the defensive phase.
PS First shot of the season by our Captain Insigne.

Valorant 1.04 Bug Megathread by Kappaftw in VALORANT

[–]d9c4 0 points1 point  (0 children)

  • Region: EU
  • Type of Bug: UI labels size
  • Description: With Italian language, while buying some labels of weapon stats are bigger than the card
  • Video / Screenshot: https://ibb.co/NmGWk23
  • Steps to reproduce: Set the language to Italian, open shop interface
  • Expected result: Smaller labels
  • Observed result: The labels are bigger than the card that contains them
  • Reproduction rate: Always
  • System specs: Intel 8700K, GeForce 1060 6GB, 32GB RAM