Mock Tenants for Atlassian Connect Add-Ons

This web app can respond like a fake JIRA or Confluence instance to a small subset of the HTTP apis exposed by those applications. It can be used to load-test Atlassian Connect add-ons by responding like a large number of separate tenants.

Source is on Bitbucket. Feel free to modify and/or run your own instances.

Supported Resources

JIRA consumer info (GET /plugins/servlet/oauth/consumer-info)

Used during Atlassian Connect add-on installation handshake.

  • URL pattern: /jira/<consumer-key>/plugins/servlet/oauth/consumer-info
  • Example: /jira/foobar/plugins/servlet/oauth/consumer-info
  • Response:
    <consumer>
      <key>foobar</key>
      <name>Fake jira with key: [foobar]</name>
      <publicKey>MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCJwaijNZVbGHO/rO58TRSwAbwu0XTQJxHHkDFR1U0OM8VDoHLn/42UBg+tW8GobG6xrPBwINL8MyNYULgzv1NYx6a5HTom3hFA3pBkmi1fy6vFVIE+M3gYA2+A514A227MUZlBIzSr2jldmP+EFYh0J449f+BbWM7VJpZqqV+4WQIDAQAB</publicKey>
      <description>Fake jira with key [foobar], for testing Atlassian Connect. See . See https://ac-mock-tenants.herokuapp.com.</description>
      <head/>
    </consumer>

JIRA 'user' REST Resource (GET /rest/api/2/user)

Represents a user registered with the instance.

  • URL pattern: /jira/<consumer-key>/rest/api/2/user?key=<user-key>
  • Example: /jira/boosh-456/rest/api/2/user?key=howardmoon
  • Response:
    {
       "self":"https://ac-mock-tenants.herokuapp.com/jira/boosh-456rest/api/2/user?key=howardmoon",
       "key":"howardmoon",
       "name":"howardmoon",
       "emailAddress":"howardmoon@example.com",
       "avatarUrls":{
          "16x16":"https://ac-mock-tenants.herokuapp.com/jira/boosh-456secure/useravatar?size=xsmall&ownerId=howardmoon&avatarId=16801",
          "24x24":"https://ac-mock-tenants.herokuapp.com/jira/boosh-456secure/useravatar?size=small&ownerId=howardmoon&avatarId=16801",
          "32x32":"https://ac-mock-tenants.herokuapp.com/jira/boosh-456secure/useravatar?size=medium&ownerId=howardmoon&avatarId=16801",
          "48x48":"https://ac-mock-tenants.herokuapp.com/jira/boosh-456secure/useravatar?ownerId=howardmoon&avatarId=16801"
       },
       "displayName":"Dr. howardmoon on boosh-456",
       "active":true,
       "timeZone":"Australia/Sydney",
       "groups":{
          "size":9,
          "items":[
    
          ]
       },
       "expand":"groups"
    }
  • Confluence consumer info (GET /plugins/servlet/oauth/consumer-info)

    Used during Atlassian Connect add-on installation handshake.

    • URL pattern: /confluence/<consumer-key>/plugins/servlet/oauth/consumer-info
    • Example: /confluence/foobar/plugins/servlet/oauth/consumer-info
    • Response:
      <consumer>
        <key>foobar</key>
        <name>Fake confluence with key: [foobar]</name>
        <publicKey>MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCJwaijNZVbGHO/rO58TRSwAbwu0XTQJxHHkDFR1U0OM8VDoHLn/42UBg+tW8GobG6xrPBwINL8MyNYULgzv1NYx6a5HTom3hFA3pBkmi1fy6vFVIE+M3gYA2+A514A227MUZlBIzSr2jldmP+EFYh0J449f+BbWM7VJpZqqV+4WQIDAQAB</publicKey>
        <description>Fake confluence with key [foobar], for testing Atlassian Connect. See . See https://ac-mock-tenants.herokuapp.com.</description>
        <head/>
      </consumer>