Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 28 10:31

    lbroudoux on master

    [maven-release-plugin] prepare … (compare)

  • Sep 28 10:31

    lbroudoux on 1.6.0-fix-2

    (compare)

  • Sep 28 10:31

    lbroudoux on master

    [maven-release-plugin] prepare … (compare)

  • Sep 28 10:26

    lbroudoux on master

    fix: #673 ignore elements part … (compare)

  • Sep 28 09:47

    lbroudoux on 1.6.x

    [maven-release-plugin] prepare … [maven-release-plugin] prepare … fix: #673 ignore elements part … (compare)

  • Sep 27 10:08

    lbroudoux on master

    [maven-release-plugin] prepare … (compare)

  • Sep 27 10:08

    lbroudoux on 1.6.0-fix-1

    (compare)

  • Sep 27 10:08

    lbroudoux on master

    [maven-release-plugin] prepare … (compare)

  • Sep 27 08:33

    lbroudoux on master

    chore: #668 adding a new file f… chore: #668 adding a new file f… chore: #668 adding new tests fo… and 4 more (compare)

  • Sep 26 16:00

    lbroudoux on 1.6.x

    fix: #669 fix indirect external… (compare)

  • Sep 26 15:59

    lbroudoux on 1.6.x

    feat: #659 santize trailing / i… (compare)

  • Sep 26 15:58

    lbroudoux on 1.6.x

    fix: #670 fixing learn more link (compare)

  • Sep 23 13:27

    lbroudoux on 1.6.x

    chore: #668 adding new tests fo… (compare)

  • Sep 23 13:25

    lbroudoux on 1.6.x

    chore: #668 adding new tests fo… (compare)

  • Sep 23 09:20

    lbroudoux on 1.6.x

    chore: #668 adding a new file f… (compare)

  • Sep 23 09:05

    lbroudoux on 1.6.x

    chore: #668 adding a new file f… (compare)

  • Sep 16 21:08

    dependabot[bot] on maven

    chore(deps): bump graphql-java … (compare)

  • Sep 12 16:26

    lbroudoux on 1.6.x

    [maven-release-plugin] prepare … [maven-release-plugin] prepare … [maven-release-plugin] prepare … and 1 more (compare)

  • Sep 09 16:01

    lbroudoux on master

    [maven-release-plugin] prepare … (compare)

  • Sep 09 16:01

    lbroudoux on 1.6.0

    (compare)

narioINC
@narioINC_twitter
I have a very simple installation running wherein apicurio is nicely integrated with microcks and i am able to push API specs for mocking from apicurio to MR. However, MR is not persisting the changes in mongodb as i see the database size is 0 in the mongo instance
to this effect. i have checked the logs on mongodb and that of MR and seeing that they connect with each other nicely and "top" command in mongodb shows that there are "write_locks" on the microcks.service collection. However the DB has no collections/docs even after i uploaded a sample petstore.yaml file from APIcurio and them tried uploading it to MR directly. I would be happy if the team just pointed me in the right direction of debugging and I should be able to follow that through. Again appreciate the great work being done by the MR team in building an awesome tool.
narioINC
@narioINC_twitter
Team, my bad. I can see that another user @vndube had similar issues and i did a check on the user in keyclock in my case and they have the "user" role assigned to them correctly. But still the api/service endpoint throws a 403
narioINC
@narioINC_twitter
i created a client role called "user" under microcks-app and then assigned this client role to the user that i am trying to login with. is this correct ?
Laurent Broudoux
@lbroudoux
Hi @narioINC_twitter ! And thanks for trying out Microcks !! The docker-compose configuration from the Apicurio registry relies on an older version of Microcks where roles were defined at the realm level. Now, starting with the version 1.0.0, they are defined at the microcks-app client level.
So you're right : you should define user role as a microcks-app client scoped role. To help setup on external or existing Keycloak instance, we provide the 2 following configuration files you may import into Keycloak : https://github.com/microcks/microcks/tree/master/install
However, depending on the Keycloak version, there's a glitch and the user role is not defined as a default role for each and every new user connecting to the realm. It's better to double-check via the Keycloak UI that this is correctly setup. ;-)
narioINC
@narioINC_twitter
@lbroudoux thank you so much !! will try and import the keycloak realm files on the MR repo and get further into the issue. If possible ill try to see if I can create a PR for the apicurio repo with the fixes :)
narioINC
@narioINC_twitter
image.png
Hi @lbroudoux just a quick update from my debugging. I ensured that both the keycloak json files for the MR realm were imported into my setup
and i was also manually able to ensure that one of the users that i created had the "user" client role assigned correctly.
image.png
However when login in with this user, i Get a 403 error. Ill continue to work on findign out why the role is not working and ensure that if i get the solution
ill post it in this gitter channel and also propose a fix for the apicurio repo. Once again, I thank all who are helping to get this to work :) !!!
narioINC
@narioINC_twitter
team, got it working :) The issue was after i imported the two json realm files, for some reason the microcks-app-js client had full-scope turned off. I turned on full scope and ran an evaluation for the particular user i was trying test and I could see the "user" role assigned correctly in the roles array. Now when i tried to login into MR UI, i could see all the APIs and not getting 403
Ill try to now export the realm and the carefully create a diff to ensure the fix I propose to APIcurio contains all the right settings. Hopefully they'll accept a PR :)
Laurent Broudoux
@lbroudoux
Hi @narioINC_twitter ! Sorry but I did not found time lately to help you on this ... Very happy you finally succeed in making it works ! The diff will be of great help to replay this configuration. Maybe we could also plan to put it into a blog post on the site ? Would you mind contributing ?
narioINC
@narioINC_twitter
oh sure
i will be more than happy to provide a write up
would you like to me to send you a write up ? what mode would you prefer ?
or maybe a post on any particular website that the MR team has other technical members contributing ?
regarding the support @lbroudoux, I was just sharing with my team that how good the gitter comms are with MR team. Your pointer really helped me a lot in the debugging and I really appreciate every help that I received. Please continue to do the great work. I am also going to find way to contribute to MR. I am a full time Java dev with a lot of experience on UI (angular and react) as well.
narioINC
@narioINC_twitter
Also just as a pointer @lbroudoux I also found a way for users to edit a few files in the APIcurio installation to get MR working as expected in the interim. These steps I can post on a website that either you can show me or i can submit a write up that you can add to the MR website. :)
i see that MR website has a Blogpost area here https://microcks.io/blog/
can i submit an article here
??
Laurent Broudoux
@lbroudoux
Thanks for kind feedback ! Always good to hear. Please spread love and GitHub stars ;-) Regarding the contribution, we have no formal process right now and yes, I was thinking about the Microcks blog. As it's just markdown we'll be able to do that through a Pull Request. I'll have a look at it on tomorrow to see how we can put a framework around such contribution. Very welcomed ;-)
narioINC
@narioINC_twitter
thanks. I just saw the website source on github repo and I understood how I can push the blog as a .MD markdown file. Ill send a PR out by tomorrow to you :) !!!
narioINC
@narioINC_twitter
For everyone's benefit, I have opened up an issue in APiCurio repo for the Microcks real fix. Apicurio/apicurio-studio#1319 @lbroudoux @vndube
Laurent Broudoux
@lbroudoux
Great 👍
Many thanks @narioINC_twitter !
vndube
@vndube

