Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with parallel http get #96

Open
andrea-dintino opened this issue Feb 10, 2022 · 0 comments
Open

issue with parallel http get #96

andrea-dintino opened this issue Feb 10, 2022 · 0 comments
Assignees

Comments

@andrea-dintino
Copy link
Member

It seems (!) to me that, when running parallel http get, the output can not be stored into an existing object.

The script:

Rule caller restroom-mw

Given I have a 'string dictionary' named '1'
Given I have a 'string dictionary' named '2'
Given I have a 'string dictionary' named '3'
Given I have a 'string dictionary' named '4'
Given I have a 'string dictionary' named '5'
Given I have a 'string dictionary' named '6'

Given I have a 'string' named 'ts1'
Given I have a 'string' named 'ts2'
Given I have a 'string' named 'ts3'
Given I have a 'string' named 'ts4'
Given I have a 'string' named 'ts5'
Given I have a 'string' named 'ts6'

Given I execute parallel GET to 'ts1' and save the result named 'timestamp1' within the object '1'
Given I execute parallel GET to 'ts2' and save the result named 'timestamp2' within the object '2'
Given I execute parallel GET to 'ts3' and save the result named 'timestamp3' within the object '3'
Given I execute parallel GET to 'ts4' and save the result named 'timestamp4' within the object '4'
Given I execute parallel GET to 'ts5' and save the result named 'timestamp5' within the object '5'
Given I execute parallel GET to 'ts6' and save the result named 'timestamp6' within the object '6'

Then print data

with data:

{
	"1": {
		"baseUrl": "http://192.168.0.109:3030",
		"ip": "192.168.0.109",
		"public_key": "BH4DAzUaA3GXJ4blwyX14J8ZzExD8XZI1mU3VuS7MH+xrGJafIbjRZcEJ0t0SVDTK9OgiYbn3x3vPhlGbqwbJd8=",
		"timestampAPI": "/api/consensusroom-get-timestamp",
		"uid": "Souther",
		"version": "1"
	},
	"2": {
		"baseUrl": "http://192.168.0.111:3030",
		"ip": "192.168.0.111",
		"public_key": "BC/DiN9hGAD5Ff5AKDd3DiYhXPD0bk37nmw48f1mNYoVs9O9koTHH7ResvhpVcPXr8XIw5ank+hni9LLwKTW5gQ=",
		"timestampAPI": "/api/consensusroom-get-timestamp",
		"uid": "Lynn",
		"version": "1"
	},
	"3": {
		"baseUrl": "http://192.168.0.110:3030",
		"ip": "192.168.0.110",
		"public_key": "BHZtsy1qifMCrXzF5nD1RFB4YY0SdbnHA1Pu4i0DfYIfNetlXgIQ9p7b7zzGJyP0XuJtQKA619MR3OIxDRheAV0=",
		"timestampAPI": "/api/consensusroom-get-timestamp",
		"uid": "Burt",
		"version": "1"
	},
	"4": {
		"baseUrl": "http://192.168.0.103:3030",
		"ip": "192.168.0.103",
		"public_key": "BESKGbFfv5V2W+/p22ESRb6g4cz8hIdKEh/KGfiZ6jjlFh9XZN7Rz93qiAeCqJlQ6HdyuzF64Gu8dj1zlmNK2fU=",
		"timestampAPI": "/api/consensusroom-get-timestamp",
		"uid": "Jagger",
		"version": "1"
	},
	"5": {
		"baseUrl": "http://192.168.0.108:3030",
		"ip": "192.168.0.108",
		"public_key": "BHCJefNXQZUfzh/uu6RBr5qN/QE5zyxXlayeBP5Bd4zR8aYHh0QWMMQS5skWYSuDolWFFjjvgKYHHmUdaCaXqZk=",
		"timestampAPI": "/api/consensusroom-get-timestamp",
		"uid": "Julia",
		"version": "1"
	},
	"6": {
		"baseUrl": "http://192.168.0.105:3030",
		"ip": "192.168.0.105",
		"public_key": "BLQWijG60cudq9uXErzowuBXP4fOWxFUkIfJxg6hnbDBQXa+nJWEd0WzFP8WMuTeUn5lsialbIltF1z1WLpW4eg=",
		"timestampAPI": "/api/consensusroom-get-timestamp",
		"uid": "Rei",
		"version": "1"
	},
	"ts1": "http://apiroom.net:3312/",
	"ts2": "http://apiroom.net:3312/",
	"ts3": "http://apiroom.net:3312/",
	"ts4": "http://apiroom.net:3312/",
	"ts5": "http://apiroom.net:3312/",
	"ts6": "http://apiroom.net:3312/"
}

