Snippets

Chris Somme Properties load test descriptor

Created by Chris Somme last modified
{
  "name":"Properties Load Test",
  "key":"properties-load-test",
  "description":"Test performance of hosted storage. This is never intended to render. It has a condtion on a feature and another on a property that doesn't exist. The feature should control how much load makes it to hosted storage",
  "baseUrl":"https://bitbucket.org/!api/2.0/snippets/csomme/EBK47A/",
  "contexts": ["site"],
  "authentication":{
    "type":"jwt"
  },
  "scopes": ["email"],
  "modules":{
    "repoPage": [
      { 
        "url": "http://google.com",
        "name": {
          "value": "properties load test"
        },
        "location": "org.bitbucket.repository.navigation",
        "conditions": [
          { 
            "condition": "has_feature",
            "target": "user",
            "params": {
              "feature": "hosted-storage-performance"
            }
          },
          { 
            "condition": "equals",
            "target": "repository.properties.get(attribute=app.key).prop.exists",
            "params": {
              "value": true
            }
          }
        ],
        "key": "loadtest"
      }
    ]
  }
}

Comments (1)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.