New URI module from Romeo Theriault

Sorry to be a bother . . . can anyone say how I should be formatting the data ion my body here:

  • name: artifactory | TEST - create repo
    uri: url={{ baseurl }}/api/repositories/test
    method=PUT user=user password=password
    body=‘{“rclass”: “local”}’
    force_basic_auth=yes status_code=200 HEADER_Content-Type=“application/json”

yaml doesn’t like the colon (:slight_smile: in the body . . . the body is for JSON, right?

Thanks!

The rule in YAML is if you have a colon in the line, you must quote the whole line. In this case, the uri stuff probably needs quotes around the whole beast.

You might find it easy to store the “body” in a “vars:” to make it a little easier to read.

darned yaml/json . . . the space in my body was the problem!

I had body=‘{“rclass”: “local”}’ . . . needed to be body=‘{“rclass”:“local”}’

Thanks all!