Glad to see Microcks running for me and for my project.
To further moving ahead -
I am using OpenAPI Specifications for my project.
But one thing I notice that microcks does not validate the requests.
a. For any a wrong element name in the request, I need to get some error.
b. For any wrong data types provided against an element in the request I need to get some error.
c. For any mandatory element in the request in the request I need to get some error.

Kindly provide any guidance if the above can be handled separately. If yes how I can do it.

Laurent Broudoux
@lbroudoux
Hi @vndube ! Glad to have some news from you ! Since 1.1.0 release we switched to Zulip (https://microcksio.zulipchat.com). Could you please repost your question there ? Thanks very much !
vndube
@vndube
when I try to join here @Zulip I get this message - "You need an invitation to join this organisation." I cannot proceed then.
Laurent Broudoux
@lbroudoux
Oops ! Will fix this.
Laurent Broudoux
@lbroudoux
It should be ok now.
Hugo Guerrero
@hguerreroo_gitlab
@lbroudoux would be good to make the message of the move to zulip more prominent for the rest of the folks in this channel
Laurent Broudoux
@lbroudoux
HI @hguerreroo_gitlab ! You're right ! Will check if possible to put a sticky post or something on Gitter ...
:warning: Hi newcomers ! Since the release of Microcks 1.1.0 we moved the community forum to Zulip Chat => microcksio.zulipchat.com . Please join us there ! After some time, we'll delete this Gitter room. :warning:
Hugo Guerrero
@hguerreroo_gitlab
Perhaps in the name or description of the channel? @lbroudoux
Ijdan
@ijdan
Hi,
I am discovering Microcks.
I'm looking for how to dispatche based on the value of a parameter. Example : for users/:id do this :
If users/123 then response with 123 resource
else id user/246 then response with 246 resource
else response with 369 resource.
Laurent Broudoux
@lbroudoux
Hi @ijdan ! As you may have seen, we now have moved to Zulipchat (microcksio.zulipchat.com) and had discussions on this topic especially in this thread => https://microcksio.zulipchat.com/#narrow/stream/256143-users/topic/How.20to.20add.20a.20mock.20with.20multiple.20path.20parameter/near/220706920. Feel free to join us there!
Madiha20
@Madiha20
Hi @lbroudoux ,
Is there a way to add dispatcher rules in Microcks on the basis of request headers?
Abdul Wahhab Qureshi
@forceedge01
Hi there, I am trying to create services from a postman export but can't seem to. I've imported the test json file in the readme that works just fine. Not sure what i've done wrong? I've created 1 example response for each request type and tried importing that but to no avail. JSON file here: https://github.com/forceedge01/microcks-testing/blob/main/Restful-bookings.postman_collection.json
Also, would love to know how to surface error's or requirements that microcks expects to be in place. That would make all this much easier.
rjchan
@rjchan:matrix.org
[m]

Hi there,
Is there a possibility to have multiple dispatcher rules for a given url or have condition based dispatcher rules

For example,

If the request is :

{
"name" : "Bob",
"country": "Germany"
}

Can we have a dispatcher rule that satisfies the condition where the name is Bob and country is Germany and the returns a response that satisfies this condition

Laurent Broudoux
@lbroudoux
Hi @rjchan:matrix.org ! We now have moved to Zulip (https://microcksio.zulipchat.com) or GitHub discussions (https://github.com/microcks/microcks/discussions) if you prefer. Feel free to reach us here!
nagarro-randula
@nagarro-randula
Hi Im new to microcks I just wanted know how can I add multilple dispatching rules more than attribute in json body
Can I add this way
[
{
"exp":"/cartId",
"operator":"range",
"cases":{
"[1230;1234]":"ValidResponse",
"default":"CartIdInvalidResponse"
}
},
{
"exp":"/userId",
"operator":"equals",
"cases":{
"64536":"ValidResponse",
"default":"UserIdInvalidResponse"
}
}
]