produces this output:

{
  "1": {
    "baseUrl": "http://192.168.0.109:3030",
    "ip": "192.168.0.109",
    "public_key": "BH4DAzUaA3GXJ4blwyX14J8ZzExD8XZI1mU3VuS7MH+xrGJafIbjRZcEJ0t0SVDTK9OgiYbn3x3vPhlGbqwbJd8=",
    "timestampAPI": "/api/consensusroom-get-timestamp",
    "uid": "Souther",
    "version": "1"
  },
  "2": {
    "baseUrl": "http://192.168.0.111:3030",
    "ip": "192.168.0.111",
    "public_key": "BC/DiN9hGAD5Ff5AKDd3DiYhXPD0bk37nmw48f1mNYoVs9O9koTHH7ResvhpVcPXr8XIw5ank+hni9LLwKTW5gQ=",
    "timestampAPI": "/api/consensusroom-get-timestamp",
    "uid": "Lynn",
    "version": "1"
  },
  "3": {
    "baseUrl": "http://192.168.0.110:3030",
    "ip": "192.168.0.110",
    "public_key": "BHZtsy1qifMCrXzF5nD1RFB4YY0SdbnHA1Pu4i0DfYIfNetlXgIQ9p7b7zzGJyP0XuJtQKA619MR3OIxDRheAV0=",
    "timestampAPI": "/api/consensusroom-get-timestamp",
    "uid": "Burt",
    "version": "1"
  },
  "4": {
    "baseUrl": "http://192.168.0.103:3030",
    "ip": "192.168.0.103",
    "public_key": "BESKGbFfv5V2W+/p22ESRb6g4cz8hIdKEh/KGfiZ6jjlFh9XZN7Rz93qiAeCqJlQ6HdyuzF64Gu8dj1zlmNK2fU=",
    "timestampAPI": "/api/consensusroom-get-timestamp",
    "uid": "Jagger",
    "version": "1"
  },
  "5": {
    "baseUrl": "http://192.168.0.108:3030",
    "ip": "192.168.0.108",
    "public_key": "BHCJefNXQZUfzh/uu6RBr5qN/QE5zyxXlayeBP5Bd4zR8aYHh0QWMMQS5skWYSuDolWFFjjvgKYHHmUdaCaXqZk=",
    "timestampAPI": "/api/consensusroom-get-timestamp",
    "uid": "Julia",
    "version": "1"
  },
  "6": {
    "baseUrl": "http://192.168.0.105:3030",
    "ip": "192.168.0.105",
    "public_key": "BLQWijG60cudq9uXErzowuBXP4fOWxFUkIfJxg6hnbDBQXa+nJWEd0WzFP8WMuTeUn5lsialbIltF1z1WLpW4eg=",
    "timestampAPI": "/api/consensusroom-get-timestamp",
    "uid": "Rei",
    "version": "1"
  },
  "ts1": "http://apiroom.net:3312/",
  "ts2": "http://apiroom.net:3312/",
  "ts3": "http://apiroom.net:3312/",
  "ts4": "http://apiroom.net:3312/",
  "ts5": "http://apiroom.net:3312/",
  "ts6": "http://apiroom.net:3312/"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants